diff --git a/.changeset/cyan-keys-report.md b/.changeset/cyan-keys-report.md new file mode 100644 index 0000000000..e95f21f356 --- /dev/null +++ b/.changeset/cyan-keys-report.md @@ -0,0 +1,5 @@ +--- +"sushi": patch +--- + +expose address module diff --git a/Dockerfile.extractor-init b/Dockerfile.extractor-init index a11d654afe..d7385b631c 100644 --- a/Dockerfile.extractor-init +++ b/Dockerfile.extractor-init @@ -2,7 +2,7 @@ FROM node:22-alpine WORKDIR /app -COPY scripts/prune.ts prune.ts +COPY apis/extractor/scripts/prune.ts prune.ts RUN npm i -g tsx@latest diff --git a/apis/extractor/scripts/count-liquidity-providers.ts b/apis/extractor/scripts/count-liquidity-providers.ts new file mode 100644 index 0000000000..a3d2cc28ca --- /dev/null +++ b/apis/extractor/scripts/count-liquidity-providers.ts @@ -0,0 +1,52 @@ +#!/usr/bin/env -S pnpm tsx + +import { ChainId, ChainKey } from 'sushi' +import { EXTRACTOR_CONFIG } from '../src/config' + +let count = 0 + +const liquidityProviders: string[] = [] + +for (const [ + chainId, + { factoriesV2, factoriesV3, factoriesAlgebra, factoriesAerodromeSlipstream }, +] of Object.entries(EXTRACTOR_CONFIG)) { + if (factoriesV2?.length) { + count += factoriesV2.length + for (const factory of factoriesV2) { + liquidityProviders.push( + `${factory.provider} (${ChainKey[chainId as keyof typeof ChainId]})`, + ) + } + } + if (factoriesV3?.length) { + count += factoriesV3.length + for (const factory of factoriesV3) { + liquidityProviders.push( + `${factory.provider} (${ChainKey[chainId as keyof typeof ChainId]})`, + ) + } + } + if (factoriesAlgebra?.length) { + count += factoriesAlgebra.length + for (const factory of factoriesAlgebra) { + liquidityProviders.push( + `${factory.provider} (${ChainKey[chainId as keyof typeof ChainId]})`, + ) + } + } + if (factoriesAerodromeSlipstream?.length) { + count += factoriesAerodromeSlipstream.length + for (const factory of factoriesAerodromeSlipstream) { + liquidityProviders.push( + `${factory.provider} (${ChainKey[chainId as keyof typeof ChainId]})`, + ) + } + } +} + +console.log('Total number of liquidity providers: ', count) +console.log( + 'Liquidity providers:\n', + liquidityProviders.reduce((acc, provider) => `${acc}\n${provider}`, ''), +) diff --git a/scripts/prune.ts b/apis/extractor/scripts/prune.ts similarity index 86% rename from scripts/prune.ts rename to apis/extractor/scripts/prune.ts index 1d0dc10cc8..e177c993ae 100644 --- a/scripts/prune.ts +++ b/apis/extractor/scripts/prune.ts @@ -22,7 +22,7 @@ function percentage(x: number, y: number, fixed = 2) { async function prune( path: string, accessors: 'address' | ('token0' | 'token1')[], - minLines = 0, + minLines = 1000, ): Promise<[number, number, number, number]> { let valid = 0 let invalid = 0 @@ -112,7 +112,7 @@ async function prune( console.log(`Analyzing cache for chain ${chainId}...`) const [validTokens, invalidTokens, duplicateTokens, removedTokens] = - await prune(`${cacheDir}/tokens-${chainId}`, 'address', 200) + await prune(`${cacheDir}/tokens-${chainId}`, 'address') console.log( `Tokens, Valid: ${validTokens} Invalid: ${invalidTokens} Duplicate: ${duplicateTokens} Removed: ${removedTokens} (${percentage( removedTokens, @@ -193,4 +193,29 @@ async function prune( } catch (_e) { // console.error(e) } + + try { + const [ + validSlipstreamPools, + invalidSlipstreamPool, + duplicateSlipstreamPool, + removedSlipstreamPool, + ] = await prune(`${cacheDir}/slipstreamV3Pools-${chainId}`, [ + 'token0', + 'token1', + ]) + console.log( + `Slipstream, Valid: ${validSlipstreamPools} Invalid: ${invalidSlipstreamPool} Duplicate: ${duplicateSlipstreamPool} Removed: ${removedSlipstreamPool} (${percentage( + removedSlipstreamPool, + validSlipstreamPools, + )}%) Remaining: ${ + validSlipstreamPools - removedSlipstreamPool + } (${percentage( + validSlipstreamPools - removedSlipstreamPool, + validSlipstreamPools, + )}%)`, + ) + } catch (_e) { + // console.error(e) + } })() diff --git a/apis/extractor/src/config/apeswap.ts b/apis/extractor/src/config/apeswap.ts new file mode 100644 index 0000000000..231ec92884 --- /dev/null +++ b/apis/extractor/src/config/apeswap.ts @@ -0,0 +1,38 @@ +import { ChainId, LiquidityProviders } from 'sushi' +import { Address, Hex } from 'viem' + +const APESWAP_V2_SUPPORTED_CHAIN_IDS = [ + ChainId.BSC, + ChainId.POLYGON, + ChainId.ETHEREUM, + ChainId.ARBITRUM, + ChainId.TELOS, +] as const +type ApeSwapV2ChainId = (typeof APESWAP_V2_SUPPORTED_CHAIN_IDS)[number] +const APESWAP_V2_FACTORY_ADDRESS: Record = { + [ChainId.BSC]: '0x0841BD0B734E4F5853f0dD8d7Ea041c241fb0Da6', + [ChainId.POLYGON]: '0xCf083Be4164828f00cAE704EC15a36D711491284', + [ChainId.ETHEREUM]: '0xBAe5dc9B19004883d0377419FeF3c2C8832d7d7B', + [ChainId.ARBITRUM]: '0xCf083Be4164828f00cAE704EC15a36D711491284', + [ChainId.TELOS]: '0x411172Dfcd5f68307656A1ff35520841C2F7fAec', +} as const +const APESWAP_V2_INIT_CODE_HASH: Record = { + [ChainId.BSC]: + '0xf4ccce374816856d11f00e4069e7cada164065686fbef53c6167a63ec2fd8c5b', + [ChainId.POLYGON]: + '0x511f0f358fe530cda0859ec20becf391718fdf5a329be02f4c95361f3d6a42d8', + [ChainId.ETHEREUM]: + '0xe2200989b6f9506f3beca7e9c844741b3ad1a88ad978b6b0973e96d3ca4707aa', + [ChainId.ARBITRUM]: + '0xae7373e804a043c4c08107a81def627eeb3792e211fb4711fcfe32f0e4c45fd5', + [ChainId.TELOS]: + '0x7d4b9bb0d5808344c0184aada7d10aae8f6b0cc8ceb5eba8dd084f63b8c32099', +} as const +export function apeswapV2Factory(chainId: ApeSwapV2ChainId) { + return { + address: APESWAP_V2_FACTORY_ADDRESS[chainId], + provider: LiquidityProviders.ApeSwap, + initCodeHash: APESWAP_V2_INIT_CODE_HASH[chainId], + fee: 0.002, // 2 + } as const +} diff --git a/apis/extractor/src/config/dackieswap.ts b/apis/extractor/src/config/dackieswap.ts new file mode 100644 index 0000000000..c37b8f621f --- /dev/null +++ b/apis/extractor/src/config/dackieswap.ts @@ -0,0 +1,126 @@ +import { ChainId, LiquidityProviders } from 'sushi' +import { PANCAKESWAP_V3_FEE_SPACING_MAP } from 'sushi/config' +import { Address, Hex } from 'viem' + +const DACKIESWAP_V2_SUPPORTED_CHAIN_IDS = [ + ChainId.BASE, + ChainId.OPTIMISM, + ChainId.ARBITRUM, + ChainId.BLAST, + // ChainId.INEVM, + // ChainId.MODE, + // ChainId.XLAYER, + ChainId.LINEA, + // ChainId.SCROLL, T.B.D + // ChainId.VICTION, T.B.D + // ChainId.MANTLE, T.B.D +] as const +type DackieSwapV2ChainId = (typeof DACKIESWAP_V2_SUPPORTED_CHAIN_IDS)[number] +const DACKIESWAP_V2_FACTORY_ADDRESS: Record = { + [ChainId.BASE]: '0x591f122D1df761E616c13d265006fcbf4c6d6551', + [ChainId.OPTIMISM]: '0xaEdc38bD52b0380b2Af4980948925734fD54FbF4', + [ChainId.ARBITRUM]: '0x507940c2469e6E3B33032F1d4FF8d123BDDe2f5C', + [ChainId.BLAST]: '0xF5190E64dB4cbf7ee5E72B55cC5b2297e20264c2', + // [ChainId.INEVM]: '0x507940c2469e6E3B33032F1d4FF8d123BDDe2f5C', + // [ChainId.MODE]: '0x757cD583004400ee67e5cC3c7A60C6a62E3F6d30', + // [ChainId.XLAYER]: '0x757cD583004400ee67e5cC3c7A60C6a62E3F6d30', + [ChainId.LINEA]: '0x9790713770039CeFcf4FAaf076E2846c9B7a4630', + // [ChainId.SCROLL]: '', T.B.D + // [ChainId.VICTION]: '', T.B.D + // [ChainId.MANTLE]: '', T.B.D +} as const +const DACKIESWAP_V2_INIT_CODE_HASH: Record = { + [ChainId.BASE]: + '0xaaaacde43ad77b69fcbcdc68ccb757c3c634ad20e330a951b4a267f1180c6520', + [ChainId.OPTIMISM]: + '0x6583f40d4a27d36b2f66ec686363a3fc9a3b0f4d748e788cd6e8e2773e4ee898', + [ChainId.ARBITRUM]: + '0x6583f40d4a27d36b2f66ec686363a3fc9a3b0f4d748e788cd6e8e2773e4ee898', + [ChainId.BLAST]: + '0x08b78b4ee8893b0d52edf9be019ea4e261e38b8eb1e0d7be8940645e8f95aa28', + // [ChainId.INEVM]: '0x6583f40d4a27d36b2f66ec686363a3fc9a3b0f4d748e788cd6e8e2773e4ee898', + // [ChainId.MODE]: '0x6583f40d4a27d36b2f66ec686363a3fc9a3b0f4d748e788cd6e8e2773e4ee898', + // [ChainId.XLAYER]: '0x6583f40d4a27d36b2f66ec686363a3fc9a3b0f4d748e788cd6e8e2773e4ee898', + [ChainId.LINEA]: + '0x6583f40d4a27d36b2f66ec686363a3fc9a3b0f4d748e788cd6e8e2773e4ee898', + // [ChainId.SCROLL]: '', T.B.D + // [ChainId.VICTION]: '', T.B.D + // [ChainId.MANTLE]: '', T.B.D +} as const +export function dackieSwapV2Factory(chainId: DackieSwapV2ChainId) { + return { + address: DACKIESWAP_V2_FACTORY_ADDRESS[chainId], + provider: LiquidityProviders.DackieSwapV2, + initCodeHash: DACKIESWAP_V2_INIT_CODE_HASH[chainId], + fee: 0.0025, + } as const +} + +const V3_SUPPORTED_CHAIN_IDS = [ + ChainId.BASE, + ChainId.OPTIMISM, + ChainId.ARBITRUM, + ChainId.BLAST, + // ChainId.INEVM, + // ChainId.MODE, + // ChainId.XLAYER, + ChainId.LINEA, + // ChainId.SCROLL, T.B.D + // ChainId.VICTION, T.B.D + // ChainId.MANTLE, T.B.D +] as const +type V3ChainId = (typeof V3_SUPPORTED_CHAIN_IDS)[number] +const V3_FACTORY_ADDRESS: Record = { + [ChainId.BASE]: '0x3D237AC6D2f425D2E890Cc99198818cc1FA48870', + [ChainId.OPTIMISM]: '0xc2BC7A73613B9bD5F373FE10B55C59a69F4D617B', + [ChainId.ARBITRUM]: '0xaEdc38bD52b0380b2Af4980948925734fD54FbF4', + [ChainId.BLAST]: '0xd1575B2e0C82fba9Eddc3de9c9AAF923AFA670cC', + // [ChainId.INEVM]: '0xf79A36F6f440392C63AD61252a64d5d3C43F860D', + // [ChainId.MODE]: '0xc6f3966E5D08Ced98aC30f8B65BeAB5882Be54C7', + // [ChainId.XLAYER]: '0xc6f3966E5D08Ced98aC30f8B65BeAB5882Be54C7', + [ChainId.LINEA]: '0xc6255ec7CDb11C890d02EBfE77825976457B2470', + // [ChainId.SCROLL]: '', T.B.D + // [ChainId.VICTION]: '', T.B.D + // [ChainId.MANTLE]: '', T.B.D +} as const +const V3_DEPLOYER_ADDRESS: Record = { + [ChainId.BASE]: '0x4f205D69834f9B101b9289F7AFFAc9B77B3fF9b7', + [ChainId.OPTIMISM]: '0xa466ebCfa58848Feb6D8022081f1C21a884889bB', + [ChainId.ARBITRUM]: '0xf79A36F6f440392C63AD61252a64d5d3C43F860D', + [ChainId.BLAST]: '0x6510E68561F04C1d111e616750DaC2a063FF5055', + // [ChainId.INEVM]: '0xB9010964301326160173da694c0697a2FcE82F39', + // [ChainId.MODE]: '0xE4EFb979968AE4B85a166E5e083f7B166e70Fe20', + // [ChainId.XLAYER]: '0xE4EFb979968AE4B85a166E5e083f7B166e70Fe20', + [ChainId.LINEA]: '0x46B22CD275967DDf055A567E7f36EC89eE3F1139', + // [ChainId.SCROLL]: '', T.B.D + // [ChainId.VICTION]: '', T.B.D + // [ChainId.MANTLE]: '', T.B.D +} as const +const V3_INIT_CODE_HASH: Record = { + [ChainId.BASE]: + '0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2', + [ChainId.OPTIMISM]: + '0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2', + [ChainId.ARBITRUM]: + '0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2', // might not be right, couldn't verify + [ChainId.BLAST]: + '0x9173e4373ab542649f2f059b10eaab2181ad82cc2e70cf51cf9d9fa8a144a2af', + // [ChainId.INEVM]: '0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2', + // [ChainId.MODE]: '0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2', + // [ChainId.XLAYER]: '0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2', + [ChainId.LINEA]: + '0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2', + // [ChainId.SCROLL]: '', T.B.D + // [ChainId.VICTION]: '', T.B.D + // [ChainId.MANTLE]: '', T.B.D +} as const +export function dackieSwapV3Factory(chainId: V3ChainId) { + return { + address: V3_FACTORY_ADDRESS[chainId], + provider: LiquidityProviders.DackieSwapV3, + initCodeHash: V3_INIT_CODE_HASH[chainId], + deployer: V3_DEPLOYER_ADDRESS[chainId], + feeSpacingMap: PANCAKESWAP_V3_FEE_SPACING_MAP, + } as const +} +// PoolAddress diff --git a/apis/extractor/src/config/dfyn.ts b/apis/extractor/src/config/dfyn.ts new file mode 100644 index 0000000000..61c4f23adc --- /dev/null +++ b/apis/extractor/src/config/dfyn.ts @@ -0,0 +1,34 @@ +import { ChainId, LiquidityProviders } from 'sushi' +import { Address, Hex } from 'viem' + +const DFYN_V2_SUPPORTED_CHAIN_IDS = [ + ChainId.POLYGON, + ChainId.OKEX, + ChainId.FANTOM, + ChainId.ARBITRUM, +] as const +type DfynV2ChainId = (typeof DFYN_V2_SUPPORTED_CHAIN_IDS)[number] +const DFYN_V2_FACTORY_ADDRESS: Record = { + [ChainId.POLYGON]: '0xE7Fb3e833eFE5F9c441105EB65Ef8b261266423B', + [ChainId.OKEX]: '0xE7Fb3e833eFE5F9c441105EB65Ef8b261266423B', + [ChainId.FANTOM]: '0xd9820a17053d6314B20642E465a84Bf01a3D64f5', + [ChainId.ARBITRUM]: '0xA102072A4C07F06EC3B4900FDC4C7B80b6c57429', +} as const +const DFYN_V2_INIT_CODE_HASH: Record = { + [ChainId.POLYGON]: + '0xf187ed688403aa4f7acfada758d8d53698753b998a3071b06f1b777f4330eaf3', + [ChainId.OKEX]: + '0xd9fecb0a9f5bfd6ce2daf90b441ed5860c3fed2fcde57ba9819eb98d2422e418', + [ChainId.FANTOM]: + '0xd3ab2c392f54feb4b3b2a677f449b133c188ad2f1015eff3e94ea9315282c5f5', + [ChainId.ARBITRUM]: + '0xd49917af2b31d70ba7bea89230a93b55d3b6a99aacd03a72c288dfe524ec2f36', +} as const +export function dfynV2Factory(chainId: DfynV2ChainId) { + return { + address: DFYN_V2_FACTORY_ADDRESS[chainId], + provider: LiquidityProviders.Dfyn, + initCodeHash: DFYN_V2_INIT_CODE_HASH[chainId], + fee: 0.003, + } as const +} diff --git a/apis/extractor/src/config/elk.ts b/apis/extractor/src/config/elk.ts new file mode 100644 index 0000000000..f553e8c2c1 --- /dev/null +++ b/apis/extractor/src/config/elk.ts @@ -0,0 +1,118 @@ +import { ChainId, LiquidityProviders } from 'sushi' +import { Address, Hex } from 'viem' + +const ELK_V2_SUPPORTED_CHAIN_IDS = [ + ChainId.AVALANCHE, + ChainId.POLYGON, + ChainId.FANTOM, + // ChainId.HECO, + ChainId.GNOSIS, + ChainId.BSC, + // ChainId.KCC, + ChainId.HARMONY, + // ChainId.OKEX, + // ChainId.ELASTOS, + ChainId.MOONRIVER, + ChainId.TELOS, + ChainId.CRONOS, + ChainId.FUSE, + // ChainId.IOTEX, + ChainId.ETHEREUM, + ChainId.ARBITRUM, + ChainId.OPTIMISM, + ChainId.KAVA, + ChainId.BTTC, + // ChainId.BITGERT, + ChainId.METIS, + // ChainId.WANCHAIN, + // ChainId.NEON, + // ChainId.ASTAR, + ChainId.BASE, + ChainId.LINEA, + // ChainId.VELAS, + // ChainId.QBLOCKCHAIN, + // ChainId.ARTHERA, + ChainId.ROOTSTOCK, +] as const +type ElkV2ChainId = (typeof ELK_V2_SUPPORTED_CHAIN_IDS)[number] +const ELK_V2_FACTORY_ADDRESS: Record = { + [ChainId.AVALANCHE]: '0x091d35d7F63487909C863001ddCA481c6De47091', + [ChainId.POLYGON]: '0xE3BD06c7ac7E1CeB17BdD2E5BA83E40D1515AF2a', + [ChainId.FANTOM]: '0x7Ba73c99e6f01a37f3e33854c8F544BbbadD3420', + // [ChaainId.HECO]: '0x997fCE9164D630CC58eE366d4D275B9D773d54A4', + [ChainId.GNOSIS]: '0xCB018587dA9590A18f49fFE2b85314c33aF3Ad3B', + [ChainId.BSC]: '0x31aFfd875e9f68cd6Cd12Cee8943566c9A4bBA13', + // [ChainId.KCC]: '0x1f9aa39001ed0630dA6854859D7B3eD255648599', + [ChainId.HARMONY]: '0xCdde1AbfF5Ae3Cbfbdb55c1e866Ac56380e18720', + // [ChainId.OKEX]: '', + // [ChainId.ELASTOS]: '', + [ChainId.MOONRIVER]: '0xd45145f10fD4071dfC9fC3b1aefCd9c83A685e77', + [ChainId.TELOS]: '0x47c3163e691966f8c1b93B308A236DDB3C1C592d', + [ChainId.CRONOS]: '0xEEa0e2830D09D8786Cb9F484cA20898b61819ef1', + [ChainId.FUSE]: '0x779407e40Dad9D70Ba5ADc30E45cC3494ec71ad2', + // [ChainId.IOTEX]: '', + [ChainId.ETHEREUM]: '0x6511eBA915fC1b94b2364289CCa2b27AE5898d80', + [ChainId.ARBITRUM]: '0xA59B2044EAFD15ee4deF138D410d764c9023E1F0', + [ChainId.OPTIMISM]: '0xedfad3a0F42A8920B011bb0332aDe632e552d846', + [ChainId.KAVA]: '0xC012C4b3d253A8F22d5e4ADA67ea2236FF9778fc', + [ChainId.BTTC]: '0xc06348AEE3f3E92eE452816E0D3F25C919F6fB04', + // [ChainId.BITGERT]: '0xfbb4E52FEcc90924c79F980eb24a9794ae4aFFA4', + [ChainId.METIS]: '0xfbb4E52FEcc90924c79F980eb24a9794ae4aFFA4', + // [ChainId.WANACHAIN]: '0xfbb4E52FEcc90924c79F980eb24a9794ae4aFFA4', + // [ChainId.NEON]: '0xfbb4E52FEcc90924c79F980eb24a9794ae4aFFA4', + // [ChainId.ASTAR]: '0xfbb4E52FEcc90924c79F980eb24a9794ae4aFFA4', + [ChainId.BASE]: '0xfbb4E52FEcc90924c79F980eb24a9794ae4aFFA4', + [ChainId.LINEA]: '0xfbb4E52FEcc90924c79F980eb24a9794ae4aFFA4', + // [ChainId.VELAS]: '0xfbb4E52FEcc90924c79F980eb24a9794ae4aFFA4', + // [ChainId.QBLOCKCHAIN]: '0xfbb4E52FEcc90924c79F980eb24a9794ae4aFFA4', + // [ChainId.ARTHERA]: '0x69D10bc18cD588A4b70F836a471D4e9C2FD86092', + [ChainId.ROOTSTOCK]: '0x69D10bc18cD588A4b70F836a471D4e9C2FD86092', +} as const +const ELK_V2_DEFAULT_INIT_CODE_HASH: Hex = + '0x84845e7ccb283dec564acfcd3d9287a491dec6d675705545a2ab8be22ad78f31' +const ELK_V2_INIT_CODE_HASH: Record = { + [ChainId.AVALANCHE]: + '0x33c4831a098654d3d20a78641a198ee6ffc1ceed49f2196b75bb244891c260e3', + [ChainId.POLYGON]: ELK_V2_DEFAULT_INIT_CODE_HASH, + [ChainId.FANTOM]: ELK_V2_DEFAULT_INIT_CODE_HASH, + // [ChainId.HECO]: ELK_V2_DEFAULT_INIT_CODE_HASH, // couldn't verify on scanner + [ChainId.GNOSIS]: ELK_V2_DEFAULT_INIT_CODE_HASH, + [ChainId.BSC]: ELK_V2_DEFAULT_INIT_CODE_HASH, + // [ChainId.KCC]: ELK_V2_DEFAULT_INIT_CODE_HASH, // couldn't verify on scanner + [ChainId.HARMONY]: ELK_V2_DEFAULT_INIT_CODE_HASH, + // [ChainId.OKEX]: ELK_V2_DEFAULT_INIT_CODE_HASH + // [ChainId.ELASTOS]: ELK_V2_DEFAULT_INIT_CODE_HASH, + [ChainId.MOONRIVER]: ELK_V2_DEFAULT_INIT_CODE_HASH, + [ChainId.TELOS]: ELK_V2_DEFAULT_INIT_CODE_HASH, + [ChainId.CRONOS]: ELK_V2_DEFAULT_INIT_CODE_HASH, + [ChainId.FUSE]: ELK_V2_DEFAULT_INIT_CODE_HASH, + // [ChainId.IOTEX]: ELK_V2_DEFAULT_INIT_CODE_HASH, + [ChainId.ETHEREUM]: ELK_V2_DEFAULT_INIT_CODE_HASH, + [ChainId.ARBITRUM]: ELK_V2_DEFAULT_INIT_CODE_HASH, + [ChainId.OPTIMISM]: ELK_V2_DEFAULT_INIT_CODE_HASH, + [ChainId.KAVA]: ELK_V2_DEFAULT_INIT_CODE_HASH, + [ChainId.BTTC]: ELK_V2_DEFAULT_INIT_CODE_HASH, + // [ChainId.BITGERT]: '0x074ce6e2b043b11e990c9b71d400ce5b2c39c96ddad65144d0a879d31c2bbaf9', + [ChainId.METIS]: + '0x074ce6e2b043b11e990c9b71d400ce5b2c39c96ddad65144d0a879d31c2bbaf9', + // [ChainId.WANACHAIN]: ELK_V2_DEFAULT_INIT_CODE_HASH, // couldn't verify on scanner + // [ChainId.NEON]: ELK_V2_DEFAULT_INIT_CODE_HASH, + // [ChainId.ASTAR]: '0x074ce6e2b043b11e990c9b71d400ce5b2c39c96ddad65144d0a879d31c2bbaf9', + [ChainId.BASE]: ELK_V2_DEFAULT_INIT_CODE_HASH, + [ChainId.LINEA]: ELK_V2_DEFAULT_INIT_CODE_HASH, + // [ChainId.VELAS]: ELK_V2_DEFAULT_INIT_CODE_HASH, + // [ChainId.QBLOCKCHAIN]: '0x074ce6e2b043b11e990c9b71d400ce5b2c39c96ddad65144d0a879d31c2bbaf9', + // [ChainId.ARTHERA]: ELK_V2_DEFAULT_INIT_CODE_HASH, + [ChainId.ROOTSTOCK]: ELK_V2_DEFAULT_INIT_CODE_HASH, +} as const + +export function elkV2Factory(chainId: ElkV2ChainId) { + return { + address: ELK_V2_FACTORY_ADDRESS[chainId], + provider: LiquidityProviders.Elk, + initCodeHash: ELK_V2_INIT_CODE_HASH[chainId], + fee: 0.003, + } as const +} + +// TODO: Add ELK V3 config diff --git a/apis/extractor/src/config.ts b/apis/extractor/src/config/index.ts similarity index 85% rename from apis/extractor/src/config.ts rename to apis/extractor/src/config/index.ts index c32b17653a..98b7779c5b 100644 --- a/apis/extractor/src/config.ts +++ b/apis/extractor/src/config/index.ts @@ -34,6 +34,11 @@ import { type PublicClientConfig, createPublicClient, } from 'viem' +import { apeswapV2Factory } from './apeswap.js' +import { dackieSwapV2Factory, dackieSwapV3Factory } from './dackieswap.js' +import { dfynV2Factory } from './dfyn.js' +import { elkV2Factory } from './elk.js' +import { wagmiV3Factory } from './wagmi.js' function sushiswapV2Factory(chainId: SushiSwapV2ChainId) { return { @@ -88,6 +93,19 @@ export function pancakeswapV2Factory(chainId: PancakeSwapV2ChainId) { } as const } +// const ELK_V2_SUPPORTED_CHAIN_IDS = [] as const +// type ElkV2ChainId = (typeof ELK_V2_SUPPORTED_CHAIN_IDS)[number] +// const ELK_V2_FACTORY_ADDRESS: Record = {} as const +// const ELK_V2_INIT_CODE_HASH: Record = {} as const +// export function elkV2Factory(chainId: ElkV2ChainId) { +// return { +// address: ELK_V2_FACTORY_ADDRESS[chainId], +// provider: LiquidityProviders.Elk, +// initCodeHash: ELK_V2_INIT_CODE_HASH[chainId], +// fee: 0.003, +// } as const +// } + function extractorClientConfig(chainId: ChainId): PublicClientConfig { const url = publicClientConfig[chainId]?.transport({})?.value?.url if (url === undefined) throw new Error('extractorClientConfig: Unknown url') @@ -103,35 +121,44 @@ function extractorClientConfig(chainId: ChainId): PublicClientConfig { } // ! TODO: Fix casts when viem is updated -export const EXTRACTOR_CONFIG: Record< - ExtractorSupportedChainId, - ExtractorConfig -> = { +export const EXTRACTOR_CONFIG = { + [ChainId.CURTIS]: { + client: createPublicClient(extractorClientConfig(ChainId.CURTIS)), + factoriesV2: [ + { + address: '0x424703f978bfaa96F8Aad4f3C9B2C91B8bd513CB', + provider: LiquidityProviders.Saru, + fee: 0.003, + initCodeHash: + '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303', + }, + ], + factoriesV3: [], + tickHelperContractV3: + '0x0000000000000000000000000000000000000000' as Address, + tickHelperContractAlgebra: + '0x0000000000000000000000000000000000000000' as Address, + cacheDir: './cache', + logDepth: 50, + logging: true, + }, [ChainId.ARBITRUM]: { client: createPublicClient(extractorClientConfig(ChainId.ARBITRUM)), factoriesV2: [ uniswapV2Factory(ChainId.ARBITRUM), sushiswapV2Factory(ChainId.ARBITRUM), pancakeswapV2Factory(ChainId.ARBITRUM), - { - address: '0xA102072A4C07F06EC3B4900FDC4C7B80b6c57429' as Address, - provider: LiquidityProviders.Dfyn, - fee: 0.003, - initCodeHash: - '0xd49917af2b31d70ba7bea89230a93b55d3b6a99aacd03a72c288dfe524ec2f36', - }, - { - address: '0xA59B2044EAFD15ee4deF138D410d764c9023E1F0' as Address, - provider: LiquidityProviders.Elk, - fee: 0.003, - initCodeHash: - '0x84845e7ccb283dec564acfcd3d9287a491dec6d675705545a2ab8be22ad78f31', - }, + elkV2Factory(ChainId.ARBITRUM), + apeswapV2Factory(ChainId.ARBITRUM), + dfynV2Factory(ChainId.ARBITRUM), + dackieSwapV2Factory(ChainId.ARBITRUM), ], factoriesV3: [ uniswapV3Factory(ChainId.ARBITRUM), sushiswapV3Factory(ChainId.ARBITRUM), pancakeswapV3Factory(ChainId.ARBITRUM), + wagmiV3Factory(ChainId.ARBITRUM), + dackieSwapV3Factory(ChainId.ARBITRUM), ], tickHelperContractV3: SUSHISWAP_V3_TICK_LENS[ChainId.ARBITRUM], tickHelperContractAlgebra: @@ -159,6 +186,7 @@ export const EXTRACTOR_CONFIG: Record< factoriesV2: [ uniswapV2Factory(ChainId.AVALANCHE), sushiswapV2Factory(ChainId.AVALANCHE), + elkV2Factory(ChainId.AVALANCHE), { address: '0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10' as Address, provider: LiquidityProviders.TraderJoe, @@ -177,6 +205,7 @@ export const EXTRACTOR_CONFIG: Record< factoriesV3: [ sushiswapV3Factory(ChainId.AVALANCHE), uniswapV3Factory(ChainId.AVALANCHE), + wagmiV3Factory(ChainId.AVALANCHE), ], tickHelperContractV3: SUSHISWAP_V3_TICK_LENS[ChainId.AVALANCHE], tickHelperContractAlgebra: @@ -193,6 +222,8 @@ export const EXTRACTOR_CONFIG: Record< uniswapV2Factory(ChainId.BASE), sushiswapV2Factory(ChainId.BASE), pancakeswapV2Factory(ChainId.BASE), + elkV2Factory(ChainId.BASE), + dackieSwapV2Factory(ChainId.BASE), { address: '0xFDa619b6d20975be80A10332cD39b9a4b0FAa8BB' as Address, provider: LiquidityProviders.BaseSwap, @@ -212,6 +243,8 @@ export const EXTRACTOR_CONFIG: Record< sushiswapV3Factory(ChainId.BASE), uniswapV3Factory(ChainId.BASE), pancakeswapV3Factory(ChainId.BASE), + wagmiV3Factory(ChainId.BASE), + dackieSwapV3Factory(ChainId.BASE), { address: '0x0Fd83557b2be93617c9C1C1B6fd549401C74558C' as Address, provider: LiquidityProviders.AlienBaseV3, @@ -239,7 +272,6 @@ export const EXTRACTOR_CONFIG: Record< }, ], tickHelperContractV3: SUSHISWAP_V3_TICK_LENS[ChainId.BASE], - factoriesAlgebra: [ { address: '0x2F0d41f94d5D1550b79A83D2fe85C82d68c5a3ca' as Address, @@ -257,7 +289,6 @@ export const EXTRACTOR_CONFIG: Record< ], tickHelperContractSlipstream: '0x3e1116ea5034f5d73a7b530071709d54a4109f5f' as Address, // our own - cacheDir: './cache', logDepth: 50, logging: true, @@ -269,6 +300,7 @@ export const EXTRACTOR_CONFIG: Record< factoriesV2: [ uniswapV2Factory(ChainId.BLAST), sushiswapV2Factory(ChainId.BLAST), + dackieSwapV2Factory(ChainId.BLAST), { address: '0x04C9f118d21e8B767D2e50C946f0cC9F6C367300' as Address, provider: LiquidityProviders.SwapBlast, @@ -329,6 +361,7 @@ export const EXTRACTOR_CONFIG: Record< factoriesV3: [ sushiswapV3Factory(ChainId.BLAST), uniswapV3Factory(ChainId.BLAST), + dackieSwapV3Factory(ChainId.BLAST), { address: '0x48d0F09710794313f33619c95147F34458BF7C3b', provider: LiquidityProviders.MonoswapV3, @@ -398,6 +431,8 @@ export const EXTRACTOR_CONFIG: Record< uniswapV2Factory(ChainId.BSC), sushiswapV2Factory(ChainId.BSC), pancakeswapV2Factory(ChainId.BSC), + elkV2Factory(ChainId.BSC), + apeswapV2Factory(ChainId.BSC), { address: '0x858E3312ed3A876947EA49d572A7C42DE08af7EE' as Address, provider: LiquidityProviders.Biswap, @@ -419,11 +454,34 @@ export const EXTRACTOR_CONFIG: Record< initCodeHash: '0x3125d0a15fa7af49ce234ba1cf5f931bad0504242e0e1ee9fcd7d1d7aa88c651', }, + { + address: '0x01bF7C66c6BD861915CdaaE475042d3c4BaE16A7' as Address, + provider: LiquidityProviders.BakerySwap, + fee: 0.003, + initCodeHash: + '0xe2e87433120e32c4738a7d8f3271f3d872cbe16241d67537139158d90bac61d3', + }, + { + address: '0x1D9F43a6195054313ac1aE423B1f810f593b6ac1' as Address, + provider: LiquidityProviders.SquadSwapV2, + fee: 0.002, + initCodeHash: + '0xd424455c1204e4f46a4a380651928652376a351698d3d97e2da05d3041c15fbe', + }, + { + address: '0xCe8fd65646F2a2a897755A1188C04aCe94D2B8D0' as Address, + provider: LiquidityProviders.BSCSwap, + fee: 0.003, + initCodeHash: + '0xacc1c81cc3e9fb496da555f6bd67c3a095e579b26c1b580070cc6afa8f0a94fa', + }, ], + factoriesV3: [ uniswapV3Factory(ChainId.BSC), sushiswapV3Factory(ChainId.BSC), pancakeswapV3Factory(ChainId.BSC), + wagmiV3Factory(ChainId.BSC), ], tickHelperContractV3: SUSHISWAP_V3_TICK_LENS[ChainId.BSC], tickHelperContractAlgebra: @@ -435,7 +493,7 @@ export const EXTRACTOR_CONFIG: Record< }, [ChainId.BTTC]: { client: createPublicClient(extractorClientConfig(ChainId.BTTC)), - factoriesV2: [sushiswapV2Factory(ChainId.BTTC)], + factoriesV2: [sushiswapV2Factory(ChainId.BTTC), elkV2Factory(ChainId.BTTC)], factoriesV3: [sushiswapV3Factory(ChainId.BTTC)], tickHelperContractV3: SUSHISWAP_V3_TICK_LENS[ChainId.BTTC], tickHelperContractAlgebra: @@ -491,26 +549,44 @@ export const EXTRACTOR_CONFIG: Record< factoriesV2: [ uniswapV2Factory(ChainId.ETHEREUM), sushiswapV2Factory(ChainId.ETHEREUM), - pancakeswapV2Factory(ChainId.BSC), + pancakeswapV2Factory(ChainId.ETHEREUM), + elkV2Factory(ChainId.ETHEREUM), + apeswapV2Factory(ChainId.ETHEREUM), { - address: '0xBAe5dc9B19004883d0377419FeF3c2C8832d7d7B' as Address, - provider: LiquidityProviders.ApeSwap, + address: '0xdD9EFCbDf9f422e2fc159eFe77aDD3730d48056d', + provider: LiquidityProviders.Kwikswap, + initCodeHash: + '0xbc919ae6f6f95dca1e223fc957286afa1da81529418e9f187db8a0b2d2e963bc', fee: 0.003, + }, + { + address: '0x115934131916C8b277DD010Ee02de363c09d037c', + provider: LiquidityProviders.ShibaSwap, initCodeHash: - '0xe2200989b6f9506f3beca7e9c844741b3ad1a88ad978b6b0973e96d3ca4707aa', + '0x65d1a3b1e46c6e4f1be1ad5f99ef14dc488ae0549dc97db9b30afe2241ce1c7a', + fee: 0.003, }, { - address: '0x6511eBA915fC1b94b2364289CCa2b27AE5898d80' as Address, - provider: LiquidityProviders.Elk, + address: '0x9DEB29c9a4c7A88a3C0257393b7f3335338D9A9D', + provider: LiquidityProviders.CroDefiSwap, + initCodeHash: + '0x69d637e77615df9f235f642acebbdad8963ef35c5523142078c9b8f9d0ceba7e', fee: 0.003, + }, + { + address: '0xcBAE5C3f8259181EB7E2309BC4c72fDF02dD56D8', + provider: LiquidityProviders.NineInch, + fee: 0.0029, initCodeHash: - '0x84845e7ccb283dec564acfcd3d9287a491dec6d675705545a2ab8be22ad78f31', + '0xd2cf61d4acad30e9fe5ec59d0f94de554d88701f1bd8fc635546866716718511', }, ], + factoriesV3: [ uniswapV3Factory(ChainId.ETHEREUM), sushiswapV3Factory(ChainId.ETHEREUM), pancakeswapV3Factory(ChainId.ETHEREUM), + wagmiV3Factory(ChainId.ETHEREUM), ], curveConfig: { minPoolLiquidityLimitUSD: 1000, @@ -527,20 +603,8 @@ export const EXTRACTOR_CONFIG: Record< client: createPublicClient(extractorClientConfig(ChainId.FANTOM)), factoriesV2: [ sushiswapV2Factory(ChainId.FANTOM), - { - address: '0xd9820a17053d6314B20642E465a84Bf01a3D64f5' as Address, - provider: LiquidityProviders.Dfyn, - fee: 0.003, - initCodeHash: - '0xd3ab2c392f54feb4b3b2a677f449b133c188ad2f1015eff3e94ea9315282c5f5', - }, - { - address: '0x7Ba73c99e6f01a37f3e33854c8F544BbbadD3420' as Address, - provider: LiquidityProviders.Elk, - fee: 0.003, - initCodeHash: - '0x84845e7ccb283dec564acfcd3d9287a491dec6d675705545a2ab8be22ad78f31', - }, + elkV2Factory(ChainId.FANTOM), + dfynV2Factory(ChainId.FANTOM), { address: '0x152eE697f2E276fA89E96742e9bB9aB1F2E61bE3' as Address, provider: LiquidityProviders.SpookySwap, @@ -558,18 +622,7 @@ export const EXTRACTOR_CONFIG: Record< ], factoriesV3: [ sushiswapV3Factory(ChainId.FANTOM), - { - address: '0xaf20f5f19698f1D19351028cd7103B63D30DE7d7' as Address, - provider: LiquidityProviders.Wagmi, - initCodeHash: - '0x30146866f3a846fe3c636beb2756dbd24cf321bc52c9113c837c21f47470dfeb', - feeSpacingMap: { - 500: 10, - 1500: 30, - 3000: 60, - 10_000: 200, - }, - }, + wagmiV3Factory(ChainId.FANTOM), ], tickHelperContractV3: SUSHISWAP_V3_TICK_LENS[ChainId.FANTOM], tickHelperContractAlgebra: @@ -586,7 +639,7 @@ export const EXTRACTOR_CONFIG: Record< }, [ChainId.FUSE]: { client: createPublicClient(extractorClientConfig(ChainId.FUSE)), - factoriesV2: [sushiswapV2Factory(ChainId.FUSE)], + factoriesV2: [sushiswapV2Factory(ChainId.FUSE), elkV2Factory(ChainId.FUSE)], factoriesV3: [sushiswapV3Factory(ChainId.FUSE)], tickHelperContractV3: SUSHISWAP_V3_TICK_LENS[ChainId.FUSE], tickHelperContractAlgebra: @@ -597,7 +650,10 @@ export const EXTRACTOR_CONFIG: Record< }, [ChainId.GNOSIS]: { client: createPublicClient(extractorClientConfig(ChainId.GNOSIS)), - factoriesV2: [sushiswapV2Factory(ChainId.GNOSIS)], + factoriesV2: [ + sushiswapV2Factory(ChainId.GNOSIS), + elkV2Factory(ChainId.GNOSIS), + ], factoriesV3: [sushiswapV3Factory(ChainId.GNOSIS)], tickHelperContractV3: SUSHISWAP_V3_TICK_LENS[ChainId.GNOSIS], tickHelperContractAlgebra: @@ -613,16 +669,14 @@ export const EXTRACTOR_CONFIG: Record< factoriesV2: [ uniswapV2Factory(ChainId.OPTIMISM), sushiswapV2Factory(ChainId.OPTIMISM), - // { - // address: '0xedfad3a0F42A8920B011bb0332aDe632e552d846' as Address, - // provider: LiquidityProviders.Elk, - // fee: 0.003, - // initCodeHash: '0x84845e7ccb283dec564acfcd3d9287a491dec6d675705545a2ab8be22ad78f31', - // }, + elkV2Factory(ChainId.OPTIMISM), + dackieSwapV2Factory(ChainId.OPTIMISM), ], factoriesV3: [ uniswapV3Factory(ChainId.OPTIMISM), sushiswapV3Factory(ChainId.OPTIMISM), + wagmiV3Factory(ChainId.OPTIMISM), + dackieSwapV3Factory(ChainId.OPTIMISM), ], factoriesSlipstream: [ { @@ -646,6 +700,9 @@ export const EXTRACTOR_CONFIG: Record< factoriesV2: [ uniswapV2Factory(ChainId.POLYGON), sushiswapV2Factory(ChainId.POLYGON), + elkV2Factory(ChainId.POLYGON), + apeswapV2Factory(ChainId.POLYGON), + dfynV2Factory(ChainId.POLYGON), { address: '0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32' as Address, provider: LiquidityProviders.QuickSwap, @@ -653,27 +710,6 @@ export const EXTRACTOR_CONFIG: Record< initCodeHash: '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f', }, - { - address: '0xCf083Be4164828f00cAE704EC15a36D711491284' as Address, - provider: LiquidityProviders.ApeSwap, - fee: 0.003, - initCodeHash: - '0x511f0f358fe530cda0859ec20becf391718fdf5a329be02f4c95361f3d6a42d8', - }, - { - address: '0xE7Fb3e833eFE5F9c441105EB65Ef8b261266423B' as Address, - provider: LiquidityProviders.Dfyn, - fee: 0.003, - initCodeHash: - '0xf187ed688403aa4f7acfada758d8d53698753b998a3071b06f1b777f4330eaf3', - }, - { - address: '0xE3BD06c7ac7E1CeB17BdD2E5BA83E40D1515AF2a' as Address, - provider: LiquidityProviders.Elk, - fee: 0.003, - initCodeHash: - '0x84845e7ccb283dec564acfcd3d9287a491dec6d675705545a2ab8be22ad78f31', - }, { address: '0x668ad0ed2622C62E24f0d5ab6B6Ac1b9D2cD4AC7' as Address, provider: LiquidityProviders.JetSwap, @@ -685,6 +721,7 @@ export const EXTRACTOR_CONFIG: Record< factoriesV3: [ uniswapV3Factory(ChainId.POLYGON), sushiswapV3Factory(ChainId.POLYGON), + wagmiV3Factory(ChainId.POLYGON), ], tickHelperContractV3: SUSHISWAP_V3_TICK_LENS[ChainId.POLYGON], tickHelperContractAlgebra: @@ -755,11 +792,14 @@ export const EXTRACTOR_CONFIG: Record< factoriesV2: [ sushiswapV2Factory(ChainId.LINEA), pancakeswapV2Factory(ChainId.LINEA), + elkV2Factory(ChainId.LINEA), + dackieSwapV2Factory(ChainId.LINEA), ], factoriesV3: [ sushiswapV3Factory(ChainId.LINEA), pancakeswapV3Factory(ChainId.LINEA), uniswapV3Factory(ChainId.LINEA), + dackieSwapV2Factory(ChainId.LINEA), ], tickHelperContractV3: SUSHISWAP_V3_TICK_LENS[ChainId.LINEA], tickHelperContractAlgebra: @@ -791,22 +831,21 @@ export const EXTRACTOR_CONFIG: Record< }, [ChainId.METIS]: { client: createPublicClient(extractorClientConfig(ChainId.METIS)), - factoriesV2: [sushiswapV2Factory(ChainId.METIS)], - factoriesV3: [ - sushiswapV3Factory(ChainId.METIS), + factoriesV2: [ + sushiswapV2Factory(ChainId.METIS), + elkV2Factory(ChainId.METIS), { - address: '0x8112E18a34b63964388a3B2984037d6a2EFE5B8A' as Address, - provider: LiquidityProviders.Wagmi, + address: '0x70f51d68D16e8f9e418441280342BD43AC9Dff9f' as Address, + provider: LiquidityProviders.NetSwap, + fee: 0.003, initCodeHash: - '0x30146866f3a846fe3c636beb2756dbd24cf321bc52c9113c837c21f47470dfeb', - feeSpacingMap: { - 500: 10, - 1500: 30, - 3000: 60, - 10_000: 200, - }, + '0x966d65068a6a30f10fd1fa814258637a34e059081d79daa94f3e2b6cec48e810', }, ], + factoriesV3: [ + sushiswapV3Factory(ChainId.METIS), + wagmiV3Factory(ChainId.METIS), + ], tickHelperContractV3: SUSHISWAP_V3_TICK_LENS[ChainId.METIS], tickHelperContractAlgebra: '0x0000000000000000000000000000000000000000' as Address, @@ -827,7 +866,10 @@ export const EXTRACTOR_CONFIG: Record< }, [ChainId.HARMONY]: { client: createPublicClient(extractorClientConfig(ChainId.HARMONY)), - factoriesV2: [sushiswapV2Factory(ChainId.HARMONY)], + factoriesV2: [ + sushiswapV2Factory(ChainId.HARMONY), + elkV2Factory(ChainId.HARMONY), + ], // No V3 on Harmony? factoriesV3: [], tickHelperContractV3: @@ -842,6 +884,7 @@ export const EXTRACTOR_CONFIG: Record< client: createPublicClient(extractorClientConfig(ChainId.KAVA)), factoriesV2: [ sushiswapV2Factory(ChainId.KAVA), + elkV2Factory(ChainId.KAVA), { address: '0xE8E917BC80A26CDacc9aA42C0F4965d2E1Fa52da', provider: LiquidityProviders.KinetixV2, @@ -852,24 +895,13 @@ export const EXTRACTOR_CONFIG: Record< ], factoriesV3: [ sushiswapV3Factory(ChainId.KAVA), + wagmiV3Factory(ChainId.KAVA), { address: '0x2dBB6254231C5569B6A4313c6C1F5Fe1340b35C2' as Address, provider: LiquidityProviders.KinetixV3, initCodeHash: '0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54', }, - { - address: '0x0e0Ce4D450c705F8a0B6Dd9d5123e3df2787D16B' as Address, - provider: LiquidityProviders.Wagmi, - initCodeHash: - '0x30146866f3a846fe3c636beb2756dbd24cf321bc52c9113c837c21f47470dfeb', - feeSpacingMap: { - 500: 10, - 1500: 30, - 3000: 60, - 10_000: 200, - }, - }, ], tickHelperContractV3: SUSHISWAP_V3_TICK_LENS[ChainId.KAVA], tickHelperContractAlgebra: @@ -906,6 +938,7 @@ export const EXTRACTOR_CONFIG: Record< client: createPublicClient(extractorClientConfig(ChainId.MOONRIVER)), factoriesV2: [ sushiswapV2Factory(ChainId.MOONRIVER), + elkV2Factory(ChainId.MOONRIVER), { address: '0x049581aEB6Fe262727f290165C29BDAB065a1B68' as Address, provider: LiquidityProviders.Solarbeam, @@ -924,7 +957,11 @@ export const EXTRACTOR_CONFIG: Record< }, [ChainId.TELOS]: { client: createPublicClient(extractorClientConfig(ChainId.TELOS)), - factoriesV2: [], + factoriesV2: [ + // sushiswapV2Factory(ChainId.TELOS), + elkV2Factory(ChainId.TELOS), + apeswapV2Factory(ChainId.TELOS), + ], factoriesV3: [], factoriesAlgebra: [ { @@ -955,7 +992,16 @@ export const EXTRACTOR_CONFIG: Record< }, [ChainId.ZETACHAIN]: { client: createPublicClient(extractorClientConfig(ChainId.ZETACHAIN)), - factoriesV2: [sushiswapV2Factory(ChainId.ZETACHAIN)], + factoriesV2: [ + sushiswapV2Factory(ChainId.ZETACHAIN), + { + address: '0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c' as Address, + provider: LiquidityProviders.EddyFinance, + fee: 0.003, + initCodeHash: + '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f', + }, + ], factoriesV3: [sushiswapV3Factory(ChainId.ZETACHAIN)], tickHelperContractV3: SUSHISWAP_V3_TICK_LENS[ChainId.ZETACHAIN], tickHelperContractAlgebra: @@ -974,6 +1020,14 @@ export const EXTRACTOR_CONFIG: Record< initCodeHash: '0xa77ee1cc0f39570ddde947459e293d7ebc2c30ff4e8fc45860afdcb2c2d3dc17', }, + { + address: '0xd590cC180601AEcD6eeADD9B7f2B7611519544f4' as Address, + provider: LiquidityProviders.MMFinance, + fee: 0.0017, + initCodeHash: + '0x7ae6954210575e79ea2402d23bc6a59c4146a6e6296118aa8b99c747afec8acf', + }, + elkV2Factory(ChainId.CRONOS), ], factoriesV3: [ { @@ -1018,6 +1072,7 @@ export const EXTRACTOR_CONFIG: Record< factoriesV3: [ sushiswapV3Factory(ChainId.ROOTSTOCK), uniswapV3Factory(ChainId.ROOTSTOCK), + elkV2Factory(ChainId.ROOTSTOCK), ], tickHelperContractV3: SUSHISWAP_V3_TICK_LENS[ChainId.ROOTSTOCK] as Address, tickHelperContractAlgebra: @@ -1082,6 +1137,7 @@ export const EXTRACTOR_CONFIG: Record< factoriesV3: [ uniswapV3Factory(ChainId.ZKSYNC_ERA), pancakeswapV3Factory(ChainId.ZKSYNC_ERA), + wagmiV3Factory(ChainId.ZKSYNC_ERA), ], tickHelperContractV3: '0xe10FF11b809f8EE07b056B452c3B2caa7FE24f89' as Address, @@ -1100,7 +1156,7 @@ export const EXTRACTOR_CONFIG: Record< // logDepth: 50, // logging: true, // }, -} +} as const satisfies Record export const PORT = process.env['PORT'] || 80 diff --git a/apis/extractor/src/config/pancakev3.template.ts b/apis/extractor/src/config/pancakev3.template.ts new file mode 100644 index 0000000000..f68b1bb9c3 --- /dev/null +++ b/apis/extractor/src/config/pancakev3.template.ts @@ -0,0 +1,24 @@ +import { ChainId, LiquidityProviders } from 'sushi' +import { PANCAKESWAP_V3_FEE_SPACING_MAP } from 'sushi/config' +import { Address, Hex } from 'viem' + +const V3_SUPPORTED_CHAIN_IDS = [ChainId.ETHEREUM] as const +type V3ChainId = (typeof V3_SUPPORTED_CHAIN_IDS)[number] +const V3_FACTORY_ADDRESS: Record = { + [ChainId.ETHEREUM]: '0x', +} as const +const V3_DEPLOYER_ADDRESS: Record = { + [ChainId.ETHEREUM]: '0x', +} as const +const V3_INIT_CODE_HASH: Record = { + [ChainId.ETHEREUM]: '0x', +} as const +export function v3Factory(chainId: V3ChainId) { + return { + address: V3_FACTORY_ADDRESS[chainId], + provider: LiquidityProviders.UniswapV3, + initCodeHash: V3_INIT_CODE_HASH[chainId], + deployer: V3_DEPLOYER_ADDRESS[chainId], + feeSpacingMap: PANCAKESWAP_V3_FEE_SPACING_MAP, + } as const +} diff --git a/apis/extractor/src/config/uniswapv2.template.ts b/apis/extractor/src/config/uniswapv2.template.ts new file mode 100644 index 0000000000..4b92ca80e4 --- /dev/null +++ b/apis/extractor/src/config/uniswapv2.template.ts @@ -0,0 +1,19 @@ +import { ChainId, LiquidityProviders } from 'sushi' +import { Address, Hex } from 'viem' + +const V2_SUPPORTED_CHAIN_IDS = [ChainId.ETHEREUM] as const +type V2ChainId = (typeof V2_SUPPORTED_CHAIN_IDS)[number] +const V2_FACTORY_ADDRESS: Record = { + [ChainId.ETHEREUM]: '0x', +} as const +const V2_INIT_CODE_HASH: Record = { + [ChainId.ETHEREUM]: '0x', +} as const +export function v2Factory(chainId: V2ChainId) { + return { + address: V2_FACTORY_ADDRESS[chainId], + provider: LiquidityProviders.UniswapV2, + initCodeHash: V2_INIT_CODE_HASH[chainId], + fee: 0.003, + } as const +} diff --git a/apis/extractor/src/config/uniswapv3.template.ts b/apis/extractor/src/config/uniswapv3.template.ts new file mode 100644 index 0000000000..5dfa5abf1b --- /dev/null +++ b/apis/extractor/src/config/uniswapv3.template.ts @@ -0,0 +1,24 @@ +import { ChainId, LiquidityProviders } from 'sushi' +import { Address, Hex } from 'viem' + +const V3_SUPPORTED_CHAIN_IDS = [ChainId.ETHEREUM] as const +type V3ChainId = (typeof V3_SUPPORTED_CHAIN_IDS)[number] +const V3_FACTORY_ADDRESS: Record = { + [ChainId.ETHEREUM]: '0x', +} as const +const V3_INIT_CODE_HASH: Record = { + [ChainId.ETHEREUM]: '0x', +} as const +export function v3Factory(chainId: V3ChainId) { + return { + address: V3_FACTORY_ADDRESS[chainId], + provider: LiquidityProviders.UniswapV3, + initCodeHash: V3_INIT_CODE_HASH[chainId], + feeSpacingMap: { + 100: 1, + 500: 10, + 3000: 60, + 10_000: 200, + }, + } as const +} diff --git a/apis/extractor/src/config/wagmi.ts b/apis/extractor/src/config/wagmi.ts new file mode 100644 index 0000000000..83b80efc25 --- /dev/null +++ b/apis/extractor/src/config/wagmi.ts @@ -0,0 +1,76 @@ +import { ChainId, LiquidityProviders } from 'sushi' +import { Address, Hex } from 'viem' + +export const WAGMI_V3_SUPPORTED_CHAIN_IDS = [ + ChainId.FANTOM, + ChainId.ZKSYNC_ERA, + ChainId.KAVA, + ChainId.ETHEREUM, + ChainId.OPTIMISM, + ChainId.BSC, + ChainId.POLYGON, + ChainId.AVALANCHE, + ChainId.ARBITRUM, + ChainId.METIS, + // ChainId.BLAST, + ChainId.BASE, + // ChainId.METIS_SEPOLIA, + // ChainId.ZKLINK, + // ChainId.IOTA, +] as const + +export type WagmiV3ChainId = (typeof WAGMI_V3_SUPPORTED_CHAIN_IDS)[number] + +const WAGMI_V3_FACTORY_ADDRESS: Record = { + [ChainId.FANTOM]: '0xaf20f5f19698f1D19351028cd7103B63D30DE7d7', + [ChainId.ZKSYNC_ERA]: '0x31be61CE896e8770B21e7A1CAFA28402Dd701995', + [ChainId.KAVA]: '0x0e0Ce4D450c705F8a0B6Dd9d5123e3df2787D16B', + [ChainId.ETHEREUM]: '0xB9a14EE1cd3417f3AcC988F61650895151abde24', + [ChainId.OPTIMISM]: '0xC49c177736107fD8351ed6564136B9ADbE5B1eC3', + [ChainId.BSC]: '0xE3Dc1A5a7aB81F1cC1895FA55034725c24a5BD0e', + [ChainId.POLYGON]: '0x8bb1Be7acD806BF6C9766486dC4c21284a472BaC', + [ChainId.AVALANCHE]: '0x08d6E1aE0f91423dDBD16f083ca39ccDd1D79cE8', + [ChainId.ARBITRUM]: '0x7301350CC76D669ea384e77aF38a70C61661CA48', + [ChainId.METIS]: '0x8112E18a34b63964388a3B2984037d6a2EFE5B8A', + // [ChainId.BLAST]: '', + [ChainId.BASE]: '0x576A1301B42942537d38FB147895fE83fB418fD4', + // [ChainId.METIS_SEPOLIA]: '0x92CC36D66e9d739D50673d1f27929a371FB83a67', + // [ChainId.ZKLINK]: '0x6175b648473F1d4c1549aAC3c2d007e7720585e6', + // [ChainId.IOTA]: '0x01Bd510B2eA106917e711f9a05a42fC162bee2Ac' +} as const + +const WAGMI_V3_DEFAULT_INIT_CODE_HASH: Hex = + '0x30146866f3a846fe3c636beb2756dbd24cf321bc52c9113c837c21f47470dfeb' + +export const WAGMI_V3_INIT_CODE_HASH: Record = { + [ChainId.FANTOM]: WAGMI_V3_DEFAULT_INIT_CODE_HASH, + [ChainId.ZKSYNC_ERA]: + '0x0100133fbbcc76118ded62eff4d449702d57ec281d23a1ca9d40cf3b0de80644', + [ChainId.KAVA]: WAGMI_V3_DEFAULT_INIT_CODE_HASH, + [ChainId.ETHEREUM]: WAGMI_V3_DEFAULT_INIT_CODE_HASH, + [ChainId.OPTIMISM]: WAGMI_V3_DEFAULT_INIT_CODE_HASH, + [ChainId.BSC]: WAGMI_V3_DEFAULT_INIT_CODE_HASH, + [ChainId.POLYGON]: WAGMI_V3_DEFAULT_INIT_CODE_HASH, + [ChainId.AVALANCHE]: WAGMI_V3_DEFAULT_INIT_CODE_HASH, + [ChainId.ARBITRUM]: WAGMI_V3_DEFAULT_INIT_CODE_HASH, + [ChainId.METIS]: WAGMI_V3_DEFAULT_INIT_CODE_HASH, + // [ChainId.BLAST]: '', + [ChainId.BASE]: WAGMI_V3_DEFAULT_INIT_CODE_HASH, + // [ChainId.METIS_SEPOLIA]: '', + // [ChainId.ZKLINK]: '', + // [ChainId.IOTA]: '' +} as const + +export function wagmiV3Factory(chainId: WagmiV3ChainId) { + return { + address: WAGMI_V3_FACTORY_ADDRESS[chainId], + provider: LiquidityProviders.Wagmi, + initCodeHash: WAGMI_V3_INIT_CODE_HASH[chainId], + feeSpacingMap: { + 500: 10, + 1500: 30, + 3000: 60, + 10_000: 200, + }, + } as const +} diff --git a/apis/extractor/src/extractor.ts b/apis/extractor/src/extractor.ts index a582c609d5..6cf5fe7d71 100644 --- a/apis/extractor/src/extractor.ts +++ b/apis/extractor/src/extractor.ts @@ -2,7 +2,7 @@ import { Extractor } from '@sushiswap/extractor' import { baseTokens } from 'sushi' // import { Token } from 'sushi/currency' // import { TokenList } from 'sushi/token-list' -import { CHAIN_ID, EXTRACTOR_CONFIG } from './config.js' +import { CHAIN_ID, EXTRACTOR_CONFIG } from './config/index.js' export const cacheReadOnly = process.env['CACHE_READ_ONLY'] === 'true' diff --git a/apis/extractor/src/handlers/pool-codes-between/index.ts b/apis/extractor/src/handlers/pool-codes-between/index.ts index 4ef1f4e7c2..c8772168d3 100644 --- a/apis/extractor/src/handlers/pool-codes-between/index.ts +++ b/apis/extractor/src/handlers/pool-codes-between/index.ts @@ -4,7 +4,7 @@ import { ADDITIONAL_BASES } from 'sushi/config' import { Token } from 'sushi/currency' //import { serializePoolCodesJSON } from 'sushi/serializer' import { Address } from 'viem' -import { CHAIN_ID } from '../../config.js' +import { CHAIN_ID } from '../../config/index.js' import extractor from '../../extractor.js' async function handler(req: Request, res: Response) { diff --git a/apis/extractor/src/handlers/pool-codes-bin/index.ts b/apis/extractor/src/handlers/pool-codes-bin/index.ts index 927dbfa274..8fa1dbf475 100644 --- a/apis/extractor/src/handlers/pool-codes-bin/index.ts +++ b/apis/extractor/src/handlers/pool-codes-bin/index.ts @@ -7,7 +7,7 @@ import { deserializePoolsBinary, serializePoolsBinary, } from 'sushi/router' -import { CHAIN_ID, POOLS_SERIALIZATION_INTERVAL } from '../../config.js' +import { CHAIN_ID, POOLS_SERIALIZATION_INTERVAL } from '../../config/index.js' import extractor from '../../extractor.js' import { querySchema } from './schema.js' diff --git a/apis/extractor/src/handlers/pool-codes-for-token/index.ts b/apis/extractor/src/handlers/pool-codes-for-token/index.ts index 311f35fa17..ebed7af189 100644 --- a/apis/extractor/src/handlers/pool-codes-for-token/index.ts +++ b/apis/extractor/src/handlers/pool-codes-for-token/index.ts @@ -2,7 +2,7 @@ import { Request, Response } from 'express' import { baseAgainstTokens, serializePoolsBinary } from 'sushi' import { isAddressFast } from 'sushi/serializer' import { Address } from 'viem' -import { CHAIN_ID } from '../../config.js' +import { CHAIN_ID } from '../../config/index.js' import extractor from '../../extractor.js' async function handler(req: Request, res: Response) { diff --git a/apis/extractor/src/handlers/pool-codes/index.ts b/apis/extractor/src/handlers/pool-codes/index.ts index fa082dc109..3cd7ea4b03 100644 --- a/apis/extractor/src/handlers/pool-codes/index.ts +++ b/apis/extractor/src/handlers/pool-codes/index.ts @@ -1,6 +1,6 @@ import { Request, Response } from 'express' //import { serializePoolCodesJSON } from 'sushi/serializer' -import { CHAIN_ID, POOLS_SERIALIZATION_INTERVAL } from '../../config.js' +import { CHAIN_ID, POOLS_SERIALIZATION_INTERVAL } from '../../config/index.js' import extractor from '../../extractor.js' let lastPools: object = {} diff --git a/apis/extractor/src/handlers/requested-pairs/index.ts b/apis/extractor/src/handlers/requested-pairs/index.ts index ba52b7d719..ba2cfb7954 100644 --- a/apis/extractor/src/handlers/requested-pairs/index.ts +++ b/apis/extractor/src/handlers/requested-pairs/index.ts @@ -2,7 +2,7 @@ import { Request, Response } from 'express' import { CHAIN_ID, REQUESTED_PAIRS_SERIALIZATION_INTERVAL, -} from '../../config.js' +} from '../../config/index.js' import extractor from '../../extractor.js' let lastPairs: object = {} diff --git a/apis/extractor/src/handlers/token/index.ts b/apis/extractor/src/handlers/token/index.ts index afc6c4fec0..8da25f08da 100644 --- a/apis/extractor/src/handlers/token/index.ts +++ b/apis/extractor/src/handlers/token/index.ts @@ -1,7 +1,7 @@ import { Request, Response } from 'express' import { isAddressFast } from 'sushi/serializer' import { Address } from 'viem' -import { CHAIN_ID } from '../../config.js' +import { CHAIN_ID } from '../../config/index.js' import extractor from '../../extractor.js' async function handler(req: Request, res: Response) { diff --git a/apis/extractor/src/index.ts b/apis/extractor/src/index.ts index 1c4c64072c..c89e78dc5b 100644 --- a/apis/extractor/src/index.ts +++ b/apis/extractor/src/index.ts @@ -3,7 +3,12 @@ import 'dotenv/config' import * as Sentry from '@sentry/node' import { Logger, LogsMessageLevel } from '@sushiswap/extractor' import express, { type Express, type Response } from 'express' -import { CHAIN_ID, PORT, SENTRY_DSN, SENTRY_ENVIRONMENT } from './config.js' +import { + CHAIN_ID, + PORT, + SENTRY_DSN, + SENTRY_ENVIRONMENT, +} from './config/index.js' import { CPUUsageStatistics } from './cpu-usage-statistics.js' import extractor from './extractor.js' import poolCodesBetween from './handlers/pool-codes-between/index.js' diff --git a/apis/router/src/handlers/swap/schema.ts b/apis/router/src/handlers/swap/schema.ts index cfa82a6af0..e1d849ea07 100644 --- a/apis/router/src/handlers/swap/schema.ts +++ b/apis/router/src/handlers/swap/schema.ts @@ -2,6 +2,12 @@ import { RouterLiquiditySource } from 'sushi/router' import { Address } from 'viem' import z from 'zod' +const booleanSchema = z.preprocess((value) => { + if (value === 'true') return true + if (value === 'false') return false + return value +}, z.boolean()) + export const querySchema3_2 = z.object({ tokenIn: z.string(), tokenOut: z.string(), @@ -16,7 +22,7 @@ export const querySchema3_2 = z.object({ to: z .optional(z.string()) .transform((to) => (to ? (to as Address) : undefined)), - preferSushi: z.optional(z.coerce.boolean()), + preferSushi: z.optional(booleanSchema).default(false), maxPriceImpact: z.optional( z.coerce .number() diff --git a/apis/router/src/handlers/swap2/schema.ts b/apis/router/src/handlers/swap2/schema.ts index 64b02b3554..32dee35397 100644 --- a/apis/router/src/handlers/swap2/schema.ts +++ b/apis/router/src/handlers/swap2/schema.ts @@ -7,6 +7,12 @@ import z from 'zod' // maxPriceImpact - max current price impact (during route planning). Default - no control // maxSlippage - max slippage (during route processing). Default - 0.5% +const booleanSchema = z.preprocess((value) => { + if (value === 'true') return true + if (value === 'false') return false + return value +}, z.boolean()) + export const querySchema5 = z.object({ tokenIn: z.custom
( (val) => isAddressFast(val), @@ -32,7 +38,7 @@ export const querySchema5 = z.object({ (val) => ({ message: `Incorrect address for 'to': ${val}` }), ), ), - preferSushi: z.optional(z.coerce.boolean()).default(true), + preferSushi: z.optional(booleanSchema).default(false), maxPriceImpact: z.optional( z.coerce .number() @@ -44,11 +50,11 @@ export const querySchema5 = z.object({ .lt(1, 'maxSlippage should be lesser than 1') .positive() .default(0.005), - includeRouteProcessorParams: z.optional(z.coerce.boolean()).default(false), - includeTransaction: z.optional(z.coerce.boolean()).default(false), - includeTokens: z.optional(z.coerce.boolean()).default(false), - includeRoute: z.optional(z.coerce.boolean()).default(false), - enableFee: z.optional(z.coerce.boolean()), + includeRouteProcessorParams: z.optional(booleanSchema).default(false), + includeTransaction: z.optional(booleanSchema).default(false), + includeTokens: z.optional(booleanSchema).default(false), + includeRoute: z.optional(booleanSchema).default(false), + enableFee: z.optional(booleanSchema), fee: z .optional( z.coerce @@ -64,7 +70,7 @@ export const querySchema5 = z.object({ ), ), feeBy: z.optional(z.nativeEnum(TransferValue)).default(TransferValue.Output), - debug: z.optional(z.coerce.boolean()).default(false), + debug: z.optional(booleanSchema).default(false), }) export type querySchema5 = z.infer diff --git a/apis/router/src/index.ts b/apis/router/src/index.ts index 3a16a4ffca..a636ad76fd 100644 --- a/apis/router/src/index.ts +++ b/apis/router/src/index.ts @@ -20,7 +20,7 @@ import { } from './config.js' import { CPUUsageStatistics } from './cpu-usage-statistics.js' import { priceByAddressHandler, pricesHandler } from './handlers/price/index.js' -import { swapV3_2, swapV4 } from './handlers/swap/index.js' +import { swapV4 } from './handlers/swap/index.js' import { swapV5 } from './handlers/swap2/index.js' import tokenHandler from './handlers/token/index.js' import { updatePrices } from './prices.js' @@ -134,9 +134,6 @@ async function start() { return res.status(client.ready ? 200 : 503).send() }) - app.get(`/swap/v3.2/${CHAIN_ID}`, (req, res) => { - return swapV3_2(client)(req, res) - }) app.get(`/swap/v4/${CHAIN_ID}`, (req, res) => { return swapV4(client)(req, res) }) diff --git a/config/hardhat/index.js b/config/hardhat/index.js index 4a836960bc..92a0457e48 100644 --- a/config/hardhat/index.js +++ b/config/hardhat/index.js @@ -225,6 +225,47 @@ module.exports.defaultConfig = { browserURL: 'https://elated-tan-skat.explorer.mainnet.skalenodes.com', }, }, + { + network: 'mantle', + chainId: 5000, + urls: { + apiURL: 'https://explorer.mantle.xyz/api', + browserURL: 'https://explorer.mantle.xyz', + }, + }, + { + network: 'manta-pacific', + chainId: 169, + urls: { + apiURL: 'https://pacific-explorer.manta.network/api', + browserURL: 'https://pacific-explorer.manta.network', + }, + }, + { + network: 'mode', + chainId: 34443, + urls: { + apiURL: + 'https://api.routescan.io/v2/network/mainnet/evm/34443/etherscan', + browserURL: 'https://modescan.io', + }, + }, + { + network: 'taiko', + chainId: 167000, + urls: { + apiURL: 'https://api.taikoscan.io/api', + browserURL: 'https://taikoscan.io', + }, + }, + { + network: 'zklink-nova', + chainId: 810180, + urls: { + apiURL: 'https://explorer.zklink.io/contract_verification', + browserURL: 'https://explorer.zklink.io', + }, + }, ], apiKey: { mainnet: process.env.ETHERSCAN_API_KEY || '', @@ -286,6 +327,10 @@ module.exports.defaultConfig = { rootstock: 'api-key', 'skale-europa': 'api-key', mantle: 'api-key', + 'manta-pacific': 'api-key', + mode: 'api-key', + taiko: process.env.TAIKO_API_KEY || '', + 'zklink-nova': 'api-key', }, }, tenderly: { @@ -301,7 +346,7 @@ module.exports.defaultConfig = { // externalArtifacts?: string[]; }, zksolc: { - version: '1.3.1', + version: '1.5.2', compilerSource: 'binary', settings: {}, }, @@ -743,6 +788,35 @@ module.exports.defaultConfig = { live: true, saveDeployments: true, }, + 'manta-pacific': { + url: 'https://manta-pacific.drpc.org', + accounts, + chainId: 169, + live: true, + saveDeployments: true, + }, + mode: { + url: 'https://mode.drpc.org', + accounts, + chainId: 34443, + live: true, + saveDeployments: true, + }, + taiko: { + url: 'https://rpc.taiko.tools', + accounts, + chainId: 167000, + live: true, + saveDeployments: true, + }, + 'zklink-nova': { + url: 'https://rpc.zklink.io', + accounts, + chainId: 810180, + live: true, + saveDeployments: true, + zksync: true, + }, }, namedAccounts: { // e.g. ledger://0x18dd4e0Eb8699eA4fee238dE41ecF115e32272F8 diff --git a/config/hardhat/package.json b/config/hardhat/package.json index f697e22838..6c737b7d71 100644 --- a/config/hardhat/package.json +++ b/config/hardhat/package.json @@ -32,7 +32,7 @@ "@tenderly/hardhat-tenderly": "1.3.2", "@typechain/hardhat": "6.1.4", "dotenv": "16.3.1", - "hardhat-deploy": "0.11.22", + "hardhat-deploy": "0.12.4", "hardhat-deploy-ethers": "0.3.0-beta.13" }, "devDependencies": { diff --git a/docs/aggregator-sequence-diagram.jpg b/docs/aggregator-sequence-diagram.jpg new file mode 100644 index 0000000000..879c33f72c Binary files /dev/null and b/docs/aggregator-sequence-diagram.jpg differ diff --git a/k8s/charts/extractor/templates/extractor-deployment.yaml b/k8s/charts/extractor/templates/extractor-deployment.yaml index 81c1ba7a0b..51f19ffbea 100644 --- a/k8s/charts/extractor/templates/extractor-deployment.yaml +++ b/k8s/charts/extractor/templates/extractor-deployment.yaml @@ -13,9 +13,6 @@ spec: labels: app: extractor-{{ .id }} spec: - nodeSelector: - cloud.google.com/compute-class: Performance - cloud.google.com/machine-family: c3 volumes: - name: extractor-pv persistentVolumeClaim: @@ -47,7 +44,7 @@ spec: resources: requests: cpu: {{ dig "extractor" "resources" "requests" "cpu" "50m" . }} - memory: {{ dig "extractor" "resources" "requests" "memory" "512Mi" . }} + memory: {{ dig "extractor" "resources" "requests" "memory" "325Mi" . }} limits: cpu: {{ dig "extractor" "resources" "limits" "cpu" "1000m" . }} memory: {{ dig "extractor" "resources" "limits" "memory" "8Gi" . }} diff --git a/k8s/charts/extractor/templates/extractor-pvc.yaml b/k8s/charts/extractor/templates/extractor-pvc.yaml index 9b0ba46f02..8fd6c1f835 100644 --- a/k8s/charts/extractor/templates/extractor-pvc.yaml +++ b/k8s/charts/extractor/templates/extractor-pvc.yaml @@ -3,7 +3,7 @@ kind: PersistentVolumeClaim metadata: name: extractor-pvc spec: - storageClassName: premium-rwx + storageClassName: standard-rwx accessModes: - ReadWriteMany resources: diff --git a/k8s/charts/router/templates/router-deployment.yaml b/k8s/charts/router/templates/router-deployment.yaml index ef42358bbb..b99acc639c 100644 --- a/k8s/charts/router/templates/router-deployment.yaml +++ b/k8s/charts/router/templates/router-deployment.yaml @@ -13,9 +13,6 @@ spec: labels: app: router-{{ .id }} spec: - nodeSelector: - cloud.google.com/compute-class: Performance - cloud.google.com/machine-family: c3d containers: - name: router image: router diff --git a/k8s/charts/staging-values.yaml b/k8s/charts/staging-values.yaml index d6faa95d22..59f5c6bd1e 100644 --- a/k8s/charts/staging-values.yaml +++ b/k8s/charts/staging-values.yaml @@ -1 +1,132 @@ -pruning: false \ No newline at end of file +pruning: false +chains: + # Testnets + - name: "curtis" + id: "33111" + # Mainnets + - name: "ethereum" + id: "1" + extractor: + resources: + requests: + cpu: 250m + memory: 1Gi + limits: + cpu: 1000m + memory: 4Gi + router: + resources: + requests: + cpu: 500m + memory: 1Gi + - name: "optimism" + id: "10" + - name: "cronos" + id: "25" + - name: "rootstock" + id: "30" + - name: "telos" + id: "40" + - name: "bsc" + id: "56" + extractor: + resources: + requests: + cpu: 250m + memory: 1Gi + limits: + cpu: 1000m + memory: 4Gi + router: + resources: + requests: + cpu: 1000m + memory: 2Gi + - name: "gnosis" + id: "100" + - name: "thundercore" + id: "108" + - name: "fuse" + id: "122" + - name: "polygon" + id: "137" + extractor: + resources: + requests: + cpu: 100m + memory: 512Mi + router: + resources: + requests: + cpu: 1000m + memory: 2Gi + - name: "bttc" + id: "199" + - name: "fantom" + id: "250" + - name: "boba" + id: "288" + - name: "filecoin" + id: "314" + - name: "polygon-zkevm" + id: "1101" + - name: "core" + id: "1116" + - name: "moonbeam" + id: "1284" + - name: "moonriver" + id: "1285" + - name: "metis" + id: "1088" + - name: "kava" + id: "2222" + - name: "zetachain" + id: "7000" + - name: "base" + id: "8453" + extractor: + resources: + requests: + cpu: 1000m + memory: 4Gi + router: + resources: + requests: + cpu: 1000m + memory: 2Gi + - name: "haqq" + id: "11235" + - name: "arbitrum" + id: "42161" + router: + resources: + requests: + cpu: 500m + memory: 1Gi + - name: "arbitrum-nova" + id: "42170" + extractor: + resources: + requests: + cpu: 100m + memory: 512Mi + - name: "celo" + id: "42220" + - name: "avalanche" + id: "43114" + - name: "linea" + id: "59144" + - name: "boba-bnb" + id: "56288" + - name: "blast" + id: "81457" + - name: "scroll" + id: "534352" + - name: "harmony" + id: "1666600000" + - name: "skale-europa" + id: "2046399126" + - name: "mantle" + id: "5000" + - name: "zksync-era" + id: "324" \ No newline at end of file diff --git a/k8s/charts/values.yaml b/k8s/charts/values.yaml index e274fd07e5..21f34745f1 100644 --- a/k8s/charts/values.yaml +++ b/k8s/charts/values.yaml @@ -6,10 +6,10 @@ chains: resources: requests: cpu: 250m - memory: 2Gi + memory: 1Gi limits: cpu: 1000m - memory: 8Gi + memory: 4Gi router: resources: requests: @@ -29,10 +29,10 @@ chains: resources: requests: cpu: 250m - memory: 2Gi + memory: 1Gi limits: cpu: 1000m - memory: 8Gi + memory: 4Gi router: resources: requests: @@ -101,6 +101,11 @@ chains: memory: 1Gi - name: "arbitrum-nova" id: "42170" + extractor: + resources: + requests: + cpu: 100m + memory: 512Mi - name: "celo" id: "42220" - name: "avalanche" diff --git a/packages/sushi/package.json b/packages/sushi/package.json index f033cd8c55..0bf0c53a05 100644 --- a/packages/sushi/package.json +++ b/packages/sushi/package.json @@ -32,6 +32,11 @@ "import": "./dist/_esm/abi/index.js", "default": "./dist/_cjs/abi/index.js" }, + "./address": { + "types": "./dist/_types/address/index.d.ts", + "import": "./dist/_esm/address/index.js", + "default": "./dist/_cjs/address/index.js" + }, "./bigint-serializer": { "types": "./dist/_types/bigint-serializer/index.d.ts", "import": "./dist/_esm/bigint-serializer/index.js", @@ -157,6 +162,9 @@ "abi": [ "./dist/_types/abi/index.d.ts" ], + "address": [ + "./dist/_types/address/index.d.ts" + ], "bigint-serializer": [ "./_types/bigint-serializer/index.d.ts" ], diff --git a/packages/sushi/src/address/index.ts b/packages/sushi/src/address/index.ts new file mode 100644 index 0000000000..96a92bc68b --- /dev/null +++ b/packages/sushi/src/address/index.ts @@ -0,0 +1 @@ +export { getCreate2Address } from './getCreate2Address.js' diff --git a/packages/sushi/src/config/features/extractor.ts b/packages/sushi/src/config/features/extractor.ts index 93bdef9b03..06c55f84bd 100644 --- a/packages/sushi/src/config/features/extractor.ts +++ b/packages/sushi/src/config/features/extractor.ts @@ -36,6 +36,7 @@ export const EXTRACTOR_SUPPORTED_CHAIN_IDS = [ ChainId.ROOTSTOCK, ChainId.MANTLE, ChainId.ZKSYNC_ERA, + ChainId.CURTIS, ] as const export type ExtractorSupportedChainId = diff --git a/packages/sushi/src/config/features/route-processor.ts b/packages/sushi/src/config/features/route-processor.ts index c9c723f08d..58481a64f4 100644 --- a/packages/sushi/src/config/features/route-processor.ts +++ b/packages/sushi/src/config/features/route-processor.ts @@ -380,6 +380,7 @@ export const ROUTE_PROCESSOR_5_SUPPORTED_CHAIN_IDS = [ ChainId.ROOTSTOCK, ChainId.ZKSYNC_ERA, ChainId.MANTLE, + ChainId.CURTIS, ] as const export type RouteProcessor5ChainId = (typeof ROUTE_PROCESSOR_5_SUPPORTED_CHAIN_IDS)[number] @@ -422,6 +423,8 @@ export const ROUTE_PROCESSOR_5_ADDRESS: Record< [ChainId.ROOTSTOCK]: '0xf2614A233c7C3e7f08b1F887Ba133a13f1eb2c55', [ChainId.ZKSYNC_ERA]: '0x9e55e562D40FD01f38cD4057e632352fE0758F16', [ChainId.MANTLE]: '0xf2614A233c7C3e7f08b1F887Ba133a13f1eb2c55', + // TESTNETS + [ChainId.CURTIS]: '0xf2614A233c7C3e7f08b1F887Ba133a13f1eb2c55', } as const export const isRouteProcessor5ChainId = ( chainId: ChainId, diff --git a/packages/sushi/src/config/native-ids.ts b/packages/sushi/src/config/native-ids.ts index a78598fcf6..54cfea6e96 100644 --- a/packages/sushi/src/config/native-ids.ts +++ b/packages/sushi/src/config/native-ids.ts @@ -57,4 +57,5 @@ export const nativeCurrencyIds = { [ChainId.SKALE_EUROPA]: 'sFUEL', [ChainId.ROOTSTOCK]: 'RBTC', [ChainId.MANTLE]: 'MNT', + [ChainId.CURTIS]: 'APE', } as const diff --git a/packages/sushi/src/config/token-maps/bases-to-check-trades-against.ts b/packages/sushi/src/config/token-maps/bases-to-check-trades-against.ts index 68aefc0d34..10434ea0d4 100644 --- a/packages/sushi/src/config/token-maps/bases-to-check-trades-against.ts +++ b/packages/sushi/src/config/token-maps/bases-to-check-trades-against.ts @@ -50,6 +50,13 @@ export const BASES_TO_CHECK_TRADES_AGAINST: { OHM[ChainId.ETHEREUM], LINK[ChainId.ETHEREUM], SUSHI[ChainId.ETHEREUM], + new Token({ + chainId: ChainId.ETHEREUM, + address: '0xA0b73E1Ff0B80914AB6fe0444E65848C4C34450b', + symbol: 'CRO', + name: 'CRO', + decimals: 8, + }), ], [ChainId.GÖRLI]: [WNATIVE[ChainId.GÖRLI]], // [ChainId.RINKEBY]: [WNATIVE[ChainId.RINKEBY], USDC[ChainId.RINKEBY]], diff --git a/packages/sushi/src/config/token-maps/stables.ts b/packages/sushi/src/config/token-maps/stables.ts index 77fe91d7bc..21322a317d 100644 --- a/packages/sushi/src/config/token-maps/stables.ts +++ b/packages/sushi/src/config/token-maps/stables.ts @@ -237,5 +237,5 @@ export const STABLES = { [ChainId.AVALANCHE_TESTNET]: [], [ChainId.SEPOLIA]: [], [ChainId.GÖRLI]: [], - [ChainId.CURTIS]: [], + [ChainId.CURTIS]: [USDT[ChainId.CURTIS], DAI[ChainId.CURTIS]], } as const satisfies Record diff --git a/packages/sushi/src/router/liquidity-providers/LiquidityProvider.ts b/packages/sushi/src/router/liquidity-providers/LiquidityProvider.ts index d123c2742f..ea94dbd31b 100644 --- a/packages/sushi/src/router/liquidity-providers/LiquidityProvider.ts +++ b/packages/sushi/src/router/liquidity-providers/LiquidityProvider.ts @@ -65,6 +65,18 @@ export enum LiquidityProviders { FusionXV2 = 'FusionXV2', FusionXV3 = 'FusionXV3', MethLab = 'MethLab', + DackieSwapV2 = 'DackieSwapV2', + DackieSwapV3 = 'DackieSwapV3', + Kwikswap = 'Kwikswap', + ShibaSwap = 'ShibaSwap', + CroDefiSwap = 'CroDefiSwap', + NineInch = 'NineInch', + BakerySwap = 'BakerySwap', + SquadSwapV2 = 'SquadSwapV2', + BSCSwap = 'BSCSwap', + MMFinance = 'MMFinance', + EddyFinance = 'EddyFinance', + Saru = 'Saru', } export abstract class LiquidityProvider { diff --git a/packages/sushi/src/tines/CurveMultitokenPool.ts b/packages/sushi/src/tines/CurveMultitokenPool.ts index cfed8e6ec9..2b224a7c30 100644 --- a/packages/sushi/src/tines/CurveMultitokenPool.ts +++ b/packages/sushi/src/tines/CurveMultitokenPool.ts @@ -64,7 +64,25 @@ export class CurveMultitokenPool extends RPool { if (direction) { console.assert( amountIn - this.flow0 >= 0, - 'CurveMultitokenPool.calcOutByIn Unexpected input value 0', + `CurveMultitokenPool.calcOutByIn Unexpected input value 0 ${JSON.stringify( + { + pool: this.core.address, + index0: this.index0, + index1: this.index1, + flow0: this.flow0, + flow1: this.flow1, + direction, + amountIn, + out: + -this.flow1 - + this.core.calcOutDiff( + amountIn - this.flow0, + this.index0, + this.index1, + ), + currentFlow: this.core.currentFlow, + }, + )}`, ) const out = -this.flow1 - diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1d8dc52a58..e019acab31 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -926,8 +926,8 @@ importers: specifier: 16.3.1 version: 16.3.1 hardhat-deploy: - specifier: 0.11.22 - version: 0.11.22(bufferutil@4.0.8)(utf-8-validate@5.0.10) + specifier: 0.12.4 + version: 0.12.4(bufferutil@4.0.8)(utf-8-validate@5.0.10) hardhat-deploy-ethers: specifier: 0.3.0-beta.13 version: 0.3.0-beta.13(ethers@5.7.2(bufferutil@4.0.8)(utf-8-validate@5.0.10))(hardhat@2.20.1(bufferutil@4.0.8)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4))(typescript@5.5.4)(utf-8-validate@5.0.10)) @@ -1498,10 +1498,6 @@ importers: specifier: 3.23.8 version: 3.23.8 - packages/sushi/dist/_cjs: {} - - packages/sushi/dist/_esm: {} - packages/telemetry: devDependencies: '@tsconfig/esm': @@ -1809,8 +1805,8 @@ importers: specifier: 2.10.0 version: 2.10.0(hardhat@2.20.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.4.2)(@types/node@20.14.14)(typescript@5.5.4))(typescript@5.5.4)(utf-8-validate@5.0.10)) hardhat-deploy: - specifier: 0.11.22 - version: 0.11.22(bufferutil@4.0.8)(utf-8-validate@5.0.10) + specifier: 0.12.4 + version: 0.12.4(bufferutil@4.0.8)(utf-8-validate@5.0.10) hardhat-gas-reporter: specifier: 1.0.9 version: 1.0.9(hardhat@2.20.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.4.2)(@types/node@20.14.14)(typescript@5.5.4))(typescript@5.5.4)(utf-8-validate@5.0.10)) @@ -1947,8 +1943,8 @@ importers: specifier: 2.6.1 version: 2.6.1(hardhat@2.20.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.4.2)(@types/node@20.14.14)(typescript@5.5.4))(typescript@5.5.4)(utf-8-validate@5.0.10)) hardhat-deploy: - specifier: 0.11.22 - version: 0.11.22(bufferutil@4.0.8)(utf-8-validate@5.0.10) + specifier: 0.12.4 + version: 0.12.4(bufferutil@4.0.8)(utf-8-validate@5.0.10) hardhat-gas-reporter: specifier: 1.0.9 version: 1.0.9(hardhat@2.20.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.4.2)(@types/node@20.14.14)(typescript@5.5.4))(typescript@5.5.4)(utf-8-validate@5.0.10)) @@ -14630,6 +14626,9 @@ packages: hardhat-deploy@0.11.22: resolution: {integrity: sha512-ZhHVNB7Jo2l8Is+KIAk9F8Q3d7pptyiX+nsNbIFXztCz81kaP+6kxNODRBqRCy7SOD3It4+iKCL6tWsPAA/jVQ==} + hardhat-deploy@0.12.4: + resolution: {integrity: sha512-bYO8DIyeGxZWlhnMoCBon9HNZb6ji0jQn7ngP1t5UmGhC8rQYhji7B73qETMOFhzt5ECZPr+U52duj3nubsqdQ==} + hardhat-gas-reporter@1.0.9: resolution: {integrity: sha512-INN26G3EW43adGKBNzYWOlI3+rlLnasXTwW79YNnUhXPDa+yHESgt639dJEs37gCjhkbNKcRRJnomXEuMFBXJg==} peerDependencies: @@ -23108,6 +23107,12 @@ packages: resolution: {integrity: sha512-zshzwQW7gG7hjpBlgeQP9RuyPGNxvJdzR8SUM3QhxCnLjWN2E7j3dOvpeDcQoETfHx0urRS7EtmVToql7YpU4A==} engines: {node: '>= 10'} + zksync-ethers@5.9.2: + resolution: {integrity: sha512-Y2Mx6ovvxO6UdC2dePLguVzvNToOY8iLWeq5ne+jgGSJxAi/f4He/NF6FNsf6x1aWX0o8dy4Df8RcOQXAkj5qw==} + engines: {node: '>=16.0.0'} + peerDependencies: + ethers: ~5.7.0 + zksync-web3@0.13.4: resolution: {integrity: sha512-AjCKhn9TRqsk2T9VLKxlod22rnVWOWGOjq+QXppFe2yTxZx9dVaai325OJ0aa7a3m5wx+9yhPqBu23jG2xPo5Q==} deprecated: This package has been deprecated in favor of zksync-ethers@5.0.0 @@ -35918,7 +35923,7 @@ snapshots: axios@0.21.4(debug@4.3.4): dependencies: - follow-redirects: 1.15.2(debug@4.3.4) + follow-redirects: 1.15.6(debug@4.3.4) transitivePeerDependencies: - debug @@ -41662,6 +41667,37 @@ snapshots: - supports-color - utf-8-validate + hardhat-deploy@0.12.4(bufferutil@4.0.8)(utf-8-validate@5.0.10): + dependencies: + '@ethersproject/abi': 5.7.0 + '@ethersproject/abstract-signer': 5.7.0 + '@ethersproject/address': 5.7.0 + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/constants': 5.7.0 + '@ethersproject/contracts': 5.7.0 + '@ethersproject/providers': 5.7.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@ethersproject/solidity': 5.7.0 + '@ethersproject/transactions': 5.7.0 + '@ethersproject/wallet': 5.7.0 + '@types/qs': 6.9.15 + axios: 0.21.4(debug@4.3.4) + chalk: 4.1.2 + chokidar: 3.5.3 + debug: 4.3.4(supports-color@8.1.1) + enquirer: 2.4.1 + ethers: 5.7.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + form-data: 4.0.0 + fs-extra: 10.1.0 + match-all: 1.2.6 + murmur-128: 0.2.1 + qs: 6.12.1 + zksync-ethers: 5.9.2(ethers@5.7.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + hardhat-gas-reporter@1.0.9(hardhat@2.20.1(bufferutil@4.0.8)(ts-node@10.9.1(@swc/core@1.4.2)(@types/node@20.14.14)(typescript@5.5.4))(typescript@5.5.4)(utf-8-validate@5.0.10)): dependencies: array-uniq: 1.0.3 @@ -52941,6 +52977,10 @@ snapshots: compress-commons: 4.1.1 readable-stream: 3.6.2 + zksync-ethers@5.9.2(ethers@5.7.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)): + dependencies: + ethers: 5.7.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + zksync-web3@0.13.4(ethers@5.7.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)): dependencies: ethers: 5.7.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 9268ff0fe1..4d804026ac 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -4,5 +4,4 @@ packages: - 'config/*' - 'packages/**' - 'protocols/*' - - 'jobs/*' - 'sandboxes/*' \ No newline at end of file diff --git a/protocols/route-processor/deployments/manta-pacific/.chainId b/protocols/route-processor/deployments/manta-pacific/.chainId new file mode 100644 index 0000000000..9a1371776c --- /dev/null +++ b/protocols/route-processor/deployments/manta-pacific/.chainId @@ -0,0 +1 @@ +169 \ No newline at end of file diff --git a/protocols/route-processor/deployments/manta-pacific/RouteProcessor5.json b/protocols/route-processor/deployments/manta-pacific/RouteProcessor5.json new file mode 100644 index 0000000000..cf780e2510 --- /dev/null +++ b/protocols/route-processor/deployments/manta-pacific/RouteProcessor5.json @@ -0,0 +1,704 @@ +{ + "address": "0xf2614A233c7C3e7f08b1F887Ba133a13f1eb2c55", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_bentoBox", + "type": "address" + }, + { + "internalType": "address[]", + "name": "priviledgedUserList", + "type": "address[]" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "name": "MinimalOutputBalanceViolation", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "name": "Route", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "int256", + "name": "amount0Delta", + "type": "int256" + }, + { + "internalType": "int256", + "name": "amount1Delta", + "type": "int256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "algebraSwapCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "bentoBox", + "outputs": [ + { + "internalType": "contract IBentoBoxMinimal", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int256", + "name": "amount0Delta", + "type": "int256" + }, + { + "internalType": "int256", + "name": "amount1Delta", + "type": "int256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "pancakeV3SwapCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "pause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "priviledgedUsers", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes", + "name": "route", + "type": "bytes" + } + ], + "name": "processRoute", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "transferValueTo", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountValueTransfer", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes", + "name": "route", + "type": "bytes" + } + ], + "name": "processRouteWithTransferValueInput", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "transferValueTo", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountValueTransfer", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes", + "name": "route", + "type": "bytes" + } + ], + "name": "processRouteWithTransferValueOutput", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "resume", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "internalType": "bool", + "name": "priviledge", + "type": "bool" + } + ], + "name": "setPriviledge", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transferValueTo", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountValueTransfer", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes", + "name": "route", + "type": "bytes" + } + ], + "name": "transferValueAndprocessRoute", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int256", + "name": "amount0Delta", + "type": "int256" + }, + { + "internalType": "int256", + "name": "amount1Delta", + "type": "int256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "uniswapV3SwapCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } + ], + "transactionHash": "0x02c6a17a485224d22f868d1e5d7630f06d5567125fc70a57c64416aa053036d4", + "receipt": { + "to": null, + "from": "0x282607716D9B4fDD0B094d5864fac56313f5e665", + "contractAddress": "0xf2614A233c7C3e7f08b1F887Ba133a13f1eb2c55", + "transactionIndex": 17, + "gasUsed": "3488833", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000020000000000000000000000000000000000000001000000000000000000000000000000000000000000040000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000020000000000000040000000000000000000000000000000000000000000000000000", + "blockHash": "0xed27ef25ac1cc880b24e7d980d15c2ccb437f4ad57f2411ae640ab9d59795754", + "transactionHash": "0x02c6a17a485224d22f868d1e5d7630f06d5567125fc70a57c64416aa053036d4", + "logs": [ + { + "transactionIndex": 17, + "blockNumber": 3177042, + "transactionHash": "0x02c6a17a485224d22f868d1e5d7630f06d5567125fc70a57c64416aa053036d4", + "address": "0xf2614A233c7C3e7f08b1F887Ba133a13f1eb2c55", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000282607716d9b4fdd0b094d5864fac56313f5e665" + ], + "data": "0x", + "logIndex": 1, + "blockHash": "0xed27ef25ac1cc880b24e7d980d15c2ccb437f4ad57f2411ae640ab9d59795754" + } + ], + "blockNumber": 3177042, + "cumulativeGasUsed": "4432064", + "status": 1, + "byzantium": true + }, + "args": [ + "0x0000000000000000000000000000000000000000", + [] + ], + "numDeployments": 1, + "solcInputHash": "9252879aaeb02fabe759ce8768addec4", + "metadata": "{\"compiler\":{\"version\":\"0.8.10+commit.fc410830\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_bentoBox\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"priviledgedUserList\",\"type\":\"address[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"MinimalOutputBalanceViolation\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"Route\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"algebraSwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bentoBox\",\"outputs\":[{\"internalType\":\"contract IBentoBoxMinimal\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"pancakeV3SwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"priviledgedUsers\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"route\",\"type\":\"bytes\"}],\"name\":\"processRoute\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"transferValueTo\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountValueTransfer\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"route\",\"type\":\"bytes\"}],\"name\":\"processRouteWithTransferValueInput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"transferValueTo\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountValueTransfer\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"route\",\"type\":\"bytes\"}],\"name\":\"processRouteWithTransferValueOutput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"resume\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"priviledge\",\"type\":\"bool\"}],\"name\":\"setPriviledge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"transferValueTo\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountValueTransfer\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"route\",\"type\":\"bytes\"}],\"name\":\"transferValueAndprocessRoute\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"uniswapV3SwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"author\":\"Ilya Lyalin\",\"kind\":\"dev\",\"methods\":{\"algebraSwapCallback(int256,int256,bytes)\":{\"details\":\"In the implementation you must pay the pool tokens owed for the swap. The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory. amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\",\"params\":{\"amount0Delta\":\"The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.\",\"amount1Delta\":\"The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.\",\"data\":\"Any data passed through by the caller via the IAlgebraPoolActions#swap call\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pancakeV3SwapCallback(int256,int256,bytes)\":{\"details\":\"In the implementation you must pay the pool tokens owed for the swap.\",\"params\":{\"amount0Delta\":\"The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.\",\"amount1Delta\":\"The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.\",\"data\":\"Any data passed through by the caller via the PancakeV3Pool#swap call\"}},\"processRoute(address,uint256,address,uint256,address,bytes)\":{\"params\":{\"amountIn\":\"Amount of the input token\",\"amountOutMin\":\"Minimum amount of the output token\",\"route\":\"Route to process\",\"to\":\"Where to transfer output tokens\",\"tokenIn\":\"Address of the input token\",\"tokenOut\":\"Address of the output token\"},\"returns\":{\"amountOut\":\"Actual amount of the output token\"}},\"processRouteWithTransferValueInput(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"params\":{\"amountIn\":\"Amount of the input token\",\"amountOutMin\":\"Minimum amount of the output token\",\"amountValueTransfer\":\"How much value to transfer\",\"tokenIn\":\"Address of the input token\",\"tokenOut\":\"Address of the output token\",\"transferValueTo\":\"Address where the value should be transferred\"},\"returns\":{\"amountOut\":\"Actual amount of the output token\"}},\"processRouteWithTransferValueOutput(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"params\":{\"amountIn\":\"Amount of the input token\",\"amountOutMin\":\"Minimum amount of the output token\",\"amountValueTransfer\":\"How much value to transfer\",\"tokenIn\":\"Address of the input token\",\"tokenOut\":\"Address of the output token\",\"transferValueTo\":\"Address where the value should be transferred\"},\"returns\":{\"amountOut\":\"Actual amount of the output token\"}},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"},\"transferValueAndprocessRoute(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"params\":{\"amountIn\":\"Amount of the input token\",\"amountOutMin\":\"Minimum amount of the output token\",\"amountValueTransfer\":\"How much value to transfer\",\"tokenIn\":\"Address of the input token\",\"tokenOut\":\"Address of the output token\",\"transferValueTo\":\"Address where the value should be transferred\"},\"returns\":{\"amountOut\":\"Actual amount of the output token\"}},\"uniswapV3SwapCallback(int256,int256,bytes)\":{\"details\":\"In the implementation you must pay the pool tokens owed for the swap. The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory. amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\",\"params\":{\"amount0Delta\":\"The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.\",\"amount1Delta\":\"The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.\",\"data\":\"Any data passed through by the caller via the IUniswapV3PoolActions#swap call\"}}},\"title\":\"A route processor for the Sushi Aggregator\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"algebraSwapCallback(int256,int256,bytes)\":{\"notice\":\"Called to `msg.sender` after executing a swap via IAlgebraPool#swap.\"},\"pancakeV3SwapCallback(int256,int256,bytes)\":{\"notice\":\"Called to `msg.sender` after executing a swap via PancakeV3Pool#swap.\"},\"processRoute(address,uint256,address,uint256,address,bytes)\":{\"notice\":\"Processes the route generated off-chain. Has a lock\"},\"processRouteWithTransferValueInput(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"notice\":\"Transfers some value of input tokens to and then processes the route\"},\"processRouteWithTransferValueOutput(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"notice\":\"processes the route and sends amount of output token to \"},\"transferValueAndprocessRoute(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"notice\":\"Transfers some value to and then processes the route\"},\"uniswapV3SwapCallback(int256,int256,bytes)\":{\"notice\":\"Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/RouteProcessor5.sol\":\"RouteProcessor5\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":10000000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x9750c6b834f7b43000631af5cc30001c5f547b3ceb3635488f140f60e897ea6b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\\n *\\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\\n * need to send a transaction, and thus is not required to hold Ether at all.\\n */\\ninterface IERC20Permit {\\n /**\\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\\n * given ``owner``'s signed approval.\\n *\\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\\n * ordering also apply here.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `deadline` must be a timestamp in the future.\\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\\n * over the EIP712-formatted function arguments.\\n * - the signature must use ``owner``'s current nonce (see {nonces}).\\n *\\n * For more information on the signature format, see the\\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\\n * section].\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n /**\\n * @dev Returns the current nonce for `owner`. This value must be\\n * included whenever a signature is generated for {permit}.\\n *\\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\\n * prevents a signature from being used multiple times.\\n */\\n function nonces(address owner) external view returns (uint256);\\n\\n /**\\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\\n */\\n // solhint-disable-next-line func-name-mixedcase\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0xf41ca991f30855bf80ffd11e9347856a517b977f0a6c2d52e6421a99b7840329\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\nimport \\\"../extensions/draft-IERC20Permit.sol\\\";\\nimport \\\"../../../utils/Address.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20 {\\n using Address for address;\\n\\n function safeTransfer(\\n IERC20 token,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(\\n IERC20 token,\\n address from,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n function safeIncreaseAllowance(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n uint256 newAllowance = token.allowance(address(this), spender) + value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n function safeDecreaseAllowance(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n uint256 newAllowance = oldAllowance - value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n }\\n\\n function safePermit(\\n IERC20Permit token,\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n uint256 nonceBefore = token.nonces(owner);\\n token.permit(owner, spender, value, deadline, v, r, s);\\n uint256 nonceAfter = token.nonces(owner);\\n require(nonceAfter == nonceBefore + 1, \\\"SafeERC20: permit did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n if (returndata.length > 0) {\\n // Return data is optional\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9b72f93be69ca894d8492c244259615c4a742afc8d63720dbc8bb81087d9b238\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"contracts/InputStream.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity 0.8.10;\\n\\n/** @notice Simple read stream */\\nlibrary InputStream {\\n\\n /** @notice Creates stream from data\\n * @param data data\\n */\\n function createStream(bytes memory data) internal pure returns (uint256 stream) {\\n assembly {\\n stream := mload(0x40)\\n mstore(0x40, add(stream, 64))\\n mstore(stream, data)\\n let length := mload(data)\\n mstore(add(stream, 32), add(data, length))\\n }\\n }\\n\\n /** @notice Checks if stream is not empty\\n * @param stream stream\\n */\\n function isNotEmpty(uint256 stream) internal pure returns (bool) {\\n uint256 pos;\\n uint256 finish;\\n assembly {\\n pos := mload(stream)\\n finish := mload(add(stream, 32))\\n }\\n return pos < finish;\\n }\\n\\n /** @notice Reads uint8 from the stream\\n * @param stream stream\\n */\\n function readUint8(uint256 stream) internal pure returns (uint8 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 1)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads uint16 from the stream\\n * @param stream stream\\n */\\n function readUint16(uint256 stream) internal pure returns (uint16 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 2)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads uint24 from the stream\\n * @param stream stream\\n */\\n function readUint24(uint256 stream) internal pure returns (uint24 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 3)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads uint32 from the stream\\n * @param stream stream\\n */\\n function readUint32(uint256 stream) internal pure returns (uint32 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 4)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads uint256 from the stream\\n * @param stream stream\\n */\\n function readUint(uint256 stream) internal pure returns (uint256 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 32)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads bytes32 from the stream\\n * @param stream stream\\n */\\n function readBytes32(uint256 stream) internal pure returns (bytes32 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 32)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads address from the stream\\n * @param stream stream\\n */\\n function readAddress(uint256 stream) internal pure returns (address res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 20)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads bytes from the stream\\n * @param stream stream\\n */\\n function readBytes(uint256 stream) internal pure returns (bytes memory res) {\\n assembly {\\n let pos := mload(stream)\\n res := add(pos, 32)\\n let length := mload(res)\\n mstore(stream, add(res, length))\\n }\\n }\\n}\\n\",\"keccak256\":\"0x24e24bd0e49cbddacbf3b26bcd4bdffac63d11f3259bc05bc93c0835e8ff5300\",\"license\":\"UNLICENSED\"},\"contracts/RouteProcessor5.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity 0.8.10;\\n\\nimport '../interfaces/IUniswapV2Pair.sol';\\nimport '../interfaces/IUniswapV3Pool.sol';\\nimport '../interfaces/ITridentCLPool.sol';\\nimport '../interfaces/IBentoBoxMinimal.sol';\\nimport '../interfaces/IPool.sol';\\nimport '../interfaces/IWETH.sol';\\nimport '../interfaces/ICurve.sol';\\nimport './InputStream.sol';\\nimport './Utils.sol';\\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\n\\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\\naddress constant INTERNAL_INPUT_SOURCE = 0x0000000000000000000000000000000000000000;\\n\\nuint8 constant LOCKED = 2;\\nuint8 constant NOT_LOCKED = 1;\\nuint8 constant PAUSED = 2;\\nuint8 constant NOT_PAUSED = 1;\\n\\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\\nuint160 constant MIN_SQRT_RATIO = 4295128739;\\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\\n\\n/// @title A route processor for the Sushi Aggregator\\n/// @author Ilya Lyalin\\ncontract RouteProcessor5 is Ownable {\\n using SafeERC20 for IERC20;\\n using Utils for IERC20;\\n using Utils for address;\\n using SafeERC20 for IERC20Permit;\\n using InputStream for uint256;\\n\\n event Route(\\n address indexed from, \\n address to, \\n address indexed tokenIn, \\n address indexed tokenOut, \\n uint256 amountIn, \\n uint256 amountOutMin,\\n uint256 amountOut\\n );\\n\\n error MinimalOutputBalanceViolation(uint256 amountOut);\\n\\n IBentoBoxMinimal public immutable bentoBox;\\n mapping (address => bool) public priviledgedUsers;\\n address private lastCalledPool;\\n\\n uint8 private unlocked = NOT_LOCKED;\\n uint8 private paused = NOT_PAUSED;\\n modifier lock() {\\n require(unlocked == NOT_LOCKED, 'RouteProcessor is locked');\\n require(paused == NOT_PAUSED, 'RouteProcessor is paused');\\n unlocked = LOCKED;\\n _;\\n unlocked = NOT_LOCKED;\\n }\\n\\n modifier onlyOwnerOrPriviledgedUser() {\\n require(msg.sender == owner() || priviledgedUsers[msg.sender], \\\"RP: caller is not the owner or a privileged user\\\");\\n _;\\n }\\n\\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\\n bentoBox = IBentoBoxMinimal(_bentoBox);\\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\\n\\n for (uint256 i = 0; i < priviledgedUserList.length; i++) {\\n priviledgedUsers[priviledgedUserList[i]] = true;\\n }\\n }\\n\\n function setPriviledge(address user, bool priviledge) external onlyOwner {\\n priviledgedUsers[user] = priviledge;\\n }\\n\\n function pause() external onlyOwnerOrPriviledgedUser {\\n paused = PAUSED;\\n }\\n\\n function resume() external onlyOwnerOrPriviledgedUser {\\n paused = NOT_PAUSED;\\n }\\n\\n /// @notice For native unwrapping\\n receive() external payable {}\\n\\n /// @notice Processes the route generated off-chain. Has a lock\\n /// @param tokenIn Address of the input token\\n /// @param amountIn Amount of the input token\\n /// @param tokenOut Address of the output token\\n /// @param amountOutMin Minimum amount of the output token\\n /// @param to Where to transfer output tokens\\n /// @param route Route to process\\n /// @return amountOut Actual amount of the output token\\n function processRoute(\\n address tokenIn,\\n uint256 amountIn,\\n address tokenOut,\\n uint256 amountOutMin,\\n address to,\\n bytes memory route\\n ) external payable lock returns (uint256 amountOut) {\\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\\n }\\n\\n /// @notice Transfers some value to and then processes the route\\n /// @param transferValueTo Address where the value should be transferred\\n /// @param amountValueTransfer How much value to transfer\\n /// @param tokenIn Address of the input token\\n /// @param amountIn Amount of the input token\\n /// @param tokenOut Address of the output token\\n /// @param amountOutMin Minimum amount of the output token\\n /// @return amountOut Actual amount of the output token\\n function transferValueAndprocessRoute(\\n address transferValueTo,\\n uint256 amountValueTransfer,\\n address tokenIn,\\n uint256 amountIn,\\n address tokenOut,\\n uint256 amountOutMin,\\n address to,\\n bytes memory route\\n ) external payable lock returns (uint256 amountOut) {\\n transferValueTo.transferNative(amountValueTransfer);\\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\\n }\\n\\n /// @notice Transfers some value of input tokens to and then processes the route\\n /// @param transferValueTo Address where the value should be transferred\\n /// @param amountValueTransfer How much value to transfer\\n /// @param tokenIn Address of the input token\\n /// @param amountIn Amount of the input token\\n /// @param tokenOut Address of the output token\\n /// @param amountOutMin Minimum amount of the output token\\n /// @return amountOut Actual amount of the output token\\n function processRouteWithTransferValueInput(\\n address payable transferValueTo,\\n uint256 amountValueTransfer,\\n address tokenIn,\\n uint256 amountIn,\\n address tokenOut,\\n uint256 amountOutMin,\\n address to,\\n bytes memory route\\n ) external payable lock returns (uint256 amountOut) {\\n tokenIn.transferAnyFromSender(transferValueTo, amountValueTransfer);\\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\\n }\\n \\n /// @notice processes the route and sends amount of output token to \\n /// @param transferValueTo Address where the value should be transferred\\n /// @param amountValueTransfer How much value to transfer\\n /// @param tokenIn Address of the input token\\n /// @param amountIn Amount of the input token\\n /// @param tokenOut Address of the output token\\n /// @param amountOutMin Minimum amount of the output token\\n /// @return amountOut Actual amount of the output token\\n function processRouteWithTransferValueOutput(\\n address payable transferValueTo,\\n uint256 amountValueTransfer,\\n address tokenIn,\\n uint256 amountIn,\\n address tokenOut,\\n uint256 amountOutMin,\\n address to,\\n bytes memory route\\n ) external payable lock returns (uint256 amountOut) {\\n amountOut = processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, address(this), route);\\n tokenOut.transferAny(transferValueTo, amountValueTransfer);\\n tokenOut.transferAny(to, amountOut - amountValueTransfer);\\n }\\n\\n /// @notice Processes the route generated off-chain\\n /// @param tokenIn Address of the input token\\n /// @param amountIn Amount of the input token\\n /// @param tokenOut Address of the output token\\n /// @param amountOutMin Minimum amount of the output token\\n /// @return amountOut Actual amount of the output token\\n function processRouteInternal(\\n address tokenIn,\\n uint256 amountIn,\\n address tokenOut,\\n uint256 amountOutMin,\\n address to,\\n bytes memory route\\n ) private returns (uint256 amountOut) {\\n uint256 balanceInInitial = tokenIn.anyBalanceOf(msg.sender);\\n uint256 balanceOutInitial = tokenOut.anyBalanceOf(to);\\n\\n uint256 realAmountIn = amountIn;\\n {\\n uint256 step = 0;\\n uint256 stream = InputStream.createStream(route);\\n while (stream.isNotEmpty()) {\\n uint8 commandCode = stream.readUint8();\\n if (commandCode == 1) {\\n uint256 usedAmount = processMyERC20(stream); \\n if (step == 0) realAmountIn = usedAmount;\\n } \\n else if (commandCode == 2) processUserERC20(stream, amountIn);\\n else if (commandCode == 3) {\\n uint256 usedAmount = processNative(stream); \\n if (step == 0) realAmountIn = usedAmount;\\n } \\n else if (commandCode == 4) processOnePool(stream);\\n else if (commandCode == 5) processInsideBento(stream);\\n else if (commandCode == 6) applyPermit(tokenIn, stream);\\n else revert('RouteProcessor: Unknown command code');\\n ++step;\\n }\\n }\\n\\n uint256 balanceInFinal = tokenIn.anyBalanceOf(msg.sender);\\n if (tokenIn != Utils.NATIVE_ADDRESS)\\n require(balanceInFinal + amountIn + 10 >= balanceInInitial, 'RouteProcessor: Minimal input balance violation');\\n \\n uint256 balanceOutFinal = tokenOut.anyBalanceOf(to);\\n if (balanceOutFinal < balanceOutInitial + amountOutMin)\\n revert MinimalOutputBalanceViolation(balanceOutFinal - balanceOutInitial);\\n\\n amountOut = balanceOutFinal - balanceOutInitial;\\n\\n emit Route(msg.sender, to, tokenIn, tokenOut, realAmountIn, amountOutMin, amountOut);\\n }\\n\\n /// @notice Applies ERC-2612 permit\\n /// @param tokenIn permitted token\\n /// @param stream Streamed program\\n function applyPermit(address tokenIn, uint256 stream) private {\\n uint256 value = stream.readUint();\\n uint256 deadline = stream.readUint();\\n uint8 v = stream.readUint8();\\n bytes32 r = stream.readBytes32();\\n bytes32 s = stream.readBytes32();\\n if (IERC20(tokenIn).allowance(msg.sender, address(this)) < value) {\\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\\n }\\n }\\n\\n /// @notice Processes native coin: call swap for all pools that swap from native coin\\n /// @param stream Streamed program\\n function processNative(uint256 stream) private returns (uint256 amountTotal) {\\n amountTotal = address(this).balance;\\n distributeAndSwap(stream, address(this), Utils.NATIVE_ADDRESS, amountTotal);\\n }\\n\\n /// @notice Processes ERC20 token from this contract balance:\\n /// @notice Call swap for all pools that swap from this token\\n /// @param stream Streamed program\\n function processMyERC20(uint256 stream) private returns (uint256 amountTotal) {\\n address token = stream.readAddress();\\n amountTotal = IERC20(token).balanceOf(address(this));\\n unchecked {\\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\\n }\\n distributeAndSwap(stream, address(this), token, amountTotal);\\n }\\n \\n /// @notice Processes ERC20 token from msg.sender balance:\\n /// @notice Call swap for all pools that swap from this token\\n /// @param stream Streamed program\\n /// @param amountTotal Amount of tokens to take from msg.sender\\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\\n address token = stream.readAddress();\\n distributeAndSwap(stream, msg.sender, token, amountTotal);\\n }\\n\\n /// @notice Processes ERC20 token for cases when the token has only one output pool\\n /// @notice In this case liquidity is already at pool balance. This is an optimization\\n /// @notice Call swap for all pools that swap from this token\\n /// @param stream Streamed program\\n function processOnePool(uint256 stream) private {\\n address token = stream.readAddress();\\n swap(stream, INTERNAL_INPUT_SOURCE, token, 0);\\n }\\n\\n /// @notice Processes Bento tokens \\n /// @notice Call swap for all pools that swap from this token\\n /// @param stream Streamed program\\n function processInsideBento(uint256 stream) private {\\n address token = stream.readAddress();\\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\\n unchecked {\\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\\n }\\n distributeAndSwap(stream, address(this), token, amountTotal);\\n }\\n\\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\\n /// @param stream Streamed program\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountTotal Total amount of tokenIn for swaps \\n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\\n uint8 num = stream.readUint8();\\n unchecked {\\n for (uint256 i = 0; i < num; ++i) {\\n uint16 share = stream.readUint16();\\n uint256 amount = (amountTotal * share) / type(uint16).max /*65535*/;\\n amountTotal -= amount;\\n swap(stream, from, tokenIn, amount);\\n }\\n }\\n }\\n\\n /// @notice Makes swap\\n /// @param stream Streamed program\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n uint8 poolType = stream.readUint8();\\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\\n else if (poolType == 5) swapCurve(stream, from, tokenIn, amountIn);\\n else revert('RouteProcessor: Unknown pool type');\\n }\\n\\n /// @notice Wraps/unwraps native token\\n /// @param stream [direction & fake, recipient, wrapToken?]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n uint8 directionAndFake = stream.readUint8();\\n address to = stream.readAddress();\\n\\n if (directionAndFake & 1 == 1) { // wrap native\\n address wrapToken = stream.readAddress();\\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\\n } else { // unwrap native\\n if (directionAndFake & 2 == 0) {\\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\\n IWETH(tokenIn).withdraw(amountIn);\\n }\\n to.transferNative(amountIn);\\n }\\n }\\n\\n /// @notice Bridge/unbridge tokens to/from Bento\\n /// @param stream [direction, recipient]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n uint8 direction = stream.readUint8();\\n address to = stream.readAddress();\\n\\n if (direction > 0) { // outside to Bento\\n // deposit to arbitrary recipient is possible only from address(bentoBox)\\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(bentoBox), amountIn);\\n else {\\n // tokens already are at address(bentoBox)\\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\\n bentoBox.strategyData(tokenIn).balance -\\n bentoBox.totals(tokenIn).elastic;\\n }\\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\\n } else { // Bento to outside\\n if (from != INTERNAL_INPUT_SOURCE) {\\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\\n }\\n }\\n\\n /// @notice UniswapV2 pool swap\\n /// @param stream [pool, direction, recipient, fee]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n address pool = stream.readAddress();\\n uint8 direction = stream.readUint8();\\n address to = stream.readAddress();\\n uint24 fee = stream.readUint24(); // pool fee in 1/1_000_000\\n\\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, pool, amountIn);\\n\\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\\n amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\\n\\n uint256 amountInWithFee = amountIn * (1_000_000 - fee);\\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1_000_000 + amountInWithFee);\\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\\n }\\n\\n /// @notice Trident pool swap\\n /// @param stream [pool, swapData]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n address pool = stream.readAddress();\\n bytes memory swapData = stream.readBytes();\\n\\n if (from != INTERNAL_INPUT_SOURCE) {\\n bentoBox.transfer(tokenIn, from, pool, amountIn);\\n }\\n \\n IPool(pool).swap(swapData);\\n }\\n\\n /// @notice UniswapV3 pool swap\\n /// @param stream [pool, direction, recipient]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n address pool = stream.readAddress();\\n bool zeroForOne = stream.readUint8() > 0;\\n address recipient = stream.readAddress();\\n\\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\\n\\n lastCalledPool = pool;\\n IUniswapV3Pool(pool).swap(\\n recipient,\\n zeroForOne,\\n int256(amountIn),\\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\\n abi.encode(tokenIn)\\n );\\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\\n }\\n\\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\\n function uniswapV3SwapCallback(\\n int256 amount0Delta,\\n int256 amount1Delta,\\n bytes calldata data\\n ) public {\\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\\n \\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\\n (address tokenIn) = abi.decode(data, (address));\\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\\n }\\n\\n /// @notice Called to `msg.sender` after executing a swap via IAlgebraPool#swap.\\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\\n /// The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory.\\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\\n /// @param data Any data passed through by the caller via the IAlgebraPoolActions#swap call\\n function algebraSwapCallback(\\n int256 amount0Delta,\\n int256 amount1Delta,\\n bytes calldata data\\n ) external {\\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\\n }\\n\\n /// @notice Called to `msg.sender` after executing a swap via PancakeV3Pool#swap.\\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\\n /// @param data Any data passed through by the caller via the PancakeV3Pool#swap call\\n function pancakeV3SwapCallback(\\n int256 amount0Delta,\\n int256 amount1Delta,\\n bytes calldata data\\n ) external {\\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\\n }\\n\\n /// @notice Curve pool swap. Legacy pools that don't return amountOut and have native coins are not supported\\n /// @param stream [pool, poolType, fromIndex, toIndex, recipient, output token]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function swapCurve(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n address pool = stream.readAddress();\\n uint8 poolType = stream.readUint8();\\n int128 fromIndex = int8(stream.readUint8());\\n int128 toIndex = int8(stream.readUint8());\\n address to = stream.readAddress();\\n address tokenOut = stream.readAddress();\\n\\n uint256 amountOut;\\n if (tokenIn == Utils.NATIVE_ADDRESS) {\\n amountOut = ICurve(pool).exchange{value: amountIn}(fromIndex, toIndex, amountIn, 0);\\n } else {\\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\\n IERC20(tokenIn).approveSafe(pool, amountIn);\\n if (poolType == 0) amountOut = ICurve(pool).exchange(fromIndex, toIndex, amountIn, 0);\\n else {\\n uint256 balanceBefore = tokenOut.anyBalanceOf(address(this));\\n ICurveLegacy(pool).exchange(fromIndex, toIndex, amountIn, 0);\\n uint256 balanceAfter = tokenOut.anyBalanceOf(address(this));\\n amountOut = balanceAfter - balanceBefore;\\n }\\n }\\n\\n if (to != address(this)) tokenOut.transferAny(to, amountOut);\\n }\\n}\\n\",\"keccak256\":\"0xcd53a7f473f1847d44c42777a194203cbff02b8c761cb2935402401f57c918a2\",\"license\":\"UNLICENSED\"},\"contracts/Utils.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity 0.8.10;\\n\\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\\n\\nlibrary Utils {\\n using SafeERC20 for IERC20;\\n\\n address constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\\n\\n /**\\n * @dev returns user's balance of token (or native)\\n */\\n function anyBalanceOf(address token, address user) internal view returns (uint256) {\\n if (token == NATIVE_ADDRESS) return address(user).balance;\\n else return IERC20(token).balanceOf(user);\\n }\\n\\n /**\\n * @dev transfers native with correct revert bubble up\\n */\\n function transferNative(address to, uint256 amount) internal {\\n (bool success, bytes memory returnBytes) = to.call{value: amount}('');\\n if (!success) {\\n assembly {\\n revert(add(32, returnBytes), mload(returnBytes))\\n }\\n }\\n }\\n\\n /**\\n * @dev transfers ERC20 or native\\n */\\n function transferAny(address token, address to, uint256 amount) internal {\\n if (token == NATIVE_ADDRESS) transferNative(to, amount);\\n else IERC20(token).safeTransfer(to, amount);\\n }\\n\\n /**\\n * @dev transfers from ERC20 or transfers native\\n */\\n function transferAnyFromSender(address token, address to, uint256 amount) internal {\\n if (token == NATIVE_ADDRESS) transferNative(to, amount); // native liquidity is already on this contract\\n else IERC20(token).safeTransferFrom(msg.sender, to, amount);\\n }\\n\\n /**\\n * @dev ERC20 approve that correct works with token.approve which returns bool or nothing (USDT for example)\\n * @param token The token targeted by the call.\\n * @param spender token spender\\n * @param amount token amount\\n */\\n function approveStable(IERC20 token, address spender, uint256 amount) internal returns (bool) {\\n (bool success, bytes memory data) = address(token).call(\\n abi.encodeWithSelector(token.approve.selector, spender, amount)\\n );\\n return success && (data.length == 0 || abi.decode(data, (bool)));\\n }\\n\\n /**\\n * @dev ERC20 approve that correct works with token.approve which reverts if amount and \\n * current allowance are not zero simultaniously (USDT for example). \\n * In second case it tries to set allowance to 0, and then back to amount.\\n * @param token The token targeted by the call.\\n * @param spender token spender\\n * @param amount token amount\\n */\\n function approveSafe(IERC20 token, address spender, uint256 amount) internal returns (bool) {\\n return approveStable(token, spender, amount) \\n || (approveStable(token, spender, 0) && approveStable(token, spender, amount));\\n }\\n}\\n\",\"keccak256\":\"0x8c8439edc00b403abd3f34be75a06b1fe71152644ae9f19488af596bbc534ffe\",\"license\":\"UNLICENSED\"},\"interfaces/IBentoBoxMinimal.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity >=0.8.0;\\n\\nstruct Rebase {\\n uint128 elastic;\\n uint128 base;\\n}\\n\\nstruct StrategyData {\\n uint64 strategyStartDate;\\n uint64 targetPercentage;\\n uint128 balance; // the balance of the strategy that BentoBox thinks is in there\\n}\\n\\n/// @notice A rebasing library\\nlibrary RebaseLibrary {\\n /// @notice Calculates the base value in relationship to `elastic` and `total`.\\n function toBase(Rebase memory total, uint256 elastic) internal pure returns (uint256 base) {\\n if (total.elastic == 0) {\\n base = elastic;\\n } else {\\n base = (elastic * total.base) / total.elastic;\\n }\\n }\\n\\n /// @notice Calculates the elastic value in relationship to `base` and `total`.\\n function toElastic(Rebase memory total, uint256 base) internal pure returns (uint256 elastic) {\\n if (total.base == 0) {\\n elastic = base;\\n } else {\\n elastic = (base * total.elastic) / total.base;\\n }\\n }\\n}\\n\\n/// @notice Minimal BentoBox vault interface.\\n/// @dev `token` is aliased as `address` from `IERC20` for simplicity.\\ninterface IBentoBoxMinimal {\\n /// @notice Balance per ERC-20 token per account in shares.\\n function balanceOf(address, address) external view returns (uint256);\\n\\n /// @dev Helper function to represent an `amount` of `token` in shares.\\n /// @param token The ERC-20 token.\\n /// @param amount The `token` amount.\\n /// @param roundUp If the result `share` should be rounded up.\\n /// @return share The token amount represented in shares.\\n function toShare(\\n address token,\\n uint256 amount,\\n bool roundUp\\n ) external view returns (uint256 share);\\n\\n /// @dev Helper function to represent shares back into the `token` amount.\\n /// @param token The ERC-20 token.\\n /// @param share The amount of shares.\\n /// @param roundUp If the result should be rounded up.\\n /// @return amount The share amount back into native representation.\\n function toAmount(\\n address token,\\n uint256 share,\\n bool roundUp\\n ) external view returns (uint256 amount);\\n\\n /// @notice Registers this contract so that users can approve it for BentoBox.\\n function registerProtocol() external;\\n\\n /// @notice Deposit an amount of `token` represented in either `amount` or `share`.\\n /// @param token The ERC-20 token to deposit.\\n /// @param from which account to pull the tokens.\\n /// @param to which account to push the tokens.\\n /// @param amount Token amount in native representation to deposit.\\n /// @param share Token amount represented in shares to deposit. Takes precedence over `amount`.\\n /// @return amountOut The amount deposited.\\n /// @return shareOut The deposited amount represented in shares.\\n function deposit(\\n address token,\\n address from,\\n address to,\\n uint256 amount,\\n uint256 share\\n ) external payable returns (uint256 amountOut, uint256 shareOut);\\n\\n /// @notice Withdraws an amount of `token` from a user account.\\n /// @param token_ The ERC-20 token to withdraw.\\n /// @param from which user to pull the tokens.\\n /// @param to which user to push the tokens.\\n /// @param amount of tokens. Either one of `amount` or `share` needs to be supplied.\\n /// @param share Like above, but `share` takes precedence over `amount`.\\n function withdraw(\\n address token_,\\n address from,\\n address to,\\n uint256 amount,\\n uint256 share\\n ) external returns (uint256 amountOut, uint256 shareOut);\\n\\n /// @notice Transfer shares from a user account to another one.\\n /// @param token The ERC-20 token to transfer.\\n /// @param from which user to pull the tokens.\\n /// @param to which user to push the tokens.\\n /// @param share The amount of `token` in shares.\\n function transfer(\\n address token,\\n address from,\\n address to,\\n uint256 share\\n ) external;\\n\\n /// @dev Reads the Rebase `totals`from storage for a given token\\n function totals(address token) external view returns (Rebase memory total);\\n\\n function strategyData(address token) external view returns (StrategyData memory total);\\n\\n /// @dev Approves users' BentoBox assets to a \\\"master\\\" contract.\\n function setMasterContractApproval(\\n address user,\\n address masterContract,\\n bool approved,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n function harvest(\\n address token,\\n bool balance,\\n uint256 maxChangeAmount\\n ) external;\\n}\\n\",\"keccak256\":\"0x0c12eba7a5b9d22d37ab8883fe22d6a312a90682809dbd11c43f8e6ceaff73bf\",\"license\":\"UNLICENSED\"},\"interfaces/ICurve.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity >=0.8.0;\\n\\ninterface ICurve {\\n function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) payable external returns (uint256);\\n}\\n\\ninterface ICurveLegacy {\\n function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) payable external;\\n}\\n\\n\",\"keccak256\":\"0x3d4940b3583e06dde20f12e92d2f6ac573b3f64bdaa1e8f480656a3763852518\",\"license\":\"UNLICENSED\"},\"interfaces/IPool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-or-later\\n\\npragma solidity >=0.5.0;\\npragma experimental ABIEncoderV2;\\n\\n/// @notice Trident pool interface.\\ninterface IPool {\\n /// @notice Executes a swap from one token to another.\\n /// @dev The input tokens must've already been sent to the pool.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return finalAmountOut The amount of output tokens that were sent to the user.\\n function swap(bytes calldata data) external returns (uint256 finalAmountOut);\\n\\n /// @notice Executes a swap from one token to another with a callback.\\n /// @dev This function allows borrowing the output tokens and sending the input tokens in the callback.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return finalAmountOut The amount of output tokens that were sent to the user.\\n function flashSwap(bytes calldata data) external returns (uint256 finalAmountOut);\\n\\n /// @notice Mints liquidity tokens.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return liquidity The amount of liquidity tokens that were minted for the user.\\n function mint(bytes calldata data) external returns (uint256 liquidity);\\n\\n /// @notice Burns liquidity tokens.\\n /// @dev The input LP tokens must've already been sent to the pool.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return withdrawnAmounts The amount of various output tokens that were sent to the user.\\n function burn(bytes calldata data) external returns (TokenAmount[] memory withdrawnAmounts);\\n\\n /// @notice Burns liquidity tokens for a single output token.\\n /// @dev The input LP tokens must've already been sent to the pool.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return amountOut The amount of output tokens that were sent to the user.\\n function burnSingle(bytes calldata data) external returns (uint256 amountOut);\\n\\n /// @return A unique identifier for the pool type.\\n function poolIdentifier() external pure returns (bytes32);\\n\\n /// @return An array of tokens supported by the pool.\\n function getAssets() external view returns (address[] memory);\\n\\n /// @notice Simulates a trade and returns the expected output.\\n /// @dev The pool does not need to include a trade simulator directly in itself - it can use a library.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return finalAmountOut The amount of output tokens that will be sent to the user if the trade is executed.\\n function getAmountOut(bytes calldata data) external view returns (uint256 finalAmountOut);\\n\\n /// @notice Simulates a trade and returns the expected output.\\n /// @dev The pool does not need to include a trade simulator directly in itself - it can use a library.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return finalAmountIn The amount of input tokens that are required from the user if the trade is executed.\\n function getAmountIn(bytes calldata data) external view returns (uint256 finalAmountIn);\\n\\n /// @dev This event must be emitted on all swaps.\\n event Swap(address indexed recipient, address indexed tokenIn, address indexed tokenOut, uint256 amountIn, uint256 amountOut);\\n\\n /// @dev This struct frames output tokens for burns.\\n struct TokenAmount {\\n address token;\\n uint256 amount;\\n }\\n}\\n\",\"keccak256\":\"0xa6f92ccb525b018c0c209819640e8d746f1134b4c4d9acd4f22d3e170323f1fa\",\"license\":\"GPL-3.0-or-later\"},\"interfaces/ITridentCLPool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-or-later\\n\\npragma solidity 0.8.10;\\n\\ninterface ITridentCLPool {\\n function token0() external returns (address);\\n function token1() external returns (address);\\n\\n function swap(\\n address recipient,\\n bool zeroForOne,\\n int256 amountSpecified,\\n uint160 sqrtPriceLimitX96,\\n bool unwrapBento,\\n bytes calldata data\\n ) external returns (int256 amount0, int256 amount1);\\n}\\n\",\"keccak256\":\"0x572376b80c86a94692b0e27e6e63790b763295e32ba1f956c1d331fc1296de8d\",\"license\":\"GPL-3.0-or-later\"},\"interfaces/IUniswapV2Pair.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\n\\npragma solidity >=0.5.0;\\n\\ninterface IUniswapV2Pair {\\n event Approval(address indexed owner, address indexed spender, uint value);\\n event Transfer(address indexed from, address indexed to, uint value);\\n\\n function name() external pure returns (string memory);\\n function symbol() external pure returns (string memory);\\n function decimals() external pure returns (uint8);\\n function totalSupply() external view returns (uint);\\n function balanceOf(address owner) external view returns (uint);\\n function allowance(address owner, address spender) external view returns (uint);\\n\\n function approve(address spender, uint value) external returns (bool);\\n function transfer(address to, uint value) external returns (bool);\\n function transferFrom(address from, address to, uint value) external returns (bool);\\n\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n function PERMIT_TYPEHASH() external pure returns (bytes32);\\n function nonces(address owner) external view returns (uint);\\n\\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\\n\\n event Mint(address indexed sender, uint amount0, uint amount1);\\n event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);\\n event Swap(\\n address indexed sender,\\n uint amount0In,\\n uint amount1In,\\n uint amount0Out,\\n uint amount1Out,\\n address indexed to\\n );\\n event Sync(uint112 reserve0, uint112 reserve1);\\n\\n function MINIMUM_LIQUIDITY() external pure returns (uint);\\n function factory() external view returns (address);\\n function token0() external view returns (address);\\n function token1() external view returns (address);\\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\\n function price0CumulativeLast() external view returns (uint);\\n function price1CumulativeLast() external view returns (uint);\\n function kLast() external view returns (uint);\\n\\n function mint(address to) external returns (uint liquidity);\\n function burn(address to) external returns (uint amount0, uint amount1);\\n function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;\\n function skim(address to) external;\\n function sync() external;\\n\\n function initialize(address, address) external;\\n}\",\"keccak256\":\"0x08f9a63b34855eec941be8d36a04424f1a1725a2c030373fcef3afeb480ca385\",\"license\":\"GPL-3.0\"},\"interfaces/IUniswapV3Pool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-or-later\\n\\npragma solidity 0.8.10;\\n\\ninterface IUniswapV3Pool {\\n function token0() external returns (address);\\n function token1() external returns (address);\\n\\n function swap(\\n address recipient,\\n bool zeroForOne,\\n int256 amountSpecified,\\n uint160 sqrtPriceLimitX96,\\n bytes calldata data\\n ) external returns (int256 amount0, int256 amount1);\\n}\\n\",\"keccak256\":\"0x2a4d7c6120e613f0e95d4dc8c650efb9b59e3c25c64e3e5c0a379281500f0a79\",\"license\":\"GPL-3.0-or-later\"},\"interfaces/IWETH.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-or-later\\n\\npragma solidity 0.8.10;\\n\\ninterface IWETH {\\n function deposit() external payable;\\n\\n function transfer(address to, uint256 value) external returns (bool);\\n\\n function withdraw(uint256) external;\\n}\\n\",\"keccak256\":\"0xae8529ae159f784b90fdcd0629bd03bf7b68accc81edccac53357ad08406a378\",\"license\":\"GPL-3.0-or-later\"}},\"version\":1}", + "bytecode": "0x60a06040526002805461ffff60a01b191661010160a01b1790553480156200002657600080fd5b50604051620040a3380380620040a383398101604081905262000049916200016e565b6200005433620000eb565b6001600160a01b038216608052600280546001600160a01b031916600117905560005b8151811015620000e25760018060008484815181106200009b576200009b62000257565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580620000d9816200026d565b91505062000077565b50505062000297565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200015357600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156200018257600080fd5b6200018d836200013b565b602084810151919350906001600160401b0380821115620001ad57600080fd5b818601915086601f830112620001c257600080fd5b815181811115620001d757620001d762000158565b8060051b604051601f19603f83011681018181108582111715620001ff57620001ff62000158565b6040529182528482019250838101850191898311156200021e57600080fd5b938501935b82851015620002475762000237856200013b565b8452938501939285019262000223565b8096505050505050509250929050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156200029057634e487b7160e01b600052601160045260246000fd5b5060010190565b608051613da3620003006000396000818161018d01528181611798015281816127380152818161279d01528181612807015281816128cc0152818161297901528181612a5d01528181612b6401528181612c1001528181612cdf0152612df10152613da36000f3fe6080604052600436106100ec5760003560e01c8063715018a61161008a5780639a1f3406116100595780639a1f34061461023c578063cd0fb7a71461025c578063f2fde38b1461029c578063fa461e33146102bc57600080fd5b8063715018a6146101d45780638456cb59146101e95780638da5cb5b146101fe57806393b3774c1461022957600080fd5b80632c8958f6116100c65780632c8958f61461010f57806347f8bd41146101555780636678ec1f146101685780636b2ace871461017b57600080fd5b8063046f7da2146100f857806323a69e751461010f5780632646478b1461012f57600080fd5b366100f357005b600080fd5b34801561010457600080fd5b5061010d6102dc565b005b34801561011b57600080fd5b5061010d61012a3660046135d4565b6103e4565b61014261013d366004613750565b6103f6565b6040519081526020015b60405180910390f35b6101426101633660046137d7565b6105a0565b6101426101763660046137d7565b61076e565b34801561018757600080fd5b506101af7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161014c565b3480156101e057600080fd5b5061010d61091c565b3480156101f557600080fd5b5061010d610930565b34801561020a57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166101af565b6101426102373660046137d7565b610a33565b34801561024857600080fd5b5061010d61025736600461388a565b610ba4565b34801561026857600080fd5b5061028c6102773660046138c3565b60016020526000908152604090205460ff1681565b604051901515815260200161014c565b3480156102a857600080fd5b5061010d6102b73660046138c3565b610c02565b3480156102c857600080fd5b5061010d6102d73660046135d4565b610cb9565b60005473ffffffffffffffffffffffffffffffffffffffff1633148061031157503360009081526001602052604090205460ff165b6103a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f52503a2063616c6c6572206973206e6f7420746865206f776e6572206f72206160448201527f2070726976696c6567656420757365720000000000000000000000000000000060648201526084015b60405180910390fd5b600280547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167501000000000000000000000000000000000000000000179055565b6103f084848484610cb9565b50505050565b60025460009074010000000000000000000000000000000000000000900460ff16600114610480576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610508576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674020000000000000000000000000000000000000000179055610555878787878787610e67565b9050600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790559695505050505050565b60025460009074010000000000000000000000000000000000000000900460ff1660011461062a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff166001146106b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905561071273ffffffffffffffffffffffffffffffffffffffff88168a8a61121d565b610720878787878787610e67565b90505b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905598975050505050505050565b60025460009074010000000000000000000000000000000000000000900460ff166001146107f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610880576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740200000000000000000000000000000000000000001790556108cd878787873087610e67565b90506108f073ffffffffffffffffffffffffffffffffffffffff86168a8a611280565b610723836108fe8a84613916565b73ffffffffffffffffffffffffffffffffffffffff88169190611280565b6109246112dd565b61092e600061135e565b565b60005473ffffffffffffffffffffffffffffffffffffffff1633148061096557503360009081526001602052604090205460ff165b6109f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f52503a2063616c6c6572206973206e6f7420746865206f776e6572206f72206160448201527f2070726976696c656765642075736572000000000000000000000000000000006064820152608401610399565b600280547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167502000000000000000000000000000000000000000000179055565b60025460009074010000000000000000000000000000000000000000900460ff16600114610abd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610b45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905561071273ffffffffffffffffffffffffffffffffffffffff8a16896113d3565b610bac6112dd565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b610c0a6112dd565b73ffffffffffffffffffffffffffffffffffffffff8116610cad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610399565b610cb68161135e565b50565b60025473ffffffffffffffffffffffffffffffffffffffff163314610d60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603e60248201527f526f75746550726f636573736f722e756e697377617056335377617043616c6c60448201527f6261636b3a2063616c6c2066726f6d20756e6b6e6f776e20736f7572636500006064820152608401610399565b6000808513610d6f5783610d71565b845b905060008113610e03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603960248201527f526f75746550726f636573736f722e756e697377617056335377617043616c6c60448201527f6261636b3a206e6f7420706f73697469766520616d6f756e74000000000000006064820152608401610399565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001660011790556000610e3c838501856138c3565b9050610e5f73ffffffffffffffffffffffffffffffffffffffff82163384611445565b505050505050565b600080610e8a73ffffffffffffffffffffffffffffffffffffffff891633611519565b90506000610eae73ffffffffffffffffffffffffffffffffffffffff881686611519565b905087600080610ed287604080518082019091528181528151909101602082015290565b90505b805160208201511115611028576000610ef48280516001018051915290565b90508060ff1660011415610f1e576000610f0d83611604565b905083610f18578094505b50611017565b8060ff1660021415610f3957610f34828d6116c9565b611017565b8060ff1660031415610f50576000610f0d836116e9565b8060ff1660041415610f6557610f348261170f565b8060ff1660051415610f7a57610f3482611735565b8060ff1660061415610f9057610f348d8361183a565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f526f75746550726f636573736f723a20556e6b6e6f776e20636f6d6d616e642060448201527f636f6465000000000000000000000000000000000000000000000000000000006064820152608401610399565b6110208361392d565b925050610ed5565b506000905061104d73ffffffffffffffffffffffffffffffffffffffff8c1633611519565b905073ffffffffffffffffffffffffffffffffffffffff8b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611124578361108b8b83613966565b61109690600a613966565b1015611124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f526f75746550726f636573736f723a204d696e696d616c20696e70757420626160448201527f6c616e63652076696f6c6174696f6e00000000000000000000000000000000006064820152608401610399565b600061114673ffffffffffffffffffffffffffffffffffffffff8b1689611519565b90506111528985613966565b811015611198576111638482613916565b6040517f963b34a500000000000000000000000000000000000000000000000000000000815260040161039991815260200190565b6111a28482613916565b6040805173ffffffffffffffffffffffffffffffffffffffff8b81168252602082018790529181018c905260608101839052919750808c1691908e169033907f2db5ddd0b42bdbca0d69ea16f234a870a485854ae0d91f16643d6f317d8b89949060800160405180910390a450505050509695505050505050565b73ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561125e5761125982826113d3565b505050565b61125973ffffffffffffffffffffffffffffffffffffffff841633848461196a565b73ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156112bc5761125982826113d3565b61125973ffffffffffffffffffffffffffffffffffffffff84168383611445565b60005473ffffffffffffffffffffffffffffffffffffffff16331461092e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610399565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808373ffffffffffffffffffffffffffffffffffffffff168360405160006040518083038185875af1925050503d806000811461142e576040519150601f19603f3d011682016040523d82523d6000602084013e611433565b606091505b5091509150816103f057805181602001fd5b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526112599084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526119c8565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561156b575073ffffffffffffffffffffffffffffffffffffffff8116316115fe565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301528416906370a0823190602401602060405180830381865afa1580156115d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fb919061397e565b90505b92915050565b6000806116178380516014018051915290565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290915073ffffffffffffffffffffffffffffffffffffffff8216906370a0823190602401602060405180830381865afa158015611684573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a8919061397e565b915081156116b7576001820391505b6116c383308385611ad4565b50919050565b60006116db8380516014018051915290565b905061125983338385611ad4565b4761170a823073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee84611ad4565b919050565b60006117218280516014018051915290565b9050611731826000836000611b2f565b5050565b60006117478280516014018051915290565b6040517ff7888aec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80831660048301523060248301529192506000917f0000000000000000000000000000000000000000000000000000000000000000169063f7888aec90604401602060405180830381865afa1580156117df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611803919061397e565b9050801561182e577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015b61125983308484611ad4565b600061184c8280516020018051915290565b905060006118608380516020018051915290565b905060006118748480516001018051915290565b905060006118888580516020018051915290565b9050600061189c8680516020018051915290565b6040517fdd62ed3e000000000000000000000000000000000000000000000000000000008152336004820152306024820152909150859073ffffffffffffffffffffffffffffffffffffffff89169063dd62ed3e90604401602060405180830381865afa158015611911573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611935919061397e565b10156119615761196173ffffffffffffffffffffffffffffffffffffffff881633308888888888611c63565b50505050505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526103f09085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611497565b6000611a2a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611ee39092919063ffffffff16565b8051909150156112595780806020019051810190611a489190613997565b611259576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610399565b6000611ae68580516001018051915290565b905060005b8160ff16811015610e5f576000611b088780516002018051915290565b61ffff8082168602049485900394909150611b2588888884611b2f565b5050600101611aeb565b6000611b418580516001018051915290565b905060ff8116611b5c57611b5785858585611efa565b611c5c565b8060ff1660011415611b7457611b57858585856122af565b8060ff1660021415611b8c57611b57858585856124ef565b8060ff1660031415611ba457611b57858585856126cd565b8060ff1660041415611bbc57611b5785858585612d55565b8060ff1660051415611bd457611b5785858585612ee3565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f526f75746550726f636573736f723a20556e6b6e6f776e20706f6f6c2074797060448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610399565b5050505050565b6040517f7ecebe0000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8881166004830152600091908a1690637ecebe0090602401602060405180830381865afa158015611cd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cf7919061397e565b6040517fd505accf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a811660048301528981166024830152604482018990526064820188905260ff8716608483015260a4820186905260c48201859052919250908a169063d505accf9060e401600060405180830381600087803b158015611d9157600080fd5b505af1158015611da5573d6000803e3d6000fd5b50506040517f7ecebe0000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b81166004830152600093508c169150637ecebe0090602401602060405180830381865afa158015611e18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3c919061397e565b9050611e49826001613966565b8114611ed7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f5361666545524332303a207065726d697420646964206e6f742073756363656560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610399565b50505050505050505050565b6060611ef2848460008561329a565b949350505050565b6000611f0c8580516014018051915290565b90506000611f208680516001018051915290565b90506000611f348780516014018051915290565b90506000611f488880516003018051915290565b905073ffffffffffffffffffffffffffffffffffffffff8716301415611f8e57611f8973ffffffffffffffffffffffffffffffffffffffff87168587611445565b611fce565b73ffffffffffffffffffffffffffffffffffffffff8716331415611fce57611fce73ffffffffffffffffffffffffffffffffffffffff871633868861196a565b6000808573ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa15801561201c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204091906139d2565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691506000821180156120755750600081115b6120db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f57726f6e6720706f6f6c207265736572766573000000000000000000000000006044820152606401610399565b6000808660ff166001146120f05782846120f3565b83835b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b8116600483015292945090925083918c16906370a0823190602401602060405180830381865afa158015612167573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218b919061397e565b6121959190613916565b985060006121a686620f4240613a22565b6121b59062ffffff168b613a46565b90506000816121c785620f4240613a46565b6121d19190613966565b6121db8484613a46565b6121e59190613a83565b90506000808a60ff166001146121fd57826000612201565b6000835b604080516000815260208101918290527f022c0d9f00000000000000000000000000000000000000000000000000000000909152919350915073ffffffffffffffffffffffffffffffffffffffff8d169063022c0d9f9061226b90859085908f9060248101613b34565b600060405180830381600087803b15801561228557600080fd5b505af1158015612299573d6000803e3d6000fd5b5050505050505050505050505050505050505050565b60006122c18580516014018051915290565b90506000806122d68780516001018051915290565b60ff1611905060006122ee8780516014018051915290565b905073ffffffffffffffffffffffffffffffffffffffff86163314156123305761233073ffffffffffffffffffffffffffffffffffffffff861633308761196a565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff851690811790915563128acb08828487816123a45761239f600173fffd8963efd1fc6a506488495d951d5263988d26613b6f565b6123b4565b6123b46401000276a36001613b9c565b6040805173ffffffffffffffffffffffffffffffffffffffff8d166020820152016040516020818303038152906040526040518663ffffffff1660e01b8152600401612404959493929190613bd4565b60408051808303816000875af1158015612422573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124469190613c1b565b505060025473ffffffffffffffffffffffffffffffffffffffff16600114611961576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f526f75746550726f636573736f722e73776170556e6956333a20756e6578706560448201527f63746564000000000000000000000000000000000000000000000000000000006064820152608401610399565b60006125018580516001018051915290565b905060006125158680516014018051915290565b9050600180831614156125e45760006125348780516014018051915290565b9050600283166125a0578073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561258657600080fd5b505af115801561259a573d6000803e3d6000fd5b50505050505b73ffffffffffffffffffffffffffffffffffffffff821630146125de576125de73ffffffffffffffffffffffffffffffffffffffff82168386611445565b50610e5f565b600282166126ad5773ffffffffffffffffffffffffffffffffffffffff851633141561262c5761262c73ffffffffffffffffffffffffffffffffffffffff851633308661196a565b6040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff851690632e1a7d4d90602401600060405180830381600087803b15801561269457600080fd5b505af11580156126a8573d6000803e3d6000fd5b505050505b610e5f73ffffffffffffffffffffffffffffffffffffffff8216846113d3565b60006126df8580516001018051915290565b905060006126f38680516014018051915290565b905060ff821615612aee5773ffffffffffffffffffffffffffffffffffffffff85163014156127625761275d73ffffffffffffffffffffffffffffffffffffffff85167f000000000000000000000000000000000000000000000000000000000000000085611445565b612a18565b73ffffffffffffffffffffffffffffffffffffffff85163314156127c25761275d73ffffffffffffffffffffffffffffffffffffffff8516337f00000000000000000000000000000000000000000000000000000000000000008661196a565b6040517f4ffe34db00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301527f00000000000000000000000000000000000000000000000000000000000000001690634ffe34db906024016040805180830381865afa15801561284d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128719190613c5f565b516040517fdf23b45b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526fffffffffffffffffffffffffffffffff909216917f0000000000000000000000000000000000000000000000000000000000000000169063df23b45b90602401606060405180830381865afa158015612913573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129379190613cd2565b60409081015190517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301526fffffffffffffffffffffffffffffffff909216918716906370a0823190602401602060405180830381865afa1580156129dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a01919061397e565b612a0b9190613966565b612a159190613916565b92505b6040517f02b9446c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301527f000000000000000000000000000000000000000000000000000000000000000081166024830181905290831660448301526064820185905260006084830152906302b9446c9060a40160408051808303816000875af1158015612ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae79190613c1b565b5050610e5f565b73ffffffffffffffffffffffffffffffffffffffff851615612bc5576040517ff18d03cc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301528681166024830152306044830152606482018590527f0000000000000000000000000000000000000000000000000000000000000000169063f18d03cc90608401600060405180830381600087803b158015612ba857600080fd5b505af1158015612bbc573d6000803e3d6000fd5b50505050612c7e565b6040517ff7888aec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301523060248301527f0000000000000000000000000000000000000000000000000000000000000000169063f7888aec90604401602060405180830381865afa158015612c57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c7b919061397e565b92505b6040517f97da6d3000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152306024830152828116604483015260006064830152608482018590527f000000000000000000000000000000000000000000000000000000000000000016906397da6d309060a40160408051808303816000875af1158015612d27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d4b9190613c1b565b5050505050505050565b6000612d678580516014018051915290565b85516020808201805190920101875290915073ffffffffffffffffffffffffffffffffffffffff851615612e4e576040517ff18d03cc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015286811660248301528381166044830152606482018590527f0000000000000000000000000000000000000000000000000000000000000000169063f18d03cc90608401600060405180830381600087803b158015612e3557600080fd5b505af1158015612e49573d6000803e3d6000fd5b505050505b6040517f627dd56a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83169063627dd56a90612ea0908490600401613d3e565b6020604051808303816000875af1158015612ebf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611961919061397e565b6000612ef58580516014018051915290565b90506000612f098680516001018051915290565b90506000612f1d8780516001018051915290565b60000b90506000612f348880516001018051915290565b60000b90506000612f4b8980516014018051915290565b90506000612f5f8a80516014018051915290565b9050600073ffffffffffffffffffffffffffffffffffffffff891673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415613048576040517f3df02124000000000000000000000000000000000000000000000000000000008152600f86810b600483015285900b6024820152604481018990526000606482015273ffffffffffffffffffffffffffffffffffffffff881690633df02124908a9060840160206040518083038185885af115801561301c573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190613041919061397e565b905061324f565b73ffffffffffffffffffffffffffffffffffffffff8a163314156130885761308873ffffffffffffffffffffffffffffffffffffffff8a1633308b61196a565b6130a973ffffffffffffffffffffffffffffffffffffffff8a16888a6133b3565b5060ff861661315c576040517f3df02124000000000000000000000000000000000000000000000000000000008152600f86810b600483015285900b6024820152604481018990526000606482015273ffffffffffffffffffffffffffffffffffffffff881690633df02124906084016020604051808303816000875af1158015613138573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613041919061397e565b600061317e73ffffffffffffffffffffffffffffffffffffffff841630611519565b6040517f3df02124000000000000000000000000000000000000000000000000000000008152600f88810b600483015287900b6024820152604481018b90526000606482015290915073ffffffffffffffffffffffffffffffffffffffff891690633df0212490608401600060405180830381600087803b15801561320257600080fd5b505af1158015613216573d6000803e3d6000fd5b506000925061323e91505073ffffffffffffffffffffffffffffffffffffffff851630611519565b905061324a8282613916565b925050505b73ffffffffffffffffffffffffffffffffffffffff8316301461328d5761328d73ffffffffffffffffffffffffffffffffffffffff83168483611280565b5050505050505050505050565b60608247101561332c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610399565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516133559190613d51565b60006040518083038185875af1925050503d8060008114613392576040519150601f19603f3d011682016040523d82523d6000602084013e613397565b606091505b50915091506133a8878383876133e4565b979650505050505050565b60006133c0848484613481565b80611ef257506133d284846000613481565b8015611ef25750611ef2848484613481565b606083156134775782516134705773ffffffffffffffffffffffffffffffffffffffff85163b613470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610399565b5081611ef2565b611ef28383613590565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790529151600092839283929188169161351a9190613d51565b6000604051808303816000865af19150503d8060008114613557576040519150601f19603f3d011682016040523d82523d6000602084013e61355c565b606091505b50915091508180156135865750805115806135865750808060200190518101906135869190613997565b9695505050505050565b8151156135a05781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103999190613d3e565b600080600080606085870312156135ea57600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561361057600080fd5b818701915087601f83011261362457600080fd5b81358181111561363357600080fd5b88602082850101111561364557600080fd5b95989497505060200194505050565b73ffffffffffffffffffffffffffffffffffffffff81168114610cb657600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f8301126136b657600080fd5b813567ffffffffffffffff808211156136d1576136d1613676565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561371757613717613676565b8160405283815286602085880101111561373057600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060008060c0878903121561376957600080fd5b863561377481613654565b955060208701359450604087013561378b81613654565b93506060870135925060808701356137a281613654565b915060a087013567ffffffffffffffff8111156137be57600080fd5b6137ca89828a016136a5565b9150509295509295509295565b600080600080600080600080610100898b0312156137f457600080fd5b88356137ff81613654565b975060208901359650604089013561381681613654565b955060608901359450608089013561382d81613654565b935060a0890135925060c089013561384481613654565b915060e089013567ffffffffffffffff81111561386057600080fd5b61386c8b828c016136a5565b9150509295985092959890939650565b8015158114610cb657600080fd5b6000806040838503121561389d57600080fd5b82356138a881613654565b915060208301356138b88161387c565b809150509250929050565b6000602082840312156138d557600080fd5b81356138e081613654565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015613928576139286138e7565b500390565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561395f5761395f6138e7565b5060010190565b60008219821115613979576139796138e7565b500190565b60006020828403121561399057600080fd5b5051919050565b6000602082840312156139a957600080fd5b81516138e08161387c565b80516dffffffffffffffffffffffffffff8116811461170a57600080fd5b6000806000606084860312156139e757600080fd5b6139f0846139b4565b92506139fe602085016139b4565b9150604084015163ffffffff81168114613a1757600080fd5b809150509250925092565b600062ffffff83811690831681811015613a3e57613a3e6138e7565b039392505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613a7e57613a7e6138e7565b500290565b600082613ab9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60005b83811015613ad9578181015183820152602001613ac1565b838111156103f05750506000910152565b60008151808452613b02816020860160208601613abe565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b84815283602082015273ffffffffffffffffffffffffffffffffffffffff831660408201526080606082015260006135866080830184613aea565b600073ffffffffffffffffffffffffffffffffffffffff83811690831681811015613a3e57613a3e6138e7565b600073ffffffffffffffffffffffffffffffffffffffff808316818516808303821115613bcb57613bcb6138e7565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff8088168352861515602084015285604084015280851660608401525060a060808301526133a860a0830184613aea565b60008060408385031215613c2e57600080fd5b505080516020909101519092909150565b80516fffffffffffffffffffffffffffffffff8116811461170a57600080fd5b600060408284031215613c7157600080fd5b6040516040810181811067ffffffffffffffff82111715613c9457613c94613676565b604052613ca083613c3f565b8152613cae60208401613c3f565b60208201529392505050565b805167ffffffffffffffff8116811461170a57600080fd5b600060608284031215613ce457600080fd5b6040516060810181811067ffffffffffffffff82111715613d0757613d07613676565b604052613d1383613cba565b8152613d2160208401613cba565b6020820152613d3260408401613c3f565b60408201529392505050565b6020815260006138e06020830184613aea565b60008251613d63818460208701613abe565b919091019291505056fea26469706673582212209f3b5dd61e1718e28656003bdb1e93579bac1e86bdbff2eb5116c63421166cc164736f6c634300080a0033", + "deployedBytecode": "0x6080604052600436106100ec5760003560e01c8063715018a61161008a5780639a1f3406116100595780639a1f34061461023c578063cd0fb7a71461025c578063f2fde38b1461029c578063fa461e33146102bc57600080fd5b8063715018a6146101d45780638456cb59146101e95780638da5cb5b146101fe57806393b3774c1461022957600080fd5b80632c8958f6116100c65780632c8958f61461010f57806347f8bd41146101555780636678ec1f146101685780636b2ace871461017b57600080fd5b8063046f7da2146100f857806323a69e751461010f5780632646478b1461012f57600080fd5b366100f357005b600080fd5b34801561010457600080fd5b5061010d6102dc565b005b34801561011b57600080fd5b5061010d61012a3660046135d4565b6103e4565b61014261013d366004613750565b6103f6565b6040519081526020015b60405180910390f35b6101426101633660046137d7565b6105a0565b6101426101763660046137d7565b61076e565b34801561018757600080fd5b506101af7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161014c565b3480156101e057600080fd5b5061010d61091c565b3480156101f557600080fd5b5061010d610930565b34801561020a57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166101af565b6101426102373660046137d7565b610a33565b34801561024857600080fd5b5061010d61025736600461388a565b610ba4565b34801561026857600080fd5b5061028c6102773660046138c3565b60016020526000908152604090205460ff1681565b604051901515815260200161014c565b3480156102a857600080fd5b5061010d6102b73660046138c3565b610c02565b3480156102c857600080fd5b5061010d6102d73660046135d4565b610cb9565b60005473ffffffffffffffffffffffffffffffffffffffff1633148061031157503360009081526001602052604090205460ff165b6103a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f52503a2063616c6c6572206973206e6f7420746865206f776e6572206f72206160448201527f2070726976696c6567656420757365720000000000000000000000000000000060648201526084015b60405180910390fd5b600280547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167501000000000000000000000000000000000000000000179055565b6103f084848484610cb9565b50505050565b60025460009074010000000000000000000000000000000000000000900460ff16600114610480576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610508576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674020000000000000000000000000000000000000000179055610555878787878787610e67565b9050600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790559695505050505050565b60025460009074010000000000000000000000000000000000000000900460ff1660011461062a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff166001146106b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905561071273ffffffffffffffffffffffffffffffffffffffff88168a8a61121d565b610720878787878787610e67565b90505b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905598975050505050505050565b60025460009074010000000000000000000000000000000000000000900460ff166001146107f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610880576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740200000000000000000000000000000000000000001790556108cd878787873087610e67565b90506108f073ffffffffffffffffffffffffffffffffffffffff86168a8a611280565b610723836108fe8a84613916565b73ffffffffffffffffffffffffffffffffffffffff88169190611280565b6109246112dd565b61092e600061135e565b565b60005473ffffffffffffffffffffffffffffffffffffffff1633148061096557503360009081526001602052604090205460ff165b6109f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f52503a2063616c6c6572206973206e6f7420746865206f776e6572206f72206160448201527f2070726976696c656765642075736572000000000000000000000000000000006064820152608401610399565b600280547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167502000000000000000000000000000000000000000000179055565b60025460009074010000000000000000000000000000000000000000900460ff16600114610abd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610b45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905561071273ffffffffffffffffffffffffffffffffffffffff8a16896113d3565b610bac6112dd565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b610c0a6112dd565b73ffffffffffffffffffffffffffffffffffffffff8116610cad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610399565b610cb68161135e565b50565b60025473ffffffffffffffffffffffffffffffffffffffff163314610d60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603e60248201527f526f75746550726f636573736f722e756e697377617056335377617043616c6c60448201527f6261636b3a2063616c6c2066726f6d20756e6b6e6f776e20736f7572636500006064820152608401610399565b6000808513610d6f5783610d71565b845b905060008113610e03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603960248201527f526f75746550726f636573736f722e756e697377617056335377617043616c6c60448201527f6261636b3a206e6f7420706f73697469766520616d6f756e74000000000000006064820152608401610399565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001660011790556000610e3c838501856138c3565b9050610e5f73ffffffffffffffffffffffffffffffffffffffff82163384611445565b505050505050565b600080610e8a73ffffffffffffffffffffffffffffffffffffffff891633611519565b90506000610eae73ffffffffffffffffffffffffffffffffffffffff881686611519565b905087600080610ed287604080518082019091528181528151909101602082015290565b90505b805160208201511115611028576000610ef48280516001018051915290565b90508060ff1660011415610f1e576000610f0d83611604565b905083610f18578094505b50611017565b8060ff1660021415610f3957610f34828d6116c9565b611017565b8060ff1660031415610f50576000610f0d836116e9565b8060ff1660041415610f6557610f348261170f565b8060ff1660051415610f7a57610f3482611735565b8060ff1660061415610f9057610f348d8361183a565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f526f75746550726f636573736f723a20556e6b6e6f776e20636f6d6d616e642060448201527f636f6465000000000000000000000000000000000000000000000000000000006064820152608401610399565b6110208361392d565b925050610ed5565b506000905061104d73ffffffffffffffffffffffffffffffffffffffff8c1633611519565b905073ffffffffffffffffffffffffffffffffffffffff8b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611124578361108b8b83613966565b61109690600a613966565b1015611124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f526f75746550726f636573736f723a204d696e696d616c20696e70757420626160448201527f6c616e63652076696f6c6174696f6e00000000000000000000000000000000006064820152608401610399565b600061114673ffffffffffffffffffffffffffffffffffffffff8b1689611519565b90506111528985613966565b811015611198576111638482613916565b6040517f963b34a500000000000000000000000000000000000000000000000000000000815260040161039991815260200190565b6111a28482613916565b6040805173ffffffffffffffffffffffffffffffffffffffff8b81168252602082018790529181018c905260608101839052919750808c1691908e169033907f2db5ddd0b42bdbca0d69ea16f234a870a485854ae0d91f16643d6f317d8b89949060800160405180910390a450505050509695505050505050565b73ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561125e5761125982826113d3565b505050565b61125973ffffffffffffffffffffffffffffffffffffffff841633848461196a565b73ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156112bc5761125982826113d3565b61125973ffffffffffffffffffffffffffffffffffffffff84168383611445565b60005473ffffffffffffffffffffffffffffffffffffffff16331461092e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610399565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808373ffffffffffffffffffffffffffffffffffffffff168360405160006040518083038185875af1925050503d806000811461142e576040519150601f19603f3d011682016040523d82523d6000602084013e611433565b606091505b5091509150816103f057805181602001fd5b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526112599084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526119c8565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561156b575073ffffffffffffffffffffffffffffffffffffffff8116316115fe565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301528416906370a0823190602401602060405180830381865afa1580156115d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fb919061397e565b90505b92915050565b6000806116178380516014018051915290565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290915073ffffffffffffffffffffffffffffffffffffffff8216906370a0823190602401602060405180830381865afa158015611684573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a8919061397e565b915081156116b7576001820391505b6116c383308385611ad4565b50919050565b60006116db8380516014018051915290565b905061125983338385611ad4565b4761170a823073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee84611ad4565b919050565b60006117218280516014018051915290565b9050611731826000836000611b2f565b5050565b60006117478280516014018051915290565b6040517ff7888aec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80831660048301523060248301529192506000917f0000000000000000000000000000000000000000000000000000000000000000169063f7888aec90604401602060405180830381865afa1580156117df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611803919061397e565b9050801561182e577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015b61125983308484611ad4565b600061184c8280516020018051915290565b905060006118608380516020018051915290565b905060006118748480516001018051915290565b905060006118888580516020018051915290565b9050600061189c8680516020018051915290565b6040517fdd62ed3e000000000000000000000000000000000000000000000000000000008152336004820152306024820152909150859073ffffffffffffffffffffffffffffffffffffffff89169063dd62ed3e90604401602060405180830381865afa158015611911573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611935919061397e565b10156119615761196173ffffffffffffffffffffffffffffffffffffffff881633308888888888611c63565b50505050505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526103f09085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611497565b6000611a2a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611ee39092919063ffffffff16565b8051909150156112595780806020019051810190611a489190613997565b611259576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610399565b6000611ae68580516001018051915290565b905060005b8160ff16811015610e5f576000611b088780516002018051915290565b61ffff8082168602049485900394909150611b2588888884611b2f565b5050600101611aeb565b6000611b418580516001018051915290565b905060ff8116611b5c57611b5785858585611efa565b611c5c565b8060ff1660011415611b7457611b57858585856122af565b8060ff1660021415611b8c57611b57858585856124ef565b8060ff1660031415611ba457611b57858585856126cd565b8060ff1660041415611bbc57611b5785858585612d55565b8060ff1660051415611bd457611b5785858585612ee3565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f526f75746550726f636573736f723a20556e6b6e6f776e20706f6f6c2074797060448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610399565b5050505050565b6040517f7ecebe0000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8881166004830152600091908a1690637ecebe0090602401602060405180830381865afa158015611cd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cf7919061397e565b6040517fd505accf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a811660048301528981166024830152604482018990526064820188905260ff8716608483015260a4820186905260c48201859052919250908a169063d505accf9060e401600060405180830381600087803b158015611d9157600080fd5b505af1158015611da5573d6000803e3d6000fd5b50506040517f7ecebe0000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b81166004830152600093508c169150637ecebe0090602401602060405180830381865afa158015611e18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3c919061397e565b9050611e49826001613966565b8114611ed7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f5361666545524332303a207065726d697420646964206e6f742073756363656560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610399565b50505050505050505050565b6060611ef2848460008561329a565b949350505050565b6000611f0c8580516014018051915290565b90506000611f208680516001018051915290565b90506000611f348780516014018051915290565b90506000611f488880516003018051915290565b905073ffffffffffffffffffffffffffffffffffffffff8716301415611f8e57611f8973ffffffffffffffffffffffffffffffffffffffff87168587611445565b611fce565b73ffffffffffffffffffffffffffffffffffffffff8716331415611fce57611fce73ffffffffffffffffffffffffffffffffffffffff871633868861196a565b6000808573ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa15801561201c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204091906139d2565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691506000821180156120755750600081115b6120db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f57726f6e6720706f6f6c207265736572766573000000000000000000000000006044820152606401610399565b6000808660ff166001146120f05782846120f3565b83835b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b8116600483015292945090925083918c16906370a0823190602401602060405180830381865afa158015612167573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218b919061397e565b6121959190613916565b985060006121a686620f4240613a22565b6121b59062ffffff168b613a46565b90506000816121c785620f4240613a46565b6121d19190613966565b6121db8484613a46565b6121e59190613a83565b90506000808a60ff166001146121fd57826000612201565b6000835b604080516000815260208101918290527f022c0d9f00000000000000000000000000000000000000000000000000000000909152919350915073ffffffffffffffffffffffffffffffffffffffff8d169063022c0d9f9061226b90859085908f9060248101613b34565b600060405180830381600087803b15801561228557600080fd5b505af1158015612299573d6000803e3d6000fd5b5050505050505050505050505050505050505050565b60006122c18580516014018051915290565b90506000806122d68780516001018051915290565b60ff1611905060006122ee8780516014018051915290565b905073ffffffffffffffffffffffffffffffffffffffff86163314156123305761233073ffffffffffffffffffffffffffffffffffffffff861633308761196a565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff851690811790915563128acb08828487816123a45761239f600173fffd8963efd1fc6a506488495d951d5263988d26613b6f565b6123b4565b6123b46401000276a36001613b9c565b6040805173ffffffffffffffffffffffffffffffffffffffff8d166020820152016040516020818303038152906040526040518663ffffffff1660e01b8152600401612404959493929190613bd4565b60408051808303816000875af1158015612422573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124469190613c1b565b505060025473ffffffffffffffffffffffffffffffffffffffff16600114611961576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f526f75746550726f636573736f722e73776170556e6956333a20756e6578706560448201527f63746564000000000000000000000000000000000000000000000000000000006064820152608401610399565b60006125018580516001018051915290565b905060006125158680516014018051915290565b9050600180831614156125e45760006125348780516014018051915290565b9050600283166125a0578073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561258657600080fd5b505af115801561259a573d6000803e3d6000fd5b50505050505b73ffffffffffffffffffffffffffffffffffffffff821630146125de576125de73ffffffffffffffffffffffffffffffffffffffff82168386611445565b50610e5f565b600282166126ad5773ffffffffffffffffffffffffffffffffffffffff851633141561262c5761262c73ffffffffffffffffffffffffffffffffffffffff851633308661196a565b6040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff851690632e1a7d4d90602401600060405180830381600087803b15801561269457600080fd5b505af11580156126a8573d6000803e3d6000fd5b505050505b610e5f73ffffffffffffffffffffffffffffffffffffffff8216846113d3565b60006126df8580516001018051915290565b905060006126f38680516014018051915290565b905060ff821615612aee5773ffffffffffffffffffffffffffffffffffffffff85163014156127625761275d73ffffffffffffffffffffffffffffffffffffffff85167f000000000000000000000000000000000000000000000000000000000000000085611445565b612a18565b73ffffffffffffffffffffffffffffffffffffffff85163314156127c25761275d73ffffffffffffffffffffffffffffffffffffffff8516337f00000000000000000000000000000000000000000000000000000000000000008661196a565b6040517f4ffe34db00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301527f00000000000000000000000000000000000000000000000000000000000000001690634ffe34db906024016040805180830381865afa15801561284d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128719190613c5f565b516040517fdf23b45b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526fffffffffffffffffffffffffffffffff909216917f0000000000000000000000000000000000000000000000000000000000000000169063df23b45b90602401606060405180830381865afa158015612913573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129379190613cd2565b60409081015190517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301526fffffffffffffffffffffffffffffffff909216918716906370a0823190602401602060405180830381865afa1580156129dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a01919061397e565b612a0b9190613966565b612a159190613916565b92505b6040517f02b9446c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301527f000000000000000000000000000000000000000000000000000000000000000081166024830181905290831660448301526064820185905260006084830152906302b9446c9060a40160408051808303816000875af1158015612ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae79190613c1b565b5050610e5f565b73ffffffffffffffffffffffffffffffffffffffff851615612bc5576040517ff18d03cc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301528681166024830152306044830152606482018590527f0000000000000000000000000000000000000000000000000000000000000000169063f18d03cc90608401600060405180830381600087803b158015612ba857600080fd5b505af1158015612bbc573d6000803e3d6000fd5b50505050612c7e565b6040517ff7888aec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301523060248301527f0000000000000000000000000000000000000000000000000000000000000000169063f7888aec90604401602060405180830381865afa158015612c57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c7b919061397e565b92505b6040517f97da6d3000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152306024830152828116604483015260006064830152608482018590527f000000000000000000000000000000000000000000000000000000000000000016906397da6d309060a40160408051808303816000875af1158015612d27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d4b9190613c1b565b5050505050505050565b6000612d678580516014018051915290565b85516020808201805190920101875290915073ffffffffffffffffffffffffffffffffffffffff851615612e4e576040517ff18d03cc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015286811660248301528381166044830152606482018590527f0000000000000000000000000000000000000000000000000000000000000000169063f18d03cc90608401600060405180830381600087803b158015612e3557600080fd5b505af1158015612e49573d6000803e3d6000fd5b505050505b6040517f627dd56a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83169063627dd56a90612ea0908490600401613d3e565b6020604051808303816000875af1158015612ebf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611961919061397e565b6000612ef58580516014018051915290565b90506000612f098680516001018051915290565b90506000612f1d8780516001018051915290565b60000b90506000612f348880516001018051915290565b60000b90506000612f4b8980516014018051915290565b90506000612f5f8a80516014018051915290565b9050600073ffffffffffffffffffffffffffffffffffffffff891673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415613048576040517f3df02124000000000000000000000000000000000000000000000000000000008152600f86810b600483015285900b6024820152604481018990526000606482015273ffffffffffffffffffffffffffffffffffffffff881690633df02124908a9060840160206040518083038185885af115801561301c573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190613041919061397e565b905061324f565b73ffffffffffffffffffffffffffffffffffffffff8a163314156130885761308873ffffffffffffffffffffffffffffffffffffffff8a1633308b61196a565b6130a973ffffffffffffffffffffffffffffffffffffffff8a16888a6133b3565b5060ff861661315c576040517f3df02124000000000000000000000000000000000000000000000000000000008152600f86810b600483015285900b6024820152604481018990526000606482015273ffffffffffffffffffffffffffffffffffffffff881690633df02124906084016020604051808303816000875af1158015613138573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613041919061397e565b600061317e73ffffffffffffffffffffffffffffffffffffffff841630611519565b6040517f3df02124000000000000000000000000000000000000000000000000000000008152600f88810b600483015287900b6024820152604481018b90526000606482015290915073ffffffffffffffffffffffffffffffffffffffff891690633df0212490608401600060405180830381600087803b15801561320257600080fd5b505af1158015613216573d6000803e3d6000fd5b506000925061323e91505073ffffffffffffffffffffffffffffffffffffffff851630611519565b905061324a8282613916565b925050505b73ffffffffffffffffffffffffffffffffffffffff8316301461328d5761328d73ffffffffffffffffffffffffffffffffffffffff83168483611280565b5050505050505050505050565b60608247101561332c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610399565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516133559190613d51565b60006040518083038185875af1925050503d8060008114613392576040519150601f19603f3d011682016040523d82523d6000602084013e613397565b606091505b50915091506133a8878383876133e4565b979650505050505050565b60006133c0848484613481565b80611ef257506133d284846000613481565b8015611ef25750611ef2848484613481565b606083156134775782516134705773ffffffffffffffffffffffffffffffffffffffff85163b613470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610399565b5081611ef2565b611ef28383613590565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790529151600092839283929188169161351a9190613d51565b6000604051808303816000865af19150503d8060008114613557576040519150601f19603f3d011682016040523d82523d6000602084013e61355c565b606091505b50915091508180156135865750805115806135865750808060200190518101906135869190613997565b9695505050505050565b8151156135a05781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103999190613d3e565b600080600080606085870312156135ea57600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561361057600080fd5b818701915087601f83011261362457600080fd5b81358181111561363357600080fd5b88602082850101111561364557600080fd5b95989497505060200194505050565b73ffffffffffffffffffffffffffffffffffffffff81168114610cb657600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f8301126136b657600080fd5b813567ffffffffffffffff808211156136d1576136d1613676565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561371757613717613676565b8160405283815286602085880101111561373057600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060008060c0878903121561376957600080fd5b863561377481613654565b955060208701359450604087013561378b81613654565b93506060870135925060808701356137a281613654565b915060a087013567ffffffffffffffff8111156137be57600080fd5b6137ca89828a016136a5565b9150509295509295509295565b600080600080600080600080610100898b0312156137f457600080fd5b88356137ff81613654565b975060208901359650604089013561381681613654565b955060608901359450608089013561382d81613654565b935060a0890135925060c089013561384481613654565b915060e089013567ffffffffffffffff81111561386057600080fd5b61386c8b828c016136a5565b9150509295985092959890939650565b8015158114610cb657600080fd5b6000806040838503121561389d57600080fd5b82356138a881613654565b915060208301356138b88161387c565b809150509250929050565b6000602082840312156138d557600080fd5b81356138e081613654565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015613928576139286138e7565b500390565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561395f5761395f6138e7565b5060010190565b60008219821115613979576139796138e7565b500190565b60006020828403121561399057600080fd5b5051919050565b6000602082840312156139a957600080fd5b81516138e08161387c565b80516dffffffffffffffffffffffffffff8116811461170a57600080fd5b6000806000606084860312156139e757600080fd5b6139f0846139b4565b92506139fe602085016139b4565b9150604084015163ffffffff81168114613a1757600080fd5b809150509250925092565b600062ffffff83811690831681811015613a3e57613a3e6138e7565b039392505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613a7e57613a7e6138e7565b500290565b600082613ab9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60005b83811015613ad9578181015183820152602001613ac1565b838111156103f05750506000910152565b60008151808452613b02816020860160208601613abe565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b84815283602082015273ffffffffffffffffffffffffffffffffffffffff831660408201526080606082015260006135866080830184613aea565b600073ffffffffffffffffffffffffffffffffffffffff83811690831681811015613a3e57613a3e6138e7565b600073ffffffffffffffffffffffffffffffffffffffff808316818516808303821115613bcb57613bcb6138e7565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff8088168352861515602084015285604084015280851660608401525060a060808301526133a860a0830184613aea565b60008060408385031215613c2e57600080fd5b505080516020909101519092909150565b80516fffffffffffffffffffffffffffffffff8116811461170a57600080fd5b600060408284031215613c7157600080fd5b6040516040810181811067ffffffffffffffff82111715613c9457613c94613676565b604052613ca083613c3f565b8152613cae60208401613c3f565b60208201529392505050565b805167ffffffffffffffff8116811461170a57600080fd5b600060608284031215613ce457600080fd5b6040516060810181811067ffffffffffffffff82111715613d0757613d07613676565b604052613d1383613cba565b8152613d2160208401613cba565b6020820152613d3260408401613c3f565b60408201529392505050565b6020815260006138e06020830184613aea565b60008251613d63818460208701613abe565b919091019291505056fea26469706673582212209f3b5dd61e1718e28656003bdb1e93579bac1e86bdbff2eb5116c63421166cc164736f6c634300080a0033", + "devdoc": { + "author": "Ilya Lyalin", + "kind": "dev", + "methods": { + "algebraSwapCallback(int256,int256,bytes)": { + "details": "In the implementation you must pay the pool tokens owed for the swap. The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory. amount0Delta and amount1Delta can both be 0 if no tokens were swapped.", + "params": { + "amount0Delta": "The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.", + "amount1Delta": "The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.", + "data": "Any data passed through by the caller via the IAlgebraPoolActions#swap call" + } + }, + "owner()": { + "details": "Returns the address of the current owner." + }, + "pancakeV3SwapCallback(int256,int256,bytes)": { + "details": "In the implementation you must pay the pool tokens owed for the swap.", + "params": { + "amount0Delta": "The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.", + "amount1Delta": "The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.", + "data": "Any data passed through by the caller via the PancakeV3Pool#swap call" + } + }, + "processRoute(address,uint256,address,uint256,address,bytes)": { + "params": { + "amountIn": "Amount of the input token", + "amountOutMin": "Minimum amount of the output token", + "route": "Route to process", + "to": "Where to transfer output tokens", + "tokenIn": "Address of the input token", + "tokenOut": "Address of the output token" + }, + "returns": { + "amountOut": "Actual amount of the output token" + } + }, + "processRouteWithTransferValueInput(address,uint256,address,uint256,address,uint256,address,bytes)": { + "params": { + "amountIn": "Amount of the input token", + "amountOutMin": "Minimum amount of the output token", + "amountValueTransfer": "How much value to transfer", + "tokenIn": "Address of the input token", + "tokenOut": "Address of the output token", + "transferValueTo": "Address where the value should be transferred" + }, + "returns": { + "amountOut": "Actual amount of the output token" + } + }, + "processRouteWithTransferValueOutput(address,uint256,address,uint256,address,uint256,address,bytes)": { + "params": { + "amountIn": "Amount of the input token", + "amountOutMin": "Minimum amount of the output token", + "amountValueTransfer": "How much value to transfer", + "tokenIn": "Address of the input token", + "tokenOut": "Address of the output token", + "transferValueTo": "Address where the value should be transferred" + }, + "returns": { + "amountOut": "Actual amount of the output token" + } + }, + "renounceOwnership()": { + "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." + }, + "transferOwnership(address)": { + "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." + }, + "transferValueAndprocessRoute(address,uint256,address,uint256,address,uint256,address,bytes)": { + "params": { + "amountIn": "Amount of the input token", + "amountOutMin": "Minimum amount of the output token", + "amountValueTransfer": "How much value to transfer", + "tokenIn": "Address of the input token", + "tokenOut": "Address of the output token", + "transferValueTo": "Address where the value should be transferred" + }, + "returns": { + "amountOut": "Actual amount of the output token" + } + }, + "uniswapV3SwapCallback(int256,int256,bytes)": { + "details": "In the implementation you must pay the pool tokens owed for the swap. The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory. amount0Delta and amount1Delta can both be 0 if no tokens were swapped.", + "params": { + "amount0Delta": "The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.", + "amount1Delta": "The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.", + "data": "Any data passed through by the caller via the IUniswapV3PoolActions#swap call" + } + } + }, + "title": "A route processor for the Sushi Aggregator", + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "algebraSwapCallback(int256,int256,bytes)": { + "notice": "Called to `msg.sender` after executing a swap via IAlgebraPool#swap." + }, + "pancakeV3SwapCallback(int256,int256,bytes)": { + "notice": "Called to `msg.sender` after executing a swap via PancakeV3Pool#swap." + }, + "processRoute(address,uint256,address,uint256,address,bytes)": { + "notice": "Processes the route generated off-chain. Has a lock" + }, + "processRouteWithTransferValueInput(address,uint256,address,uint256,address,uint256,address,bytes)": { + "notice": "Transfers some value of input tokens to and then processes the route" + }, + "processRouteWithTransferValueOutput(address,uint256,address,uint256,address,uint256,address,bytes)": { + "notice": "processes the route and sends amount of output token to " + }, + "transferValueAndprocessRoute(address,uint256,address,uint256,address,uint256,address,bytes)": { + "notice": "Transfers some value to and then processes the route" + }, + "uniswapV3SwapCallback(int256,int256,bytes)": { + "notice": "Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap." + } + }, + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 7, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "_owner", + "offset": 0, + "slot": "0", + "type": "t_address" + }, + { + "astId": 8573, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "priviledgedUsers", + "offset": 0, + "slot": "1", + "type": "t_mapping(t_address,t_bool)" + }, + { + "astId": 8575, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "lastCalledPool", + "offset": 0, + "slot": "2", + "type": "t_address" + }, + { + "astId": 8578, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "unlocked", + "offset": 20, + "slot": "2", + "type": "t_uint8" + }, + { + "astId": 8581, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "paused", + "offset": 21, + "slot": "2", + "type": "t_uint8" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_bool)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => bool)", + "numberOfBytes": "32", + "value": "t_bool" + }, + "t_uint8": { + "encoding": "inplace", + "label": "uint8", + "numberOfBytes": "1" + } + } + } +} \ No newline at end of file diff --git a/protocols/route-processor/deployments/manta-pacific/solcInputs/9252879aaeb02fabe759ce8768addec4.json b/protocols/route-processor/deployments/manta-pacific/solcInputs/9252879aaeb02fabe759ce8768addec4.json new file mode 100644 index 0000000000..c6762a8dc1 --- /dev/null +++ b/protocols/route-processor/deployments/manta-pacific/solcInputs/9252879aaeb02fabe759ce8768addec4.json @@ -0,0 +1,98 @@ +{ + "language": "Solidity", + "sources": { + "@openzeppelin/contracts/access/Ownable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n address private _owner;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the deployer as the initial owner.\n */\n constructor() {\n _transferOwnership(_msgSender());\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions anymore. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby removing any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n _transferOwnership(address(0));\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n _transferOwnership(newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual {\n address oldOwner = _owner;\n _owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n" + }, + "@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n */\ninterface IERC20Permit {\n /**\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n * given ``owner``'s signed approval.\n *\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n * ordering also apply here.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `deadline` must be a timestamp in the future.\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n * over the EIP712-formatted function arguments.\n * - the signature must use ``owner``'s current nonce (see {nonces}).\n *\n * For more information on the signature format, see the\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n * section].\n */\n function permit(\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n /**\n * @dev Returns the current nonce for `owner`. This value must be\n * included whenever a signature is generated for {permit}.\n *\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\n * prevents a signature from being used multiple times.\n */\n function nonces(address owner) external view returns (uint256);\n\n /**\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n */\n // solhint-disable-next-line func-name-mixedcase\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n" + }, + "@openzeppelin/contracts/token/ERC20/IERC20.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the amount of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the amount of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 amount) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 amount) external returns (bool);\n\n /**\n * @dev Moves `amount` tokens from `from` to `to` using the\n * allowance mechanism. `amount` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) external returns (bool);\n}\n" + }, + "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\nimport \"../extensions/draft-IERC20Permit.sol\";\nimport \"../../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n using Address for address;\n\n function safeTransfer(\n IERC20 token,\n address to,\n uint256 value\n ) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n }\n\n function safeTransferFrom(\n IERC20 token,\n address from,\n address to,\n uint256 value\n ) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n }\n\n /**\n * @dev Deprecated. This function has issues similar to the ones found in\n * {IERC20-approve}, and its usage is discouraged.\n *\n * Whenever possible, use {safeIncreaseAllowance} and\n * {safeDecreaseAllowance} instead.\n */\n function safeApprove(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n // safeApprove should only be called when setting an initial allowance,\n // or when resetting it to zero. To increase and decrease it, use\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n require(\n (value == 0) || (token.allowance(address(this), spender) == 0),\n \"SafeERC20: approve from non-zero to non-zero allowance\"\n );\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n }\n\n function safeIncreaseAllowance(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n uint256 newAllowance = token.allowance(address(this), spender) + value;\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\n }\n\n function safeDecreaseAllowance(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n unchecked {\n uint256 oldAllowance = token.allowance(address(this), spender);\n require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n uint256 newAllowance = oldAllowance - value;\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\n }\n }\n\n function safePermit(\n IERC20Permit token,\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n uint256 nonceBefore = token.nonces(owner);\n token.permit(owner, spender, value, deadline, v, r, s);\n uint256 nonceAfter = token.nonces(owner);\n require(nonceAfter == nonceBefore + 1, \"SafeERC20: permit did not succeed\");\n }\n\n /**\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n * on the return value: the return value is optional (but if data is returned, it must not be false).\n * @param token The token targeted by the call.\n * @param data The call data (encoded using abi.encode or one of its variants).\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n // the target address contains contract code and also asserts for success in the low-level call.\n\n bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n if (returndata.length > 0) {\n // Return data is optional\n require(abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n }\n }\n}\n" + }, + "@openzeppelin/contracts/utils/Address.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n" + }, + "@openzeppelin/contracts/utils/Context.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n}\n" + }, + "contracts/Approve.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\n\nlibrary Approve {\n\n /**\n * @dev ERC20 approve that correct works with token.approve which returns bool or nothing (USDT for example)\n * @param token The token targeted by the call.\n * @param spender token spender\n * @param amount token amount\n */\n function approveStable(IERC20 token, address spender, uint256 amount) internal returns (bool) {\n (bool success, bytes memory data) = address(token).call(\n abi.encodeWithSelector(token.approve.selector, spender, amount)\n );\n return success && (data.length == 0 || abi.decode(data, (bool)));\n }\n\n /**\n * @dev ERC20 approve that correct works with token.approve which reverts if amount and \n * current allowance are not zero simultaniously (USDT for example). \n * In second case it tries to set allowance to 0, and then back to amount.\n * @param token The token targeted by the call.\n * @param spender token spender\n * @param amount token amount\n */\n function approveSafe(IERC20 token, address spender, uint256 amount) internal returns (bool) {\n return approveStable(token, spender, amount) \n || (approveStable(token, spender, 0) && approveStable(token, spender, amount));\n }\n}\n" + }, + "contracts/InputStream.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\n/** @notice Simple read stream */\nlibrary InputStream {\n\n /** @notice Creates stream from data\n * @param data data\n */\n function createStream(bytes memory data) internal pure returns (uint256 stream) {\n assembly {\n stream := mload(0x40)\n mstore(0x40, add(stream, 64))\n mstore(stream, data)\n let length := mload(data)\n mstore(add(stream, 32), add(data, length))\n }\n }\n\n /** @notice Checks if stream is not empty\n * @param stream stream\n */\n function isNotEmpty(uint256 stream) internal pure returns (bool) {\n uint256 pos;\n uint256 finish;\n assembly {\n pos := mload(stream)\n finish := mload(add(stream, 32))\n }\n return pos < finish;\n }\n\n /** @notice Reads uint8 from the stream\n * @param stream stream\n */\n function readUint8(uint256 stream) internal pure returns (uint8 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 1)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads uint16 from the stream\n * @param stream stream\n */\n function readUint16(uint256 stream) internal pure returns (uint16 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 2)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads uint24 from the stream\n * @param stream stream\n */\n function readUint24(uint256 stream) internal pure returns (uint24 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 3)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads uint32 from the stream\n * @param stream stream\n */\n function readUint32(uint256 stream) internal pure returns (uint32 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 4)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads uint256 from the stream\n * @param stream stream\n */\n function readUint(uint256 stream) internal pure returns (uint256 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 32)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads bytes32 from the stream\n * @param stream stream\n */\n function readBytes32(uint256 stream) internal pure returns (bytes32 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 32)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads address from the stream\n * @param stream stream\n */\n function readAddress(uint256 stream) internal pure returns (address res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 20)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads bytes from the stream\n * @param stream stream\n */\n function readBytes(uint256 stream) internal pure returns (bytes memory res) {\n assembly {\n let pos := mload(stream)\n res := add(pos, 32)\n let length := mload(res)\n mstore(stream, add(res, length))\n }\n }\n}\n" + }, + "contracts/RouteProcessor.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport './InputStream.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\n\naddress constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Okavango\ncontract RouteProcessor {\n using SafeERC20 for IERC20;\n using InputStream for uint256;\n\n IBentoBoxMinimal public immutable bentoBox;\n\n uint private unlocked = 1;\n modifier lock() {\n require(unlocked == 1, 'RouteProcessor is locked');\n unlocked = 2;\n _;\n unlocked = 1;\n }\n\n constructor(address _bentoBox) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n (bool success, bytes memory returnBytes) = transferValueTo.call{value: amountValueTransfer}('');\n require(success, string(abi.encodePacked(returnBytes)));\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 amountInAcc = 0;\n uint256 balanceInitial = tokenOut == NATIVE_ADDRESS ? \n address(to).balance : IERC20(tokenOut).balanceOf(to);\n\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode < 20) {\n if (commandCode == 10)\n swapUniswapPool(stream); // Sushi/Uniswap pool swap\n else if (commandCode == 4)\n distributeERC20Shares(stream); // distribute ERC20 tokens from this router to pools\n else if (commandCode == 3)\n amountInAcc += distributeERC20Amounts(stream, tokenIn); // initial distribution\n else if (commandCode == 5)\n amountInAcc += wrapAndDistributeERC20Amounts(stream); // wrap natives and initial distribution \n else if (commandCode == 6) \n unwrapNative(to, stream);\n else if (commandCode == 7)\n amountInAcc += distributeERC20AmountsFromRP(stream, tokenIn); // initial distribution\n else revert('Unknown command code');\n } else if (commandCode < 24) {\n if (commandCode == 20) bentoDepositAmountFromBento(stream, tokenIn);\n else if (commandCode == 21) swapTrident(stream);\n else if (commandCode == 23) bentoWithdrawShareFromRP(stream, tokenIn);\n else revert('Unknown command code');\n } else {\n if (commandCode == 24) amountInAcc += distributeBentoShares(stream, tokenIn);\n else if (commandCode == 25) distributeBentoPortions(stream);\n else if (commandCode == 26) bentoDepositAllFromBento(stream);\n else if (commandCode == 27) bentoWithdrawAllFromRP(stream);\n else revert('Unknown command code');\n }\n }\n\n require(amountInAcc == amountIn, 'Wrong amountIn value');\n uint256 balanceFinal = tokenOut == NATIVE_ADDRESS ? \n address(to).balance : IERC20(tokenOut).balanceOf(to);\n require(balanceFinal >= balanceInitial + amountOutMin, 'Minimal ouput balance violation');\n\n amountOut = balanceFinal - balanceInitial;\n }\n\n /// @notice Transfers input tokens sent to BentoBox to a pool\n /// @notice Expected to be called for initial liquidity transfer from user to BentoBox, so we know exact amounts\n /// @param stream [Pool, Amount]. Pool into which an amount of tokens will be transferred\n /// @param token Address of the token to transfer\n function bentoDepositAmountFromBento(uint256 stream, address token) private {\n address to = stream.readAddress();\n uint256 amount = stream.readUint();\n bentoBox.deposit(token, address(bentoBox), to, amount, 0);\n }\n\n /// @notice Transfers all available input tokens from BentoBox to a pool\n /// @param stream [Pool, Token]. Pool into which all tokens will be transferred \n function bentoDepositAllFromBento(uint256 stream) private {\n address to = stream.readAddress();\n address token = stream.readAddress();\n\n uint256 amount = IERC20(token).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(token).balance -\n bentoBox.totals(token).elastic;\n bentoBox.deposit(token, address(bentoBox), to, amount, 0);\n }\n\n /// @notice Withdraws BentoBox tokens from BentoBox to an address\n /// @param stream [To, Amount]. Destination where an amount of token will be transferred\n /// @param token Token to transfer\n function bentoWithdrawShareFromRP(uint256 stream, address token) private {\n address to = stream.readAddress();\n uint256 amount = stream.readUint();\n bentoBox.withdraw(token, address(this), to, amount, 0);\n }\n\n /// @notice Withdraws all available BentoBox tokens from BentoBox to an address\n /// @param stream [Token, To]. Token which will be transferred to a destination\n function bentoWithdrawAllFromRP(uint256 stream) private {\n address token = stream.readAddress();\n address to = stream.readAddress();\n uint256 amount = bentoBox.balanceOf(token, address(this));\n bentoBox.withdraw(token, address(this), to, 0, amount);\n }\n\n /// @notice Performs a Trident pool swap\n /// @param stream [Pool, SwapData]. Pool against a swap defined by SwapData will be executed\n function swapTrident(uint256 stream) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n IPool(pool).swap(swapData);\n }\n\n /// @notice Performs a Sushi/UniswapV2 pool swap\n /// @param stream [Pool, TokenIn, Direction, To]\n /// @return amountOut Amount of the output token\n function swapUniswapPool(uint256 stream) private returns (uint256 amountOut) {\n address pool = stream.readAddress();\n address tokenIn = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n\n uint256 amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn;\n uint256 amountInWithFee = amountIn * 997;\n amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Distributes input ERC20 tokens from msg.sender to addresses. Tokens should be approved\n /// @notice Expected to be called for initial liquidity transfer from the user to pools, so we know exact amounts\n /// @param stream [ArrayLength, ...[To, Amount][]]. An array of destinations and token amounts\n /// @param token Token to distribute\n /// @return amountTotal Total amount distributed\n function distributeERC20Amounts(uint256 stream, address token) private returns (uint256 amountTotal) {\n uint8 num = stream.readUint8();\n amountTotal = 0;\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint256 amount = stream.readUint();\n amountTotal += amount;\n IERC20(token).safeTransferFrom(msg.sender, to, amount);\n }\n }\n\n /// @notice Distributes input ERC20 tokens from this contract to addresses. Tokens should be approved\n /// @notice Expected to be called for initial liquidity transfer from the user to pools, so we know exact amounts\n /// @param stream [ArrayLength, ...[To, Amount][]]. An array of destinations and token amounts\n /// @param token Token to distribute\n /// @return amountTotal Total amount distributed\n function distributeERC20AmountsFromRP(uint256 stream, address token) private returns (uint256 amountTotal) {\n uint8 num = stream.readUint8();\n amountTotal = 0;\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint256 amount = stream.readUint();\n amountTotal += amount;\n IERC20(token).safeTransfer(to, amount);\n }\n }\n\n /// @notice Wraps all native inputs and distributes wrapped ERC20 tokens from RouteProcessor to addresses\n /// @notice Expected to be called for initial liquidity transfer from the user to pools, so we know exact amounts\n /// @param stream [WrapToken, ArrayLength, ...[To, Amount][]]. An array of destinations and token amounts\n /// @return amountTotal Total amount distributed\n function wrapAndDistributeERC20Amounts(uint256 stream) private returns (uint256 amountTotal) {\n address token = stream.readAddress();\n IWETH(token).deposit{value: address(this).balance}();\n uint8 num = stream.readUint8();\n amountTotal = 0;\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint256 amount = stream.readUint();\n amountTotal += amount;\n IERC20(token).safeTransfer(to, amount);\n }\n require(address(this).balance == 0, \"RouteProcessor: invalid input amount\");\n }\n\n /// @notice Distributes input BentoBox tokens from msg.sender to addresses. Tokens should be approved\n /// @notice Expected to be called for initial liquidity transfer from the user to pools, so we know exact amounts\n /// @param stream [ArrayLength, ...[To, ShareAmount][]]. An array of destinations and token share amounts\n /// @param token Token to distribute\n /// @return sharesTotal Total shares distributed\n function distributeBentoShares(uint256 stream, address token) private returns (uint256 sharesTotal) {\n uint8 num = stream.readUint8();\n sharesTotal = 0;\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint256 share = stream.readUint();\n sharesTotal += share;\n bentoBox.transfer(token, msg.sender, to, share);\n }\n }\n\n /// @notice Distributes ERC20 tokens from RouteProcessor to addresses\n /// @notice Quantity for sending is determined by share in 1/65535\n /// @notice During routing we can't predict in advance the actual value of internal swaps because of slippage,\n /// @notice so we have to work with shares - not fixed amounts\n /// @param stream [Token, ArrayLength, ...[To, ShareAmount][]]. Token to distribute. An array of destinations and token share amounts\n function distributeERC20Shares(uint256 stream) private {\n address token = stream.readAddress();\n uint8 num = stream.readUint8();\n uint256 amountTotal = IERC20(token).balanceOf(address(this))\n - 1; // slot undrain protection\n\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n IERC20(token).safeTransfer(to, amount);\n }\n }\n }\n\n /// @notice Distributes BentoBox tokens from RouteProcessor to addresses\n /// @notice Quantity for sending is determined by portions in 1/65535.\n /// @notice During routing we can't predict in advance the actual value of internal swaps because of slippage,\n /// @notice so we have to work with portions - not fixed amounts\n /// @param stream [Token, ArrayLength, ...[To, ShareAmount][]]. Token to distribute. An array of destinations and token share amounts\n function distributeBentoPortions(uint256 stream) private {\n address token = stream.readAddress();\n uint8 num = stream.readUint8();\n uint256 amountTotal = bentoBox.balanceOf(token, address(this))\n - 1; // slot undrain protection\n\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n bentoBox.transfer(token, address(this), to, amount);\n }\n }\n }\n\n /// @notice Unwraps the Native Token\n /// @param receiver Destination of the unwrapped token\n /// @param stream [Token]. Token to unwrap native\n function unwrapNative(address receiver, uint256 stream) private {\n address token = stream.readAddress();\n IWETH(token).withdraw( IERC20(token).balanceOf(address(this))\n - 1); // slot undrain protection\n payable(receiver).transfer(address(this).balance);\n }\n}\n" + }, + "contracts/RouteProcessor3_1.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IUniswapV3Pool.sol';\nimport '../interfaces/ITridentCLPool.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport './InputStream.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\naddress constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\n\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\nuint160 constant MIN_SQRT_RATIO = 4295128739;\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Ilya Lyalin\n/// version 3.1\ncontract RouteProcessor3_1 is Ownable {\n using SafeERC20 for IERC20;\n using SafeERC20 for IERC20Permit;\n using InputStream for uint256;\n\n event Route(\n address indexed from, \n address to, \n address indexed tokenIn, \n address indexed tokenOut, \n uint amountIn, \n uint amountOutMin,\n uint amountOut\n );\n\n IBentoBoxMinimal public immutable bentoBox;\n mapping (address => bool) priviledgedUsers;\n address private lastCalledPool;\n\n uint8 private unlocked = 1;\n uint8 private paused = 1;\n modifier lock() {\n require(unlocked == 1, 'RouteProcessor is locked');\n require(paused == 1, 'RouteProcessor is paused');\n unlocked = 2;\n _;\n unlocked = 1;\n }\n\n modifier onlyOwnerOrPriviledgedUser() {\n require(msg.sender == owner() || priviledgedUsers[msg.sender] == true, \"RP: caller is not the owner or a priviledged user\");\n _;\n }\n\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n\n for (uint i = 0; i < priviledgedUserList.length; i++) {\n priviledgedUsers[priviledgedUserList[i]] = true;\n }\n }\n\n function setPriviledge(address user, bool priviledge) external onlyOwner {\n priviledgedUsers[user] = priviledge;\n }\n\n function pause() external onlyOwnerOrPriviledgedUser {\n paused = 2;\n }\n\n function resume() external onlyOwnerOrPriviledgedUser {\n paused = 1;\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n (bool success, bytes memory returnBytes) = transferValueTo.call{value: amountValueTransfer}('');\n require(success, string(abi.encodePacked(returnBytes)));\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 balanceInInitial = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n uint256 balanceOutInitial = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode == 1) processMyERC20(stream);\n else if (commandCode == 2) processUserERC20(stream, amountIn);\n else if (commandCode == 3) processNative(stream);\n else if (commandCode == 4) processOnePool(stream);\n else if (commandCode == 5) processInsideBento(stream);\n else if (commandCode == 6) applyPermit(tokenIn, stream);\n else revert('RouteProcessor: Unknown command code');\n }\n\n uint256 balanceInFinal = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n require(balanceInFinal + amountIn >= balanceInInitial, 'RouteProcessor: Minimal imput balance violation');\n\n uint256 balanceOutFinal = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n require(balanceOutFinal >= balanceOutInitial + amountOutMin, 'RouteProcessor: Minimal ouput balance violation');\n\n amountOut = balanceOutFinal - balanceOutInitial;\n\n emit Route(msg.sender, to, tokenIn, tokenOut, amountIn, amountOutMin, amountOut);\n }\n\n function applyPermit(address tokenIn, uint256 stream) private {\n //address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s)\n uint256 value = stream.readUint();\n uint256 deadline = stream.readUint();\n uint8 v = stream.readUint8();\n bytes32 r = stream.readBytes32();\n bytes32 s = stream.readBytes32();\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\n }\n\n /// @notice Processes native coin: call swap for all pools that swap from native coin\n /// @param stream Streamed process program\n function processNative(uint256 stream) private {\n uint256 amountTotal = address(this).balance;\n distributeAndSwap(stream, address(this), NATIVE_ADDRESS, amountTotal);\n }\n\n /// @notice Processes ERC20 token from this contract balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processMyERC20(uint256 stream) private {\n address token = stream.readAddress();\n uint256 amountTotal = IERC20(token).balanceOf(address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n \n /// @notice Processes ERC20 token from msg.sender balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n /// @param amountTotal Amount of tokens to take from msg.sender\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\n address token = stream.readAddress();\n distributeAndSwap(stream, msg.sender, token, amountTotal);\n }\n\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountTotal Total amount of tokenIn for swaps \n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\n uint8 num = stream.readUint8();\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, from, tokenIn, amount);\n }\n }\n }\n\n /// @notice Processes ERC20 token for cases when the token has only one output pool\n /// @notice In this case liquidity is already at pool balance. This is an optimization\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processOnePool(uint256 stream) private {\n address token = stream.readAddress();\n swap(stream, address(this), token, 0);\n }\n\n /// @notice Processes Bento tokens \n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processInsideBento(uint256 stream) private {\n address token = stream.readAddress();\n uint8 num = stream.readUint8();\n\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, address(this), token, amount);\n }\n }\n }\n\n /// @notice Makes swap\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 poolType = stream.readUint8();\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\n else revert('RouteProcessor: Unknown pool type');\n }\n\n /// @notice Wraps/unwraps native token\n /// @param stream [direction & fake, recipient, wrapToken?]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 directionAndFake = stream.readUint8();\n address to = stream.readAddress();\n\n if (directionAndFake & 1 == 1) { // wrap native\n address wrapToken = stream.readAddress();\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\n } else { // unwrap native\n if (directionAndFake & 2 == 0) {\n if (from != address(this)) IERC20(tokenIn).safeTransferFrom(from, address(this), amountIn);\n IWETH(tokenIn).withdraw(amountIn);\n }\n payable(to).transfer(address(this).balance);\n }\n }\n\n /// @notice Bridge/unbridge tokens to/from Bento\n /// @param stream [direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (direction > 0) { // outside to Bento\n // deposit to arbitrary recipient is possible only from address(bentoBox)\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, address(bentoBox), amountIn);\n } else {\n // tokens already are at address(bentoBox)\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(tokenIn).balance -\n bentoBox.totals(tokenIn).elastic;\n }\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\n } else { // Bento to outside\n if (amountIn > 0) {\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\n }\n }\n\n /// @notice UniswapV2 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, pool, amountIn);\n }\n // without 'else' in order to support tax tokens\n amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\n\n uint256 amountInWithFee = amountIn * 997;\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Trident pool swap\n /// @param stream [pool, swapData]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n\n if (amountIn != 0) {\n bentoBox.transfer(tokenIn, from, pool, amountIn);\n }\n \n IPool(pool).swap(swapData);\n }\n\n /// @notice UniswapV3 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bool zeroForOne = stream.readUint8() > 0;\n address recipient = stream.readAddress();\n\n if (from != address(this)) {\n require(from == msg.sender, 'swapUniV3: unexpected from address');\n IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\n }\n\n lastCalledPool = pool;\n IUniswapV3Pool(pool).swap(\n recipient,\n zeroForOne,\n int256(amountIn),\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\n abi.encode(tokenIn)\n );\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\n function uniswapV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n (address tokenIn) = abi.decode(data, (address));\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\n\n // Normally, RouteProcessor shouldn't have any liquidity on board\n // If some liquidity exists, it is sweept by the next user that makes swap through these tokens\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\n }\n\n}\n" + }, + "contracts/RouteProcessor3_2.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IUniswapV3Pool.sol';\nimport '../interfaces/ITridentCLPool.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport './InputStream.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\naddress constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\n\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\nuint160 constant MIN_SQRT_RATIO = 4295128739;\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Ilya Lyalin\n/// version 3.2\ncontract RouteProcessor3_2 is Ownable {\n using SafeERC20 for IERC20;\n using SafeERC20 for IERC20Permit;\n using InputStream for uint256;\n\n event Route(\n address indexed from, \n address to, \n address indexed tokenIn, \n address indexed tokenOut, \n uint amountIn, \n uint amountOutMin,\n uint amountOut\n );\n\n IBentoBoxMinimal public immutable bentoBox;\n mapping (address => bool) priviledgedUsers;\n address private lastCalledPool;\n\n uint8 private unlocked = 1;\n uint8 private paused = 1;\n modifier lock() {\n require(unlocked == 1, 'RouteProcessor is locked');\n require(paused == 1, 'RouteProcessor is paused');\n unlocked = 2;\n _;\n unlocked = 1;\n }\n\n modifier onlyOwnerOrPriviledgedUser() {\n require(msg.sender == owner() || priviledgedUsers[msg.sender] == true, \"RP: caller is not the owner or a priviledged user\");\n _;\n }\n\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n\n for (uint i = 0; i < priviledgedUserList.length; i++) {\n priviledgedUsers[priviledgedUserList[i]] = true;\n }\n }\n\n function setPriviledge(address user, bool priviledge) external onlyOwner {\n priviledgedUsers[user] = priviledge;\n }\n\n function pause() external onlyOwnerOrPriviledgedUser {\n paused = 2;\n }\n\n function resume() external onlyOwnerOrPriviledgedUser {\n paused = 1;\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n (bool success, bytes memory returnBytes) = transferValueTo.call{value: amountValueTransfer}('');\n require(success, string(abi.encodePacked(returnBytes)));\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 balanceInInitial = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n uint256 balanceOutInitial = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode == 1) processMyERC20(stream);\n else if (commandCode == 2) processUserERC20(stream, amountIn);\n else if (commandCode == 3) processNative(stream);\n else if (commandCode == 4) processOnePool(stream);\n else if (commandCode == 5) processInsideBento(stream);\n else if (commandCode == 6) applyPermit(tokenIn, stream);\n else revert('RouteProcessor: Unknown command code');\n }\n\n uint256 balanceInFinal = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n require(balanceInFinal + amountIn >= balanceInInitial, 'RouteProcessor: Minimal imput balance violation');\n\n uint256 balanceOutFinal = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n require(balanceOutFinal >= balanceOutInitial + amountOutMin, 'RouteProcessor: Minimal ouput balance violation');\n\n amountOut = balanceOutFinal - balanceOutInitial;\n\n emit Route(msg.sender, to, tokenIn, tokenOut, amountIn, amountOutMin, amountOut);\n }\n\n function applyPermit(address tokenIn, uint256 stream) private {\n //address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s)\n uint256 value = stream.readUint();\n uint256 deadline = stream.readUint();\n uint8 v = stream.readUint8();\n bytes32 r = stream.readBytes32();\n bytes32 s = stream.readBytes32();\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\n }\n\n /// @notice Processes native coin: call swap for all pools that swap from native coin\n /// @param stream Streamed process program\n function processNative(uint256 stream) private {\n uint256 amountTotal = address(this).balance;\n distributeAndSwap(stream, address(this), NATIVE_ADDRESS, amountTotal);\n }\n\n /// @notice Processes ERC20 token from this contract balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processMyERC20(uint256 stream) private {\n address token = stream.readAddress();\n uint256 amountTotal = IERC20(token).balanceOf(address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n \n /// @notice Processes ERC20 token from msg.sender balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n /// @param amountTotal Amount of tokens to take from msg.sender\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\n address token = stream.readAddress();\n distributeAndSwap(stream, msg.sender, token, amountTotal);\n }\n\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountTotal Total amount of tokenIn for swaps \n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\n uint8 num = stream.readUint8();\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, from, tokenIn, amount);\n }\n }\n }\n\n /// @notice Processes ERC20 token for cases when the token has only one output pool\n /// @notice In this case liquidity is already at pool balance. This is an optimization\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processOnePool(uint256 stream) private {\n address token = stream.readAddress();\n swap(stream, address(this), token, 0);\n }\n\n /// @notice Processes Bento tokens \n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processInsideBento(uint256 stream) private {\n address token = stream.readAddress();\n uint8 num = stream.readUint8();\n\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, address(this), token, amount);\n }\n }\n }\n\n /// @notice Makes swap\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 poolType = stream.readUint8();\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\n else revert('RouteProcessor: Unknown pool type');\n }\n\n /// @notice Wraps/unwraps native token\n /// @param stream [direction & fake, recipient, wrapToken?]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 directionAndFake = stream.readUint8();\n address to = stream.readAddress();\n\n if (directionAndFake & 1 == 1) { // wrap native\n address wrapToken = stream.readAddress();\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\n } else { // unwrap native\n if (directionAndFake & 2 == 0) {\n if (from != address(this)) IERC20(tokenIn).safeTransferFrom(from, address(this), amountIn);\n IWETH(tokenIn).withdraw(amountIn);\n }\n payable(to).transfer(address(this).balance);\n }\n }\n\n /// @notice Bridge/unbridge tokens to/from Bento\n /// @param stream [direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (direction > 0) { // outside to Bento\n // deposit to arbitrary recipient is possible only from address(bentoBox)\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, address(bentoBox), amountIn);\n } else {\n // tokens already are at address(bentoBox)\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(tokenIn).balance -\n bentoBox.totals(tokenIn).elastic;\n }\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\n } else { // Bento to outside\n if (amountIn > 0) {\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\n }\n }\n\n /// @notice UniswapV2 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, pool, amountIn);\n }\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\n\n uint256 amountInWithFee = amountIn * 997;\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Trident pool swap\n /// @param stream [pool, swapData]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n\n if (amountIn != 0) {\n bentoBox.transfer(tokenIn, from, pool, amountIn);\n }\n \n IPool(pool).swap(swapData);\n }\n\n /// @notice UniswapV3 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bool zeroForOne = stream.readUint8() > 0;\n address recipient = stream.readAddress();\n\n if (from != address(this)) {\n require(from == msg.sender, 'swapUniV3: unexpected from address');\n IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\n }\n\n lastCalledPool = pool;\n IUniswapV3Pool(pool).swap(\n recipient,\n zeroForOne,\n int256(amountIn),\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\n abi.encode(tokenIn)\n );\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\n function uniswapV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n (address tokenIn) = abi.decode(data, (address));\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\n\n // Normally, RouteProcessor shouldn't have any liquidity on board\n // If some liquidity exists, it is sweept by the next user that makes swap through these tokens\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\n }\n\n}\n" + }, + "contracts/RouteProcessor3.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IUniswapV3Pool.sol';\nimport '../interfaces/ITridentCLPool.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport './InputStream.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\naddress constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\n\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\nuint160 constant MIN_SQRT_RATIO = 4295128739;\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Ilya Lyalin\n/// version 2.1\ncontract RouteProcessor3 is Ownable {\n using SafeERC20 for IERC20;\n using SafeERC20 for IERC20Permit;\n using InputStream for uint256;\n\n event Route(\n address indexed from, \n address to, \n address indexed tokenIn, \n address indexed tokenOut, \n uint amountIn, \n uint amountOutMin,\n uint amountOut\n );\n\n IBentoBoxMinimal public immutable bentoBox;\n mapping (address => bool) priviledgedUsers;\n address private lastCalledPool;\n\n uint8 private unlocked = 1;\n uint8 private paused = 1;\n modifier lock() {\n require(unlocked == 1, 'RouteProcessor is locked');\n require(paused == 1, 'RouteProcessor is paused');\n unlocked = 2;\n _;\n unlocked = 1;\n }\n\n modifier onlyOwnerOrPriviledgedUser() {\n require(msg.sender == owner() || priviledgedUsers[msg.sender] == true, \"RP: caller is not the owner or a priviledged user\");\n _;\n }\n\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n\n for (uint i = 0; i < priviledgedUserList.length; i++) {\n priviledgedUsers[priviledgedUserList[i]] = true;\n }\n }\n\n function setPriviledge(address user, bool priviledge) external onlyOwner {\n priviledgedUsers[user] = priviledge;\n }\n\n function pause() external onlyOwnerOrPriviledgedUser {\n paused = 2;\n }\n\n function resume() external onlyOwnerOrPriviledgedUser {\n paused = 1;\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n (bool success, bytes memory returnBytes) = transferValueTo.call{value: amountValueTransfer}('');\n require(success, string(abi.encodePacked(returnBytes)));\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 balanceInInitial = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n uint256 balanceOutInitial = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode == 1) processMyERC20(stream);\n else if (commandCode == 2) processUserERC20(stream, amountIn);\n else if (commandCode == 3) processNative(stream);\n else if (commandCode == 4) processOnePool(stream);\n else if (commandCode == 5) processInsideBento(stream);\n else if (commandCode == 6) applyPermit(tokenIn, stream);\n else revert('RouteProcessor: Unknown command code');\n }\n\n uint256 balanceInFinal = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n require(balanceInFinal + amountIn >= balanceInInitial, 'RouteProcessor: Minimal imput balance violation');\n\n uint256 balanceOutFinal = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n require(balanceOutFinal >= balanceOutInitial + amountOutMin, 'RouteProcessor: Minimal ouput balance violation');\n\n amountOut = balanceOutFinal - balanceOutInitial;\n\n emit Route(msg.sender, to, tokenIn, tokenOut, amountIn, amountOutMin, amountOut);\n }\n\n function applyPermit(address tokenIn, uint256 stream) private {\n //address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s)\n uint256 value = stream.readUint();\n uint256 deadline = stream.readUint();\n uint8 v = stream.readUint8();\n bytes32 r = stream.readBytes32();\n bytes32 s = stream.readBytes32();\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\n }\n\n /// @notice Processes native coin: call swap for all pools that swap from native coin\n /// @param stream Streamed process program\n function processNative(uint256 stream) private {\n uint256 amountTotal = address(this).balance;\n distributeAndSwap(stream, address(this), NATIVE_ADDRESS, amountTotal);\n }\n\n /// @notice Processes ERC20 token from this contract balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processMyERC20(uint256 stream) private {\n address token = stream.readAddress();\n uint256 amountTotal = IERC20(token).balanceOf(address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n \n /// @notice Processes ERC20 token from msg.sender balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n /// @param amountTotal Amount of tokens to take from msg.sender\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\n address token = stream.readAddress();\n distributeAndSwap(stream, msg.sender, token, amountTotal);\n }\n\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountTotal Total amount of tokenIn for swaps \n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\n uint8 num = stream.readUint8();\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, from, tokenIn, amount);\n }\n }\n }\n\n /// @notice Processes ERC20 token for cases when the token has only one output pool\n /// @notice In this case liquidity is already at pool balance. This is an optimization\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processOnePool(uint256 stream) private {\n address token = stream.readAddress();\n swap(stream, address(this), token, 0);\n }\n\n /// @notice Processes Bento tokens \n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processInsideBento(uint256 stream) private {\n address token = stream.readAddress();\n uint8 num = stream.readUint8();\n\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, address(this), token, amount);\n }\n }\n }\n\n /// @notice Makes swap\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 poolType = stream.readUint8();\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\n else revert('RouteProcessor: Unknown pool type');\n }\n\n /// @notice Wraps/unwraps native token\n /// @param stream [direction & fake, recipient, wrapToken?]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 directionAndFake = stream.readUint8();\n address to = stream.readAddress();\n\n if (directionAndFake & 1 == 1) { // wrap native\n address wrapToken = stream.readAddress();\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\n } else { // unwrap native\n if (directionAndFake & 2 == 0) {\n if (from != address(this)) IERC20(tokenIn).safeTransferFrom(from, address(this), amountIn);\n IWETH(tokenIn).withdraw(amountIn);\n }\n payable(to).transfer(address(this).balance);\n }\n }\n\n /// @notice Bridge/unbridge tokens to/from Bento\n /// @param stream [direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (direction > 0) { // outside to Bento\n // deposit to arbitrary recipient is possible only from address(bentoBox)\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, address(bentoBox), amountIn);\n } else {\n // tokens already are at address(bentoBox)\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(tokenIn).balance -\n bentoBox.totals(tokenIn).elastic;\n }\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\n } else { // Bento to outside\n if (amountIn > 0) {\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\n }\n }\n\n /// @notice UniswapV2 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, pool, amountIn);\n } else amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\n\n uint256 amountInWithFee = amountIn * 997;\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Trident pool swap\n /// @param stream [pool, swapData]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n\n if (amountIn != 0) {\n bentoBox.transfer(tokenIn, from, pool, amountIn);\n }\n \n IPool(pool).swap(swapData);\n }\n\n /// @notice UniswapV3 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bool zeroForOne = stream.readUint8() > 0;\n address recipient = stream.readAddress();\n\n if (from != address(this)) {\n require(from == msg.sender, 'swapUniV3: unexpected from address');\n IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\n }\n\n lastCalledPool = pool;\n IUniswapV3Pool(pool).swap(\n recipient,\n zeroForOne,\n int256(amountIn),\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\n abi.encode(tokenIn)\n );\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\n function uniswapV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n (address tokenIn) = abi.decode(data, (address));\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\n\n // Normally, RouteProcessor shouldn't have any liquidity on board\n // If some liquidity exists, it is sweept by the next user that makes swap through these tokens\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\n }\n\n}\n" + }, + "contracts/RouteProcessor4.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IUniswapV3Pool.sol';\nimport '../interfaces/ITridentCLPool.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport '../interfaces/ICurve.sol';\nimport './InputStream.sol';\nimport './Approve.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\naddress constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\naddress constant INTERNAL_INPUT_SOURCE = 0x0000000000000000000000000000000000000000;\n\nuint8 constant LOCKED = 2;\nuint8 constant NOT_LOCKED = 1;\nuint8 constant PAUSED = 2;\nuint8 constant NOT_PAUSED = 1;\n\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\nuint160 constant MIN_SQRT_RATIO = 4295128739;\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Ilya Lyalin\ncontract RouteProcessor4 is Ownable {\n using SafeERC20 for IERC20;\n using Approve for IERC20;\n using SafeERC20 for IERC20Permit;\n using InputStream for uint256;\n\n event Route(\n address indexed from, \n address to, \n address indexed tokenIn, \n address indexed tokenOut, \n uint256 amountIn, \n uint256 amountOutMin,\n uint256 amountOut\n );\n\n error MinimalOutputBalanceViolation(uint256 amountOut);\n\n IBentoBoxMinimal public immutable bentoBox;\n mapping (address => bool) public priviledgedUsers;\n address private lastCalledPool;\n\n uint8 private unlocked = NOT_LOCKED;\n uint8 private paused = NOT_PAUSED;\n modifier lock() {\n require(unlocked == NOT_LOCKED, 'RouteProcessor is locked');\n require(paused == NOT_PAUSED, 'RouteProcessor is paused');\n unlocked = LOCKED;\n _;\n unlocked = NOT_LOCKED;\n }\n\n modifier onlyOwnerOrPriviledgedUser() {\n require(msg.sender == owner() || priviledgedUsers[msg.sender], \"RP: caller is not the owner or a privileged user\");\n _;\n }\n\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n\n for (uint256 i = 0; i < priviledgedUserList.length; i++) {\n priviledgedUsers[priviledgedUserList[i]] = true;\n }\n }\n\n function setPriviledge(address user, bool priviledge) external onlyOwner {\n priviledgedUsers[user] = priviledge;\n }\n\n function pause() external onlyOwnerOrPriviledgedUser {\n paused = PAUSED;\n }\n\n function resume() external onlyOwnerOrPriviledgedUser {\n paused = NOT_PAUSED;\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n (bool success, bytes memory returnBytes) = transferValueTo.call{value: amountValueTransfer}('');\n if (!success) {\n assembly {\n revert(add(32, returnBytes), mload(returnBytes))\n }\n }\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 balanceInInitial = tokenIn == NATIVE_ADDRESS ? 0 : IERC20(tokenIn).balanceOf(msg.sender);\n uint256 balanceOutInitial = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n\n uint256 realAmountIn = amountIn;\n {\n uint256 step = 0;\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode == 1) {\n uint256 usedAmount = processMyERC20(stream); \n if (step == 0) realAmountIn = usedAmount;\n } \n else if (commandCode == 2) processUserERC20(stream, amountIn);\n else if (commandCode == 3) {\n uint256 usedAmount = processNative(stream); \n if (step == 0) realAmountIn = usedAmount;\n } \n else if (commandCode == 4) processOnePool(stream);\n else if (commandCode == 5) processInsideBento(stream);\n else if (commandCode == 6) applyPermit(tokenIn, stream);\n else revert('RouteProcessor: Unknown command code');\n ++step;\n }\n }\n\n uint256 balanceInFinal = tokenIn == NATIVE_ADDRESS ? 0 : IERC20(tokenIn).balanceOf(msg.sender);\n require(balanceInFinal + amountIn >= balanceInInitial, 'RouteProcessor: Minimal input balance violation');\n \n uint256 balanceOutFinal = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n if (balanceOutFinal < balanceOutInitial + amountOutMin)\n revert MinimalOutputBalanceViolation(balanceOutFinal - balanceOutInitial);\n\n amountOut = balanceOutFinal - balanceOutInitial;\n\n emit Route(msg.sender, to, tokenIn, tokenOut, realAmountIn, amountOutMin, amountOut);\n }\n\n /// @notice Applies ERC-2612 permit\n /// @param tokenIn permitted token\n /// @param stream Streamed program\n function applyPermit(address tokenIn, uint256 stream) private {\n uint256 value = stream.readUint();\n uint256 deadline = stream.readUint();\n uint8 v = stream.readUint8();\n bytes32 r = stream.readBytes32();\n bytes32 s = stream.readBytes32();\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\n }\n\n /// @notice Processes native coin: call swap for all pools that swap from native coin\n /// @param stream Streamed program\n function processNative(uint256 stream) private returns (uint256 amountTotal) {\n amountTotal = address(this).balance;\n distributeAndSwap(stream, address(this), NATIVE_ADDRESS, amountTotal);\n }\n\n /// @notice Processes ERC20 token from this contract balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processMyERC20(uint256 stream) private returns (uint256 amountTotal) {\n address token = stream.readAddress();\n amountTotal = IERC20(token).balanceOf(address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n \n /// @notice Processes ERC20 token from msg.sender balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n /// @param amountTotal Amount of tokens to take from msg.sender\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\n address token = stream.readAddress();\n distributeAndSwap(stream, msg.sender, token, amountTotal);\n }\n\n /// @notice Processes ERC20 token for cases when the token has only one output pool\n /// @notice In this case liquidity is already at pool balance. This is an optimization\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processOnePool(uint256 stream) private {\n address token = stream.readAddress();\n swap(stream, INTERNAL_INPUT_SOURCE, token, 0);\n }\n\n /// @notice Processes Bento tokens \n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processInsideBento(uint256 stream) private {\n address token = stream.readAddress();\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\n /// @param stream Streamed program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountTotal Total amount of tokenIn for swaps \n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\n uint8 num = stream.readUint8();\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / type(uint16).max /*65535*/;\n amountTotal -= amount;\n swap(stream, from, tokenIn, amount);\n }\n }\n }\n\n /// @notice Makes swap\n /// @param stream Streamed program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 poolType = stream.readUint8();\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\n else if (poolType == 5) swapCurve(stream, from, tokenIn, amountIn);\n else revert('RouteProcessor: Unknown pool type');\n }\n\n /// @notice Wraps/unwraps native token\n /// @param stream [direction & fake, recipient, wrapToken?]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 directionAndFake = stream.readUint8();\n address to = stream.readAddress();\n\n if (directionAndFake & 1 == 1) { // wrap native\n address wrapToken = stream.readAddress();\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\n } else { // unwrap native\n if (directionAndFake & 2 == 0) {\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\n IWETH(tokenIn).withdraw(amountIn);\n }\n (bool success,)= payable(to).call{value: amountIn}(\"\");\n require(success, \"RouteProcessor.wrapNative: Native token transfer failed\");\n }\n }\n\n /// @notice Bridge/unbridge tokens to/from Bento\n /// @param stream [direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (direction > 0) { // outside to Bento\n // deposit to arbitrary recipient is possible only from address(bentoBox)\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(bentoBox), amountIn);\n else {\n // tokens already are at address(bentoBox)\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(tokenIn).balance -\n bentoBox.totals(tokenIn).elastic;\n }\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\n } else { // Bento to outside\n if (from != INTERNAL_INPUT_SOURCE) {\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\n }\n }\n\n /// @notice UniswapV2 pool swap\n /// @param stream [pool, direction, recipient, fee]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n uint24 fee = stream.readUint24(); // pool fee in 1/1_000_000\n\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, pool, amountIn);\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\n\n uint256 amountInWithFee = amountIn * (1_000_000 - fee);\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1_000_000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Trident pool swap\n /// @param stream [pool, swapData]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n\n if (from != INTERNAL_INPUT_SOURCE) {\n bentoBox.transfer(tokenIn, from, pool, amountIn);\n }\n \n IPool(pool).swap(swapData);\n }\n\n /// @notice UniswapV3 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bool zeroForOne = stream.readUint8() > 0;\n address recipient = stream.readAddress();\n\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\n\n lastCalledPool = pool;\n IUniswapV3Pool(pool).swap(\n recipient,\n zeroForOne,\n int256(amountIn),\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\n abi.encode(tokenIn)\n );\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\n function uniswapV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) public {\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\n \n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n (address tokenIn) = abi.decode(data, (address));\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IAlgebraPool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IAlgebraPoolActions#swap call\n function algebraSwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\n }\n\n /// @notice Called to `msg.sender` after executing a swap via PancakeV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the PancakeV3Pool#swap call\n function pancakeV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\n }\n\n /// @notice Curve pool swap. Legacy pools that don't return amountOut and have native coins are not supported\n /// @param stream [pool, poolType, fromIndex, toIndex, recipient, output token]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapCurve(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 poolType = stream.readUint8();\n int128 fromIndex = int8(stream.readUint8());\n int128 toIndex = int8(stream.readUint8());\n address to = stream.readAddress();\n address tokenOut = stream.readAddress();\n\n uint256 amountOut;\n if (tokenIn == NATIVE_ADDRESS) {\n amountOut = ICurve(pool).exchange{value: amountIn}(fromIndex, toIndex, amountIn, 0);\n } else {\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\n IERC20(tokenIn).approveSafe(pool, amountIn);\n if (poolType == 0) amountOut = ICurve(pool).exchange(fromIndex, toIndex, amountIn, 0);\n else {\n uint256 balanceBefore = IERC20(tokenOut).balanceOf(address(this));\n ICurveLegacy(pool).exchange(fromIndex, toIndex, amountIn, 0);\n uint256 balanceAfter = IERC20(tokenOut).balanceOf(address(this));\n amountOut = balanceAfter - balanceBefore;\n }\n }\n\n if (to != address(this)) { \n if(tokenOut == NATIVE_ADDRESS) {\n (bool success,)= payable(to).call{value: amountOut}(\"\");\n require(success, \"RouteProcessor.swapCurve: Native token transfer failed\");\n } else {\n IERC20(tokenOut).safeTransfer(to, amountOut);\n }\n }\n }\n}\n" + }, + "contracts/RouteProcessor5.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IUniswapV3Pool.sol';\nimport '../interfaces/ITridentCLPool.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport '../interfaces/ICurve.sol';\nimport './InputStream.sol';\nimport './Utils.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\naddress constant INTERNAL_INPUT_SOURCE = 0x0000000000000000000000000000000000000000;\n\nuint8 constant LOCKED = 2;\nuint8 constant NOT_LOCKED = 1;\nuint8 constant PAUSED = 2;\nuint8 constant NOT_PAUSED = 1;\n\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\nuint160 constant MIN_SQRT_RATIO = 4295128739;\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Ilya Lyalin\ncontract RouteProcessor5 is Ownable {\n using SafeERC20 for IERC20;\n using Utils for IERC20;\n using Utils for address;\n using SafeERC20 for IERC20Permit;\n using InputStream for uint256;\n\n event Route(\n address indexed from, \n address to, \n address indexed tokenIn, \n address indexed tokenOut, \n uint256 amountIn, \n uint256 amountOutMin,\n uint256 amountOut\n );\n\n error MinimalOutputBalanceViolation(uint256 amountOut);\n\n IBentoBoxMinimal public immutable bentoBox;\n mapping (address => bool) public priviledgedUsers;\n address private lastCalledPool;\n\n uint8 private unlocked = NOT_LOCKED;\n uint8 private paused = NOT_PAUSED;\n modifier lock() {\n require(unlocked == NOT_LOCKED, 'RouteProcessor is locked');\n require(paused == NOT_PAUSED, 'RouteProcessor is paused');\n unlocked = LOCKED;\n _;\n unlocked = NOT_LOCKED;\n }\n\n modifier onlyOwnerOrPriviledgedUser() {\n require(msg.sender == owner() || priviledgedUsers[msg.sender], \"RP: caller is not the owner or a privileged user\");\n _;\n }\n\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n\n for (uint256 i = 0; i < priviledgedUserList.length; i++) {\n priviledgedUsers[priviledgedUserList[i]] = true;\n }\n }\n\n function setPriviledge(address user, bool priviledge) external onlyOwner {\n priviledgedUsers[user] = priviledge;\n }\n\n function pause() external onlyOwnerOrPriviledgedUser {\n paused = PAUSED;\n }\n\n function resume() external onlyOwnerOrPriviledgedUser {\n paused = NOT_PAUSED;\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @param to Where to transfer output tokens\n /// @param route Route to process\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n transferValueTo.transferNative(amountValueTransfer);\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value of input tokens to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteWithTransferValueInput(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n tokenIn.transferAnyFromSender(transferValueTo, amountValueTransfer);\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n \n /// @notice processes the route and sends amount of output token to \n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteWithTransferValueOutput(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n amountOut = processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, address(this), route);\n tokenOut.transferAny(transferValueTo, amountValueTransfer);\n tokenOut.transferAny(to, amountOut - amountValueTransfer);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 balanceInInitial = tokenIn.anyBalanceOf(msg.sender);\n uint256 balanceOutInitial = tokenOut.anyBalanceOf(to);\n\n uint256 realAmountIn = amountIn;\n {\n uint256 step = 0;\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode == 1) {\n uint256 usedAmount = processMyERC20(stream); \n if (step == 0) realAmountIn = usedAmount;\n } \n else if (commandCode == 2) processUserERC20(stream, amountIn);\n else if (commandCode == 3) {\n uint256 usedAmount = processNative(stream); \n if (step == 0) realAmountIn = usedAmount;\n } \n else if (commandCode == 4) processOnePool(stream);\n else if (commandCode == 5) processInsideBento(stream);\n else if (commandCode == 6) applyPermit(tokenIn, stream);\n else revert('RouteProcessor: Unknown command code');\n ++step;\n }\n }\n\n uint256 balanceInFinal = tokenIn.anyBalanceOf(msg.sender);\n if (tokenIn != Utils.NATIVE_ADDRESS)\n require(balanceInFinal + amountIn + 10 >= balanceInInitial, 'RouteProcessor: Minimal input balance violation');\n \n uint256 balanceOutFinal = tokenOut.anyBalanceOf(to);\n if (balanceOutFinal < balanceOutInitial + amountOutMin)\n revert MinimalOutputBalanceViolation(balanceOutFinal - balanceOutInitial);\n\n amountOut = balanceOutFinal - balanceOutInitial;\n\n emit Route(msg.sender, to, tokenIn, tokenOut, realAmountIn, amountOutMin, amountOut);\n }\n\n /// @notice Applies ERC-2612 permit\n /// @param tokenIn permitted token\n /// @param stream Streamed program\n function applyPermit(address tokenIn, uint256 stream) private {\n uint256 value = stream.readUint();\n uint256 deadline = stream.readUint();\n uint8 v = stream.readUint8();\n bytes32 r = stream.readBytes32();\n bytes32 s = stream.readBytes32();\n if (IERC20(tokenIn).allowance(msg.sender, address(this)) < value) {\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\n }\n }\n\n /// @notice Processes native coin: call swap for all pools that swap from native coin\n /// @param stream Streamed program\n function processNative(uint256 stream) private returns (uint256 amountTotal) {\n amountTotal = address(this).balance;\n distributeAndSwap(stream, address(this), Utils.NATIVE_ADDRESS, amountTotal);\n }\n\n /// @notice Processes ERC20 token from this contract balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processMyERC20(uint256 stream) private returns (uint256 amountTotal) {\n address token = stream.readAddress();\n amountTotal = IERC20(token).balanceOf(address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n \n /// @notice Processes ERC20 token from msg.sender balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n /// @param amountTotal Amount of tokens to take from msg.sender\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\n address token = stream.readAddress();\n distributeAndSwap(stream, msg.sender, token, amountTotal);\n }\n\n /// @notice Processes ERC20 token for cases when the token has only one output pool\n /// @notice In this case liquidity is already at pool balance. This is an optimization\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processOnePool(uint256 stream) private {\n address token = stream.readAddress();\n swap(stream, INTERNAL_INPUT_SOURCE, token, 0);\n }\n\n /// @notice Processes Bento tokens \n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processInsideBento(uint256 stream) private {\n address token = stream.readAddress();\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\n /// @param stream Streamed program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountTotal Total amount of tokenIn for swaps \n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\n uint8 num = stream.readUint8();\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / type(uint16).max /*65535*/;\n amountTotal -= amount;\n swap(stream, from, tokenIn, amount);\n }\n }\n }\n\n /// @notice Makes swap\n /// @param stream Streamed program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 poolType = stream.readUint8();\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\n else if (poolType == 5) swapCurve(stream, from, tokenIn, amountIn);\n else revert('RouteProcessor: Unknown pool type');\n }\n\n /// @notice Wraps/unwraps native token\n /// @param stream [direction & fake, recipient, wrapToken?]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 directionAndFake = stream.readUint8();\n address to = stream.readAddress();\n\n if (directionAndFake & 1 == 1) { // wrap native\n address wrapToken = stream.readAddress();\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\n } else { // unwrap native\n if (directionAndFake & 2 == 0) {\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\n IWETH(tokenIn).withdraw(amountIn);\n }\n to.transferNative(amountIn);\n }\n }\n\n /// @notice Bridge/unbridge tokens to/from Bento\n /// @param stream [direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (direction > 0) { // outside to Bento\n // deposit to arbitrary recipient is possible only from address(bentoBox)\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(bentoBox), amountIn);\n else {\n // tokens already are at address(bentoBox)\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(tokenIn).balance -\n bentoBox.totals(tokenIn).elastic;\n }\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\n } else { // Bento to outside\n if (from != INTERNAL_INPUT_SOURCE) {\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\n }\n }\n\n /// @notice UniswapV2 pool swap\n /// @param stream [pool, direction, recipient, fee]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n uint24 fee = stream.readUint24(); // pool fee in 1/1_000_000\n\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, pool, amountIn);\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\n\n uint256 amountInWithFee = amountIn * (1_000_000 - fee);\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1_000_000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Trident pool swap\n /// @param stream [pool, swapData]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n\n if (from != INTERNAL_INPUT_SOURCE) {\n bentoBox.transfer(tokenIn, from, pool, amountIn);\n }\n \n IPool(pool).swap(swapData);\n }\n\n /// @notice UniswapV3 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bool zeroForOne = stream.readUint8() > 0;\n address recipient = stream.readAddress();\n\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\n\n lastCalledPool = pool;\n IUniswapV3Pool(pool).swap(\n recipient,\n zeroForOne,\n int256(amountIn),\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\n abi.encode(tokenIn)\n );\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\n function uniswapV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) public {\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\n \n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n (address tokenIn) = abi.decode(data, (address));\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IAlgebraPool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IAlgebraPoolActions#swap call\n function algebraSwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\n }\n\n /// @notice Called to `msg.sender` after executing a swap via PancakeV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the PancakeV3Pool#swap call\n function pancakeV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\n }\n\n /// @notice Curve pool swap. Legacy pools that don't return amountOut and have native coins are not supported\n /// @param stream [pool, poolType, fromIndex, toIndex, recipient, output token]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapCurve(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 poolType = stream.readUint8();\n int128 fromIndex = int8(stream.readUint8());\n int128 toIndex = int8(stream.readUint8());\n address to = stream.readAddress();\n address tokenOut = stream.readAddress();\n\n uint256 amountOut;\n if (tokenIn == Utils.NATIVE_ADDRESS) {\n amountOut = ICurve(pool).exchange{value: amountIn}(fromIndex, toIndex, amountIn, 0);\n } else {\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\n IERC20(tokenIn).approveSafe(pool, amountIn);\n if (poolType == 0) amountOut = ICurve(pool).exchange(fromIndex, toIndex, amountIn, 0);\n else {\n uint256 balanceBefore = tokenOut.anyBalanceOf(address(this));\n ICurveLegacy(pool).exchange(fromIndex, toIndex, amountIn, 0);\n uint256 balanceAfter = tokenOut.anyBalanceOf(address(this));\n amountOut = balanceAfter - balanceBefore;\n }\n }\n\n if (to != address(this)) tokenOut.transferAny(to, amountOut);\n }\n}\n" + }, + "contracts/Utils.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\n\nlibrary Utils {\n using SafeERC20 for IERC20;\n\n address constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n /**\n * @dev returns user's balance of token (or native)\n */\n function anyBalanceOf(address token, address user) internal view returns (uint256) {\n if (token == NATIVE_ADDRESS) return address(user).balance;\n else return IERC20(token).balanceOf(user);\n }\n\n /**\n * @dev transfers native with correct revert bubble up\n */\n function transferNative(address to, uint256 amount) internal {\n (bool success, bytes memory returnBytes) = to.call{value: amount}('');\n if (!success) {\n assembly {\n revert(add(32, returnBytes), mload(returnBytes))\n }\n }\n }\n\n /**\n * @dev transfers ERC20 or native\n */\n function transferAny(address token, address to, uint256 amount) internal {\n if (token == NATIVE_ADDRESS) transferNative(to, amount);\n else IERC20(token).safeTransfer(to, amount);\n }\n\n /**\n * @dev transfers from ERC20 or transfers native\n */\n function transferAnyFromSender(address token, address to, uint256 amount) internal {\n if (token == NATIVE_ADDRESS) transferNative(to, amount); // native liquidity is already on this contract\n else IERC20(token).safeTransferFrom(msg.sender, to, amount);\n }\n\n /**\n * @dev ERC20 approve that correct works with token.approve which returns bool or nothing (USDT for example)\n * @param token The token targeted by the call.\n * @param spender token spender\n * @param amount token amount\n */\n function approveStable(IERC20 token, address spender, uint256 amount) internal returns (bool) {\n (bool success, bytes memory data) = address(token).call(\n abi.encodeWithSelector(token.approve.selector, spender, amount)\n );\n return success && (data.length == 0 || abi.decode(data, (bool)));\n }\n\n /**\n * @dev ERC20 approve that correct works with token.approve which reverts if amount and \n * current allowance are not zero simultaniously (USDT for example). \n * In second case it tries to set allowance to 0, and then back to amount.\n * @param token The token targeted by the call.\n * @param spender token spender\n * @param amount token amount\n */\n function approveSafe(IERC20 token, address spender, uint256 amount) internal returns (bool) {\n return approveStable(token, spender, amount) \n || (approveStable(token, spender, 0) && approveStable(token, spender, amount));\n }\n}\n" + }, + "interfaces/IBentoBoxMinimal.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity >=0.8.0;\n\nstruct Rebase {\n uint128 elastic;\n uint128 base;\n}\n\nstruct StrategyData {\n uint64 strategyStartDate;\n uint64 targetPercentage;\n uint128 balance; // the balance of the strategy that BentoBox thinks is in there\n}\n\n/// @notice A rebasing library\nlibrary RebaseLibrary {\n /// @notice Calculates the base value in relationship to `elastic` and `total`.\n function toBase(Rebase memory total, uint256 elastic) internal pure returns (uint256 base) {\n if (total.elastic == 0) {\n base = elastic;\n } else {\n base = (elastic * total.base) / total.elastic;\n }\n }\n\n /// @notice Calculates the elastic value in relationship to `base` and `total`.\n function toElastic(Rebase memory total, uint256 base) internal pure returns (uint256 elastic) {\n if (total.base == 0) {\n elastic = base;\n } else {\n elastic = (base * total.elastic) / total.base;\n }\n }\n}\n\n/// @notice Minimal BentoBox vault interface.\n/// @dev `token` is aliased as `address` from `IERC20` for simplicity.\ninterface IBentoBoxMinimal {\n /// @notice Balance per ERC-20 token per account in shares.\n function balanceOf(address, address) external view returns (uint256);\n\n /// @dev Helper function to represent an `amount` of `token` in shares.\n /// @param token The ERC-20 token.\n /// @param amount The `token` amount.\n /// @param roundUp If the result `share` should be rounded up.\n /// @return share The token amount represented in shares.\n function toShare(\n address token,\n uint256 amount,\n bool roundUp\n ) external view returns (uint256 share);\n\n /// @dev Helper function to represent shares back into the `token` amount.\n /// @param token The ERC-20 token.\n /// @param share The amount of shares.\n /// @param roundUp If the result should be rounded up.\n /// @return amount The share amount back into native representation.\n function toAmount(\n address token,\n uint256 share,\n bool roundUp\n ) external view returns (uint256 amount);\n\n /// @notice Registers this contract so that users can approve it for BentoBox.\n function registerProtocol() external;\n\n /// @notice Deposit an amount of `token` represented in either `amount` or `share`.\n /// @param token The ERC-20 token to deposit.\n /// @param from which account to pull the tokens.\n /// @param to which account to push the tokens.\n /// @param amount Token amount in native representation to deposit.\n /// @param share Token amount represented in shares to deposit. Takes precedence over `amount`.\n /// @return amountOut The amount deposited.\n /// @return shareOut The deposited amount represented in shares.\n function deposit(\n address token,\n address from,\n address to,\n uint256 amount,\n uint256 share\n ) external payable returns (uint256 amountOut, uint256 shareOut);\n\n /// @notice Withdraws an amount of `token` from a user account.\n /// @param token_ The ERC-20 token to withdraw.\n /// @param from which user to pull the tokens.\n /// @param to which user to push the tokens.\n /// @param amount of tokens. Either one of `amount` or `share` needs to be supplied.\n /// @param share Like above, but `share` takes precedence over `amount`.\n function withdraw(\n address token_,\n address from,\n address to,\n uint256 amount,\n uint256 share\n ) external returns (uint256 amountOut, uint256 shareOut);\n\n /// @notice Transfer shares from a user account to another one.\n /// @param token The ERC-20 token to transfer.\n /// @param from which user to pull the tokens.\n /// @param to which user to push the tokens.\n /// @param share The amount of `token` in shares.\n function transfer(\n address token,\n address from,\n address to,\n uint256 share\n ) external;\n\n /// @dev Reads the Rebase `totals`from storage for a given token\n function totals(address token) external view returns (Rebase memory total);\n\n function strategyData(address token) external view returns (StrategyData memory total);\n\n /// @dev Approves users' BentoBox assets to a \"master\" contract.\n function setMasterContractApproval(\n address user,\n address masterContract,\n bool approved,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n function harvest(\n address token,\n bool balance,\n uint256 maxChangeAmount\n ) external;\n}\n" + }, + "interfaces/ICurve.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity >=0.8.0;\n\ninterface ICurve {\n function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) payable external returns (uint256);\n}\n\ninterface ICurveLegacy {\n function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) payable external;\n}\n\n" + }, + "interfaces/IPool.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity >=0.5.0;\npragma experimental ABIEncoderV2;\n\n/// @notice Trident pool interface.\ninterface IPool {\n /// @notice Executes a swap from one token to another.\n /// @dev The input tokens must've already been sent to the pool.\n /// @param data ABI-encoded params that the pool requires.\n /// @return finalAmountOut The amount of output tokens that were sent to the user.\n function swap(bytes calldata data) external returns (uint256 finalAmountOut);\n\n /// @notice Executes a swap from one token to another with a callback.\n /// @dev This function allows borrowing the output tokens and sending the input tokens in the callback.\n /// @param data ABI-encoded params that the pool requires.\n /// @return finalAmountOut The amount of output tokens that were sent to the user.\n function flashSwap(bytes calldata data) external returns (uint256 finalAmountOut);\n\n /// @notice Mints liquidity tokens.\n /// @param data ABI-encoded params that the pool requires.\n /// @return liquidity The amount of liquidity tokens that were minted for the user.\n function mint(bytes calldata data) external returns (uint256 liquidity);\n\n /// @notice Burns liquidity tokens.\n /// @dev The input LP tokens must've already been sent to the pool.\n /// @param data ABI-encoded params that the pool requires.\n /// @return withdrawnAmounts The amount of various output tokens that were sent to the user.\n function burn(bytes calldata data) external returns (TokenAmount[] memory withdrawnAmounts);\n\n /// @notice Burns liquidity tokens for a single output token.\n /// @dev The input LP tokens must've already been sent to the pool.\n /// @param data ABI-encoded params that the pool requires.\n /// @return amountOut The amount of output tokens that were sent to the user.\n function burnSingle(bytes calldata data) external returns (uint256 amountOut);\n\n /// @return A unique identifier for the pool type.\n function poolIdentifier() external pure returns (bytes32);\n\n /// @return An array of tokens supported by the pool.\n function getAssets() external view returns (address[] memory);\n\n /// @notice Simulates a trade and returns the expected output.\n /// @dev The pool does not need to include a trade simulator directly in itself - it can use a library.\n /// @param data ABI-encoded params that the pool requires.\n /// @return finalAmountOut The amount of output tokens that will be sent to the user if the trade is executed.\n function getAmountOut(bytes calldata data) external view returns (uint256 finalAmountOut);\n\n /// @notice Simulates a trade and returns the expected output.\n /// @dev The pool does not need to include a trade simulator directly in itself - it can use a library.\n /// @param data ABI-encoded params that the pool requires.\n /// @return finalAmountIn The amount of input tokens that are required from the user if the trade is executed.\n function getAmountIn(bytes calldata data) external view returns (uint256 finalAmountIn);\n\n /// @dev This event must be emitted on all swaps.\n event Swap(address indexed recipient, address indexed tokenIn, address indexed tokenOut, uint256 amountIn, uint256 amountOut);\n\n /// @dev This struct frames output tokens for burns.\n struct TokenAmount {\n address token;\n uint256 amount;\n }\n}\n" + }, + "interfaces/ITridentCLPool.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity 0.8.10;\n\ninterface ITridentCLPool {\n function token0() external returns (address);\n function token1() external returns (address);\n\n function swap(\n address recipient,\n bool zeroForOne,\n int256 amountSpecified,\n uint160 sqrtPriceLimitX96,\n bool unwrapBento,\n bytes calldata data\n ) external returns (int256 amount0, int256 amount1);\n}\n" + }, + "interfaces/IUniswapV2Pair.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity >=0.5.0;\n\ninterface IUniswapV2Pair {\n event Approval(address indexed owner, address indexed spender, uint value);\n event Transfer(address indexed from, address indexed to, uint value);\n\n function name() external pure returns (string memory);\n function symbol() external pure returns (string memory);\n function decimals() external pure returns (uint8);\n function totalSupply() external view returns (uint);\n function balanceOf(address owner) external view returns (uint);\n function allowance(address owner, address spender) external view returns (uint);\n\n function approve(address spender, uint value) external returns (bool);\n function transfer(address to, uint value) external returns (bool);\n function transferFrom(address from, address to, uint value) external returns (bool);\n\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n function PERMIT_TYPEHASH() external pure returns (bytes32);\n function nonces(address owner) external view returns (uint);\n\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\n\n event Mint(address indexed sender, uint amount0, uint amount1);\n event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);\n event Swap(\n address indexed sender,\n uint amount0In,\n uint amount1In,\n uint amount0Out,\n uint amount1Out,\n address indexed to\n );\n event Sync(uint112 reserve0, uint112 reserve1);\n\n function MINIMUM_LIQUIDITY() external pure returns (uint);\n function factory() external view returns (address);\n function token0() external view returns (address);\n function token1() external view returns (address);\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\n function price0CumulativeLast() external view returns (uint);\n function price1CumulativeLast() external view returns (uint);\n function kLast() external view returns (uint);\n\n function mint(address to) external returns (uint liquidity);\n function burn(address to) external returns (uint amount0, uint amount1);\n function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;\n function skim(address to) external;\n function sync() external;\n\n function initialize(address, address) external;\n}" + }, + "interfaces/IUniswapV3Pool.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity 0.8.10;\n\ninterface IUniswapV3Pool {\n function token0() external returns (address);\n function token1() external returns (address);\n\n function swap(\n address recipient,\n bool zeroForOne,\n int256 amountSpecified,\n uint160 sqrtPriceLimitX96,\n bytes calldata data\n ) external returns (int256 amount0, int256 amount1);\n}\n" + }, + "interfaces/IWETH.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity 0.8.10;\n\ninterface IWETH {\n function deposit() external payable;\n\n function transfer(address to, uint256 value) external returns (bool);\n\n function withdraw(uint256) external;\n}\n" + } + }, + "settings": { + "optimizer": { + "enabled": true, + "runs": 10000000 + }, + "outputSelection": { + "*": { + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata", + "devdoc", + "userdoc", + "storageLayout", + "evm.gasEstimates" + ], + "": [ + "ast" + ] + } + }, + "metadata": { + "useLiteralContent": true + } + } +} \ No newline at end of file diff --git a/protocols/route-processor/deployments/mode/.chainId b/protocols/route-processor/deployments/mode/.chainId new file mode 100644 index 0000000000..5c0370e441 --- /dev/null +++ b/protocols/route-processor/deployments/mode/.chainId @@ -0,0 +1 @@ +34443 \ No newline at end of file diff --git a/protocols/route-processor/deployments/mode/RouteProcessor5.json b/protocols/route-processor/deployments/mode/RouteProcessor5.json new file mode 100644 index 0000000000..8d81e1863a --- /dev/null +++ b/protocols/route-processor/deployments/mode/RouteProcessor5.json @@ -0,0 +1,704 @@ +{ + "address": "0xf2614A233c7C3e7f08b1F887Ba133a13f1eb2c55", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_bentoBox", + "type": "address" + }, + { + "internalType": "address[]", + "name": "priviledgedUserList", + "type": "address[]" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "name": "MinimalOutputBalanceViolation", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "name": "Route", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "int256", + "name": "amount0Delta", + "type": "int256" + }, + { + "internalType": "int256", + "name": "amount1Delta", + "type": "int256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "algebraSwapCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "bentoBox", + "outputs": [ + { + "internalType": "contract IBentoBoxMinimal", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int256", + "name": "amount0Delta", + "type": "int256" + }, + { + "internalType": "int256", + "name": "amount1Delta", + "type": "int256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "pancakeV3SwapCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "pause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "priviledgedUsers", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes", + "name": "route", + "type": "bytes" + } + ], + "name": "processRoute", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "transferValueTo", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountValueTransfer", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes", + "name": "route", + "type": "bytes" + } + ], + "name": "processRouteWithTransferValueInput", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "transferValueTo", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountValueTransfer", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes", + "name": "route", + "type": "bytes" + } + ], + "name": "processRouteWithTransferValueOutput", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "resume", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "internalType": "bool", + "name": "priviledge", + "type": "bool" + } + ], + "name": "setPriviledge", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transferValueTo", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountValueTransfer", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes", + "name": "route", + "type": "bytes" + } + ], + "name": "transferValueAndprocessRoute", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int256", + "name": "amount0Delta", + "type": "int256" + }, + { + "internalType": "int256", + "name": "amount1Delta", + "type": "int256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "uniswapV3SwapCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } + ], + "transactionHash": "0x45614efb2dd52fff0f8fcc6f5d31f3aa4757ee617a39aa7db6848bec5df57055", + "receipt": { + "to": null, + "from": "0x282607716D9B4fDD0B094d5864fac56313f5e665", + "contractAddress": "0xf2614A233c7C3e7f08b1F887Ba133a13f1eb2c55", + "transactionIndex": 3, + "gasUsed": "3489875", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000020000000000000000000000000000000000000001000000000000000000000000000000000000000000040000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000020000000000000040000000000000000000000000000000000000000000000000000", + "blockHash": "0x40ea687b10458466e7b6e333dc496d6218ce762c3dbe01443c0bfd78a33bd698", + "transactionHash": "0x45614efb2dd52fff0f8fcc6f5d31f3aa4757ee617a39aa7db6848bec5df57055", + "logs": [ + { + "transactionIndex": 3, + "blockNumber": 12913931, + "transactionHash": "0x45614efb2dd52fff0f8fcc6f5d31f3aa4757ee617a39aa7db6848bec5df57055", + "address": "0xf2614A233c7C3e7f08b1F887Ba133a13f1eb2c55", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000282607716d9b4fdd0b094d5864fac56313f5e665" + ], + "data": "0x", + "logIndex": 8, + "blockHash": "0x40ea687b10458466e7b6e333dc496d6218ce762c3dbe01443c0bfd78a33bd698" + } + ], + "blockNumber": 12913931, + "cumulativeGasUsed": "3826935", + "status": 1, + "byzantium": true + }, + "args": [ + "0x0000000000000000000000000000000000000000", + [] + ], + "numDeployments": 1, + "solcInputHash": "9252879aaeb02fabe759ce8768addec4", + "metadata": "{\"compiler\":{\"version\":\"0.8.10+commit.fc410830\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_bentoBox\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"priviledgedUserList\",\"type\":\"address[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"MinimalOutputBalanceViolation\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"Route\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"algebraSwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bentoBox\",\"outputs\":[{\"internalType\":\"contract IBentoBoxMinimal\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"pancakeV3SwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"priviledgedUsers\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"route\",\"type\":\"bytes\"}],\"name\":\"processRoute\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"transferValueTo\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountValueTransfer\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"route\",\"type\":\"bytes\"}],\"name\":\"processRouteWithTransferValueInput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"transferValueTo\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountValueTransfer\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"route\",\"type\":\"bytes\"}],\"name\":\"processRouteWithTransferValueOutput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"resume\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"priviledge\",\"type\":\"bool\"}],\"name\":\"setPriviledge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"transferValueTo\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountValueTransfer\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"route\",\"type\":\"bytes\"}],\"name\":\"transferValueAndprocessRoute\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"uniswapV3SwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"author\":\"Ilya Lyalin\",\"kind\":\"dev\",\"methods\":{\"algebraSwapCallback(int256,int256,bytes)\":{\"details\":\"In the implementation you must pay the pool tokens owed for the swap. The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory. amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\",\"params\":{\"amount0Delta\":\"The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.\",\"amount1Delta\":\"The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.\",\"data\":\"Any data passed through by the caller via the IAlgebraPoolActions#swap call\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pancakeV3SwapCallback(int256,int256,bytes)\":{\"details\":\"In the implementation you must pay the pool tokens owed for the swap.\",\"params\":{\"amount0Delta\":\"The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.\",\"amount1Delta\":\"The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.\",\"data\":\"Any data passed through by the caller via the PancakeV3Pool#swap call\"}},\"processRoute(address,uint256,address,uint256,address,bytes)\":{\"params\":{\"amountIn\":\"Amount of the input token\",\"amountOutMin\":\"Minimum amount of the output token\",\"route\":\"Route to process\",\"to\":\"Where to transfer output tokens\",\"tokenIn\":\"Address of the input token\",\"tokenOut\":\"Address of the output token\"},\"returns\":{\"amountOut\":\"Actual amount of the output token\"}},\"processRouteWithTransferValueInput(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"params\":{\"amountIn\":\"Amount of the input token\",\"amountOutMin\":\"Minimum amount of the output token\",\"amountValueTransfer\":\"How much value to transfer\",\"tokenIn\":\"Address of the input token\",\"tokenOut\":\"Address of the output token\",\"transferValueTo\":\"Address where the value should be transferred\"},\"returns\":{\"amountOut\":\"Actual amount of the output token\"}},\"processRouteWithTransferValueOutput(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"params\":{\"amountIn\":\"Amount of the input token\",\"amountOutMin\":\"Minimum amount of the output token\",\"amountValueTransfer\":\"How much value to transfer\",\"tokenIn\":\"Address of the input token\",\"tokenOut\":\"Address of the output token\",\"transferValueTo\":\"Address where the value should be transferred\"},\"returns\":{\"amountOut\":\"Actual amount of the output token\"}},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"},\"transferValueAndprocessRoute(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"params\":{\"amountIn\":\"Amount of the input token\",\"amountOutMin\":\"Minimum amount of the output token\",\"amountValueTransfer\":\"How much value to transfer\",\"tokenIn\":\"Address of the input token\",\"tokenOut\":\"Address of the output token\",\"transferValueTo\":\"Address where the value should be transferred\"},\"returns\":{\"amountOut\":\"Actual amount of the output token\"}},\"uniswapV3SwapCallback(int256,int256,bytes)\":{\"details\":\"In the implementation you must pay the pool tokens owed for the swap. The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory. amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\",\"params\":{\"amount0Delta\":\"The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.\",\"amount1Delta\":\"The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.\",\"data\":\"Any data passed through by the caller via the IUniswapV3PoolActions#swap call\"}}},\"title\":\"A route processor for the Sushi Aggregator\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"algebraSwapCallback(int256,int256,bytes)\":{\"notice\":\"Called to `msg.sender` after executing a swap via IAlgebraPool#swap.\"},\"pancakeV3SwapCallback(int256,int256,bytes)\":{\"notice\":\"Called to `msg.sender` after executing a swap via PancakeV3Pool#swap.\"},\"processRoute(address,uint256,address,uint256,address,bytes)\":{\"notice\":\"Processes the route generated off-chain. Has a lock\"},\"processRouteWithTransferValueInput(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"notice\":\"Transfers some value of input tokens to and then processes the route\"},\"processRouteWithTransferValueOutput(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"notice\":\"processes the route and sends amount of output token to \"},\"transferValueAndprocessRoute(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"notice\":\"Transfers some value to and then processes the route\"},\"uniswapV3SwapCallback(int256,int256,bytes)\":{\"notice\":\"Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/RouteProcessor5.sol\":\"RouteProcessor5\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":10000000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x9750c6b834f7b43000631af5cc30001c5f547b3ceb3635488f140f60e897ea6b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\\n *\\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\\n * need to send a transaction, and thus is not required to hold Ether at all.\\n */\\ninterface IERC20Permit {\\n /**\\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\\n * given ``owner``'s signed approval.\\n *\\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\\n * ordering also apply here.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `deadline` must be a timestamp in the future.\\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\\n * over the EIP712-formatted function arguments.\\n * - the signature must use ``owner``'s current nonce (see {nonces}).\\n *\\n * For more information on the signature format, see the\\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\\n * section].\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n /**\\n * @dev Returns the current nonce for `owner`. This value must be\\n * included whenever a signature is generated for {permit}.\\n *\\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\\n * prevents a signature from being used multiple times.\\n */\\n function nonces(address owner) external view returns (uint256);\\n\\n /**\\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\\n */\\n // solhint-disable-next-line func-name-mixedcase\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0xf41ca991f30855bf80ffd11e9347856a517b977f0a6c2d52e6421a99b7840329\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\nimport \\\"../extensions/draft-IERC20Permit.sol\\\";\\nimport \\\"../../../utils/Address.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20 {\\n using Address for address;\\n\\n function safeTransfer(\\n IERC20 token,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(\\n IERC20 token,\\n address from,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n function safeIncreaseAllowance(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n uint256 newAllowance = token.allowance(address(this), spender) + value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n function safeDecreaseAllowance(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n uint256 newAllowance = oldAllowance - value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n }\\n\\n function safePermit(\\n IERC20Permit token,\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n uint256 nonceBefore = token.nonces(owner);\\n token.permit(owner, spender, value, deadline, v, r, s);\\n uint256 nonceAfter = token.nonces(owner);\\n require(nonceAfter == nonceBefore + 1, \\\"SafeERC20: permit did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n if (returndata.length > 0) {\\n // Return data is optional\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9b72f93be69ca894d8492c244259615c4a742afc8d63720dbc8bb81087d9b238\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"contracts/InputStream.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity 0.8.10;\\n\\n/** @notice Simple read stream */\\nlibrary InputStream {\\n\\n /** @notice Creates stream from data\\n * @param data data\\n */\\n function createStream(bytes memory data) internal pure returns (uint256 stream) {\\n assembly {\\n stream := mload(0x40)\\n mstore(0x40, add(stream, 64))\\n mstore(stream, data)\\n let length := mload(data)\\n mstore(add(stream, 32), add(data, length))\\n }\\n }\\n\\n /** @notice Checks if stream is not empty\\n * @param stream stream\\n */\\n function isNotEmpty(uint256 stream) internal pure returns (bool) {\\n uint256 pos;\\n uint256 finish;\\n assembly {\\n pos := mload(stream)\\n finish := mload(add(stream, 32))\\n }\\n return pos < finish;\\n }\\n\\n /** @notice Reads uint8 from the stream\\n * @param stream stream\\n */\\n function readUint8(uint256 stream) internal pure returns (uint8 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 1)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads uint16 from the stream\\n * @param stream stream\\n */\\n function readUint16(uint256 stream) internal pure returns (uint16 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 2)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads uint24 from the stream\\n * @param stream stream\\n */\\n function readUint24(uint256 stream) internal pure returns (uint24 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 3)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads uint32 from the stream\\n * @param stream stream\\n */\\n function readUint32(uint256 stream) internal pure returns (uint32 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 4)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads uint256 from the stream\\n * @param stream stream\\n */\\n function readUint(uint256 stream) internal pure returns (uint256 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 32)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads bytes32 from the stream\\n * @param stream stream\\n */\\n function readBytes32(uint256 stream) internal pure returns (bytes32 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 32)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads address from the stream\\n * @param stream stream\\n */\\n function readAddress(uint256 stream) internal pure returns (address res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 20)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads bytes from the stream\\n * @param stream stream\\n */\\n function readBytes(uint256 stream) internal pure returns (bytes memory res) {\\n assembly {\\n let pos := mload(stream)\\n res := add(pos, 32)\\n let length := mload(res)\\n mstore(stream, add(res, length))\\n }\\n }\\n}\\n\",\"keccak256\":\"0x24e24bd0e49cbddacbf3b26bcd4bdffac63d11f3259bc05bc93c0835e8ff5300\",\"license\":\"UNLICENSED\"},\"contracts/RouteProcessor5.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity 0.8.10;\\n\\nimport '../interfaces/IUniswapV2Pair.sol';\\nimport '../interfaces/IUniswapV3Pool.sol';\\nimport '../interfaces/ITridentCLPool.sol';\\nimport '../interfaces/IBentoBoxMinimal.sol';\\nimport '../interfaces/IPool.sol';\\nimport '../interfaces/IWETH.sol';\\nimport '../interfaces/ICurve.sol';\\nimport './InputStream.sol';\\nimport './Utils.sol';\\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\n\\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\\naddress constant INTERNAL_INPUT_SOURCE = 0x0000000000000000000000000000000000000000;\\n\\nuint8 constant LOCKED = 2;\\nuint8 constant NOT_LOCKED = 1;\\nuint8 constant PAUSED = 2;\\nuint8 constant NOT_PAUSED = 1;\\n\\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\\nuint160 constant MIN_SQRT_RATIO = 4295128739;\\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\\n\\n/// @title A route processor for the Sushi Aggregator\\n/// @author Ilya Lyalin\\ncontract RouteProcessor5 is Ownable {\\n using SafeERC20 for IERC20;\\n using Utils for IERC20;\\n using Utils for address;\\n using SafeERC20 for IERC20Permit;\\n using InputStream for uint256;\\n\\n event Route(\\n address indexed from, \\n address to, \\n address indexed tokenIn, \\n address indexed tokenOut, \\n uint256 amountIn, \\n uint256 amountOutMin,\\n uint256 amountOut\\n );\\n\\n error MinimalOutputBalanceViolation(uint256 amountOut);\\n\\n IBentoBoxMinimal public immutable bentoBox;\\n mapping (address => bool) public priviledgedUsers;\\n address private lastCalledPool;\\n\\n uint8 private unlocked = NOT_LOCKED;\\n uint8 private paused = NOT_PAUSED;\\n modifier lock() {\\n require(unlocked == NOT_LOCKED, 'RouteProcessor is locked');\\n require(paused == NOT_PAUSED, 'RouteProcessor is paused');\\n unlocked = LOCKED;\\n _;\\n unlocked = NOT_LOCKED;\\n }\\n\\n modifier onlyOwnerOrPriviledgedUser() {\\n require(msg.sender == owner() || priviledgedUsers[msg.sender], \\\"RP: caller is not the owner or a privileged user\\\");\\n _;\\n }\\n\\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\\n bentoBox = IBentoBoxMinimal(_bentoBox);\\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\\n\\n for (uint256 i = 0; i < priviledgedUserList.length; i++) {\\n priviledgedUsers[priviledgedUserList[i]] = true;\\n }\\n }\\n\\n function setPriviledge(address user, bool priviledge) external onlyOwner {\\n priviledgedUsers[user] = priviledge;\\n }\\n\\n function pause() external onlyOwnerOrPriviledgedUser {\\n paused = PAUSED;\\n }\\n\\n function resume() external onlyOwnerOrPriviledgedUser {\\n paused = NOT_PAUSED;\\n }\\n\\n /// @notice For native unwrapping\\n receive() external payable {}\\n\\n /// @notice Processes the route generated off-chain. Has a lock\\n /// @param tokenIn Address of the input token\\n /// @param amountIn Amount of the input token\\n /// @param tokenOut Address of the output token\\n /// @param amountOutMin Minimum amount of the output token\\n /// @param to Where to transfer output tokens\\n /// @param route Route to process\\n /// @return amountOut Actual amount of the output token\\n function processRoute(\\n address tokenIn,\\n uint256 amountIn,\\n address tokenOut,\\n uint256 amountOutMin,\\n address to,\\n bytes memory route\\n ) external payable lock returns (uint256 amountOut) {\\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\\n }\\n\\n /// @notice Transfers some value to and then processes the route\\n /// @param transferValueTo Address where the value should be transferred\\n /// @param amountValueTransfer How much value to transfer\\n /// @param tokenIn Address of the input token\\n /// @param amountIn Amount of the input token\\n /// @param tokenOut Address of the output token\\n /// @param amountOutMin Minimum amount of the output token\\n /// @return amountOut Actual amount of the output token\\n function transferValueAndprocessRoute(\\n address transferValueTo,\\n uint256 amountValueTransfer,\\n address tokenIn,\\n uint256 amountIn,\\n address tokenOut,\\n uint256 amountOutMin,\\n address to,\\n bytes memory route\\n ) external payable lock returns (uint256 amountOut) {\\n transferValueTo.transferNative(amountValueTransfer);\\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\\n }\\n\\n /// @notice Transfers some value of input tokens to and then processes the route\\n /// @param transferValueTo Address where the value should be transferred\\n /// @param amountValueTransfer How much value to transfer\\n /// @param tokenIn Address of the input token\\n /// @param amountIn Amount of the input token\\n /// @param tokenOut Address of the output token\\n /// @param amountOutMin Minimum amount of the output token\\n /// @return amountOut Actual amount of the output token\\n function processRouteWithTransferValueInput(\\n address payable transferValueTo,\\n uint256 amountValueTransfer,\\n address tokenIn,\\n uint256 amountIn,\\n address tokenOut,\\n uint256 amountOutMin,\\n address to,\\n bytes memory route\\n ) external payable lock returns (uint256 amountOut) {\\n tokenIn.transferAnyFromSender(transferValueTo, amountValueTransfer);\\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\\n }\\n \\n /// @notice processes the route and sends amount of output token to \\n /// @param transferValueTo Address where the value should be transferred\\n /// @param amountValueTransfer How much value to transfer\\n /// @param tokenIn Address of the input token\\n /// @param amountIn Amount of the input token\\n /// @param tokenOut Address of the output token\\n /// @param amountOutMin Minimum amount of the output token\\n /// @return amountOut Actual amount of the output token\\n function processRouteWithTransferValueOutput(\\n address payable transferValueTo,\\n uint256 amountValueTransfer,\\n address tokenIn,\\n uint256 amountIn,\\n address tokenOut,\\n uint256 amountOutMin,\\n address to,\\n bytes memory route\\n ) external payable lock returns (uint256 amountOut) {\\n amountOut = processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, address(this), route);\\n tokenOut.transferAny(transferValueTo, amountValueTransfer);\\n tokenOut.transferAny(to, amountOut - amountValueTransfer);\\n }\\n\\n /// @notice Processes the route generated off-chain\\n /// @param tokenIn Address of the input token\\n /// @param amountIn Amount of the input token\\n /// @param tokenOut Address of the output token\\n /// @param amountOutMin Minimum amount of the output token\\n /// @return amountOut Actual amount of the output token\\n function processRouteInternal(\\n address tokenIn,\\n uint256 amountIn,\\n address tokenOut,\\n uint256 amountOutMin,\\n address to,\\n bytes memory route\\n ) private returns (uint256 amountOut) {\\n uint256 balanceInInitial = tokenIn.anyBalanceOf(msg.sender);\\n uint256 balanceOutInitial = tokenOut.anyBalanceOf(to);\\n\\n uint256 realAmountIn = amountIn;\\n {\\n uint256 step = 0;\\n uint256 stream = InputStream.createStream(route);\\n while (stream.isNotEmpty()) {\\n uint8 commandCode = stream.readUint8();\\n if (commandCode == 1) {\\n uint256 usedAmount = processMyERC20(stream); \\n if (step == 0) realAmountIn = usedAmount;\\n } \\n else if (commandCode == 2) processUserERC20(stream, amountIn);\\n else if (commandCode == 3) {\\n uint256 usedAmount = processNative(stream); \\n if (step == 0) realAmountIn = usedAmount;\\n } \\n else if (commandCode == 4) processOnePool(stream);\\n else if (commandCode == 5) processInsideBento(stream);\\n else if (commandCode == 6) applyPermit(tokenIn, stream);\\n else revert('RouteProcessor: Unknown command code');\\n ++step;\\n }\\n }\\n\\n uint256 balanceInFinal = tokenIn.anyBalanceOf(msg.sender);\\n if (tokenIn != Utils.NATIVE_ADDRESS)\\n require(balanceInFinal + amountIn + 10 >= balanceInInitial, 'RouteProcessor: Minimal input balance violation');\\n \\n uint256 balanceOutFinal = tokenOut.anyBalanceOf(to);\\n if (balanceOutFinal < balanceOutInitial + amountOutMin)\\n revert MinimalOutputBalanceViolation(balanceOutFinal - balanceOutInitial);\\n\\n amountOut = balanceOutFinal - balanceOutInitial;\\n\\n emit Route(msg.sender, to, tokenIn, tokenOut, realAmountIn, amountOutMin, amountOut);\\n }\\n\\n /// @notice Applies ERC-2612 permit\\n /// @param tokenIn permitted token\\n /// @param stream Streamed program\\n function applyPermit(address tokenIn, uint256 stream) private {\\n uint256 value = stream.readUint();\\n uint256 deadline = stream.readUint();\\n uint8 v = stream.readUint8();\\n bytes32 r = stream.readBytes32();\\n bytes32 s = stream.readBytes32();\\n if (IERC20(tokenIn).allowance(msg.sender, address(this)) < value) {\\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\\n }\\n }\\n\\n /// @notice Processes native coin: call swap for all pools that swap from native coin\\n /// @param stream Streamed program\\n function processNative(uint256 stream) private returns (uint256 amountTotal) {\\n amountTotal = address(this).balance;\\n distributeAndSwap(stream, address(this), Utils.NATIVE_ADDRESS, amountTotal);\\n }\\n\\n /// @notice Processes ERC20 token from this contract balance:\\n /// @notice Call swap for all pools that swap from this token\\n /// @param stream Streamed program\\n function processMyERC20(uint256 stream) private returns (uint256 amountTotal) {\\n address token = stream.readAddress();\\n amountTotal = IERC20(token).balanceOf(address(this));\\n unchecked {\\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\\n }\\n distributeAndSwap(stream, address(this), token, amountTotal);\\n }\\n \\n /// @notice Processes ERC20 token from msg.sender balance:\\n /// @notice Call swap for all pools that swap from this token\\n /// @param stream Streamed program\\n /// @param amountTotal Amount of tokens to take from msg.sender\\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\\n address token = stream.readAddress();\\n distributeAndSwap(stream, msg.sender, token, amountTotal);\\n }\\n\\n /// @notice Processes ERC20 token for cases when the token has only one output pool\\n /// @notice In this case liquidity is already at pool balance. This is an optimization\\n /// @notice Call swap for all pools that swap from this token\\n /// @param stream Streamed program\\n function processOnePool(uint256 stream) private {\\n address token = stream.readAddress();\\n swap(stream, INTERNAL_INPUT_SOURCE, token, 0);\\n }\\n\\n /// @notice Processes Bento tokens \\n /// @notice Call swap for all pools that swap from this token\\n /// @param stream Streamed program\\n function processInsideBento(uint256 stream) private {\\n address token = stream.readAddress();\\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\\n unchecked {\\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\\n }\\n distributeAndSwap(stream, address(this), token, amountTotal);\\n }\\n\\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\\n /// @param stream Streamed program\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountTotal Total amount of tokenIn for swaps \\n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\\n uint8 num = stream.readUint8();\\n unchecked {\\n for (uint256 i = 0; i < num; ++i) {\\n uint16 share = stream.readUint16();\\n uint256 amount = (amountTotal * share) / type(uint16).max /*65535*/;\\n amountTotal -= amount;\\n swap(stream, from, tokenIn, amount);\\n }\\n }\\n }\\n\\n /// @notice Makes swap\\n /// @param stream Streamed program\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n uint8 poolType = stream.readUint8();\\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\\n else if (poolType == 5) swapCurve(stream, from, tokenIn, amountIn);\\n else revert('RouteProcessor: Unknown pool type');\\n }\\n\\n /// @notice Wraps/unwraps native token\\n /// @param stream [direction & fake, recipient, wrapToken?]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n uint8 directionAndFake = stream.readUint8();\\n address to = stream.readAddress();\\n\\n if (directionAndFake & 1 == 1) { // wrap native\\n address wrapToken = stream.readAddress();\\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\\n } else { // unwrap native\\n if (directionAndFake & 2 == 0) {\\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\\n IWETH(tokenIn).withdraw(amountIn);\\n }\\n to.transferNative(amountIn);\\n }\\n }\\n\\n /// @notice Bridge/unbridge tokens to/from Bento\\n /// @param stream [direction, recipient]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n uint8 direction = stream.readUint8();\\n address to = stream.readAddress();\\n\\n if (direction > 0) { // outside to Bento\\n // deposit to arbitrary recipient is possible only from address(bentoBox)\\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(bentoBox), amountIn);\\n else {\\n // tokens already are at address(bentoBox)\\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\\n bentoBox.strategyData(tokenIn).balance -\\n bentoBox.totals(tokenIn).elastic;\\n }\\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\\n } else { // Bento to outside\\n if (from != INTERNAL_INPUT_SOURCE) {\\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\\n }\\n }\\n\\n /// @notice UniswapV2 pool swap\\n /// @param stream [pool, direction, recipient, fee]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n address pool = stream.readAddress();\\n uint8 direction = stream.readUint8();\\n address to = stream.readAddress();\\n uint24 fee = stream.readUint24(); // pool fee in 1/1_000_000\\n\\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, pool, amountIn);\\n\\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\\n amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\\n\\n uint256 amountInWithFee = amountIn * (1_000_000 - fee);\\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1_000_000 + amountInWithFee);\\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\\n }\\n\\n /// @notice Trident pool swap\\n /// @param stream [pool, swapData]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n address pool = stream.readAddress();\\n bytes memory swapData = stream.readBytes();\\n\\n if (from != INTERNAL_INPUT_SOURCE) {\\n bentoBox.transfer(tokenIn, from, pool, amountIn);\\n }\\n \\n IPool(pool).swap(swapData);\\n }\\n\\n /// @notice UniswapV3 pool swap\\n /// @param stream [pool, direction, recipient]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n address pool = stream.readAddress();\\n bool zeroForOne = stream.readUint8() > 0;\\n address recipient = stream.readAddress();\\n\\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\\n\\n lastCalledPool = pool;\\n IUniswapV3Pool(pool).swap(\\n recipient,\\n zeroForOne,\\n int256(amountIn),\\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\\n abi.encode(tokenIn)\\n );\\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\\n }\\n\\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\\n function uniswapV3SwapCallback(\\n int256 amount0Delta,\\n int256 amount1Delta,\\n bytes calldata data\\n ) public {\\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\\n \\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\\n (address tokenIn) = abi.decode(data, (address));\\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\\n }\\n\\n /// @notice Called to `msg.sender` after executing a swap via IAlgebraPool#swap.\\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\\n /// The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory.\\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\\n /// @param data Any data passed through by the caller via the IAlgebraPoolActions#swap call\\n function algebraSwapCallback(\\n int256 amount0Delta,\\n int256 amount1Delta,\\n bytes calldata data\\n ) external {\\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\\n }\\n\\n /// @notice Called to `msg.sender` after executing a swap via PancakeV3Pool#swap.\\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\\n /// @param data Any data passed through by the caller via the PancakeV3Pool#swap call\\n function pancakeV3SwapCallback(\\n int256 amount0Delta,\\n int256 amount1Delta,\\n bytes calldata data\\n ) external {\\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\\n }\\n\\n /// @notice Curve pool swap. Legacy pools that don't return amountOut and have native coins are not supported\\n /// @param stream [pool, poolType, fromIndex, toIndex, recipient, output token]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function swapCurve(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n address pool = stream.readAddress();\\n uint8 poolType = stream.readUint8();\\n int128 fromIndex = int8(stream.readUint8());\\n int128 toIndex = int8(stream.readUint8());\\n address to = stream.readAddress();\\n address tokenOut = stream.readAddress();\\n\\n uint256 amountOut;\\n if (tokenIn == Utils.NATIVE_ADDRESS) {\\n amountOut = ICurve(pool).exchange{value: amountIn}(fromIndex, toIndex, amountIn, 0);\\n } else {\\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\\n IERC20(tokenIn).approveSafe(pool, amountIn);\\n if (poolType == 0) amountOut = ICurve(pool).exchange(fromIndex, toIndex, amountIn, 0);\\n else {\\n uint256 balanceBefore = tokenOut.anyBalanceOf(address(this));\\n ICurveLegacy(pool).exchange(fromIndex, toIndex, amountIn, 0);\\n uint256 balanceAfter = tokenOut.anyBalanceOf(address(this));\\n amountOut = balanceAfter - balanceBefore;\\n }\\n }\\n\\n if (to != address(this)) tokenOut.transferAny(to, amountOut);\\n }\\n}\\n\",\"keccak256\":\"0xcd53a7f473f1847d44c42777a194203cbff02b8c761cb2935402401f57c918a2\",\"license\":\"UNLICENSED\"},\"contracts/Utils.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity 0.8.10;\\n\\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\\n\\nlibrary Utils {\\n using SafeERC20 for IERC20;\\n\\n address constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\\n\\n /**\\n * @dev returns user's balance of token (or native)\\n */\\n function anyBalanceOf(address token, address user) internal view returns (uint256) {\\n if (token == NATIVE_ADDRESS) return address(user).balance;\\n else return IERC20(token).balanceOf(user);\\n }\\n\\n /**\\n * @dev transfers native with correct revert bubble up\\n */\\n function transferNative(address to, uint256 amount) internal {\\n (bool success, bytes memory returnBytes) = to.call{value: amount}('');\\n if (!success) {\\n assembly {\\n revert(add(32, returnBytes), mload(returnBytes))\\n }\\n }\\n }\\n\\n /**\\n * @dev transfers ERC20 or native\\n */\\n function transferAny(address token, address to, uint256 amount) internal {\\n if (token == NATIVE_ADDRESS) transferNative(to, amount);\\n else IERC20(token).safeTransfer(to, amount);\\n }\\n\\n /**\\n * @dev transfers from ERC20 or transfers native\\n */\\n function transferAnyFromSender(address token, address to, uint256 amount) internal {\\n if (token == NATIVE_ADDRESS) transferNative(to, amount); // native liquidity is already on this contract\\n else IERC20(token).safeTransferFrom(msg.sender, to, amount);\\n }\\n\\n /**\\n * @dev ERC20 approve that correct works with token.approve which returns bool or nothing (USDT for example)\\n * @param token The token targeted by the call.\\n * @param spender token spender\\n * @param amount token amount\\n */\\n function approveStable(IERC20 token, address spender, uint256 amount) internal returns (bool) {\\n (bool success, bytes memory data) = address(token).call(\\n abi.encodeWithSelector(token.approve.selector, spender, amount)\\n );\\n return success && (data.length == 0 || abi.decode(data, (bool)));\\n }\\n\\n /**\\n * @dev ERC20 approve that correct works with token.approve which reverts if amount and \\n * current allowance are not zero simultaniously (USDT for example). \\n * In second case it tries to set allowance to 0, and then back to amount.\\n * @param token The token targeted by the call.\\n * @param spender token spender\\n * @param amount token amount\\n */\\n function approveSafe(IERC20 token, address spender, uint256 amount) internal returns (bool) {\\n return approveStable(token, spender, amount) \\n || (approveStable(token, spender, 0) && approveStable(token, spender, amount));\\n }\\n}\\n\",\"keccak256\":\"0x8c8439edc00b403abd3f34be75a06b1fe71152644ae9f19488af596bbc534ffe\",\"license\":\"UNLICENSED\"},\"interfaces/IBentoBoxMinimal.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity >=0.8.0;\\n\\nstruct Rebase {\\n uint128 elastic;\\n uint128 base;\\n}\\n\\nstruct StrategyData {\\n uint64 strategyStartDate;\\n uint64 targetPercentage;\\n uint128 balance; // the balance of the strategy that BentoBox thinks is in there\\n}\\n\\n/// @notice A rebasing library\\nlibrary RebaseLibrary {\\n /// @notice Calculates the base value in relationship to `elastic` and `total`.\\n function toBase(Rebase memory total, uint256 elastic) internal pure returns (uint256 base) {\\n if (total.elastic == 0) {\\n base = elastic;\\n } else {\\n base = (elastic * total.base) / total.elastic;\\n }\\n }\\n\\n /// @notice Calculates the elastic value in relationship to `base` and `total`.\\n function toElastic(Rebase memory total, uint256 base) internal pure returns (uint256 elastic) {\\n if (total.base == 0) {\\n elastic = base;\\n } else {\\n elastic = (base * total.elastic) / total.base;\\n }\\n }\\n}\\n\\n/// @notice Minimal BentoBox vault interface.\\n/// @dev `token` is aliased as `address` from `IERC20` for simplicity.\\ninterface IBentoBoxMinimal {\\n /// @notice Balance per ERC-20 token per account in shares.\\n function balanceOf(address, address) external view returns (uint256);\\n\\n /// @dev Helper function to represent an `amount` of `token` in shares.\\n /// @param token The ERC-20 token.\\n /// @param amount The `token` amount.\\n /// @param roundUp If the result `share` should be rounded up.\\n /// @return share The token amount represented in shares.\\n function toShare(\\n address token,\\n uint256 amount,\\n bool roundUp\\n ) external view returns (uint256 share);\\n\\n /// @dev Helper function to represent shares back into the `token` amount.\\n /// @param token The ERC-20 token.\\n /// @param share The amount of shares.\\n /// @param roundUp If the result should be rounded up.\\n /// @return amount The share amount back into native representation.\\n function toAmount(\\n address token,\\n uint256 share,\\n bool roundUp\\n ) external view returns (uint256 amount);\\n\\n /// @notice Registers this contract so that users can approve it for BentoBox.\\n function registerProtocol() external;\\n\\n /// @notice Deposit an amount of `token` represented in either `amount` or `share`.\\n /// @param token The ERC-20 token to deposit.\\n /// @param from which account to pull the tokens.\\n /// @param to which account to push the tokens.\\n /// @param amount Token amount in native representation to deposit.\\n /// @param share Token amount represented in shares to deposit. Takes precedence over `amount`.\\n /// @return amountOut The amount deposited.\\n /// @return shareOut The deposited amount represented in shares.\\n function deposit(\\n address token,\\n address from,\\n address to,\\n uint256 amount,\\n uint256 share\\n ) external payable returns (uint256 amountOut, uint256 shareOut);\\n\\n /// @notice Withdraws an amount of `token` from a user account.\\n /// @param token_ The ERC-20 token to withdraw.\\n /// @param from which user to pull the tokens.\\n /// @param to which user to push the tokens.\\n /// @param amount of tokens. Either one of `amount` or `share` needs to be supplied.\\n /// @param share Like above, but `share` takes precedence over `amount`.\\n function withdraw(\\n address token_,\\n address from,\\n address to,\\n uint256 amount,\\n uint256 share\\n ) external returns (uint256 amountOut, uint256 shareOut);\\n\\n /// @notice Transfer shares from a user account to another one.\\n /// @param token The ERC-20 token to transfer.\\n /// @param from which user to pull the tokens.\\n /// @param to which user to push the tokens.\\n /// @param share The amount of `token` in shares.\\n function transfer(\\n address token,\\n address from,\\n address to,\\n uint256 share\\n ) external;\\n\\n /// @dev Reads the Rebase `totals`from storage for a given token\\n function totals(address token) external view returns (Rebase memory total);\\n\\n function strategyData(address token) external view returns (StrategyData memory total);\\n\\n /// @dev Approves users' BentoBox assets to a \\\"master\\\" contract.\\n function setMasterContractApproval(\\n address user,\\n address masterContract,\\n bool approved,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n function harvest(\\n address token,\\n bool balance,\\n uint256 maxChangeAmount\\n ) external;\\n}\\n\",\"keccak256\":\"0x0c12eba7a5b9d22d37ab8883fe22d6a312a90682809dbd11c43f8e6ceaff73bf\",\"license\":\"UNLICENSED\"},\"interfaces/ICurve.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity >=0.8.0;\\n\\ninterface ICurve {\\n function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) payable external returns (uint256);\\n}\\n\\ninterface ICurveLegacy {\\n function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) payable external;\\n}\\n\\n\",\"keccak256\":\"0x3d4940b3583e06dde20f12e92d2f6ac573b3f64bdaa1e8f480656a3763852518\",\"license\":\"UNLICENSED\"},\"interfaces/IPool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-or-later\\n\\npragma solidity >=0.5.0;\\npragma experimental ABIEncoderV2;\\n\\n/// @notice Trident pool interface.\\ninterface IPool {\\n /// @notice Executes a swap from one token to another.\\n /// @dev The input tokens must've already been sent to the pool.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return finalAmountOut The amount of output tokens that were sent to the user.\\n function swap(bytes calldata data) external returns (uint256 finalAmountOut);\\n\\n /// @notice Executes a swap from one token to another with a callback.\\n /// @dev This function allows borrowing the output tokens and sending the input tokens in the callback.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return finalAmountOut The amount of output tokens that were sent to the user.\\n function flashSwap(bytes calldata data) external returns (uint256 finalAmountOut);\\n\\n /// @notice Mints liquidity tokens.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return liquidity The amount of liquidity tokens that were minted for the user.\\n function mint(bytes calldata data) external returns (uint256 liquidity);\\n\\n /// @notice Burns liquidity tokens.\\n /// @dev The input LP tokens must've already been sent to the pool.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return withdrawnAmounts The amount of various output tokens that were sent to the user.\\n function burn(bytes calldata data) external returns (TokenAmount[] memory withdrawnAmounts);\\n\\n /// @notice Burns liquidity tokens for a single output token.\\n /// @dev The input LP tokens must've already been sent to the pool.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return amountOut The amount of output tokens that were sent to the user.\\n function burnSingle(bytes calldata data) external returns (uint256 amountOut);\\n\\n /// @return A unique identifier for the pool type.\\n function poolIdentifier() external pure returns (bytes32);\\n\\n /// @return An array of tokens supported by the pool.\\n function getAssets() external view returns (address[] memory);\\n\\n /// @notice Simulates a trade and returns the expected output.\\n /// @dev The pool does not need to include a trade simulator directly in itself - it can use a library.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return finalAmountOut The amount of output tokens that will be sent to the user if the trade is executed.\\n function getAmountOut(bytes calldata data) external view returns (uint256 finalAmountOut);\\n\\n /// @notice Simulates a trade and returns the expected output.\\n /// @dev The pool does not need to include a trade simulator directly in itself - it can use a library.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return finalAmountIn The amount of input tokens that are required from the user if the trade is executed.\\n function getAmountIn(bytes calldata data) external view returns (uint256 finalAmountIn);\\n\\n /// @dev This event must be emitted on all swaps.\\n event Swap(address indexed recipient, address indexed tokenIn, address indexed tokenOut, uint256 amountIn, uint256 amountOut);\\n\\n /// @dev This struct frames output tokens for burns.\\n struct TokenAmount {\\n address token;\\n uint256 amount;\\n }\\n}\\n\",\"keccak256\":\"0xa6f92ccb525b018c0c209819640e8d746f1134b4c4d9acd4f22d3e170323f1fa\",\"license\":\"GPL-3.0-or-later\"},\"interfaces/ITridentCLPool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-or-later\\n\\npragma solidity 0.8.10;\\n\\ninterface ITridentCLPool {\\n function token0() external returns (address);\\n function token1() external returns (address);\\n\\n function swap(\\n address recipient,\\n bool zeroForOne,\\n int256 amountSpecified,\\n uint160 sqrtPriceLimitX96,\\n bool unwrapBento,\\n bytes calldata data\\n ) external returns (int256 amount0, int256 amount1);\\n}\\n\",\"keccak256\":\"0x572376b80c86a94692b0e27e6e63790b763295e32ba1f956c1d331fc1296de8d\",\"license\":\"GPL-3.0-or-later\"},\"interfaces/IUniswapV2Pair.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\n\\npragma solidity >=0.5.0;\\n\\ninterface IUniswapV2Pair {\\n event Approval(address indexed owner, address indexed spender, uint value);\\n event Transfer(address indexed from, address indexed to, uint value);\\n\\n function name() external pure returns (string memory);\\n function symbol() external pure returns (string memory);\\n function decimals() external pure returns (uint8);\\n function totalSupply() external view returns (uint);\\n function balanceOf(address owner) external view returns (uint);\\n function allowance(address owner, address spender) external view returns (uint);\\n\\n function approve(address spender, uint value) external returns (bool);\\n function transfer(address to, uint value) external returns (bool);\\n function transferFrom(address from, address to, uint value) external returns (bool);\\n\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n function PERMIT_TYPEHASH() external pure returns (bytes32);\\n function nonces(address owner) external view returns (uint);\\n\\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\\n\\n event Mint(address indexed sender, uint amount0, uint amount1);\\n event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);\\n event Swap(\\n address indexed sender,\\n uint amount0In,\\n uint amount1In,\\n uint amount0Out,\\n uint amount1Out,\\n address indexed to\\n );\\n event Sync(uint112 reserve0, uint112 reserve1);\\n\\n function MINIMUM_LIQUIDITY() external pure returns (uint);\\n function factory() external view returns (address);\\n function token0() external view returns (address);\\n function token1() external view returns (address);\\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\\n function price0CumulativeLast() external view returns (uint);\\n function price1CumulativeLast() external view returns (uint);\\n function kLast() external view returns (uint);\\n\\n function mint(address to) external returns (uint liquidity);\\n function burn(address to) external returns (uint amount0, uint amount1);\\n function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;\\n function skim(address to) external;\\n function sync() external;\\n\\n function initialize(address, address) external;\\n}\",\"keccak256\":\"0x08f9a63b34855eec941be8d36a04424f1a1725a2c030373fcef3afeb480ca385\",\"license\":\"GPL-3.0\"},\"interfaces/IUniswapV3Pool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-or-later\\n\\npragma solidity 0.8.10;\\n\\ninterface IUniswapV3Pool {\\n function token0() external returns (address);\\n function token1() external returns (address);\\n\\n function swap(\\n address recipient,\\n bool zeroForOne,\\n int256 amountSpecified,\\n uint160 sqrtPriceLimitX96,\\n bytes calldata data\\n ) external returns (int256 amount0, int256 amount1);\\n}\\n\",\"keccak256\":\"0x2a4d7c6120e613f0e95d4dc8c650efb9b59e3c25c64e3e5c0a379281500f0a79\",\"license\":\"GPL-3.0-or-later\"},\"interfaces/IWETH.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-or-later\\n\\npragma solidity 0.8.10;\\n\\ninterface IWETH {\\n function deposit() external payable;\\n\\n function transfer(address to, uint256 value) external returns (bool);\\n\\n function withdraw(uint256) external;\\n}\\n\",\"keccak256\":\"0xae8529ae159f784b90fdcd0629bd03bf7b68accc81edccac53357ad08406a378\",\"license\":\"GPL-3.0-or-later\"}},\"version\":1}", + "bytecode": "0x60a06040526002805461ffff60a01b191661010160a01b1790553480156200002657600080fd5b50604051620040a3380380620040a383398101604081905262000049916200016e565b6200005433620000eb565b6001600160a01b038216608052600280546001600160a01b031916600117905560005b8151811015620000e25760018060008484815181106200009b576200009b62000257565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580620000d9816200026d565b91505062000077565b50505062000297565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200015357600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156200018257600080fd5b6200018d836200013b565b602084810151919350906001600160401b0380821115620001ad57600080fd5b818601915086601f830112620001c257600080fd5b815181811115620001d757620001d762000158565b8060051b604051601f19603f83011681018181108582111715620001ff57620001ff62000158565b6040529182528482019250838101850191898311156200021e57600080fd5b938501935b82851015620002475762000237856200013b565b8452938501939285019262000223565b8096505050505050509250929050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156200029057634e487b7160e01b600052601160045260246000fd5b5060010190565b608051613da3620003006000396000818161018d01528181611798015281816127380152818161279d01528181612807015281816128cc0152818161297901528181612a5d01528181612b6401528181612c1001528181612cdf0152612df10152613da36000f3fe6080604052600436106100ec5760003560e01c8063715018a61161008a5780639a1f3406116100595780639a1f34061461023c578063cd0fb7a71461025c578063f2fde38b1461029c578063fa461e33146102bc57600080fd5b8063715018a6146101d45780638456cb59146101e95780638da5cb5b146101fe57806393b3774c1461022957600080fd5b80632c8958f6116100c65780632c8958f61461010f57806347f8bd41146101555780636678ec1f146101685780636b2ace871461017b57600080fd5b8063046f7da2146100f857806323a69e751461010f5780632646478b1461012f57600080fd5b366100f357005b600080fd5b34801561010457600080fd5b5061010d6102dc565b005b34801561011b57600080fd5b5061010d61012a3660046135d4565b6103e4565b61014261013d366004613750565b6103f6565b6040519081526020015b60405180910390f35b6101426101633660046137d7565b6105a0565b6101426101763660046137d7565b61076e565b34801561018757600080fd5b506101af7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161014c565b3480156101e057600080fd5b5061010d61091c565b3480156101f557600080fd5b5061010d610930565b34801561020a57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166101af565b6101426102373660046137d7565b610a33565b34801561024857600080fd5b5061010d61025736600461388a565b610ba4565b34801561026857600080fd5b5061028c6102773660046138c3565b60016020526000908152604090205460ff1681565b604051901515815260200161014c565b3480156102a857600080fd5b5061010d6102b73660046138c3565b610c02565b3480156102c857600080fd5b5061010d6102d73660046135d4565b610cb9565b60005473ffffffffffffffffffffffffffffffffffffffff1633148061031157503360009081526001602052604090205460ff165b6103a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f52503a2063616c6c6572206973206e6f7420746865206f776e6572206f72206160448201527f2070726976696c6567656420757365720000000000000000000000000000000060648201526084015b60405180910390fd5b600280547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167501000000000000000000000000000000000000000000179055565b6103f084848484610cb9565b50505050565b60025460009074010000000000000000000000000000000000000000900460ff16600114610480576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610508576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674020000000000000000000000000000000000000000179055610555878787878787610e67565b9050600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790559695505050505050565b60025460009074010000000000000000000000000000000000000000900460ff1660011461062a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff166001146106b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905561071273ffffffffffffffffffffffffffffffffffffffff88168a8a61121d565b610720878787878787610e67565b90505b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905598975050505050505050565b60025460009074010000000000000000000000000000000000000000900460ff166001146107f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610880576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740200000000000000000000000000000000000000001790556108cd878787873087610e67565b90506108f073ffffffffffffffffffffffffffffffffffffffff86168a8a611280565b610723836108fe8a84613916565b73ffffffffffffffffffffffffffffffffffffffff88169190611280565b6109246112dd565b61092e600061135e565b565b60005473ffffffffffffffffffffffffffffffffffffffff1633148061096557503360009081526001602052604090205460ff165b6109f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f52503a2063616c6c6572206973206e6f7420746865206f776e6572206f72206160448201527f2070726976696c656765642075736572000000000000000000000000000000006064820152608401610399565b600280547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167502000000000000000000000000000000000000000000179055565b60025460009074010000000000000000000000000000000000000000900460ff16600114610abd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610b45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905561071273ffffffffffffffffffffffffffffffffffffffff8a16896113d3565b610bac6112dd565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b610c0a6112dd565b73ffffffffffffffffffffffffffffffffffffffff8116610cad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610399565b610cb68161135e565b50565b60025473ffffffffffffffffffffffffffffffffffffffff163314610d60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603e60248201527f526f75746550726f636573736f722e756e697377617056335377617043616c6c60448201527f6261636b3a2063616c6c2066726f6d20756e6b6e6f776e20736f7572636500006064820152608401610399565b6000808513610d6f5783610d71565b845b905060008113610e03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603960248201527f526f75746550726f636573736f722e756e697377617056335377617043616c6c60448201527f6261636b3a206e6f7420706f73697469766520616d6f756e74000000000000006064820152608401610399565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001660011790556000610e3c838501856138c3565b9050610e5f73ffffffffffffffffffffffffffffffffffffffff82163384611445565b505050505050565b600080610e8a73ffffffffffffffffffffffffffffffffffffffff891633611519565b90506000610eae73ffffffffffffffffffffffffffffffffffffffff881686611519565b905087600080610ed287604080518082019091528181528151909101602082015290565b90505b805160208201511115611028576000610ef48280516001018051915290565b90508060ff1660011415610f1e576000610f0d83611604565b905083610f18578094505b50611017565b8060ff1660021415610f3957610f34828d6116c9565b611017565b8060ff1660031415610f50576000610f0d836116e9565b8060ff1660041415610f6557610f348261170f565b8060ff1660051415610f7a57610f3482611735565b8060ff1660061415610f9057610f348d8361183a565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f526f75746550726f636573736f723a20556e6b6e6f776e20636f6d6d616e642060448201527f636f6465000000000000000000000000000000000000000000000000000000006064820152608401610399565b6110208361392d565b925050610ed5565b506000905061104d73ffffffffffffffffffffffffffffffffffffffff8c1633611519565b905073ffffffffffffffffffffffffffffffffffffffff8b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611124578361108b8b83613966565b61109690600a613966565b1015611124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f526f75746550726f636573736f723a204d696e696d616c20696e70757420626160448201527f6c616e63652076696f6c6174696f6e00000000000000000000000000000000006064820152608401610399565b600061114673ffffffffffffffffffffffffffffffffffffffff8b1689611519565b90506111528985613966565b811015611198576111638482613916565b6040517f963b34a500000000000000000000000000000000000000000000000000000000815260040161039991815260200190565b6111a28482613916565b6040805173ffffffffffffffffffffffffffffffffffffffff8b81168252602082018790529181018c905260608101839052919750808c1691908e169033907f2db5ddd0b42bdbca0d69ea16f234a870a485854ae0d91f16643d6f317d8b89949060800160405180910390a450505050509695505050505050565b73ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561125e5761125982826113d3565b505050565b61125973ffffffffffffffffffffffffffffffffffffffff841633848461196a565b73ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156112bc5761125982826113d3565b61125973ffffffffffffffffffffffffffffffffffffffff84168383611445565b60005473ffffffffffffffffffffffffffffffffffffffff16331461092e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610399565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808373ffffffffffffffffffffffffffffffffffffffff168360405160006040518083038185875af1925050503d806000811461142e576040519150601f19603f3d011682016040523d82523d6000602084013e611433565b606091505b5091509150816103f057805181602001fd5b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526112599084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526119c8565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561156b575073ffffffffffffffffffffffffffffffffffffffff8116316115fe565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301528416906370a0823190602401602060405180830381865afa1580156115d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fb919061397e565b90505b92915050565b6000806116178380516014018051915290565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290915073ffffffffffffffffffffffffffffffffffffffff8216906370a0823190602401602060405180830381865afa158015611684573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a8919061397e565b915081156116b7576001820391505b6116c383308385611ad4565b50919050565b60006116db8380516014018051915290565b905061125983338385611ad4565b4761170a823073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee84611ad4565b919050565b60006117218280516014018051915290565b9050611731826000836000611b2f565b5050565b60006117478280516014018051915290565b6040517ff7888aec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80831660048301523060248301529192506000917f0000000000000000000000000000000000000000000000000000000000000000169063f7888aec90604401602060405180830381865afa1580156117df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611803919061397e565b9050801561182e577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015b61125983308484611ad4565b600061184c8280516020018051915290565b905060006118608380516020018051915290565b905060006118748480516001018051915290565b905060006118888580516020018051915290565b9050600061189c8680516020018051915290565b6040517fdd62ed3e000000000000000000000000000000000000000000000000000000008152336004820152306024820152909150859073ffffffffffffffffffffffffffffffffffffffff89169063dd62ed3e90604401602060405180830381865afa158015611911573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611935919061397e565b10156119615761196173ffffffffffffffffffffffffffffffffffffffff881633308888888888611c63565b50505050505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526103f09085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611497565b6000611a2a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611ee39092919063ffffffff16565b8051909150156112595780806020019051810190611a489190613997565b611259576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610399565b6000611ae68580516001018051915290565b905060005b8160ff16811015610e5f576000611b088780516002018051915290565b61ffff8082168602049485900394909150611b2588888884611b2f565b5050600101611aeb565b6000611b418580516001018051915290565b905060ff8116611b5c57611b5785858585611efa565b611c5c565b8060ff1660011415611b7457611b57858585856122af565b8060ff1660021415611b8c57611b57858585856124ef565b8060ff1660031415611ba457611b57858585856126cd565b8060ff1660041415611bbc57611b5785858585612d55565b8060ff1660051415611bd457611b5785858585612ee3565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f526f75746550726f636573736f723a20556e6b6e6f776e20706f6f6c2074797060448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610399565b5050505050565b6040517f7ecebe0000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8881166004830152600091908a1690637ecebe0090602401602060405180830381865afa158015611cd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cf7919061397e565b6040517fd505accf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a811660048301528981166024830152604482018990526064820188905260ff8716608483015260a4820186905260c48201859052919250908a169063d505accf9060e401600060405180830381600087803b158015611d9157600080fd5b505af1158015611da5573d6000803e3d6000fd5b50506040517f7ecebe0000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b81166004830152600093508c169150637ecebe0090602401602060405180830381865afa158015611e18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3c919061397e565b9050611e49826001613966565b8114611ed7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f5361666545524332303a207065726d697420646964206e6f742073756363656560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610399565b50505050505050505050565b6060611ef2848460008561329a565b949350505050565b6000611f0c8580516014018051915290565b90506000611f208680516001018051915290565b90506000611f348780516014018051915290565b90506000611f488880516003018051915290565b905073ffffffffffffffffffffffffffffffffffffffff8716301415611f8e57611f8973ffffffffffffffffffffffffffffffffffffffff87168587611445565b611fce565b73ffffffffffffffffffffffffffffffffffffffff8716331415611fce57611fce73ffffffffffffffffffffffffffffffffffffffff871633868861196a565b6000808573ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa15801561201c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204091906139d2565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691506000821180156120755750600081115b6120db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f57726f6e6720706f6f6c207265736572766573000000000000000000000000006044820152606401610399565b6000808660ff166001146120f05782846120f3565b83835b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b8116600483015292945090925083918c16906370a0823190602401602060405180830381865afa158015612167573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218b919061397e565b6121959190613916565b985060006121a686620f4240613a22565b6121b59062ffffff168b613a46565b90506000816121c785620f4240613a46565b6121d19190613966565b6121db8484613a46565b6121e59190613a83565b90506000808a60ff166001146121fd57826000612201565b6000835b604080516000815260208101918290527f022c0d9f00000000000000000000000000000000000000000000000000000000909152919350915073ffffffffffffffffffffffffffffffffffffffff8d169063022c0d9f9061226b90859085908f9060248101613b34565b600060405180830381600087803b15801561228557600080fd5b505af1158015612299573d6000803e3d6000fd5b5050505050505050505050505050505050505050565b60006122c18580516014018051915290565b90506000806122d68780516001018051915290565b60ff1611905060006122ee8780516014018051915290565b905073ffffffffffffffffffffffffffffffffffffffff86163314156123305761233073ffffffffffffffffffffffffffffffffffffffff861633308761196a565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff851690811790915563128acb08828487816123a45761239f600173fffd8963efd1fc6a506488495d951d5263988d26613b6f565b6123b4565b6123b46401000276a36001613b9c565b6040805173ffffffffffffffffffffffffffffffffffffffff8d166020820152016040516020818303038152906040526040518663ffffffff1660e01b8152600401612404959493929190613bd4565b60408051808303816000875af1158015612422573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124469190613c1b565b505060025473ffffffffffffffffffffffffffffffffffffffff16600114611961576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f526f75746550726f636573736f722e73776170556e6956333a20756e6578706560448201527f63746564000000000000000000000000000000000000000000000000000000006064820152608401610399565b60006125018580516001018051915290565b905060006125158680516014018051915290565b9050600180831614156125e45760006125348780516014018051915290565b9050600283166125a0578073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561258657600080fd5b505af115801561259a573d6000803e3d6000fd5b50505050505b73ffffffffffffffffffffffffffffffffffffffff821630146125de576125de73ffffffffffffffffffffffffffffffffffffffff82168386611445565b50610e5f565b600282166126ad5773ffffffffffffffffffffffffffffffffffffffff851633141561262c5761262c73ffffffffffffffffffffffffffffffffffffffff851633308661196a565b6040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff851690632e1a7d4d90602401600060405180830381600087803b15801561269457600080fd5b505af11580156126a8573d6000803e3d6000fd5b505050505b610e5f73ffffffffffffffffffffffffffffffffffffffff8216846113d3565b60006126df8580516001018051915290565b905060006126f38680516014018051915290565b905060ff821615612aee5773ffffffffffffffffffffffffffffffffffffffff85163014156127625761275d73ffffffffffffffffffffffffffffffffffffffff85167f000000000000000000000000000000000000000000000000000000000000000085611445565b612a18565b73ffffffffffffffffffffffffffffffffffffffff85163314156127c25761275d73ffffffffffffffffffffffffffffffffffffffff8516337f00000000000000000000000000000000000000000000000000000000000000008661196a565b6040517f4ffe34db00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301527f00000000000000000000000000000000000000000000000000000000000000001690634ffe34db906024016040805180830381865afa15801561284d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128719190613c5f565b516040517fdf23b45b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526fffffffffffffffffffffffffffffffff909216917f0000000000000000000000000000000000000000000000000000000000000000169063df23b45b90602401606060405180830381865afa158015612913573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129379190613cd2565b60409081015190517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301526fffffffffffffffffffffffffffffffff909216918716906370a0823190602401602060405180830381865afa1580156129dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a01919061397e565b612a0b9190613966565b612a159190613916565b92505b6040517f02b9446c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301527f000000000000000000000000000000000000000000000000000000000000000081166024830181905290831660448301526064820185905260006084830152906302b9446c9060a40160408051808303816000875af1158015612ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae79190613c1b565b5050610e5f565b73ffffffffffffffffffffffffffffffffffffffff851615612bc5576040517ff18d03cc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301528681166024830152306044830152606482018590527f0000000000000000000000000000000000000000000000000000000000000000169063f18d03cc90608401600060405180830381600087803b158015612ba857600080fd5b505af1158015612bbc573d6000803e3d6000fd5b50505050612c7e565b6040517ff7888aec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301523060248301527f0000000000000000000000000000000000000000000000000000000000000000169063f7888aec90604401602060405180830381865afa158015612c57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c7b919061397e565b92505b6040517f97da6d3000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152306024830152828116604483015260006064830152608482018590527f000000000000000000000000000000000000000000000000000000000000000016906397da6d309060a40160408051808303816000875af1158015612d27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d4b9190613c1b565b5050505050505050565b6000612d678580516014018051915290565b85516020808201805190920101875290915073ffffffffffffffffffffffffffffffffffffffff851615612e4e576040517ff18d03cc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015286811660248301528381166044830152606482018590527f0000000000000000000000000000000000000000000000000000000000000000169063f18d03cc90608401600060405180830381600087803b158015612e3557600080fd5b505af1158015612e49573d6000803e3d6000fd5b505050505b6040517f627dd56a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83169063627dd56a90612ea0908490600401613d3e565b6020604051808303816000875af1158015612ebf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611961919061397e565b6000612ef58580516014018051915290565b90506000612f098680516001018051915290565b90506000612f1d8780516001018051915290565b60000b90506000612f348880516001018051915290565b60000b90506000612f4b8980516014018051915290565b90506000612f5f8a80516014018051915290565b9050600073ffffffffffffffffffffffffffffffffffffffff891673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415613048576040517f3df02124000000000000000000000000000000000000000000000000000000008152600f86810b600483015285900b6024820152604481018990526000606482015273ffffffffffffffffffffffffffffffffffffffff881690633df02124908a9060840160206040518083038185885af115801561301c573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190613041919061397e565b905061324f565b73ffffffffffffffffffffffffffffffffffffffff8a163314156130885761308873ffffffffffffffffffffffffffffffffffffffff8a1633308b61196a565b6130a973ffffffffffffffffffffffffffffffffffffffff8a16888a6133b3565b5060ff861661315c576040517f3df02124000000000000000000000000000000000000000000000000000000008152600f86810b600483015285900b6024820152604481018990526000606482015273ffffffffffffffffffffffffffffffffffffffff881690633df02124906084016020604051808303816000875af1158015613138573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613041919061397e565b600061317e73ffffffffffffffffffffffffffffffffffffffff841630611519565b6040517f3df02124000000000000000000000000000000000000000000000000000000008152600f88810b600483015287900b6024820152604481018b90526000606482015290915073ffffffffffffffffffffffffffffffffffffffff891690633df0212490608401600060405180830381600087803b15801561320257600080fd5b505af1158015613216573d6000803e3d6000fd5b506000925061323e91505073ffffffffffffffffffffffffffffffffffffffff851630611519565b905061324a8282613916565b925050505b73ffffffffffffffffffffffffffffffffffffffff8316301461328d5761328d73ffffffffffffffffffffffffffffffffffffffff83168483611280565b5050505050505050505050565b60608247101561332c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610399565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516133559190613d51565b60006040518083038185875af1925050503d8060008114613392576040519150601f19603f3d011682016040523d82523d6000602084013e613397565b606091505b50915091506133a8878383876133e4565b979650505050505050565b60006133c0848484613481565b80611ef257506133d284846000613481565b8015611ef25750611ef2848484613481565b606083156134775782516134705773ffffffffffffffffffffffffffffffffffffffff85163b613470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610399565b5081611ef2565b611ef28383613590565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790529151600092839283929188169161351a9190613d51565b6000604051808303816000865af19150503d8060008114613557576040519150601f19603f3d011682016040523d82523d6000602084013e61355c565b606091505b50915091508180156135865750805115806135865750808060200190518101906135869190613997565b9695505050505050565b8151156135a05781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103999190613d3e565b600080600080606085870312156135ea57600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561361057600080fd5b818701915087601f83011261362457600080fd5b81358181111561363357600080fd5b88602082850101111561364557600080fd5b95989497505060200194505050565b73ffffffffffffffffffffffffffffffffffffffff81168114610cb657600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f8301126136b657600080fd5b813567ffffffffffffffff808211156136d1576136d1613676565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561371757613717613676565b8160405283815286602085880101111561373057600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060008060c0878903121561376957600080fd5b863561377481613654565b955060208701359450604087013561378b81613654565b93506060870135925060808701356137a281613654565b915060a087013567ffffffffffffffff8111156137be57600080fd5b6137ca89828a016136a5565b9150509295509295509295565b600080600080600080600080610100898b0312156137f457600080fd5b88356137ff81613654565b975060208901359650604089013561381681613654565b955060608901359450608089013561382d81613654565b935060a0890135925060c089013561384481613654565b915060e089013567ffffffffffffffff81111561386057600080fd5b61386c8b828c016136a5565b9150509295985092959890939650565b8015158114610cb657600080fd5b6000806040838503121561389d57600080fd5b82356138a881613654565b915060208301356138b88161387c565b809150509250929050565b6000602082840312156138d557600080fd5b81356138e081613654565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015613928576139286138e7565b500390565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561395f5761395f6138e7565b5060010190565b60008219821115613979576139796138e7565b500190565b60006020828403121561399057600080fd5b5051919050565b6000602082840312156139a957600080fd5b81516138e08161387c565b80516dffffffffffffffffffffffffffff8116811461170a57600080fd5b6000806000606084860312156139e757600080fd5b6139f0846139b4565b92506139fe602085016139b4565b9150604084015163ffffffff81168114613a1757600080fd5b809150509250925092565b600062ffffff83811690831681811015613a3e57613a3e6138e7565b039392505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613a7e57613a7e6138e7565b500290565b600082613ab9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60005b83811015613ad9578181015183820152602001613ac1565b838111156103f05750506000910152565b60008151808452613b02816020860160208601613abe565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b84815283602082015273ffffffffffffffffffffffffffffffffffffffff831660408201526080606082015260006135866080830184613aea565b600073ffffffffffffffffffffffffffffffffffffffff83811690831681811015613a3e57613a3e6138e7565b600073ffffffffffffffffffffffffffffffffffffffff808316818516808303821115613bcb57613bcb6138e7565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff8088168352861515602084015285604084015280851660608401525060a060808301526133a860a0830184613aea565b60008060408385031215613c2e57600080fd5b505080516020909101519092909150565b80516fffffffffffffffffffffffffffffffff8116811461170a57600080fd5b600060408284031215613c7157600080fd5b6040516040810181811067ffffffffffffffff82111715613c9457613c94613676565b604052613ca083613c3f565b8152613cae60208401613c3f565b60208201529392505050565b805167ffffffffffffffff8116811461170a57600080fd5b600060608284031215613ce457600080fd5b6040516060810181811067ffffffffffffffff82111715613d0757613d07613676565b604052613d1383613cba565b8152613d2160208401613cba565b6020820152613d3260408401613c3f565b60408201529392505050565b6020815260006138e06020830184613aea565b60008251613d63818460208701613abe565b919091019291505056fea26469706673582212209f3b5dd61e1718e28656003bdb1e93579bac1e86bdbff2eb5116c63421166cc164736f6c634300080a0033", + "deployedBytecode": "0x6080604052600436106100ec5760003560e01c8063715018a61161008a5780639a1f3406116100595780639a1f34061461023c578063cd0fb7a71461025c578063f2fde38b1461029c578063fa461e33146102bc57600080fd5b8063715018a6146101d45780638456cb59146101e95780638da5cb5b146101fe57806393b3774c1461022957600080fd5b80632c8958f6116100c65780632c8958f61461010f57806347f8bd41146101555780636678ec1f146101685780636b2ace871461017b57600080fd5b8063046f7da2146100f857806323a69e751461010f5780632646478b1461012f57600080fd5b366100f357005b600080fd5b34801561010457600080fd5b5061010d6102dc565b005b34801561011b57600080fd5b5061010d61012a3660046135d4565b6103e4565b61014261013d366004613750565b6103f6565b6040519081526020015b60405180910390f35b6101426101633660046137d7565b6105a0565b6101426101763660046137d7565b61076e565b34801561018757600080fd5b506101af7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161014c565b3480156101e057600080fd5b5061010d61091c565b3480156101f557600080fd5b5061010d610930565b34801561020a57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166101af565b6101426102373660046137d7565b610a33565b34801561024857600080fd5b5061010d61025736600461388a565b610ba4565b34801561026857600080fd5b5061028c6102773660046138c3565b60016020526000908152604090205460ff1681565b604051901515815260200161014c565b3480156102a857600080fd5b5061010d6102b73660046138c3565b610c02565b3480156102c857600080fd5b5061010d6102d73660046135d4565b610cb9565b60005473ffffffffffffffffffffffffffffffffffffffff1633148061031157503360009081526001602052604090205460ff165b6103a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f52503a2063616c6c6572206973206e6f7420746865206f776e6572206f72206160448201527f2070726976696c6567656420757365720000000000000000000000000000000060648201526084015b60405180910390fd5b600280547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167501000000000000000000000000000000000000000000179055565b6103f084848484610cb9565b50505050565b60025460009074010000000000000000000000000000000000000000900460ff16600114610480576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610508576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674020000000000000000000000000000000000000000179055610555878787878787610e67565b9050600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790559695505050505050565b60025460009074010000000000000000000000000000000000000000900460ff1660011461062a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff166001146106b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905561071273ffffffffffffffffffffffffffffffffffffffff88168a8a61121d565b610720878787878787610e67565b90505b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905598975050505050505050565b60025460009074010000000000000000000000000000000000000000900460ff166001146107f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610880576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740200000000000000000000000000000000000000001790556108cd878787873087610e67565b90506108f073ffffffffffffffffffffffffffffffffffffffff86168a8a611280565b610723836108fe8a84613916565b73ffffffffffffffffffffffffffffffffffffffff88169190611280565b6109246112dd565b61092e600061135e565b565b60005473ffffffffffffffffffffffffffffffffffffffff1633148061096557503360009081526001602052604090205460ff165b6109f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f52503a2063616c6c6572206973206e6f7420746865206f776e6572206f72206160448201527f2070726976696c656765642075736572000000000000000000000000000000006064820152608401610399565b600280547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167502000000000000000000000000000000000000000000179055565b60025460009074010000000000000000000000000000000000000000900460ff16600114610abd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610b45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905561071273ffffffffffffffffffffffffffffffffffffffff8a16896113d3565b610bac6112dd565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b610c0a6112dd565b73ffffffffffffffffffffffffffffffffffffffff8116610cad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610399565b610cb68161135e565b50565b60025473ffffffffffffffffffffffffffffffffffffffff163314610d60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603e60248201527f526f75746550726f636573736f722e756e697377617056335377617043616c6c60448201527f6261636b3a2063616c6c2066726f6d20756e6b6e6f776e20736f7572636500006064820152608401610399565b6000808513610d6f5783610d71565b845b905060008113610e03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603960248201527f526f75746550726f636573736f722e756e697377617056335377617043616c6c60448201527f6261636b3a206e6f7420706f73697469766520616d6f756e74000000000000006064820152608401610399565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001660011790556000610e3c838501856138c3565b9050610e5f73ffffffffffffffffffffffffffffffffffffffff82163384611445565b505050505050565b600080610e8a73ffffffffffffffffffffffffffffffffffffffff891633611519565b90506000610eae73ffffffffffffffffffffffffffffffffffffffff881686611519565b905087600080610ed287604080518082019091528181528151909101602082015290565b90505b805160208201511115611028576000610ef48280516001018051915290565b90508060ff1660011415610f1e576000610f0d83611604565b905083610f18578094505b50611017565b8060ff1660021415610f3957610f34828d6116c9565b611017565b8060ff1660031415610f50576000610f0d836116e9565b8060ff1660041415610f6557610f348261170f565b8060ff1660051415610f7a57610f3482611735565b8060ff1660061415610f9057610f348d8361183a565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f526f75746550726f636573736f723a20556e6b6e6f776e20636f6d6d616e642060448201527f636f6465000000000000000000000000000000000000000000000000000000006064820152608401610399565b6110208361392d565b925050610ed5565b506000905061104d73ffffffffffffffffffffffffffffffffffffffff8c1633611519565b905073ffffffffffffffffffffffffffffffffffffffff8b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611124578361108b8b83613966565b61109690600a613966565b1015611124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f526f75746550726f636573736f723a204d696e696d616c20696e70757420626160448201527f6c616e63652076696f6c6174696f6e00000000000000000000000000000000006064820152608401610399565b600061114673ffffffffffffffffffffffffffffffffffffffff8b1689611519565b90506111528985613966565b811015611198576111638482613916565b6040517f963b34a500000000000000000000000000000000000000000000000000000000815260040161039991815260200190565b6111a28482613916565b6040805173ffffffffffffffffffffffffffffffffffffffff8b81168252602082018790529181018c905260608101839052919750808c1691908e169033907f2db5ddd0b42bdbca0d69ea16f234a870a485854ae0d91f16643d6f317d8b89949060800160405180910390a450505050509695505050505050565b73ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561125e5761125982826113d3565b505050565b61125973ffffffffffffffffffffffffffffffffffffffff841633848461196a565b73ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156112bc5761125982826113d3565b61125973ffffffffffffffffffffffffffffffffffffffff84168383611445565b60005473ffffffffffffffffffffffffffffffffffffffff16331461092e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610399565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808373ffffffffffffffffffffffffffffffffffffffff168360405160006040518083038185875af1925050503d806000811461142e576040519150601f19603f3d011682016040523d82523d6000602084013e611433565b606091505b5091509150816103f057805181602001fd5b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526112599084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526119c8565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561156b575073ffffffffffffffffffffffffffffffffffffffff8116316115fe565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301528416906370a0823190602401602060405180830381865afa1580156115d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fb919061397e565b90505b92915050565b6000806116178380516014018051915290565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290915073ffffffffffffffffffffffffffffffffffffffff8216906370a0823190602401602060405180830381865afa158015611684573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a8919061397e565b915081156116b7576001820391505b6116c383308385611ad4565b50919050565b60006116db8380516014018051915290565b905061125983338385611ad4565b4761170a823073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee84611ad4565b919050565b60006117218280516014018051915290565b9050611731826000836000611b2f565b5050565b60006117478280516014018051915290565b6040517ff7888aec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80831660048301523060248301529192506000917f0000000000000000000000000000000000000000000000000000000000000000169063f7888aec90604401602060405180830381865afa1580156117df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611803919061397e565b9050801561182e577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015b61125983308484611ad4565b600061184c8280516020018051915290565b905060006118608380516020018051915290565b905060006118748480516001018051915290565b905060006118888580516020018051915290565b9050600061189c8680516020018051915290565b6040517fdd62ed3e000000000000000000000000000000000000000000000000000000008152336004820152306024820152909150859073ffffffffffffffffffffffffffffffffffffffff89169063dd62ed3e90604401602060405180830381865afa158015611911573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611935919061397e565b10156119615761196173ffffffffffffffffffffffffffffffffffffffff881633308888888888611c63565b50505050505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526103f09085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611497565b6000611a2a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611ee39092919063ffffffff16565b8051909150156112595780806020019051810190611a489190613997565b611259576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610399565b6000611ae68580516001018051915290565b905060005b8160ff16811015610e5f576000611b088780516002018051915290565b61ffff8082168602049485900394909150611b2588888884611b2f565b5050600101611aeb565b6000611b418580516001018051915290565b905060ff8116611b5c57611b5785858585611efa565b611c5c565b8060ff1660011415611b7457611b57858585856122af565b8060ff1660021415611b8c57611b57858585856124ef565b8060ff1660031415611ba457611b57858585856126cd565b8060ff1660041415611bbc57611b5785858585612d55565b8060ff1660051415611bd457611b5785858585612ee3565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f526f75746550726f636573736f723a20556e6b6e6f776e20706f6f6c2074797060448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610399565b5050505050565b6040517f7ecebe0000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8881166004830152600091908a1690637ecebe0090602401602060405180830381865afa158015611cd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cf7919061397e565b6040517fd505accf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a811660048301528981166024830152604482018990526064820188905260ff8716608483015260a4820186905260c48201859052919250908a169063d505accf9060e401600060405180830381600087803b158015611d9157600080fd5b505af1158015611da5573d6000803e3d6000fd5b50506040517f7ecebe0000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b81166004830152600093508c169150637ecebe0090602401602060405180830381865afa158015611e18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3c919061397e565b9050611e49826001613966565b8114611ed7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f5361666545524332303a207065726d697420646964206e6f742073756363656560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610399565b50505050505050505050565b6060611ef2848460008561329a565b949350505050565b6000611f0c8580516014018051915290565b90506000611f208680516001018051915290565b90506000611f348780516014018051915290565b90506000611f488880516003018051915290565b905073ffffffffffffffffffffffffffffffffffffffff8716301415611f8e57611f8973ffffffffffffffffffffffffffffffffffffffff87168587611445565b611fce565b73ffffffffffffffffffffffffffffffffffffffff8716331415611fce57611fce73ffffffffffffffffffffffffffffffffffffffff871633868861196a565b6000808573ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa15801561201c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204091906139d2565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691506000821180156120755750600081115b6120db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f57726f6e6720706f6f6c207265736572766573000000000000000000000000006044820152606401610399565b6000808660ff166001146120f05782846120f3565b83835b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b8116600483015292945090925083918c16906370a0823190602401602060405180830381865afa158015612167573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218b919061397e565b6121959190613916565b985060006121a686620f4240613a22565b6121b59062ffffff168b613a46565b90506000816121c785620f4240613a46565b6121d19190613966565b6121db8484613a46565b6121e59190613a83565b90506000808a60ff166001146121fd57826000612201565b6000835b604080516000815260208101918290527f022c0d9f00000000000000000000000000000000000000000000000000000000909152919350915073ffffffffffffffffffffffffffffffffffffffff8d169063022c0d9f9061226b90859085908f9060248101613b34565b600060405180830381600087803b15801561228557600080fd5b505af1158015612299573d6000803e3d6000fd5b5050505050505050505050505050505050505050565b60006122c18580516014018051915290565b90506000806122d68780516001018051915290565b60ff1611905060006122ee8780516014018051915290565b905073ffffffffffffffffffffffffffffffffffffffff86163314156123305761233073ffffffffffffffffffffffffffffffffffffffff861633308761196a565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff851690811790915563128acb08828487816123a45761239f600173fffd8963efd1fc6a506488495d951d5263988d26613b6f565b6123b4565b6123b46401000276a36001613b9c565b6040805173ffffffffffffffffffffffffffffffffffffffff8d166020820152016040516020818303038152906040526040518663ffffffff1660e01b8152600401612404959493929190613bd4565b60408051808303816000875af1158015612422573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124469190613c1b565b505060025473ffffffffffffffffffffffffffffffffffffffff16600114611961576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f526f75746550726f636573736f722e73776170556e6956333a20756e6578706560448201527f63746564000000000000000000000000000000000000000000000000000000006064820152608401610399565b60006125018580516001018051915290565b905060006125158680516014018051915290565b9050600180831614156125e45760006125348780516014018051915290565b9050600283166125a0578073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561258657600080fd5b505af115801561259a573d6000803e3d6000fd5b50505050505b73ffffffffffffffffffffffffffffffffffffffff821630146125de576125de73ffffffffffffffffffffffffffffffffffffffff82168386611445565b50610e5f565b600282166126ad5773ffffffffffffffffffffffffffffffffffffffff851633141561262c5761262c73ffffffffffffffffffffffffffffffffffffffff851633308661196a565b6040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff851690632e1a7d4d90602401600060405180830381600087803b15801561269457600080fd5b505af11580156126a8573d6000803e3d6000fd5b505050505b610e5f73ffffffffffffffffffffffffffffffffffffffff8216846113d3565b60006126df8580516001018051915290565b905060006126f38680516014018051915290565b905060ff821615612aee5773ffffffffffffffffffffffffffffffffffffffff85163014156127625761275d73ffffffffffffffffffffffffffffffffffffffff85167f000000000000000000000000000000000000000000000000000000000000000085611445565b612a18565b73ffffffffffffffffffffffffffffffffffffffff85163314156127c25761275d73ffffffffffffffffffffffffffffffffffffffff8516337f00000000000000000000000000000000000000000000000000000000000000008661196a565b6040517f4ffe34db00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301527f00000000000000000000000000000000000000000000000000000000000000001690634ffe34db906024016040805180830381865afa15801561284d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128719190613c5f565b516040517fdf23b45b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526fffffffffffffffffffffffffffffffff909216917f0000000000000000000000000000000000000000000000000000000000000000169063df23b45b90602401606060405180830381865afa158015612913573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129379190613cd2565b60409081015190517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301526fffffffffffffffffffffffffffffffff909216918716906370a0823190602401602060405180830381865afa1580156129dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a01919061397e565b612a0b9190613966565b612a159190613916565b92505b6040517f02b9446c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301527f000000000000000000000000000000000000000000000000000000000000000081166024830181905290831660448301526064820185905260006084830152906302b9446c9060a40160408051808303816000875af1158015612ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae79190613c1b565b5050610e5f565b73ffffffffffffffffffffffffffffffffffffffff851615612bc5576040517ff18d03cc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301528681166024830152306044830152606482018590527f0000000000000000000000000000000000000000000000000000000000000000169063f18d03cc90608401600060405180830381600087803b158015612ba857600080fd5b505af1158015612bbc573d6000803e3d6000fd5b50505050612c7e565b6040517ff7888aec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301523060248301527f0000000000000000000000000000000000000000000000000000000000000000169063f7888aec90604401602060405180830381865afa158015612c57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c7b919061397e565b92505b6040517f97da6d3000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152306024830152828116604483015260006064830152608482018590527f000000000000000000000000000000000000000000000000000000000000000016906397da6d309060a40160408051808303816000875af1158015612d27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d4b9190613c1b565b5050505050505050565b6000612d678580516014018051915290565b85516020808201805190920101875290915073ffffffffffffffffffffffffffffffffffffffff851615612e4e576040517ff18d03cc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015286811660248301528381166044830152606482018590527f0000000000000000000000000000000000000000000000000000000000000000169063f18d03cc90608401600060405180830381600087803b158015612e3557600080fd5b505af1158015612e49573d6000803e3d6000fd5b505050505b6040517f627dd56a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83169063627dd56a90612ea0908490600401613d3e565b6020604051808303816000875af1158015612ebf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611961919061397e565b6000612ef58580516014018051915290565b90506000612f098680516001018051915290565b90506000612f1d8780516001018051915290565b60000b90506000612f348880516001018051915290565b60000b90506000612f4b8980516014018051915290565b90506000612f5f8a80516014018051915290565b9050600073ffffffffffffffffffffffffffffffffffffffff891673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415613048576040517f3df02124000000000000000000000000000000000000000000000000000000008152600f86810b600483015285900b6024820152604481018990526000606482015273ffffffffffffffffffffffffffffffffffffffff881690633df02124908a9060840160206040518083038185885af115801561301c573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190613041919061397e565b905061324f565b73ffffffffffffffffffffffffffffffffffffffff8a163314156130885761308873ffffffffffffffffffffffffffffffffffffffff8a1633308b61196a565b6130a973ffffffffffffffffffffffffffffffffffffffff8a16888a6133b3565b5060ff861661315c576040517f3df02124000000000000000000000000000000000000000000000000000000008152600f86810b600483015285900b6024820152604481018990526000606482015273ffffffffffffffffffffffffffffffffffffffff881690633df02124906084016020604051808303816000875af1158015613138573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613041919061397e565b600061317e73ffffffffffffffffffffffffffffffffffffffff841630611519565b6040517f3df02124000000000000000000000000000000000000000000000000000000008152600f88810b600483015287900b6024820152604481018b90526000606482015290915073ffffffffffffffffffffffffffffffffffffffff891690633df0212490608401600060405180830381600087803b15801561320257600080fd5b505af1158015613216573d6000803e3d6000fd5b506000925061323e91505073ffffffffffffffffffffffffffffffffffffffff851630611519565b905061324a8282613916565b925050505b73ffffffffffffffffffffffffffffffffffffffff8316301461328d5761328d73ffffffffffffffffffffffffffffffffffffffff83168483611280565b5050505050505050505050565b60608247101561332c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610399565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516133559190613d51565b60006040518083038185875af1925050503d8060008114613392576040519150601f19603f3d011682016040523d82523d6000602084013e613397565b606091505b50915091506133a8878383876133e4565b979650505050505050565b60006133c0848484613481565b80611ef257506133d284846000613481565b8015611ef25750611ef2848484613481565b606083156134775782516134705773ffffffffffffffffffffffffffffffffffffffff85163b613470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610399565b5081611ef2565b611ef28383613590565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790529151600092839283929188169161351a9190613d51565b6000604051808303816000865af19150503d8060008114613557576040519150601f19603f3d011682016040523d82523d6000602084013e61355c565b606091505b50915091508180156135865750805115806135865750808060200190518101906135869190613997565b9695505050505050565b8151156135a05781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103999190613d3e565b600080600080606085870312156135ea57600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561361057600080fd5b818701915087601f83011261362457600080fd5b81358181111561363357600080fd5b88602082850101111561364557600080fd5b95989497505060200194505050565b73ffffffffffffffffffffffffffffffffffffffff81168114610cb657600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f8301126136b657600080fd5b813567ffffffffffffffff808211156136d1576136d1613676565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561371757613717613676565b8160405283815286602085880101111561373057600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060008060c0878903121561376957600080fd5b863561377481613654565b955060208701359450604087013561378b81613654565b93506060870135925060808701356137a281613654565b915060a087013567ffffffffffffffff8111156137be57600080fd5b6137ca89828a016136a5565b9150509295509295509295565b600080600080600080600080610100898b0312156137f457600080fd5b88356137ff81613654565b975060208901359650604089013561381681613654565b955060608901359450608089013561382d81613654565b935060a0890135925060c089013561384481613654565b915060e089013567ffffffffffffffff81111561386057600080fd5b61386c8b828c016136a5565b9150509295985092959890939650565b8015158114610cb657600080fd5b6000806040838503121561389d57600080fd5b82356138a881613654565b915060208301356138b88161387c565b809150509250929050565b6000602082840312156138d557600080fd5b81356138e081613654565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015613928576139286138e7565b500390565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561395f5761395f6138e7565b5060010190565b60008219821115613979576139796138e7565b500190565b60006020828403121561399057600080fd5b5051919050565b6000602082840312156139a957600080fd5b81516138e08161387c565b80516dffffffffffffffffffffffffffff8116811461170a57600080fd5b6000806000606084860312156139e757600080fd5b6139f0846139b4565b92506139fe602085016139b4565b9150604084015163ffffffff81168114613a1757600080fd5b809150509250925092565b600062ffffff83811690831681811015613a3e57613a3e6138e7565b039392505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613a7e57613a7e6138e7565b500290565b600082613ab9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60005b83811015613ad9578181015183820152602001613ac1565b838111156103f05750506000910152565b60008151808452613b02816020860160208601613abe565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b84815283602082015273ffffffffffffffffffffffffffffffffffffffff831660408201526080606082015260006135866080830184613aea565b600073ffffffffffffffffffffffffffffffffffffffff83811690831681811015613a3e57613a3e6138e7565b600073ffffffffffffffffffffffffffffffffffffffff808316818516808303821115613bcb57613bcb6138e7565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff8088168352861515602084015285604084015280851660608401525060a060808301526133a860a0830184613aea565b60008060408385031215613c2e57600080fd5b505080516020909101519092909150565b80516fffffffffffffffffffffffffffffffff8116811461170a57600080fd5b600060408284031215613c7157600080fd5b6040516040810181811067ffffffffffffffff82111715613c9457613c94613676565b604052613ca083613c3f565b8152613cae60208401613c3f565b60208201529392505050565b805167ffffffffffffffff8116811461170a57600080fd5b600060608284031215613ce457600080fd5b6040516060810181811067ffffffffffffffff82111715613d0757613d07613676565b604052613d1383613cba565b8152613d2160208401613cba565b6020820152613d3260408401613c3f565b60408201529392505050565b6020815260006138e06020830184613aea565b60008251613d63818460208701613abe565b919091019291505056fea26469706673582212209f3b5dd61e1718e28656003bdb1e93579bac1e86bdbff2eb5116c63421166cc164736f6c634300080a0033", + "devdoc": { + "author": "Ilya Lyalin", + "kind": "dev", + "methods": { + "algebraSwapCallback(int256,int256,bytes)": { + "details": "In the implementation you must pay the pool tokens owed for the swap. The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory. amount0Delta and amount1Delta can both be 0 if no tokens were swapped.", + "params": { + "amount0Delta": "The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.", + "amount1Delta": "The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.", + "data": "Any data passed through by the caller via the IAlgebraPoolActions#swap call" + } + }, + "owner()": { + "details": "Returns the address of the current owner." + }, + "pancakeV3SwapCallback(int256,int256,bytes)": { + "details": "In the implementation you must pay the pool tokens owed for the swap.", + "params": { + "amount0Delta": "The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.", + "amount1Delta": "The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.", + "data": "Any data passed through by the caller via the PancakeV3Pool#swap call" + } + }, + "processRoute(address,uint256,address,uint256,address,bytes)": { + "params": { + "amountIn": "Amount of the input token", + "amountOutMin": "Minimum amount of the output token", + "route": "Route to process", + "to": "Where to transfer output tokens", + "tokenIn": "Address of the input token", + "tokenOut": "Address of the output token" + }, + "returns": { + "amountOut": "Actual amount of the output token" + } + }, + "processRouteWithTransferValueInput(address,uint256,address,uint256,address,uint256,address,bytes)": { + "params": { + "amountIn": "Amount of the input token", + "amountOutMin": "Minimum amount of the output token", + "amountValueTransfer": "How much value to transfer", + "tokenIn": "Address of the input token", + "tokenOut": "Address of the output token", + "transferValueTo": "Address where the value should be transferred" + }, + "returns": { + "amountOut": "Actual amount of the output token" + } + }, + "processRouteWithTransferValueOutput(address,uint256,address,uint256,address,uint256,address,bytes)": { + "params": { + "amountIn": "Amount of the input token", + "amountOutMin": "Minimum amount of the output token", + "amountValueTransfer": "How much value to transfer", + "tokenIn": "Address of the input token", + "tokenOut": "Address of the output token", + "transferValueTo": "Address where the value should be transferred" + }, + "returns": { + "amountOut": "Actual amount of the output token" + } + }, + "renounceOwnership()": { + "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." + }, + "transferOwnership(address)": { + "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." + }, + "transferValueAndprocessRoute(address,uint256,address,uint256,address,uint256,address,bytes)": { + "params": { + "amountIn": "Amount of the input token", + "amountOutMin": "Minimum amount of the output token", + "amountValueTransfer": "How much value to transfer", + "tokenIn": "Address of the input token", + "tokenOut": "Address of the output token", + "transferValueTo": "Address where the value should be transferred" + }, + "returns": { + "amountOut": "Actual amount of the output token" + } + }, + "uniswapV3SwapCallback(int256,int256,bytes)": { + "details": "In the implementation you must pay the pool tokens owed for the swap. The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory. amount0Delta and amount1Delta can both be 0 if no tokens were swapped.", + "params": { + "amount0Delta": "The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.", + "amount1Delta": "The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.", + "data": "Any data passed through by the caller via the IUniswapV3PoolActions#swap call" + } + } + }, + "title": "A route processor for the Sushi Aggregator", + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "algebraSwapCallback(int256,int256,bytes)": { + "notice": "Called to `msg.sender` after executing a swap via IAlgebraPool#swap." + }, + "pancakeV3SwapCallback(int256,int256,bytes)": { + "notice": "Called to `msg.sender` after executing a swap via PancakeV3Pool#swap." + }, + "processRoute(address,uint256,address,uint256,address,bytes)": { + "notice": "Processes the route generated off-chain. Has a lock" + }, + "processRouteWithTransferValueInput(address,uint256,address,uint256,address,uint256,address,bytes)": { + "notice": "Transfers some value of input tokens to and then processes the route" + }, + "processRouteWithTransferValueOutput(address,uint256,address,uint256,address,uint256,address,bytes)": { + "notice": "processes the route and sends amount of output token to " + }, + "transferValueAndprocessRoute(address,uint256,address,uint256,address,uint256,address,bytes)": { + "notice": "Transfers some value to and then processes the route" + }, + "uniswapV3SwapCallback(int256,int256,bytes)": { + "notice": "Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap." + } + }, + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 7, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "_owner", + "offset": 0, + "slot": "0", + "type": "t_address" + }, + { + "astId": 8573, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "priviledgedUsers", + "offset": 0, + "slot": "1", + "type": "t_mapping(t_address,t_bool)" + }, + { + "astId": 8575, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "lastCalledPool", + "offset": 0, + "slot": "2", + "type": "t_address" + }, + { + "astId": 8578, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "unlocked", + "offset": 20, + "slot": "2", + "type": "t_uint8" + }, + { + "astId": 8581, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "paused", + "offset": 21, + "slot": "2", + "type": "t_uint8" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_bool)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => bool)", + "numberOfBytes": "32", + "value": "t_bool" + }, + "t_uint8": { + "encoding": "inplace", + "label": "uint8", + "numberOfBytes": "1" + } + } + } +} \ No newline at end of file diff --git a/protocols/route-processor/deployments/mode/solcInputs/9252879aaeb02fabe759ce8768addec4.json b/protocols/route-processor/deployments/mode/solcInputs/9252879aaeb02fabe759ce8768addec4.json new file mode 100644 index 0000000000..c6762a8dc1 --- /dev/null +++ b/protocols/route-processor/deployments/mode/solcInputs/9252879aaeb02fabe759ce8768addec4.json @@ -0,0 +1,98 @@ +{ + "language": "Solidity", + "sources": { + "@openzeppelin/contracts/access/Ownable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n address private _owner;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the deployer as the initial owner.\n */\n constructor() {\n _transferOwnership(_msgSender());\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions anymore. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby removing any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n _transferOwnership(address(0));\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n _transferOwnership(newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual {\n address oldOwner = _owner;\n _owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n" + }, + "@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n */\ninterface IERC20Permit {\n /**\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n * given ``owner``'s signed approval.\n *\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n * ordering also apply here.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `deadline` must be a timestamp in the future.\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n * over the EIP712-formatted function arguments.\n * - the signature must use ``owner``'s current nonce (see {nonces}).\n *\n * For more information on the signature format, see the\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n * section].\n */\n function permit(\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n /**\n * @dev Returns the current nonce for `owner`. This value must be\n * included whenever a signature is generated for {permit}.\n *\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\n * prevents a signature from being used multiple times.\n */\n function nonces(address owner) external view returns (uint256);\n\n /**\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n */\n // solhint-disable-next-line func-name-mixedcase\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n" + }, + "@openzeppelin/contracts/token/ERC20/IERC20.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the amount of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the amount of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 amount) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 amount) external returns (bool);\n\n /**\n * @dev Moves `amount` tokens from `from` to `to` using the\n * allowance mechanism. `amount` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) external returns (bool);\n}\n" + }, + "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\nimport \"../extensions/draft-IERC20Permit.sol\";\nimport \"../../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n using Address for address;\n\n function safeTransfer(\n IERC20 token,\n address to,\n uint256 value\n ) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n }\n\n function safeTransferFrom(\n IERC20 token,\n address from,\n address to,\n uint256 value\n ) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n }\n\n /**\n * @dev Deprecated. This function has issues similar to the ones found in\n * {IERC20-approve}, and its usage is discouraged.\n *\n * Whenever possible, use {safeIncreaseAllowance} and\n * {safeDecreaseAllowance} instead.\n */\n function safeApprove(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n // safeApprove should only be called when setting an initial allowance,\n // or when resetting it to zero. To increase and decrease it, use\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n require(\n (value == 0) || (token.allowance(address(this), spender) == 0),\n \"SafeERC20: approve from non-zero to non-zero allowance\"\n );\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n }\n\n function safeIncreaseAllowance(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n uint256 newAllowance = token.allowance(address(this), spender) + value;\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\n }\n\n function safeDecreaseAllowance(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n unchecked {\n uint256 oldAllowance = token.allowance(address(this), spender);\n require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n uint256 newAllowance = oldAllowance - value;\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\n }\n }\n\n function safePermit(\n IERC20Permit token,\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n uint256 nonceBefore = token.nonces(owner);\n token.permit(owner, spender, value, deadline, v, r, s);\n uint256 nonceAfter = token.nonces(owner);\n require(nonceAfter == nonceBefore + 1, \"SafeERC20: permit did not succeed\");\n }\n\n /**\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n * on the return value: the return value is optional (but if data is returned, it must not be false).\n * @param token The token targeted by the call.\n * @param data The call data (encoded using abi.encode or one of its variants).\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n // the target address contains contract code and also asserts for success in the low-level call.\n\n bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n if (returndata.length > 0) {\n // Return data is optional\n require(abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n }\n }\n}\n" + }, + "@openzeppelin/contracts/utils/Address.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n" + }, + "@openzeppelin/contracts/utils/Context.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n}\n" + }, + "contracts/Approve.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\n\nlibrary Approve {\n\n /**\n * @dev ERC20 approve that correct works with token.approve which returns bool or nothing (USDT for example)\n * @param token The token targeted by the call.\n * @param spender token spender\n * @param amount token amount\n */\n function approveStable(IERC20 token, address spender, uint256 amount) internal returns (bool) {\n (bool success, bytes memory data) = address(token).call(\n abi.encodeWithSelector(token.approve.selector, spender, amount)\n );\n return success && (data.length == 0 || abi.decode(data, (bool)));\n }\n\n /**\n * @dev ERC20 approve that correct works with token.approve which reverts if amount and \n * current allowance are not zero simultaniously (USDT for example). \n * In second case it tries to set allowance to 0, and then back to amount.\n * @param token The token targeted by the call.\n * @param spender token spender\n * @param amount token amount\n */\n function approveSafe(IERC20 token, address spender, uint256 amount) internal returns (bool) {\n return approveStable(token, spender, amount) \n || (approveStable(token, spender, 0) && approveStable(token, spender, amount));\n }\n}\n" + }, + "contracts/InputStream.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\n/** @notice Simple read stream */\nlibrary InputStream {\n\n /** @notice Creates stream from data\n * @param data data\n */\n function createStream(bytes memory data) internal pure returns (uint256 stream) {\n assembly {\n stream := mload(0x40)\n mstore(0x40, add(stream, 64))\n mstore(stream, data)\n let length := mload(data)\n mstore(add(stream, 32), add(data, length))\n }\n }\n\n /** @notice Checks if stream is not empty\n * @param stream stream\n */\n function isNotEmpty(uint256 stream) internal pure returns (bool) {\n uint256 pos;\n uint256 finish;\n assembly {\n pos := mload(stream)\n finish := mload(add(stream, 32))\n }\n return pos < finish;\n }\n\n /** @notice Reads uint8 from the stream\n * @param stream stream\n */\n function readUint8(uint256 stream) internal pure returns (uint8 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 1)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads uint16 from the stream\n * @param stream stream\n */\n function readUint16(uint256 stream) internal pure returns (uint16 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 2)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads uint24 from the stream\n * @param stream stream\n */\n function readUint24(uint256 stream) internal pure returns (uint24 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 3)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads uint32 from the stream\n * @param stream stream\n */\n function readUint32(uint256 stream) internal pure returns (uint32 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 4)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads uint256 from the stream\n * @param stream stream\n */\n function readUint(uint256 stream) internal pure returns (uint256 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 32)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads bytes32 from the stream\n * @param stream stream\n */\n function readBytes32(uint256 stream) internal pure returns (bytes32 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 32)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads address from the stream\n * @param stream stream\n */\n function readAddress(uint256 stream) internal pure returns (address res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 20)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads bytes from the stream\n * @param stream stream\n */\n function readBytes(uint256 stream) internal pure returns (bytes memory res) {\n assembly {\n let pos := mload(stream)\n res := add(pos, 32)\n let length := mload(res)\n mstore(stream, add(res, length))\n }\n }\n}\n" + }, + "contracts/RouteProcessor.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport './InputStream.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\n\naddress constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Okavango\ncontract RouteProcessor {\n using SafeERC20 for IERC20;\n using InputStream for uint256;\n\n IBentoBoxMinimal public immutable bentoBox;\n\n uint private unlocked = 1;\n modifier lock() {\n require(unlocked == 1, 'RouteProcessor is locked');\n unlocked = 2;\n _;\n unlocked = 1;\n }\n\n constructor(address _bentoBox) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n (bool success, bytes memory returnBytes) = transferValueTo.call{value: amountValueTransfer}('');\n require(success, string(abi.encodePacked(returnBytes)));\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 amountInAcc = 0;\n uint256 balanceInitial = tokenOut == NATIVE_ADDRESS ? \n address(to).balance : IERC20(tokenOut).balanceOf(to);\n\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode < 20) {\n if (commandCode == 10)\n swapUniswapPool(stream); // Sushi/Uniswap pool swap\n else if (commandCode == 4)\n distributeERC20Shares(stream); // distribute ERC20 tokens from this router to pools\n else if (commandCode == 3)\n amountInAcc += distributeERC20Amounts(stream, tokenIn); // initial distribution\n else if (commandCode == 5)\n amountInAcc += wrapAndDistributeERC20Amounts(stream); // wrap natives and initial distribution \n else if (commandCode == 6) \n unwrapNative(to, stream);\n else if (commandCode == 7)\n amountInAcc += distributeERC20AmountsFromRP(stream, tokenIn); // initial distribution\n else revert('Unknown command code');\n } else if (commandCode < 24) {\n if (commandCode == 20) bentoDepositAmountFromBento(stream, tokenIn);\n else if (commandCode == 21) swapTrident(stream);\n else if (commandCode == 23) bentoWithdrawShareFromRP(stream, tokenIn);\n else revert('Unknown command code');\n } else {\n if (commandCode == 24) amountInAcc += distributeBentoShares(stream, tokenIn);\n else if (commandCode == 25) distributeBentoPortions(stream);\n else if (commandCode == 26) bentoDepositAllFromBento(stream);\n else if (commandCode == 27) bentoWithdrawAllFromRP(stream);\n else revert('Unknown command code');\n }\n }\n\n require(amountInAcc == amountIn, 'Wrong amountIn value');\n uint256 balanceFinal = tokenOut == NATIVE_ADDRESS ? \n address(to).balance : IERC20(tokenOut).balanceOf(to);\n require(balanceFinal >= balanceInitial + amountOutMin, 'Minimal ouput balance violation');\n\n amountOut = balanceFinal - balanceInitial;\n }\n\n /// @notice Transfers input tokens sent to BentoBox to a pool\n /// @notice Expected to be called for initial liquidity transfer from user to BentoBox, so we know exact amounts\n /// @param stream [Pool, Amount]. Pool into which an amount of tokens will be transferred\n /// @param token Address of the token to transfer\n function bentoDepositAmountFromBento(uint256 stream, address token) private {\n address to = stream.readAddress();\n uint256 amount = stream.readUint();\n bentoBox.deposit(token, address(bentoBox), to, amount, 0);\n }\n\n /// @notice Transfers all available input tokens from BentoBox to a pool\n /// @param stream [Pool, Token]. Pool into which all tokens will be transferred \n function bentoDepositAllFromBento(uint256 stream) private {\n address to = stream.readAddress();\n address token = stream.readAddress();\n\n uint256 amount = IERC20(token).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(token).balance -\n bentoBox.totals(token).elastic;\n bentoBox.deposit(token, address(bentoBox), to, amount, 0);\n }\n\n /// @notice Withdraws BentoBox tokens from BentoBox to an address\n /// @param stream [To, Amount]. Destination where an amount of token will be transferred\n /// @param token Token to transfer\n function bentoWithdrawShareFromRP(uint256 stream, address token) private {\n address to = stream.readAddress();\n uint256 amount = stream.readUint();\n bentoBox.withdraw(token, address(this), to, amount, 0);\n }\n\n /// @notice Withdraws all available BentoBox tokens from BentoBox to an address\n /// @param stream [Token, To]. Token which will be transferred to a destination\n function bentoWithdrawAllFromRP(uint256 stream) private {\n address token = stream.readAddress();\n address to = stream.readAddress();\n uint256 amount = bentoBox.balanceOf(token, address(this));\n bentoBox.withdraw(token, address(this), to, 0, amount);\n }\n\n /// @notice Performs a Trident pool swap\n /// @param stream [Pool, SwapData]. Pool against a swap defined by SwapData will be executed\n function swapTrident(uint256 stream) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n IPool(pool).swap(swapData);\n }\n\n /// @notice Performs a Sushi/UniswapV2 pool swap\n /// @param stream [Pool, TokenIn, Direction, To]\n /// @return amountOut Amount of the output token\n function swapUniswapPool(uint256 stream) private returns (uint256 amountOut) {\n address pool = stream.readAddress();\n address tokenIn = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n\n uint256 amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn;\n uint256 amountInWithFee = amountIn * 997;\n amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Distributes input ERC20 tokens from msg.sender to addresses. Tokens should be approved\n /// @notice Expected to be called for initial liquidity transfer from the user to pools, so we know exact amounts\n /// @param stream [ArrayLength, ...[To, Amount][]]. An array of destinations and token amounts\n /// @param token Token to distribute\n /// @return amountTotal Total amount distributed\n function distributeERC20Amounts(uint256 stream, address token) private returns (uint256 amountTotal) {\n uint8 num = stream.readUint8();\n amountTotal = 0;\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint256 amount = stream.readUint();\n amountTotal += amount;\n IERC20(token).safeTransferFrom(msg.sender, to, amount);\n }\n }\n\n /// @notice Distributes input ERC20 tokens from this contract to addresses. Tokens should be approved\n /// @notice Expected to be called for initial liquidity transfer from the user to pools, so we know exact amounts\n /// @param stream [ArrayLength, ...[To, Amount][]]. An array of destinations and token amounts\n /// @param token Token to distribute\n /// @return amountTotal Total amount distributed\n function distributeERC20AmountsFromRP(uint256 stream, address token) private returns (uint256 amountTotal) {\n uint8 num = stream.readUint8();\n amountTotal = 0;\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint256 amount = stream.readUint();\n amountTotal += amount;\n IERC20(token).safeTransfer(to, amount);\n }\n }\n\n /// @notice Wraps all native inputs and distributes wrapped ERC20 tokens from RouteProcessor to addresses\n /// @notice Expected to be called for initial liquidity transfer from the user to pools, so we know exact amounts\n /// @param stream [WrapToken, ArrayLength, ...[To, Amount][]]. An array of destinations and token amounts\n /// @return amountTotal Total amount distributed\n function wrapAndDistributeERC20Amounts(uint256 stream) private returns (uint256 amountTotal) {\n address token = stream.readAddress();\n IWETH(token).deposit{value: address(this).balance}();\n uint8 num = stream.readUint8();\n amountTotal = 0;\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint256 amount = stream.readUint();\n amountTotal += amount;\n IERC20(token).safeTransfer(to, amount);\n }\n require(address(this).balance == 0, \"RouteProcessor: invalid input amount\");\n }\n\n /// @notice Distributes input BentoBox tokens from msg.sender to addresses. Tokens should be approved\n /// @notice Expected to be called for initial liquidity transfer from the user to pools, so we know exact amounts\n /// @param stream [ArrayLength, ...[To, ShareAmount][]]. An array of destinations and token share amounts\n /// @param token Token to distribute\n /// @return sharesTotal Total shares distributed\n function distributeBentoShares(uint256 stream, address token) private returns (uint256 sharesTotal) {\n uint8 num = stream.readUint8();\n sharesTotal = 0;\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint256 share = stream.readUint();\n sharesTotal += share;\n bentoBox.transfer(token, msg.sender, to, share);\n }\n }\n\n /// @notice Distributes ERC20 tokens from RouteProcessor to addresses\n /// @notice Quantity for sending is determined by share in 1/65535\n /// @notice During routing we can't predict in advance the actual value of internal swaps because of slippage,\n /// @notice so we have to work with shares - not fixed amounts\n /// @param stream [Token, ArrayLength, ...[To, ShareAmount][]]. Token to distribute. An array of destinations and token share amounts\n function distributeERC20Shares(uint256 stream) private {\n address token = stream.readAddress();\n uint8 num = stream.readUint8();\n uint256 amountTotal = IERC20(token).balanceOf(address(this))\n - 1; // slot undrain protection\n\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n IERC20(token).safeTransfer(to, amount);\n }\n }\n }\n\n /// @notice Distributes BentoBox tokens from RouteProcessor to addresses\n /// @notice Quantity for sending is determined by portions in 1/65535.\n /// @notice During routing we can't predict in advance the actual value of internal swaps because of slippage,\n /// @notice so we have to work with portions - not fixed amounts\n /// @param stream [Token, ArrayLength, ...[To, ShareAmount][]]. Token to distribute. An array of destinations and token share amounts\n function distributeBentoPortions(uint256 stream) private {\n address token = stream.readAddress();\n uint8 num = stream.readUint8();\n uint256 amountTotal = bentoBox.balanceOf(token, address(this))\n - 1; // slot undrain protection\n\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n bentoBox.transfer(token, address(this), to, amount);\n }\n }\n }\n\n /// @notice Unwraps the Native Token\n /// @param receiver Destination of the unwrapped token\n /// @param stream [Token]. Token to unwrap native\n function unwrapNative(address receiver, uint256 stream) private {\n address token = stream.readAddress();\n IWETH(token).withdraw( IERC20(token).balanceOf(address(this))\n - 1); // slot undrain protection\n payable(receiver).transfer(address(this).balance);\n }\n}\n" + }, + "contracts/RouteProcessor3_1.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IUniswapV3Pool.sol';\nimport '../interfaces/ITridentCLPool.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport './InputStream.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\naddress constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\n\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\nuint160 constant MIN_SQRT_RATIO = 4295128739;\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Ilya Lyalin\n/// version 3.1\ncontract RouteProcessor3_1 is Ownable {\n using SafeERC20 for IERC20;\n using SafeERC20 for IERC20Permit;\n using InputStream for uint256;\n\n event Route(\n address indexed from, \n address to, \n address indexed tokenIn, \n address indexed tokenOut, \n uint amountIn, \n uint amountOutMin,\n uint amountOut\n );\n\n IBentoBoxMinimal public immutable bentoBox;\n mapping (address => bool) priviledgedUsers;\n address private lastCalledPool;\n\n uint8 private unlocked = 1;\n uint8 private paused = 1;\n modifier lock() {\n require(unlocked == 1, 'RouteProcessor is locked');\n require(paused == 1, 'RouteProcessor is paused');\n unlocked = 2;\n _;\n unlocked = 1;\n }\n\n modifier onlyOwnerOrPriviledgedUser() {\n require(msg.sender == owner() || priviledgedUsers[msg.sender] == true, \"RP: caller is not the owner or a priviledged user\");\n _;\n }\n\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n\n for (uint i = 0; i < priviledgedUserList.length; i++) {\n priviledgedUsers[priviledgedUserList[i]] = true;\n }\n }\n\n function setPriviledge(address user, bool priviledge) external onlyOwner {\n priviledgedUsers[user] = priviledge;\n }\n\n function pause() external onlyOwnerOrPriviledgedUser {\n paused = 2;\n }\n\n function resume() external onlyOwnerOrPriviledgedUser {\n paused = 1;\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n (bool success, bytes memory returnBytes) = transferValueTo.call{value: amountValueTransfer}('');\n require(success, string(abi.encodePacked(returnBytes)));\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 balanceInInitial = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n uint256 balanceOutInitial = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode == 1) processMyERC20(stream);\n else if (commandCode == 2) processUserERC20(stream, amountIn);\n else if (commandCode == 3) processNative(stream);\n else if (commandCode == 4) processOnePool(stream);\n else if (commandCode == 5) processInsideBento(stream);\n else if (commandCode == 6) applyPermit(tokenIn, stream);\n else revert('RouteProcessor: Unknown command code');\n }\n\n uint256 balanceInFinal = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n require(balanceInFinal + amountIn >= balanceInInitial, 'RouteProcessor: Minimal imput balance violation');\n\n uint256 balanceOutFinal = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n require(balanceOutFinal >= balanceOutInitial + amountOutMin, 'RouteProcessor: Minimal ouput balance violation');\n\n amountOut = balanceOutFinal - balanceOutInitial;\n\n emit Route(msg.sender, to, tokenIn, tokenOut, amountIn, amountOutMin, amountOut);\n }\n\n function applyPermit(address tokenIn, uint256 stream) private {\n //address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s)\n uint256 value = stream.readUint();\n uint256 deadline = stream.readUint();\n uint8 v = stream.readUint8();\n bytes32 r = stream.readBytes32();\n bytes32 s = stream.readBytes32();\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\n }\n\n /// @notice Processes native coin: call swap for all pools that swap from native coin\n /// @param stream Streamed process program\n function processNative(uint256 stream) private {\n uint256 amountTotal = address(this).balance;\n distributeAndSwap(stream, address(this), NATIVE_ADDRESS, amountTotal);\n }\n\n /// @notice Processes ERC20 token from this contract balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processMyERC20(uint256 stream) private {\n address token = stream.readAddress();\n uint256 amountTotal = IERC20(token).balanceOf(address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n \n /// @notice Processes ERC20 token from msg.sender balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n /// @param amountTotal Amount of tokens to take from msg.sender\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\n address token = stream.readAddress();\n distributeAndSwap(stream, msg.sender, token, amountTotal);\n }\n\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountTotal Total amount of tokenIn for swaps \n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\n uint8 num = stream.readUint8();\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, from, tokenIn, amount);\n }\n }\n }\n\n /// @notice Processes ERC20 token for cases when the token has only one output pool\n /// @notice In this case liquidity is already at pool balance. This is an optimization\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processOnePool(uint256 stream) private {\n address token = stream.readAddress();\n swap(stream, address(this), token, 0);\n }\n\n /// @notice Processes Bento tokens \n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processInsideBento(uint256 stream) private {\n address token = stream.readAddress();\n uint8 num = stream.readUint8();\n\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, address(this), token, amount);\n }\n }\n }\n\n /// @notice Makes swap\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 poolType = stream.readUint8();\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\n else revert('RouteProcessor: Unknown pool type');\n }\n\n /// @notice Wraps/unwraps native token\n /// @param stream [direction & fake, recipient, wrapToken?]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 directionAndFake = stream.readUint8();\n address to = stream.readAddress();\n\n if (directionAndFake & 1 == 1) { // wrap native\n address wrapToken = stream.readAddress();\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\n } else { // unwrap native\n if (directionAndFake & 2 == 0) {\n if (from != address(this)) IERC20(tokenIn).safeTransferFrom(from, address(this), amountIn);\n IWETH(tokenIn).withdraw(amountIn);\n }\n payable(to).transfer(address(this).balance);\n }\n }\n\n /// @notice Bridge/unbridge tokens to/from Bento\n /// @param stream [direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (direction > 0) { // outside to Bento\n // deposit to arbitrary recipient is possible only from address(bentoBox)\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, address(bentoBox), amountIn);\n } else {\n // tokens already are at address(bentoBox)\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(tokenIn).balance -\n bentoBox.totals(tokenIn).elastic;\n }\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\n } else { // Bento to outside\n if (amountIn > 0) {\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\n }\n }\n\n /// @notice UniswapV2 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, pool, amountIn);\n }\n // without 'else' in order to support tax tokens\n amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\n\n uint256 amountInWithFee = amountIn * 997;\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Trident pool swap\n /// @param stream [pool, swapData]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n\n if (amountIn != 0) {\n bentoBox.transfer(tokenIn, from, pool, amountIn);\n }\n \n IPool(pool).swap(swapData);\n }\n\n /// @notice UniswapV3 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bool zeroForOne = stream.readUint8() > 0;\n address recipient = stream.readAddress();\n\n if (from != address(this)) {\n require(from == msg.sender, 'swapUniV3: unexpected from address');\n IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\n }\n\n lastCalledPool = pool;\n IUniswapV3Pool(pool).swap(\n recipient,\n zeroForOne,\n int256(amountIn),\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\n abi.encode(tokenIn)\n );\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\n function uniswapV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n (address tokenIn) = abi.decode(data, (address));\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\n\n // Normally, RouteProcessor shouldn't have any liquidity on board\n // If some liquidity exists, it is sweept by the next user that makes swap through these tokens\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\n }\n\n}\n" + }, + "contracts/RouteProcessor3_2.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IUniswapV3Pool.sol';\nimport '../interfaces/ITridentCLPool.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport './InputStream.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\naddress constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\n\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\nuint160 constant MIN_SQRT_RATIO = 4295128739;\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Ilya Lyalin\n/// version 3.2\ncontract RouteProcessor3_2 is Ownable {\n using SafeERC20 for IERC20;\n using SafeERC20 for IERC20Permit;\n using InputStream for uint256;\n\n event Route(\n address indexed from, \n address to, \n address indexed tokenIn, \n address indexed tokenOut, \n uint amountIn, \n uint amountOutMin,\n uint amountOut\n );\n\n IBentoBoxMinimal public immutable bentoBox;\n mapping (address => bool) priviledgedUsers;\n address private lastCalledPool;\n\n uint8 private unlocked = 1;\n uint8 private paused = 1;\n modifier lock() {\n require(unlocked == 1, 'RouteProcessor is locked');\n require(paused == 1, 'RouteProcessor is paused');\n unlocked = 2;\n _;\n unlocked = 1;\n }\n\n modifier onlyOwnerOrPriviledgedUser() {\n require(msg.sender == owner() || priviledgedUsers[msg.sender] == true, \"RP: caller is not the owner or a priviledged user\");\n _;\n }\n\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n\n for (uint i = 0; i < priviledgedUserList.length; i++) {\n priviledgedUsers[priviledgedUserList[i]] = true;\n }\n }\n\n function setPriviledge(address user, bool priviledge) external onlyOwner {\n priviledgedUsers[user] = priviledge;\n }\n\n function pause() external onlyOwnerOrPriviledgedUser {\n paused = 2;\n }\n\n function resume() external onlyOwnerOrPriviledgedUser {\n paused = 1;\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n (bool success, bytes memory returnBytes) = transferValueTo.call{value: amountValueTransfer}('');\n require(success, string(abi.encodePacked(returnBytes)));\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 balanceInInitial = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n uint256 balanceOutInitial = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode == 1) processMyERC20(stream);\n else if (commandCode == 2) processUserERC20(stream, amountIn);\n else if (commandCode == 3) processNative(stream);\n else if (commandCode == 4) processOnePool(stream);\n else if (commandCode == 5) processInsideBento(stream);\n else if (commandCode == 6) applyPermit(tokenIn, stream);\n else revert('RouteProcessor: Unknown command code');\n }\n\n uint256 balanceInFinal = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n require(balanceInFinal + amountIn >= balanceInInitial, 'RouteProcessor: Minimal imput balance violation');\n\n uint256 balanceOutFinal = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n require(balanceOutFinal >= balanceOutInitial + amountOutMin, 'RouteProcessor: Minimal ouput balance violation');\n\n amountOut = balanceOutFinal - balanceOutInitial;\n\n emit Route(msg.sender, to, tokenIn, tokenOut, amountIn, amountOutMin, amountOut);\n }\n\n function applyPermit(address tokenIn, uint256 stream) private {\n //address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s)\n uint256 value = stream.readUint();\n uint256 deadline = stream.readUint();\n uint8 v = stream.readUint8();\n bytes32 r = stream.readBytes32();\n bytes32 s = stream.readBytes32();\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\n }\n\n /// @notice Processes native coin: call swap for all pools that swap from native coin\n /// @param stream Streamed process program\n function processNative(uint256 stream) private {\n uint256 amountTotal = address(this).balance;\n distributeAndSwap(stream, address(this), NATIVE_ADDRESS, amountTotal);\n }\n\n /// @notice Processes ERC20 token from this contract balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processMyERC20(uint256 stream) private {\n address token = stream.readAddress();\n uint256 amountTotal = IERC20(token).balanceOf(address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n \n /// @notice Processes ERC20 token from msg.sender balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n /// @param amountTotal Amount of tokens to take from msg.sender\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\n address token = stream.readAddress();\n distributeAndSwap(stream, msg.sender, token, amountTotal);\n }\n\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountTotal Total amount of tokenIn for swaps \n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\n uint8 num = stream.readUint8();\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, from, tokenIn, amount);\n }\n }\n }\n\n /// @notice Processes ERC20 token for cases when the token has only one output pool\n /// @notice In this case liquidity is already at pool balance. This is an optimization\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processOnePool(uint256 stream) private {\n address token = stream.readAddress();\n swap(stream, address(this), token, 0);\n }\n\n /// @notice Processes Bento tokens \n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processInsideBento(uint256 stream) private {\n address token = stream.readAddress();\n uint8 num = stream.readUint8();\n\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, address(this), token, amount);\n }\n }\n }\n\n /// @notice Makes swap\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 poolType = stream.readUint8();\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\n else revert('RouteProcessor: Unknown pool type');\n }\n\n /// @notice Wraps/unwraps native token\n /// @param stream [direction & fake, recipient, wrapToken?]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 directionAndFake = stream.readUint8();\n address to = stream.readAddress();\n\n if (directionAndFake & 1 == 1) { // wrap native\n address wrapToken = stream.readAddress();\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\n } else { // unwrap native\n if (directionAndFake & 2 == 0) {\n if (from != address(this)) IERC20(tokenIn).safeTransferFrom(from, address(this), amountIn);\n IWETH(tokenIn).withdraw(amountIn);\n }\n payable(to).transfer(address(this).balance);\n }\n }\n\n /// @notice Bridge/unbridge tokens to/from Bento\n /// @param stream [direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (direction > 0) { // outside to Bento\n // deposit to arbitrary recipient is possible only from address(bentoBox)\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, address(bentoBox), amountIn);\n } else {\n // tokens already are at address(bentoBox)\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(tokenIn).balance -\n bentoBox.totals(tokenIn).elastic;\n }\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\n } else { // Bento to outside\n if (amountIn > 0) {\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\n }\n }\n\n /// @notice UniswapV2 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, pool, amountIn);\n }\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\n\n uint256 amountInWithFee = amountIn * 997;\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Trident pool swap\n /// @param stream [pool, swapData]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n\n if (amountIn != 0) {\n bentoBox.transfer(tokenIn, from, pool, amountIn);\n }\n \n IPool(pool).swap(swapData);\n }\n\n /// @notice UniswapV3 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bool zeroForOne = stream.readUint8() > 0;\n address recipient = stream.readAddress();\n\n if (from != address(this)) {\n require(from == msg.sender, 'swapUniV3: unexpected from address');\n IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\n }\n\n lastCalledPool = pool;\n IUniswapV3Pool(pool).swap(\n recipient,\n zeroForOne,\n int256(amountIn),\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\n abi.encode(tokenIn)\n );\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\n function uniswapV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n (address tokenIn) = abi.decode(data, (address));\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\n\n // Normally, RouteProcessor shouldn't have any liquidity on board\n // If some liquidity exists, it is sweept by the next user that makes swap through these tokens\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\n }\n\n}\n" + }, + "contracts/RouteProcessor3.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IUniswapV3Pool.sol';\nimport '../interfaces/ITridentCLPool.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport './InputStream.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\naddress constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\n\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\nuint160 constant MIN_SQRT_RATIO = 4295128739;\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Ilya Lyalin\n/// version 2.1\ncontract RouteProcessor3 is Ownable {\n using SafeERC20 for IERC20;\n using SafeERC20 for IERC20Permit;\n using InputStream for uint256;\n\n event Route(\n address indexed from, \n address to, \n address indexed tokenIn, \n address indexed tokenOut, \n uint amountIn, \n uint amountOutMin,\n uint amountOut\n );\n\n IBentoBoxMinimal public immutable bentoBox;\n mapping (address => bool) priviledgedUsers;\n address private lastCalledPool;\n\n uint8 private unlocked = 1;\n uint8 private paused = 1;\n modifier lock() {\n require(unlocked == 1, 'RouteProcessor is locked');\n require(paused == 1, 'RouteProcessor is paused');\n unlocked = 2;\n _;\n unlocked = 1;\n }\n\n modifier onlyOwnerOrPriviledgedUser() {\n require(msg.sender == owner() || priviledgedUsers[msg.sender] == true, \"RP: caller is not the owner or a priviledged user\");\n _;\n }\n\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n\n for (uint i = 0; i < priviledgedUserList.length; i++) {\n priviledgedUsers[priviledgedUserList[i]] = true;\n }\n }\n\n function setPriviledge(address user, bool priviledge) external onlyOwner {\n priviledgedUsers[user] = priviledge;\n }\n\n function pause() external onlyOwnerOrPriviledgedUser {\n paused = 2;\n }\n\n function resume() external onlyOwnerOrPriviledgedUser {\n paused = 1;\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n (bool success, bytes memory returnBytes) = transferValueTo.call{value: amountValueTransfer}('');\n require(success, string(abi.encodePacked(returnBytes)));\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 balanceInInitial = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n uint256 balanceOutInitial = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode == 1) processMyERC20(stream);\n else if (commandCode == 2) processUserERC20(stream, amountIn);\n else if (commandCode == 3) processNative(stream);\n else if (commandCode == 4) processOnePool(stream);\n else if (commandCode == 5) processInsideBento(stream);\n else if (commandCode == 6) applyPermit(tokenIn, stream);\n else revert('RouteProcessor: Unknown command code');\n }\n\n uint256 balanceInFinal = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n require(balanceInFinal + amountIn >= balanceInInitial, 'RouteProcessor: Minimal imput balance violation');\n\n uint256 balanceOutFinal = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n require(balanceOutFinal >= balanceOutInitial + amountOutMin, 'RouteProcessor: Minimal ouput balance violation');\n\n amountOut = balanceOutFinal - balanceOutInitial;\n\n emit Route(msg.sender, to, tokenIn, tokenOut, amountIn, amountOutMin, amountOut);\n }\n\n function applyPermit(address tokenIn, uint256 stream) private {\n //address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s)\n uint256 value = stream.readUint();\n uint256 deadline = stream.readUint();\n uint8 v = stream.readUint8();\n bytes32 r = stream.readBytes32();\n bytes32 s = stream.readBytes32();\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\n }\n\n /// @notice Processes native coin: call swap for all pools that swap from native coin\n /// @param stream Streamed process program\n function processNative(uint256 stream) private {\n uint256 amountTotal = address(this).balance;\n distributeAndSwap(stream, address(this), NATIVE_ADDRESS, amountTotal);\n }\n\n /// @notice Processes ERC20 token from this contract balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processMyERC20(uint256 stream) private {\n address token = stream.readAddress();\n uint256 amountTotal = IERC20(token).balanceOf(address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n \n /// @notice Processes ERC20 token from msg.sender balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n /// @param amountTotal Amount of tokens to take from msg.sender\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\n address token = stream.readAddress();\n distributeAndSwap(stream, msg.sender, token, amountTotal);\n }\n\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountTotal Total amount of tokenIn for swaps \n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\n uint8 num = stream.readUint8();\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, from, tokenIn, amount);\n }\n }\n }\n\n /// @notice Processes ERC20 token for cases when the token has only one output pool\n /// @notice In this case liquidity is already at pool balance. This is an optimization\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processOnePool(uint256 stream) private {\n address token = stream.readAddress();\n swap(stream, address(this), token, 0);\n }\n\n /// @notice Processes Bento tokens \n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processInsideBento(uint256 stream) private {\n address token = stream.readAddress();\n uint8 num = stream.readUint8();\n\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, address(this), token, amount);\n }\n }\n }\n\n /// @notice Makes swap\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 poolType = stream.readUint8();\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\n else revert('RouteProcessor: Unknown pool type');\n }\n\n /// @notice Wraps/unwraps native token\n /// @param stream [direction & fake, recipient, wrapToken?]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 directionAndFake = stream.readUint8();\n address to = stream.readAddress();\n\n if (directionAndFake & 1 == 1) { // wrap native\n address wrapToken = stream.readAddress();\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\n } else { // unwrap native\n if (directionAndFake & 2 == 0) {\n if (from != address(this)) IERC20(tokenIn).safeTransferFrom(from, address(this), amountIn);\n IWETH(tokenIn).withdraw(amountIn);\n }\n payable(to).transfer(address(this).balance);\n }\n }\n\n /// @notice Bridge/unbridge tokens to/from Bento\n /// @param stream [direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (direction > 0) { // outside to Bento\n // deposit to arbitrary recipient is possible only from address(bentoBox)\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, address(bentoBox), amountIn);\n } else {\n // tokens already are at address(bentoBox)\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(tokenIn).balance -\n bentoBox.totals(tokenIn).elastic;\n }\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\n } else { // Bento to outside\n if (amountIn > 0) {\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\n }\n }\n\n /// @notice UniswapV2 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, pool, amountIn);\n } else amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\n\n uint256 amountInWithFee = amountIn * 997;\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Trident pool swap\n /// @param stream [pool, swapData]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n\n if (amountIn != 0) {\n bentoBox.transfer(tokenIn, from, pool, amountIn);\n }\n \n IPool(pool).swap(swapData);\n }\n\n /// @notice UniswapV3 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bool zeroForOne = stream.readUint8() > 0;\n address recipient = stream.readAddress();\n\n if (from != address(this)) {\n require(from == msg.sender, 'swapUniV3: unexpected from address');\n IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\n }\n\n lastCalledPool = pool;\n IUniswapV3Pool(pool).swap(\n recipient,\n zeroForOne,\n int256(amountIn),\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\n abi.encode(tokenIn)\n );\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\n function uniswapV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n (address tokenIn) = abi.decode(data, (address));\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\n\n // Normally, RouteProcessor shouldn't have any liquidity on board\n // If some liquidity exists, it is sweept by the next user that makes swap through these tokens\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\n }\n\n}\n" + }, + "contracts/RouteProcessor4.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IUniswapV3Pool.sol';\nimport '../interfaces/ITridentCLPool.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport '../interfaces/ICurve.sol';\nimport './InputStream.sol';\nimport './Approve.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\naddress constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\naddress constant INTERNAL_INPUT_SOURCE = 0x0000000000000000000000000000000000000000;\n\nuint8 constant LOCKED = 2;\nuint8 constant NOT_LOCKED = 1;\nuint8 constant PAUSED = 2;\nuint8 constant NOT_PAUSED = 1;\n\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\nuint160 constant MIN_SQRT_RATIO = 4295128739;\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Ilya Lyalin\ncontract RouteProcessor4 is Ownable {\n using SafeERC20 for IERC20;\n using Approve for IERC20;\n using SafeERC20 for IERC20Permit;\n using InputStream for uint256;\n\n event Route(\n address indexed from, \n address to, \n address indexed tokenIn, \n address indexed tokenOut, \n uint256 amountIn, \n uint256 amountOutMin,\n uint256 amountOut\n );\n\n error MinimalOutputBalanceViolation(uint256 amountOut);\n\n IBentoBoxMinimal public immutable bentoBox;\n mapping (address => bool) public priviledgedUsers;\n address private lastCalledPool;\n\n uint8 private unlocked = NOT_LOCKED;\n uint8 private paused = NOT_PAUSED;\n modifier lock() {\n require(unlocked == NOT_LOCKED, 'RouteProcessor is locked');\n require(paused == NOT_PAUSED, 'RouteProcessor is paused');\n unlocked = LOCKED;\n _;\n unlocked = NOT_LOCKED;\n }\n\n modifier onlyOwnerOrPriviledgedUser() {\n require(msg.sender == owner() || priviledgedUsers[msg.sender], \"RP: caller is not the owner or a privileged user\");\n _;\n }\n\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n\n for (uint256 i = 0; i < priviledgedUserList.length; i++) {\n priviledgedUsers[priviledgedUserList[i]] = true;\n }\n }\n\n function setPriviledge(address user, bool priviledge) external onlyOwner {\n priviledgedUsers[user] = priviledge;\n }\n\n function pause() external onlyOwnerOrPriviledgedUser {\n paused = PAUSED;\n }\n\n function resume() external onlyOwnerOrPriviledgedUser {\n paused = NOT_PAUSED;\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n (bool success, bytes memory returnBytes) = transferValueTo.call{value: amountValueTransfer}('');\n if (!success) {\n assembly {\n revert(add(32, returnBytes), mload(returnBytes))\n }\n }\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 balanceInInitial = tokenIn == NATIVE_ADDRESS ? 0 : IERC20(tokenIn).balanceOf(msg.sender);\n uint256 balanceOutInitial = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n\n uint256 realAmountIn = amountIn;\n {\n uint256 step = 0;\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode == 1) {\n uint256 usedAmount = processMyERC20(stream); \n if (step == 0) realAmountIn = usedAmount;\n } \n else if (commandCode == 2) processUserERC20(stream, amountIn);\n else if (commandCode == 3) {\n uint256 usedAmount = processNative(stream); \n if (step == 0) realAmountIn = usedAmount;\n } \n else if (commandCode == 4) processOnePool(stream);\n else if (commandCode == 5) processInsideBento(stream);\n else if (commandCode == 6) applyPermit(tokenIn, stream);\n else revert('RouteProcessor: Unknown command code');\n ++step;\n }\n }\n\n uint256 balanceInFinal = tokenIn == NATIVE_ADDRESS ? 0 : IERC20(tokenIn).balanceOf(msg.sender);\n require(balanceInFinal + amountIn >= balanceInInitial, 'RouteProcessor: Minimal input balance violation');\n \n uint256 balanceOutFinal = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n if (balanceOutFinal < balanceOutInitial + amountOutMin)\n revert MinimalOutputBalanceViolation(balanceOutFinal - balanceOutInitial);\n\n amountOut = balanceOutFinal - balanceOutInitial;\n\n emit Route(msg.sender, to, tokenIn, tokenOut, realAmountIn, amountOutMin, amountOut);\n }\n\n /// @notice Applies ERC-2612 permit\n /// @param tokenIn permitted token\n /// @param stream Streamed program\n function applyPermit(address tokenIn, uint256 stream) private {\n uint256 value = stream.readUint();\n uint256 deadline = stream.readUint();\n uint8 v = stream.readUint8();\n bytes32 r = stream.readBytes32();\n bytes32 s = stream.readBytes32();\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\n }\n\n /// @notice Processes native coin: call swap for all pools that swap from native coin\n /// @param stream Streamed program\n function processNative(uint256 stream) private returns (uint256 amountTotal) {\n amountTotal = address(this).balance;\n distributeAndSwap(stream, address(this), NATIVE_ADDRESS, amountTotal);\n }\n\n /// @notice Processes ERC20 token from this contract balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processMyERC20(uint256 stream) private returns (uint256 amountTotal) {\n address token = stream.readAddress();\n amountTotal = IERC20(token).balanceOf(address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n \n /// @notice Processes ERC20 token from msg.sender balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n /// @param amountTotal Amount of tokens to take from msg.sender\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\n address token = stream.readAddress();\n distributeAndSwap(stream, msg.sender, token, amountTotal);\n }\n\n /// @notice Processes ERC20 token for cases when the token has only one output pool\n /// @notice In this case liquidity is already at pool balance. This is an optimization\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processOnePool(uint256 stream) private {\n address token = stream.readAddress();\n swap(stream, INTERNAL_INPUT_SOURCE, token, 0);\n }\n\n /// @notice Processes Bento tokens \n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processInsideBento(uint256 stream) private {\n address token = stream.readAddress();\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\n /// @param stream Streamed program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountTotal Total amount of tokenIn for swaps \n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\n uint8 num = stream.readUint8();\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / type(uint16).max /*65535*/;\n amountTotal -= amount;\n swap(stream, from, tokenIn, amount);\n }\n }\n }\n\n /// @notice Makes swap\n /// @param stream Streamed program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 poolType = stream.readUint8();\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\n else if (poolType == 5) swapCurve(stream, from, tokenIn, amountIn);\n else revert('RouteProcessor: Unknown pool type');\n }\n\n /// @notice Wraps/unwraps native token\n /// @param stream [direction & fake, recipient, wrapToken?]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 directionAndFake = stream.readUint8();\n address to = stream.readAddress();\n\n if (directionAndFake & 1 == 1) { // wrap native\n address wrapToken = stream.readAddress();\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\n } else { // unwrap native\n if (directionAndFake & 2 == 0) {\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\n IWETH(tokenIn).withdraw(amountIn);\n }\n (bool success,)= payable(to).call{value: amountIn}(\"\");\n require(success, \"RouteProcessor.wrapNative: Native token transfer failed\");\n }\n }\n\n /// @notice Bridge/unbridge tokens to/from Bento\n /// @param stream [direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (direction > 0) { // outside to Bento\n // deposit to arbitrary recipient is possible only from address(bentoBox)\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(bentoBox), amountIn);\n else {\n // tokens already are at address(bentoBox)\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(tokenIn).balance -\n bentoBox.totals(tokenIn).elastic;\n }\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\n } else { // Bento to outside\n if (from != INTERNAL_INPUT_SOURCE) {\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\n }\n }\n\n /// @notice UniswapV2 pool swap\n /// @param stream [pool, direction, recipient, fee]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n uint24 fee = stream.readUint24(); // pool fee in 1/1_000_000\n\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, pool, amountIn);\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\n\n uint256 amountInWithFee = amountIn * (1_000_000 - fee);\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1_000_000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Trident pool swap\n /// @param stream [pool, swapData]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n\n if (from != INTERNAL_INPUT_SOURCE) {\n bentoBox.transfer(tokenIn, from, pool, amountIn);\n }\n \n IPool(pool).swap(swapData);\n }\n\n /// @notice UniswapV3 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bool zeroForOne = stream.readUint8() > 0;\n address recipient = stream.readAddress();\n\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\n\n lastCalledPool = pool;\n IUniswapV3Pool(pool).swap(\n recipient,\n zeroForOne,\n int256(amountIn),\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\n abi.encode(tokenIn)\n );\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\n function uniswapV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) public {\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\n \n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n (address tokenIn) = abi.decode(data, (address));\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IAlgebraPool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IAlgebraPoolActions#swap call\n function algebraSwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\n }\n\n /// @notice Called to `msg.sender` after executing a swap via PancakeV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the PancakeV3Pool#swap call\n function pancakeV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\n }\n\n /// @notice Curve pool swap. Legacy pools that don't return amountOut and have native coins are not supported\n /// @param stream [pool, poolType, fromIndex, toIndex, recipient, output token]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapCurve(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 poolType = stream.readUint8();\n int128 fromIndex = int8(stream.readUint8());\n int128 toIndex = int8(stream.readUint8());\n address to = stream.readAddress();\n address tokenOut = stream.readAddress();\n\n uint256 amountOut;\n if (tokenIn == NATIVE_ADDRESS) {\n amountOut = ICurve(pool).exchange{value: amountIn}(fromIndex, toIndex, amountIn, 0);\n } else {\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\n IERC20(tokenIn).approveSafe(pool, amountIn);\n if (poolType == 0) amountOut = ICurve(pool).exchange(fromIndex, toIndex, amountIn, 0);\n else {\n uint256 balanceBefore = IERC20(tokenOut).balanceOf(address(this));\n ICurveLegacy(pool).exchange(fromIndex, toIndex, amountIn, 0);\n uint256 balanceAfter = IERC20(tokenOut).balanceOf(address(this));\n amountOut = balanceAfter - balanceBefore;\n }\n }\n\n if (to != address(this)) { \n if(tokenOut == NATIVE_ADDRESS) {\n (bool success,)= payable(to).call{value: amountOut}(\"\");\n require(success, \"RouteProcessor.swapCurve: Native token transfer failed\");\n } else {\n IERC20(tokenOut).safeTransfer(to, amountOut);\n }\n }\n }\n}\n" + }, + "contracts/RouteProcessor5.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IUniswapV3Pool.sol';\nimport '../interfaces/ITridentCLPool.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport '../interfaces/ICurve.sol';\nimport './InputStream.sol';\nimport './Utils.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\naddress constant INTERNAL_INPUT_SOURCE = 0x0000000000000000000000000000000000000000;\n\nuint8 constant LOCKED = 2;\nuint8 constant NOT_LOCKED = 1;\nuint8 constant PAUSED = 2;\nuint8 constant NOT_PAUSED = 1;\n\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\nuint160 constant MIN_SQRT_RATIO = 4295128739;\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Ilya Lyalin\ncontract RouteProcessor5 is Ownable {\n using SafeERC20 for IERC20;\n using Utils for IERC20;\n using Utils for address;\n using SafeERC20 for IERC20Permit;\n using InputStream for uint256;\n\n event Route(\n address indexed from, \n address to, \n address indexed tokenIn, \n address indexed tokenOut, \n uint256 amountIn, \n uint256 amountOutMin,\n uint256 amountOut\n );\n\n error MinimalOutputBalanceViolation(uint256 amountOut);\n\n IBentoBoxMinimal public immutable bentoBox;\n mapping (address => bool) public priviledgedUsers;\n address private lastCalledPool;\n\n uint8 private unlocked = NOT_LOCKED;\n uint8 private paused = NOT_PAUSED;\n modifier lock() {\n require(unlocked == NOT_LOCKED, 'RouteProcessor is locked');\n require(paused == NOT_PAUSED, 'RouteProcessor is paused');\n unlocked = LOCKED;\n _;\n unlocked = NOT_LOCKED;\n }\n\n modifier onlyOwnerOrPriviledgedUser() {\n require(msg.sender == owner() || priviledgedUsers[msg.sender], \"RP: caller is not the owner or a privileged user\");\n _;\n }\n\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n\n for (uint256 i = 0; i < priviledgedUserList.length; i++) {\n priviledgedUsers[priviledgedUserList[i]] = true;\n }\n }\n\n function setPriviledge(address user, bool priviledge) external onlyOwner {\n priviledgedUsers[user] = priviledge;\n }\n\n function pause() external onlyOwnerOrPriviledgedUser {\n paused = PAUSED;\n }\n\n function resume() external onlyOwnerOrPriviledgedUser {\n paused = NOT_PAUSED;\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @param to Where to transfer output tokens\n /// @param route Route to process\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n transferValueTo.transferNative(amountValueTransfer);\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value of input tokens to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteWithTransferValueInput(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n tokenIn.transferAnyFromSender(transferValueTo, amountValueTransfer);\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n \n /// @notice processes the route and sends amount of output token to \n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteWithTransferValueOutput(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n amountOut = processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, address(this), route);\n tokenOut.transferAny(transferValueTo, amountValueTransfer);\n tokenOut.transferAny(to, amountOut - amountValueTransfer);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 balanceInInitial = tokenIn.anyBalanceOf(msg.sender);\n uint256 balanceOutInitial = tokenOut.anyBalanceOf(to);\n\n uint256 realAmountIn = amountIn;\n {\n uint256 step = 0;\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode == 1) {\n uint256 usedAmount = processMyERC20(stream); \n if (step == 0) realAmountIn = usedAmount;\n } \n else if (commandCode == 2) processUserERC20(stream, amountIn);\n else if (commandCode == 3) {\n uint256 usedAmount = processNative(stream); \n if (step == 0) realAmountIn = usedAmount;\n } \n else if (commandCode == 4) processOnePool(stream);\n else if (commandCode == 5) processInsideBento(stream);\n else if (commandCode == 6) applyPermit(tokenIn, stream);\n else revert('RouteProcessor: Unknown command code');\n ++step;\n }\n }\n\n uint256 balanceInFinal = tokenIn.anyBalanceOf(msg.sender);\n if (tokenIn != Utils.NATIVE_ADDRESS)\n require(balanceInFinal + amountIn + 10 >= balanceInInitial, 'RouteProcessor: Minimal input balance violation');\n \n uint256 balanceOutFinal = tokenOut.anyBalanceOf(to);\n if (balanceOutFinal < balanceOutInitial + amountOutMin)\n revert MinimalOutputBalanceViolation(balanceOutFinal - balanceOutInitial);\n\n amountOut = balanceOutFinal - balanceOutInitial;\n\n emit Route(msg.sender, to, tokenIn, tokenOut, realAmountIn, amountOutMin, amountOut);\n }\n\n /// @notice Applies ERC-2612 permit\n /// @param tokenIn permitted token\n /// @param stream Streamed program\n function applyPermit(address tokenIn, uint256 stream) private {\n uint256 value = stream.readUint();\n uint256 deadline = stream.readUint();\n uint8 v = stream.readUint8();\n bytes32 r = stream.readBytes32();\n bytes32 s = stream.readBytes32();\n if (IERC20(tokenIn).allowance(msg.sender, address(this)) < value) {\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\n }\n }\n\n /// @notice Processes native coin: call swap for all pools that swap from native coin\n /// @param stream Streamed program\n function processNative(uint256 stream) private returns (uint256 amountTotal) {\n amountTotal = address(this).balance;\n distributeAndSwap(stream, address(this), Utils.NATIVE_ADDRESS, amountTotal);\n }\n\n /// @notice Processes ERC20 token from this contract balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processMyERC20(uint256 stream) private returns (uint256 amountTotal) {\n address token = stream.readAddress();\n amountTotal = IERC20(token).balanceOf(address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n \n /// @notice Processes ERC20 token from msg.sender balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n /// @param amountTotal Amount of tokens to take from msg.sender\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\n address token = stream.readAddress();\n distributeAndSwap(stream, msg.sender, token, amountTotal);\n }\n\n /// @notice Processes ERC20 token for cases when the token has only one output pool\n /// @notice In this case liquidity is already at pool balance. This is an optimization\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processOnePool(uint256 stream) private {\n address token = stream.readAddress();\n swap(stream, INTERNAL_INPUT_SOURCE, token, 0);\n }\n\n /// @notice Processes Bento tokens \n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processInsideBento(uint256 stream) private {\n address token = stream.readAddress();\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\n /// @param stream Streamed program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountTotal Total amount of tokenIn for swaps \n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\n uint8 num = stream.readUint8();\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / type(uint16).max /*65535*/;\n amountTotal -= amount;\n swap(stream, from, tokenIn, amount);\n }\n }\n }\n\n /// @notice Makes swap\n /// @param stream Streamed program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 poolType = stream.readUint8();\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\n else if (poolType == 5) swapCurve(stream, from, tokenIn, amountIn);\n else revert('RouteProcessor: Unknown pool type');\n }\n\n /// @notice Wraps/unwraps native token\n /// @param stream [direction & fake, recipient, wrapToken?]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 directionAndFake = stream.readUint8();\n address to = stream.readAddress();\n\n if (directionAndFake & 1 == 1) { // wrap native\n address wrapToken = stream.readAddress();\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\n } else { // unwrap native\n if (directionAndFake & 2 == 0) {\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\n IWETH(tokenIn).withdraw(amountIn);\n }\n to.transferNative(amountIn);\n }\n }\n\n /// @notice Bridge/unbridge tokens to/from Bento\n /// @param stream [direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (direction > 0) { // outside to Bento\n // deposit to arbitrary recipient is possible only from address(bentoBox)\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(bentoBox), amountIn);\n else {\n // tokens already are at address(bentoBox)\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(tokenIn).balance -\n bentoBox.totals(tokenIn).elastic;\n }\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\n } else { // Bento to outside\n if (from != INTERNAL_INPUT_SOURCE) {\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\n }\n }\n\n /// @notice UniswapV2 pool swap\n /// @param stream [pool, direction, recipient, fee]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n uint24 fee = stream.readUint24(); // pool fee in 1/1_000_000\n\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, pool, amountIn);\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\n\n uint256 amountInWithFee = amountIn * (1_000_000 - fee);\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1_000_000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Trident pool swap\n /// @param stream [pool, swapData]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n\n if (from != INTERNAL_INPUT_SOURCE) {\n bentoBox.transfer(tokenIn, from, pool, amountIn);\n }\n \n IPool(pool).swap(swapData);\n }\n\n /// @notice UniswapV3 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bool zeroForOne = stream.readUint8() > 0;\n address recipient = stream.readAddress();\n\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\n\n lastCalledPool = pool;\n IUniswapV3Pool(pool).swap(\n recipient,\n zeroForOne,\n int256(amountIn),\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\n abi.encode(tokenIn)\n );\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\n function uniswapV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) public {\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\n \n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n (address tokenIn) = abi.decode(data, (address));\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IAlgebraPool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IAlgebraPoolActions#swap call\n function algebraSwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\n }\n\n /// @notice Called to `msg.sender` after executing a swap via PancakeV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the PancakeV3Pool#swap call\n function pancakeV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\n }\n\n /// @notice Curve pool swap. Legacy pools that don't return amountOut and have native coins are not supported\n /// @param stream [pool, poolType, fromIndex, toIndex, recipient, output token]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapCurve(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 poolType = stream.readUint8();\n int128 fromIndex = int8(stream.readUint8());\n int128 toIndex = int8(stream.readUint8());\n address to = stream.readAddress();\n address tokenOut = stream.readAddress();\n\n uint256 amountOut;\n if (tokenIn == Utils.NATIVE_ADDRESS) {\n amountOut = ICurve(pool).exchange{value: amountIn}(fromIndex, toIndex, amountIn, 0);\n } else {\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\n IERC20(tokenIn).approveSafe(pool, amountIn);\n if (poolType == 0) amountOut = ICurve(pool).exchange(fromIndex, toIndex, amountIn, 0);\n else {\n uint256 balanceBefore = tokenOut.anyBalanceOf(address(this));\n ICurveLegacy(pool).exchange(fromIndex, toIndex, amountIn, 0);\n uint256 balanceAfter = tokenOut.anyBalanceOf(address(this));\n amountOut = balanceAfter - balanceBefore;\n }\n }\n\n if (to != address(this)) tokenOut.transferAny(to, amountOut);\n }\n}\n" + }, + "contracts/Utils.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\n\nlibrary Utils {\n using SafeERC20 for IERC20;\n\n address constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n /**\n * @dev returns user's balance of token (or native)\n */\n function anyBalanceOf(address token, address user) internal view returns (uint256) {\n if (token == NATIVE_ADDRESS) return address(user).balance;\n else return IERC20(token).balanceOf(user);\n }\n\n /**\n * @dev transfers native with correct revert bubble up\n */\n function transferNative(address to, uint256 amount) internal {\n (bool success, bytes memory returnBytes) = to.call{value: amount}('');\n if (!success) {\n assembly {\n revert(add(32, returnBytes), mload(returnBytes))\n }\n }\n }\n\n /**\n * @dev transfers ERC20 or native\n */\n function transferAny(address token, address to, uint256 amount) internal {\n if (token == NATIVE_ADDRESS) transferNative(to, amount);\n else IERC20(token).safeTransfer(to, amount);\n }\n\n /**\n * @dev transfers from ERC20 or transfers native\n */\n function transferAnyFromSender(address token, address to, uint256 amount) internal {\n if (token == NATIVE_ADDRESS) transferNative(to, amount); // native liquidity is already on this contract\n else IERC20(token).safeTransferFrom(msg.sender, to, amount);\n }\n\n /**\n * @dev ERC20 approve that correct works with token.approve which returns bool or nothing (USDT for example)\n * @param token The token targeted by the call.\n * @param spender token spender\n * @param amount token amount\n */\n function approveStable(IERC20 token, address spender, uint256 amount) internal returns (bool) {\n (bool success, bytes memory data) = address(token).call(\n abi.encodeWithSelector(token.approve.selector, spender, amount)\n );\n return success && (data.length == 0 || abi.decode(data, (bool)));\n }\n\n /**\n * @dev ERC20 approve that correct works with token.approve which reverts if amount and \n * current allowance are not zero simultaniously (USDT for example). \n * In second case it tries to set allowance to 0, and then back to amount.\n * @param token The token targeted by the call.\n * @param spender token spender\n * @param amount token amount\n */\n function approveSafe(IERC20 token, address spender, uint256 amount) internal returns (bool) {\n return approveStable(token, spender, amount) \n || (approveStable(token, spender, 0) && approveStable(token, spender, amount));\n }\n}\n" + }, + "interfaces/IBentoBoxMinimal.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity >=0.8.0;\n\nstruct Rebase {\n uint128 elastic;\n uint128 base;\n}\n\nstruct StrategyData {\n uint64 strategyStartDate;\n uint64 targetPercentage;\n uint128 balance; // the balance of the strategy that BentoBox thinks is in there\n}\n\n/// @notice A rebasing library\nlibrary RebaseLibrary {\n /// @notice Calculates the base value in relationship to `elastic` and `total`.\n function toBase(Rebase memory total, uint256 elastic) internal pure returns (uint256 base) {\n if (total.elastic == 0) {\n base = elastic;\n } else {\n base = (elastic * total.base) / total.elastic;\n }\n }\n\n /// @notice Calculates the elastic value in relationship to `base` and `total`.\n function toElastic(Rebase memory total, uint256 base) internal pure returns (uint256 elastic) {\n if (total.base == 0) {\n elastic = base;\n } else {\n elastic = (base * total.elastic) / total.base;\n }\n }\n}\n\n/// @notice Minimal BentoBox vault interface.\n/// @dev `token` is aliased as `address` from `IERC20` for simplicity.\ninterface IBentoBoxMinimal {\n /// @notice Balance per ERC-20 token per account in shares.\n function balanceOf(address, address) external view returns (uint256);\n\n /// @dev Helper function to represent an `amount` of `token` in shares.\n /// @param token The ERC-20 token.\n /// @param amount The `token` amount.\n /// @param roundUp If the result `share` should be rounded up.\n /// @return share The token amount represented in shares.\n function toShare(\n address token,\n uint256 amount,\n bool roundUp\n ) external view returns (uint256 share);\n\n /// @dev Helper function to represent shares back into the `token` amount.\n /// @param token The ERC-20 token.\n /// @param share The amount of shares.\n /// @param roundUp If the result should be rounded up.\n /// @return amount The share amount back into native representation.\n function toAmount(\n address token,\n uint256 share,\n bool roundUp\n ) external view returns (uint256 amount);\n\n /// @notice Registers this contract so that users can approve it for BentoBox.\n function registerProtocol() external;\n\n /// @notice Deposit an amount of `token` represented in either `amount` or `share`.\n /// @param token The ERC-20 token to deposit.\n /// @param from which account to pull the tokens.\n /// @param to which account to push the tokens.\n /// @param amount Token amount in native representation to deposit.\n /// @param share Token amount represented in shares to deposit. Takes precedence over `amount`.\n /// @return amountOut The amount deposited.\n /// @return shareOut The deposited amount represented in shares.\n function deposit(\n address token,\n address from,\n address to,\n uint256 amount,\n uint256 share\n ) external payable returns (uint256 amountOut, uint256 shareOut);\n\n /// @notice Withdraws an amount of `token` from a user account.\n /// @param token_ The ERC-20 token to withdraw.\n /// @param from which user to pull the tokens.\n /// @param to which user to push the tokens.\n /// @param amount of tokens. Either one of `amount` or `share` needs to be supplied.\n /// @param share Like above, but `share` takes precedence over `amount`.\n function withdraw(\n address token_,\n address from,\n address to,\n uint256 amount,\n uint256 share\n ) external returns (uint256 amountOut, uint256 shareOut);\n\n /// @notice Transfer shares from a user account to another one.\n /// @param token The ERC-20 token to transfer.\n /// @param from which user to pull the tokens.\n /// @param to which user to push the tokens.\n /// @param share The amount of `token` in shares.\n function transfer(\n address token,\n address from,\n address to,\n uint256 share\n ) external;\n\n /// @dev Reads the Rebase `totals`from storage for a given token\n function totals(address token) external view returns (Rebase memory total);\n\n function strategyData(address token) external view returns (StrategyData memory total);\n\n /// @dev Approves users' BentoBox assets to a \"master\" contract.\n function setMasterContractApproval(\n address user,\n address masterContract,\n bool approved,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n function harvest(\n address token,\n bool balance,\n uint256 maxChangeAmount\n ) external;\n}\n" + }, + "interfaces/ICurve.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity >=0.8.0;\n\ninterface ICurve {\n function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) payable external returns (uint256);\n}\n\ninterface ICurveLegacy {\n function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) payable external;\n}\n\n" + }, + "interfaces/IPool.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity >=0.5.0;\npragma experimental ABIEncoderV2;\n\n/// @notice Trident pool interface.\ninterface IPool {\n /// @notice Executes a swap from one token to another.\n /// @dev The input tokens must've already been sent to the pool.\n /// @param data ABI-encoded params that the pool requires.\n /// @return finalAmountOut The amount of output tokens that were sent to the user.\n function swap(bytes calldata data) external returns (uint256 finalAmountOut);\n\n /// @notice Executes a swap from one token to another with a callback.\n /// @dev This function allows borrowing the output tokens and sending the input tokens in the callback.\n /// @param data ABI-encoded params that the pool requires.\n /// @return finalAmountOut The amount of output tokens that were sent to the user.\n function flashSwap(bytes calldata data) external returns (uint256 finalAmountOut);\n\n /// @notice Mints liquidity tokens.\n /// @param data ABI-encoded params that the pool requires.\n /// @return liquidity The amount of liquidity tokens that were minted for the user.\n function mint(bytes calldata data) external returns (uint256 liquidity);\n\n /// @notice Burns liquidity tokens.\n /// @dev The input LP tokens must've already been sent to the pool.\n /// @param data ABI-encoded params that the pool requires.\n /// @return withdrawnAmounts The amount of various output tokens that were sent to the user.\n function burn(bytes calldata data) external returns (TokenAmount[] memory withdrawnAmounts);\n\n /// @notice Burns liquidity tokens for a single output token.\n /// @dev The input LP tokens must've already been sent to the pool.\n /// @param data ABI-encoded params that the pool requires.\n /// @return amountOut The amount of output tokens that were sent to the user.\n function burnSingle(bytes calldata data) external returns (uint256 amountOut);\n\n /// @return A unique identifier for the pool type.\n function poolIdentifier() external pure returns (bytes32);\n\n /// @return An array of tokens supported by the pool.\n function getAssets() external view returns (address[] memory);\n\n /// @notice Simulates a trade and returns the expected output.\n /// @dev The pool does not need to include a trade simulator directly in itself - it can use a library.\n /// @param data ABI-encoded params that the pool requires.\n /// @return finalAmountOut The amount of output tokens that will be sent to the user if the trade is executed.\n function getAmountOut(bytes calldata data) external view returns (uint256 finalAmountOut);\n\n /// @notice Simulates a trade and returns the expected output.\n /// @dev The pool does not need to include a trade simulator directly in itself - it can use a library.\n /// @param data ABI-encoded params that the pool requires.\n /// @return finalAmountIn The amount of input tokens that are required from the user if the trade is executed.\n function getAmountIn(bytes calldata data) external view returns (uint256 finalAmountIn);\n\n /// @dev This event must be emitted on all swaps.\n event Swap(address indexed recipient, address indexed tokenIn, address indexed tokenOut, uint256 amountIn, uint256 amountOut);\n\n /// @dev This struct frames output tokens for burns.\n struct TokenAmount {\n address token;\n uint256 amount;\n }\n}\n" + }, + "interfaces/ITridentCLPool.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity 0.8.10;\n\ninterface ITridentCLPool {\n function token0() external returns (address);\n function token1() external returns (address);\n\n function swap(\n address recipient,\n bool zeroForOne,\n int256 amountSpecified,\n uint160 sqrtPriceLimitX96,\n bool unwrapBento,\n bytes calldata data\n ) external returns (int256 amount0, int256 amount1);\n}\n" + }, + "interfaces/IUniswapV2Pair.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity >=0.5.0;\n\ninterface IUniswapV2Pair {\n event Approval(address indexed owner, address indexed spender, uint value);\n event Transfer(address indexed from, address indexed to, uint value);\n\n function name() external pure returns (string memory);\n function symbol() external pure returns (string memory);\n function decimals() external pure returns (uint8);\n function totalSupply() external view returns (uint);\n function balanceOf(address owner) external view returns (uint);\n function allowance(address owner, address spender) external view returns (uint);\n\n function approve(address spender, uint value) external returns (bool);\n function transfer(address to, uint value) external returns (bool);\n function transferFrom(address from, address to, uint value) external returns (bool);\n\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n function PERMIT_TYPEHASH() external pure returns (bytes32);\n function nonces(address owner) external view returns (uint);\n\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\n\n event Mint(address indexed sender, uint amount0, uint amount1);\n event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);\n event Swap(\n address indexed sender,\n uint amount0In,\n uint amount1In,\n uint amount0Out,\n uint amount1Out,\n address indexed to\n );\n event Sync(uint112 reserve0, uint112 reserve1);\n\n function MINIMUM_LIQUIDITY() external pure returns (uint);\n function factory() external view returns (address);\n function token0() external view returns (address);\n function token1() external view returns (address);\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\n function price0CumulativeLast() external view returns (uint);\n function price1CumulativeLast() external view returns (uint);\n function kLast() external view returns (uint);\n\n function mint(address to) external returns (uint liquidity);\n function burn(address to) external returns (uint amount0, uint amount1);\n function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;\n function skim(address to) external;\n function sync() external;\n\n function initialize(address, address) external;\n}" + }, + "interfaces/IUniswapV3Pool.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity 0.8.10;\n\ninterface IUniswapV3Pool {\n function token0() external returns (address);\n function token1() external returns (address);\n\n function swap(\n address recipient,\n bool zeroForOne,\n int256 amountSpecified,\n uint160 sqrtPriceLimitX96,\n bytes calldata data\n ) external returns (int256 amount0, int256 amount1);\n}\n" + }, + "interfaces/IWETH.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity 0.8.10;\n\ninterface IWETH {\n function deposit() external payable;\n\n function transfer(address to, uint256 value) external returns (bool);\n\n function withdraw(uint256) external;\n}\n" + } + }, + "settings": { + "optimizer": { + "enabled": true, + "runs": 10000000 + }, + "outputSelection": { + "*": { + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata", + "devdoc", + "userdoc", + "storageLayout", + "evm.gasEstimates" + ], + "": [ + "ast" + ] + } + }, + "metadata": { + "useLiteralContent": true + } + } +} \ No newline at end of file diff --git a/protocols/route-processor/deployments/taiko/.chainId b/protocols/route-processor/deployments/taiko/.chainId new file mode 100644 index 0000000000..c0622e8112 --- /dev/null +++ b/protocols/route-processor/deployments/taiko/.chainId @@ -0,0 +1 @@ +167000 \ No newline at end of file diff --git a/protocols/route-processor/deployments/taiko/RouteProcessor5.json b/protocols/route-processor/deployments/taiko/RouteProcessor5.json new file mode 100644 index 0000000000..0b130ee32d --- /dev/null +++ b/protocols/route-processor/deployments/taiko/RouteProcessor5.json @@ -0,0 +1,704 @@ +{ + "address": "0xf2614A233c7C3e7f08b1F887Ba133a13f1eb2c55", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_bentoBox", + "type": "address" + }, + { + "internalType": "address[]", + "name": "priviledgedUserList", + "type": "address[]" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "name": "MinimalOutputBalanceViolation", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "name": "Route", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "int256", + "name": "amount0Delta", + "type": "int256" + }, + { + "internalType": "int256", + "name": "amount1Delta", + "type": "int256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "algebraSwapCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "bentoBox", + "outputs": [ + { + "internalType": "contract IBentoBoxMinimal", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int256", + "name": "amount0Delta", + "type": "int256" + }, + { + "internalType": "int256", + "name": "amount1Delta", + "type": "int256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "pancakeV3SwapCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "pause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "priviledgedUsers", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes", + "name": "route", + "type": "bytes" + } + ], + "name": "processRoute", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "transferValueTo", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountValueTransfer", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes", + "name": "route", + "type": "bytes" + } + ], + "name": "processRouteWithTransferValueInput", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "transferValueTo", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountValueTransfer", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes", + "name": "route", + "type": "bytes" + } + ], + "name": "processRouteWithTransferValueOutput", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "resume", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "internalType": "bool", + "name": "priviledge", + "type": "bool" + } + ], + "name": "setPriviledge", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transferValueTo", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountValueTransfer", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes", + "name": "route", + "type": "bytes" + } + ], + "name": "transferValueAndprocessRoute", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int256", + "name": "amount0Delta", + "type": "int256" + }, + { + "internalType": "int256", + "name": "amount1Delta", + "type": "int256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "uniswapV3SwapCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } + ], + "transactionHash": "0x445cbfd76b225d61c926111a85411913ab9607a544c9e47cde6a636547cc8b2c", + "receipt": { + "to": null, + "from": "0x282607716D9B4fDD0B094d5864fac56313f5e665", + "contractAddress": "0xf2614A233c7C3e7f08b1F887Ba133a13f1eb2c55", + "transactionIndex": 539, + "gasUsed": "3489875", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000020000000000000000000000000000000000000001000000000000000000000000000000000000000000040000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000020000000000000040000000000000000000000000000000000000000000000000000", + "blockHash": "0x6283183b55cdab5c971d3b832ec58fee6bab68eafb27f2aceb9e3c3969221d57", + "transactionHash": "0x445cbfd76b225d61c926111a85411913ab9607a544c9e47cde6a636547cc8b2c", + "logs": [ + { + "transactionIndex": 539, + "blockNumber": 371267, + "transactionHash": "0x445cbfd76b225d61c926111a85411913ab9607a544c9e47cde6a636547cc8b2c", + "address": "0xf2614A233c7C3e7f08b1F887Ba133a13f1eb2c55", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000282607716d9b4fdd0b094d5864fac56313f5e665" + ], + "data": "0x", + "logIndex": 518, + "blockHash": "0x6283183b55cdab5c971d3b832ec58fee6bab68eafb27f2aceb9e3c3969221d57" + } + ], + "blockNumber": 371267, + "cumulativeGasUsed": "26481885", + "status": 1, + "byzantium": true + }, + "args": [ + "0x0000000000000000000000000000000000000000", + [] + ], + "numDeployments": 1, + "solcInputHash": "9252879aaeb02fabe759ce8768addec4", + "metadata": "{\"compiler\":{\"version\":\"0.8.10+commit.fc410830\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_bentoBox\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"priviledgedUserList\",\"type\":\"address[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"MinimalOutputBalanceViolation\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"Route\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"algebraSwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bentoBox\",\"outputs\":[{\"internalType\":\"contract IBentoBoxMinimal\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"pancakeV3SwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"priviledgedUsers\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"route\",\"type\":\"bytes\"}],\"name\":\"processRoute\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"transferValueTo\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountValueTransfer\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"route\",\"type\":\"bytes\"}],\"name\":\"processRouteWithTransferValueInput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"transferValueTo\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountValueTransfer\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"route\",\"type\":\"bytes\"}],\"name\":\"processRouteWithTransferValueOutput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"resume\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"priviledge\",\"type\":\"bool\"}],\"name\":\"setPriviledge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"transferValueTo\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountValueTransfer\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"route\",\"type\":\"bytes\"}],\"name\":\"transferValueAndprocessRoute\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"uniswapV3SwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"author\":\"Ilya Lyalin\",\"kind\":\"dev\",\"methods\":{\"algebraSwapCallback(int256,int256,bytes)\":{\"details\":\"In the implementation you must pay the pool tokens owed for the swap. The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory. amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\",\"params\":{\"amount0Delta\":\"The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.\",\"amount1Delta\":\"The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.\",\"data\":\"Any data passed through by the caller via the IAlgebraPoolActions#swap call\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pancakeV3SwapCallback(int256,int256,bytes)\":{\"details\":\"In the implementation you must pay the pool tokens owed for the swap.\",\"params\":{\"amount0Delta\":\"The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.\",\"amount1Delta\":\"The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.\",\"data\":\"Any data passed through by the caller via the PancakeV3Pool#swap call\"}},\"processRoute(address,uint256,address,uint256,address,bytes)\":{\"params\":{\"amountIn\":\"Amount of the input token\",\"amountOutMin\":\"Minimum amount of the output token\",\"route\":\"Route to process\",\"to\":\"Where to transfer output tokens\",\"tokenIn\":\"Address of the input token\",\"tokenOut\":\"Address of the output token\"},\"returns\":{\"amountOut\":\"Actual amount of the output token\"}},\"processRouteWithTransferValueInput(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"params\":{\"amountIn\":\"Amount of the input token\",\"amountOutMin\":\"Minimum amount of the output token\",\"amountValueTransfer\":\"How much value to transfer\",\"tokenIn\":\"Address of the input token\",\"tokenOut\":\"Address of the output token\",\"transferValueTo\":\"Address where the value should be transferred\"},\"returns\":{\"amountOut\":\"Actual amount of the output token\"}},\"processRouteWithTransferValueOutput(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"params\":{\"amountIn\":\"Amount of the input token\",\"amountOutMin\":\"Minimum amount of the output token\",\"amountValueTransfer\":\"How much value to transfer\",\"tokenIn\":\"Address of the input token\",\"tokenOut\":\"Address of the output token\",\"transferValueTo\":\"Address where the value should be transferred\"},\"returns\":{\"amountOut\":\"Actual amount of the output token\"}},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"},\"transferValueAndprocessRoute(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"params\":{\"amountIn\":\"Amount of the input token\",\"amountOutMin\":\"Minimum amount of the output token\",\"amountValueTransfer\":\"How much value to transfer\",\"tokenIn\":\"Address of the input token\",\"tokenOut\":\"Address of the output token\",\"transferValueTo\":\"Address where the value should be transferred\"},\"returns\":{\"amountOut\":\"Actual amount of the output token\"}},\"uniswapV3SwapCallback(int256,int256,bytes)\":{\"details\":\"In the implementation you must pay the pool tokens owed for the swap. The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory. amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\",\"params\":{\"amount0Delta\":\"The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.\",\"amount1Delta\":\"The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.\",\"data\":\"Any data passed through by the caller via the IUniswapV3PoolActions#swap call\"}}},\"title\":\"A route processor for the Sushi Aggregator\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"algebraSwapCallback(int256,int256,bytes)\":{\"notice\":\"Called to `msg.sender` after executing a swap via IAlgebraPool#swap.\"},\"pancakeV3SwapCallback(int256,int256,bytes)\":{\"notice\":\"Called to `msg.sender` after executing a swap via PancakeV3Pool#swap.\"},\"processRoute(address,uint256,address,uint256,address,bytes)\":{\"notice\":\"Processes the route generated off-chain. Has a lock\"},\"processRouteWithTransferValueInput(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"notice\":\"Transfers some value of input tokens to and then processes the route\"},\"processRouteWithTransferValueOutput(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"notice\":\"processes the route and sends amount of output token to \"},\"transferValueAndprocessRoute(address,uint256,address,uint256,address,uint256,address,bytes)\":{\"notice\":\"Transfers some value to and then processes the route\"},\"uniswapV3SwapCallback(int256,int256,bytes)\":{\"notice\":\"Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/RouteProcessor5.sol\":\"RouteProcessor5\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":10000000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x9750c6b834f7b43000631af5cc30001c5f547b3ceb3635488f140f60e897ea6b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\\n *\\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\\n * need to send a transaction, and thus is not required to hold Ether at all.\\n */\\ninterface IERC20Permit {\\n /**\\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\\n * given ``owner``'s signed approval.\\n *\\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\\n * ordering also apply here.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `deadline` must be a timestamp in the future.\\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\\n * over the EIP712-formatted function arguments.\\n * - the signature must use ``owner``'s current nonce (see {nonces}).\\n *\\n * For more information on the signature format, see the\\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\\n * section].\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n /**\\n * @dev Returns the current nonce for `owner`. This value must be\\n * included whenever a signature is generated for {permit}.\\n *\\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\\n * prevents a signature from being used multiple times.\\n */\\n function nonces(address owner) external view returns (uint256);\\n\\n /**\\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\\n */\\n // solhint-disable-next-line func-name-mixedcase\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0xf41ca991f30855bf80ffd11e9347856a517b977f0a6c2d52e6421a99b7840329\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\nimport \\\"../extensions/draft-IERC20Permit.sol\\\";\\nimport \\\"../../../utils/Address.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20 {\\n using Address for address;\\n\\n function safeTransfer(\\n IERC20 token,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(\\n IERC20 token,\\n address from,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n function safeIncreaseAllowance(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n uint256 newAllowance = token.allowance(address(this), spender) + value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n function safeDecreaseAllowance(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n uint256 newAllowance = oldAllowance - value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n }\\n\\n function safePermit(\\n IERC20Permit token,\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n uint256 nonceBefore = token.nonces(owner);\\n token.permit(owner, spender, value, deadline, v, r, s);\\n uint256 nonceAfter = token.nonces(owner);\\n require(nonceAfter == nonceBefore + 1, \\\"SafeERC20: permit did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n if (returndata.length > 0) {\\n // Return data is optional\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9b72f93be69ca894d8492c244259615c4a742afc8d63720dbc8bb81087d9b238\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"contracts/InputStream.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity 0.8.10;\\n\\n/** @notice Simple read stream */\\nlibrary InputStream {\\n\\n /** @notice Creates stream from data\\n * @param data data\\n */\\n function createStream(bytes memory data) internal pure returns (uint256 stream) {\\n assembly {\\n stream := mload(0x40)\\n mstore(0x40, add(stream, 64))\\n mstore(stream, data)\\n let length := mload(data)\\n mstore(add(stream, 32), add(data, length))\\n }\\n }\\n\\n /** @notice Checks if stream is not empty\\n * @param stream stream\\n */\\n function isNotEmpty(uint256 stream) internal pure returns (bool) {\\n uint256 pos;\\n uint256 finish;\\n assembly {\\n pos := mload(stream)\\n finish := mload(add(stream, 32))\\n }\\n return pos < finish;\\n }\\n\\n /** @notice Reads uint8 from the stream\\n * @param stream stream\\n */\\n function readUint8(uint256 stream) internal pure returns (uint8 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 1)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads uint16 from the stream\\n * @param stream stream\\n */\\n function readUint16(uint256 stream) internal pure returns (uint16 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 2)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads uint24 from the stream\\n * @param stream stream\\n */\\n function readUint24(uint256 stream) internal pure returns (uint24 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 3)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads uint32 from the stream\\n * @param stream stream\\n */\\n function readUint32(uint256 stream) internal pure returns (uint32 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 4)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads uint256 from the stream\\n * @param stream stream\\n */\\n function readUint(uint256 stream) internal pure returns (uint256 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 32)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads bytes32 from the stream\\n * @param stream stream\\n */\\n function readBytes32(uint256 stream) internal pure returns (bytes32 res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 32)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads address from the stream\\n * @param stream stream\\n */\\n function readAddress(uint256 stream) internal pure returns (address res) {\\n assembly {\\n let pos := mload(stream)\\n pos := add(pos, 20)\\n res := mload(pos)\\n mstore(stream, pos)\\n }\\n }\\n\\n /** @notice Reads bytes from the stream\\n * @param stream stream\\n */\\n function readBytes(uint256 stream) internal pure returns (bytes memory res) {\\n assembly {\\n let pos := mload(stream)\\n res := add(pos, 32)\\n let length := mload(res)\\n mstore(stream, add(res, length))\\n }\\n }\\n}\\n\",\"keccak256\":\"0x24e24bd0e49cbddacbf3b26bcd4bdffac63d11f3259bc05bc93c0835e8ff5300\",\"license\":\"UNLICENSED\"},\"contracts/RouteProcessor5.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity 0.8.10;\\n\\nimport '../interfaces/IUniswapV2Pair.sol';\\nimport '../interfaces/IUniswapV3Pool.sol';\\nimport '../interfaces/ITridentCLPool.sol';\\nimport '../interfaces/IBentoBoxMinimal.sol';\\nimport '../interfaces/IPool.sol';\\nimport '../interfaces/IWETH.sol';\\nimport '../interfaces/ICurve.sol';\\nimport './InputStream.sol';\\nimport './Utils.sol';\\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\n\\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\\naddress constant INTERNAL_INPUT_SOURCE = 0x0000000000000000000000000000000000000000;\\n\\nuint8 constant LOCKED = 2;\\nuint8 constant NOT_LOCKED = 1;\\nuint8 constant PAUSED = 2;\\nuint8 constant NOT_PAUSED = 1;\\n\\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\\nuint160 constant MIN_SQRT_RATIO = 4295128739;\\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\\n\\n/// @title A route processor for the Sushi Aggregator\\n/// @author Ilya Lyalin\\ncontract RouteProcessor5 is Ownable {\\n using SafeERC20 for IERC20;\\n using Utils for IERC20;\\n using Utils for address;\\n using SafeERC20 for IERC20Permit;\\n using InputStream for uint256;\\n\\n event Route(\\n address indexed from, \\n address to, \\n address indexed tokenIn, \\n address indexed tokenOut, \\n uint256 amountIn, \\n uint256 amountOutMin,\\n uint256 amountOut\\n );\\n\\n error MinimalOutputBalanceViolation(uint256 amountOut);\\n\\n IBentoBoxMinimal public immutable bentoBox;\\n mapping (address => bool) public priviledgedUsers;\\n address private lastCalledPool;\\n\\n uint8 private unlocked = NOT_LOCKED;\\n uint8 private paused = NOT_PAUSED;\\n modifier lock() {\\n require(unlocked == NOT_LOCKED, 'RouteProcessor is locked');\\n require(paused == NOT_PAUSED, 'RouteProcessor is paused');\\n unlocked = LOCKED;\\n _;\\n unlocked = NOT_LOCKED;\\n }\\n\\n modifier onlyOwnerOrPriviledgedUser() {\\n require(msg.sender == owner() || priviledgedUsers[msg.sender], \\\"RP: caller is not the owner or a privileged user\\\");\\n _;\\n }\\n\\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\\n bentoBox = IBentoBoxMinimal(_bentoBox);\\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\\n\\n for (uint256 i = 0; i < priviledgedUserList.length; i++) {\\n priviledgedUsers[priviledgedUserList[i]] = true;\\n }\\n }\\n\\n function setPriviledge(address user, bool priviledge) external onlyOwner {\\n priviledgedUsers[user] = priviledge;\\n }\\n\\n function pause() external onlyOwnerOrPriviledgedUser {\\n paused = PAUSED;\\n }\\n\\n function resume() external onlyOwnerOrPriviledgedUser {\\n paused = NOT_PAUSED;\\n }\\n\\n /// @notice For native unwrapping\\n receive() external payable {}\\n\\n /// @notice Processes the route generated off-chain. Has a lock\\n /// @param tokenIn Address of the input token\\n /// @param amountIn Amount of the input token\\n /// @param tokenOut Address of the output token\\n /// @param amountOutMin Minimum amount of the output token\\n /// @param to Where to transfer output tokens\\n /// @param route Route to process\\n /// @return amountOut Actual amount of the output token\\n function processRoute(\\n address tokenIn,\\n uint256 amountIn,\\n address tokenOut,\\n uint256 amountOutMin,\\n address to,\\n bytes memory route\\n ) external payable lock returns (uint256 amountOut) {\\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\\n }\\n\\n /// @notice Transfers some value to and then processes the route\\n /// @param transferValueTo Address where the value should be transferred\\n /// @param amountValueTransfer How much value to transfer\\n /// @param tokenIn Address of the input token\\n /// @param amountIn Amount of the input token\\n /// @param tokenOut Address of the output token\\n /// @param amountOutMin Minimum amount of the output token\\n /// @return amountOut Actual amount of the output token\\n function transferValueAndprocessRoute(\\n address transferValueTo,\\n uint256 amountValueTransfer,\\n address tokenIn,\\n uint256 amountIn,\\n address tokenOut,\\n uint256 amountOutMin,\\n address to,\\n bytes memory route\\n ) external payable lock returns (uint256 amountOut) {\\n transferValueTo.transferNative(amountValueTransfer);\\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\\n }\\n\\n /// @notice Transfers some value of input tokens to and then processes the route\\n /// @param transferValueTo Address where the value should be transferred\\n /// @param amountValueTransfer How much value to transfer\\n /// @param tokenIn Address of the input token\\n /// @param amountIn Amount of the input token\\n /// @param tokenOut Address of the output token\\n /// @param amountOutMin Minimum amount of the output token\\n /// @return amountOut Actual amount of the output token\\n function processRouteWithTransferValueInput(\\n address payable transferValueTo,\\n uint256 amountValueTransfer,\\n address tokenIn,\\n uint256 amountIn,\\n address tokenOut,\\n uint256 amountOutMin,\\n address to,\\n bytes memory route\\n ) external payable lock returns (uint256 amountOut) {\\n tokenIn.transferAnyFromSender(transferValueTo, amountValueTransfer);\\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\\n }\\n \\n /// @notice processes the route and sends amount of output token to \\n /// @param transferValueTo Address where the value should be transferred\\n /// @param amountValueTransfer How much value to transfer\\n /// @param tokenIn Address of the input token\\n /// @param amountIn Amount of the input token\\n /// @param tokenOut Address of the output token\\n /// @param amountOutMin Minimum amount of the output token\\n /// @return amountOut Actual amount of the output token\\n function processRouteWithTransferValueOutput(\\n address payable transferValueTo,\\n uint256 amountValueTransfer,\\n address tokenIn,\\n uint256 amountIn,\\n address tokenOut,\\n uint256 amountOutMin,\\n address to,\\n bytes memory route\\n ) external payable lock returns (uint256 amountOut) {\\n amountOut = processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, address(this), route);\\n tokenOut.transferAny(transferValueTo, amountValueTransfer);\\n tokenOut.transferAny(to, amountOut - amountValueTransfer);\\n }\\n\\n /// @notice Processes the route generated off-chain\\n /// @param tokenIn Address of the input token\\n /// @param amountIn Amount of the input token\\n /// @param tokenOut Address of the output token\\n /// @param amountOutMin Minimum amount of the output token\\n /// @return amountOut Actual amount of the output token\\n function processRouteInternal(\\n address tokenIn,\\n uint256 amountIn,\\n address tokenOut,\\n uint256 amountOutMin,\\n address to,\\n bytes memory route\\n ) private returns (uint256 amountOut) {\\n uint256 balanceInInitial = tokenIn.anyBalanceOf(msg.sender);\\n uint256 balanceOutInitial = tokenOut.anyBalanceOf(to);\\n\\n uint256 realAmountIn = amountIn;\\n {\\n uint256 step = 0;\\n uint256 stream = InputStream.createStream(route);\\n while (stream.isNotEmpty()) {\\n uint8 commandCode = stream.readUint8();\\n if (commandCode == 1) {\\n uint256 usedAmount = processMyERC20(stream); \\n if (step == 0) realAmountIn = usedAmount;\\n } \\n else if (commandCode == 2) processUserERC20(stream, amountIn);\\n else if (commandCode == 3) {\\n uint256 usedAmount = processNative(stream); \\n if (step == 0) realAmountIn = usedAmount;\\n } \\n else if (commandCode == 4) processOnePool(stream);\\n else if (commandCode == 5) processInsideBento(stream);\\n else if (commandCode == 6) applyPermit(tokenIn, stream);\\n else revert('RouteProcessor: Unknown command code');\\n ++step;\\n }\\n }\\n\\n uint256 balanceInFinal = tokenIn.anyBalanceOf(msg.sender);\\n if (tokenIn != Utils.NATIVE_ADDRESS)\\n require(balanceInFinal + amountIn + 10 >= balanceInInitial, 'RouteProcessor: Minimal input balance violation');\\n \\n uint256 balanceOutFinal = tokenOut.anyBalanceOf(to);\\n if (balanceOutFinal < balanceOutInitial + amountOutMin)\\n revert MinimalOutputBalanceViolation(balanceOutFinal - balanceOutInitial);\\n\\n amountOut = balanceOutFinal - balanceOutInitial;\\n\\n emit Route(msg.sender, to, tokenIn, tokenOut, realAmountIn, amountOutMin, amountOut);\\n }\\n\\n /// @notice Applies ERC-2612 permit\\n /// @param tokenIn permitted token\\n /// @param stream Streamed program\\n function applyPermit(address tokenIn, uint256 stream) private {\\n uint256 value = stream.readUint();\\n uint256 deadline = stream.readUint();\\n uint8 v = stream.readUint8();\\n bytes32 r = stream.readBytes32();\\n bytes32 s = stream.readBytes32();\\n if (IERC20(tokenIn).allowance(msg.sender, address(this)) < value) {\\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\\n }\\n }\\n\\n /// @notice Processes native coin: call swap for all pools that swap from native coin\\n /// @param stream Streamed program\\n function processNative(uint256 stream) private returns (uint256 amountTotal) {\\n amountTotal = address(this).balance;\\n distributeAndSwap(stream, address(this), Utils.NATIVE_ADDRESS, amountTotal);\\n }\\n\\n /// @notice Processes ERC20 token from this contract balance:\\n /// @notice Call swap for all pools that swap from this token\\n /// @param stream Streamed program\\n function processMyERC20(uint256 stream) private returns (uint256 amountTotal) {\\n address token = stream.readAddress();\\n amountTotal = IERC20(token).balanceOf(address(this));\\n unchecked {\\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\\n }\\n distributeAndSwap(stream, address(this), token, amountTotal);\\n }\\n \\n /// @notice Processes ERC20 token from msg.sender balance:\\n /// @notice Call swap for all pools that swap from this token\\n /// @param stream Streamed program\\n /// @param amountTotal Amount of tokens to take from msg.sender\\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\\n address token = stream.readAddress();\\n distributeAndSwap(stream, msg.sender, token, amountTotal);\\n }\\n\\n /// @notice Processes ERC20 token for cases when the token has only one output pool\\n /// @notice In this case liquidity is already at pool balance. This is an optimization\\n /// @notice Call swap for all pools that swap from this token\\n /// @param stream Streamed program\\n function processOnePool(uint256 stream) private {\\n address token = stream.readAddress();\\n swap(stream, INTERNAL_INPUT_SOURCE, token, 0);\\n }\\n\\n /// @notice Processes Bento tokens \\n /// @notice Call swap for all pools that swap from this token\\n /// @param stream Streamed program\\n function processInsideBento(uint256 stream) private {\\n address token = stream.readAddress();\\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\\n unchecked {\\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\\n }\\n distributeAndSwap(stream, address(this), token, amountTotal);\\n }\\n\\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\\n /// @param stream Streamed program\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountTotal Total amount of tokenIn for swaps \\n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\\n uint8 num = stream.readUint8();\\n unchecked {\\n for (uint256 i = 0; i < num; ++i) {\\n uint16 share = stream.readUint16();\\n uint256 amount = (amountTotal * share) / type(uint16).max /*65535*/;\\n amountTotal -= amount;\\n swap(stream, from, tokenIn, amount);\\n }\\n }\\n }\\n\\n /// @notice Makes swap\\n /// @param stream Streamed program\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n uint8 poolType = stream.readUint8();\\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\\n else if (poolType == 5) swapCurve(stream, from, tokenIn, amountIn);\\n else revert('RouteProcessor: Unknown pool type');\\n }\\n\\n /// @notice Wraps/unwraps native token\\n /// @param stream [direction & fake, recipient, wrapToken?]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n uint8 directionAndFake = stream.readUint8();\\n address to = stream.readAddress();\\n\\n if (directionAndFake & 1 == 1) { // wrap native\\n address wrapToken = stream.readAddress();\\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\\n } else { // unwrap native\\n if (directionAndFake & 2 == 0) {\\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\\n IWETH(tokenIn).withdraw(amountIn);\\n }\\n to.transferNative(amountIn);\\n }\\n }\\n\\n /// @notice Bridge/unbridge tokens to/from Bento\\n /// @param stream [direction, recipient]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n uint8 direction = stream.readUint8();\\n address to = stream.readAddress();\\n\\n if (direction > 0) { // outside to Bento\\n // deposit to arbitrary recipient is possible only from address(bentoBox)\\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(bentoBox), amountIn);\\n else {\\n // tokens already are at address(bentoBox)\\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\\n bentoBox.strategyData(tokenIn).balance -\\n bentoBox.totals(tokenIn).elastic;\\n }\\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\\n } else { // Bento to outside\\n if (from != INTERNAL_INPUT_SOURCE) {\\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\\n }\\n }\\n\\n /// @notice UniswapV2 pool swap\\n /// @param stream [pool, direction, recipient, fee]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n address pool = stream.readAddress();\\n uint8 direction = stream.readUint8();\\n address to = stream.readAddress();\\n uint24 fee = stream.readUint24(); // pool fee in 1/1_000_000\\n\\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, pool, amountIn);\\n\\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\\n amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\\n\\n uint256 amountInWithFee = amountIn * (1_000_000 - fee);\\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1_000_000 + amountInWithFee);\\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\\n }\\n\\n /// @notice Trident pool swap\\n /// @param stream [pool, swapData]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n address pool = stream.readAddress();\\n bytes memory swapData = stream.readBytes();\\n\\n if (from != INTERNAL_INPUT_SOURCE) {\\n bentoBox.transfer(tokenIn, from, pool, amountIn);\\n }\\n \\n IPool(pool).swap(swapData);\\n }\\n\\n /// @notice UniswapV3 pool swap\\n /// @param stream [pool, direction, recipient]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n address pool = stream.readAddress();\\n bool zeroForOne = stream.readUint8() > 0;\\n address recipient = stream.readAddress();\\n\\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\\n\\n lastCalledPool = pool;\\n IUniswapV3Pool(pool).swap(\\n recipient,\\n zeroForOne,\\n int256(amountIn),\\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\\n abi.encode(tokenIn)\\n );\\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\\n }\\n\\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\\n function uniswapV3SwapCallback(\\n int256 amount0Delta,\\n int256 amount1Delta,\\n bytes calldata data\\n ) public {\\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\\n \\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\\n (address tokenIn) = abi.decode(data, (address));\\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\\n }\\n\\n /// @notice Called to `msg.sender` after executing a swap via IAlgebraPool#swap.\\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\\n /// The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory.\\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\\n /// @param data Any data passed through by the caller via the IAlgebraPoolActions#swap call\\n function algebraSwapCallback(\\n int256 amount0Delta,\\n int256 amount1Delta,\\n bytes calldata data\\n ) external {\\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\\n }\\n\\n /// @notice Called to `msg.sender` after executing a swap via PancakeV3Pool#swap.\\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\\n /// @param data Any data passed through by the caller via the PancakeV3Pool#swap call\\n function pancakeV3SwapCallback(\\n int256 amount0Delta,\\n int256 amount1Delta,\\n bytes calldata data\\n ) external {\\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\\n }\\n\\n /// @notice Curve pool swap. Legacy pools that don't return amountOut and have native coins are not supported\\n /// @param stream [pool, poolType, fromIndex, toIndex, recipient, output token]\\n /// @param from Where to take liquidity for swap\\n /// @param tokenIn Input token\\n /// @param amountIn Amount of tokenIn to take for swap\\n function swapCurve(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\\n address pool = stream.readAddress();\\n uint8 poolType = stream.readUint8();\\n int128 fromIndex = int8(stream.readUint8());\\n int128 toIndex = int8(stream.readUint8());\\n address to = stream.readAddress();\\n address tokenOut = stream.readAddress();\\n\\n uint256 amountOut;\\n if (tokenIn == Utils.NATIVE_ADDRESS) {\\n amountOut = ICurve(pool).exchange{value: amountIn}(fromIndex, toIndex, amountIn, 0);\\n } else {\\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\\n IERC20(tokenIn).approveSafe(pool, amountIn);\\n if (poolType == 0) amountOut = ICurve(pool).exchange(fromIndex, toIndex, amountIn, 0);\\n else {\\n uint256 balanceBefore = tokenOut.anyBalanceOf(address(this));\\n ICurveLegacy(pool).exchange(fromIndex, toIndex, amountIn, 0);\\n uint256 balanceAfter = tokenOut.anyBalanceOf(address(this));\\n amountOut = balanceAfter - balanceBefore;\\n }\\n }\\n\\n if (to != address(this)) tokenOut.transferAny(to, amountOut);\\n }\\n}\\n\",\"keccak256\":\"0xcd53a7f473f1847d44c42777a194203cbff02b8c761cb2935402401f57c918a2\",\"license\":\"UNLICENSED\"},\"contracts/Utils.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity 0.8.10;\\n\\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\\n\\nlibrary Utils {\\n using SafeERC20 for IERC20;\\n\\n address constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\\n\\n /**\\n * @dev returns user's balance of token (or native)\\n */\\n function anyBalanceOf(address token, address user) internal view returns (uint256) {\\n if (token == NATIVE_ADDRESS) return address(user).balance;\\n else return IERC20(token).balanceOf(user);\\n }\\n\\n /**\\n * @dev transfers native with correct revert bubble up\\n */\\n function transferNative(address to, uint256 amount) internal {\\n (bool success, bytes memory returnBytes) = to.call{value: amount}('');\\n if (!success) {\\n assembly {\\n revert(add(32, returnBytes), mload(returnBytes))\\n }\\n }\\n }\\n\\n /**\\n * @dev transfers ERC20 or native\\n */\\n function transferAny(address token, address to, uint256 amount) internal {\\n if (token == NATIVE_ADDRESS) transferNative(to, amount);\\n else IERC20(token).safeTransfer(to, amount);\\n }\\n\\n /**\\n * @dev transfers from ERC20 or transfers native\\n */\\n function transferAnyFromSender(address token, address to, uint256 amount) internal {\\n if (token == NATIVE_ADDRESS) transferNative(to, amount); // native liquidity is already on this contract\\n else IERC20(token).safeTransferFrom(msg.sender, to, amount);\\n }\\n\\n /**\\n * @dev ERC20 approve that correct works with token.approve which returns bool or nothing (USDT for example)\\n * @param token The token targeted by the call.\\n * @param spender token spender\\n * @param amount token amount\\n */\\n function approveStable(IERC20 token, address spender, uint256 amount) internal returns (bool) {\\n (bool success, bytes memory data) = address(token).call(\\n abi.encodeWithSelector(token.approve.selector, spender, amount)\\n );\\n return success && (data.length == 0 || abi.decode(data, (bool)));\\n }\\n\\n /**\\n * @dev ERC20 approve that correct works with token.approve which reverts if amount and \\n * current allowance are not zero simultaniously (USDT for example). \\n * In second case it tries to set allowance to 0, and then back to amount.\\n * @param token The token targeted by the call.\\n * @param spender token spender\\n * @param amount token amount\\n */\\n function approveSafe(IERC20 token, address spender, uint256 amount) internal returns (bool) {\\n return approveStable(token, spender, amount) \\n || (approveStable(token, spender, 0) && approveStable(token, spender, amount));\\n }\\n}\\n\",\"keccak256\":\"0x8c8439edc00b403abd3f34be75a06b1fe71152644ae9f19488af596bbc534ffe\",\"license\":\"UNLICENSED\"},\"interfaces/IBentoBoxMinimal.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity >=0.8.0;\\n\\nstruct Rebase {\\n uint128 elastic;\\n uint128 base;\\n}\\n\\nstruct StrategyData {\\n uint64 strategyStartDate;\\n uint64 targetPercentage;\\n uint128 balance; // the balance of the strategy that BentoBox thinks is in there\\n}\\n\\n/// @notice A rebasing library\\nlibrary RebaseLibrary {\\n /// @notice Calculates the base value in relationship to `elastic` and `total`.\\n function toBase(Rebase memory total, uint256 elastic) internal pure returns (uint256 base) {\\n if (total.elastic == 0) {\\n base = elastic;\\n } else {\\n base = (elastic * total.base) / total.elastic;\\n }\\n }\\n\\n /// @notice Calculates the elastic value in relationship to `base` and `total`.\\n function toElastic(Rebase memory total, uint256 base) internal pure returns (uint256 elastic) {\\n if (total.base == 0) {\\n elastic = base;\\n } else {\\n elastic = (base * total.elastic) / total.base;\\n }\\n }\\n}\\n\\n/// @notice Minimal BentoBox vault interface.\\n/// @dev `token` is aliased as `address` from `IERC20` for simplicity.\\ninterface IBentoBoxMinimal {\\n /// @notice Balance per ERC-20 token per account in shares.\\n function balanceOf(address, address) external view returns (uint256);\\n\\n /// @dev Helper function to represent an `amount` of `token` in shares.\\n /// @param token The ERC-20 token.\\n /// @param amount The `token` amount.\\n /// @param roundUp If the result `share` should be rounded up.\\n /// @return share The token amount represented in shares.\\n function toShare(\\n address token,\\n uint256 amount,\\n bool roundUp\\n ) external view returns (uint256 share);\\n\\n /// @dev Helper function to represent shares back into the `token` amount.\\n /// @param token The ERC-20 token.\\n /// @param share The amount of shares.\\n /// @param roundUp If the result should be rounded up.\\n /// @return amount The share amount back into native representation.\\n function toAmount(\\n address token,\\n uint256 share,\\n bool roundUp\\n ) external view returns (uint256 amount);\\n\\n /// @notice Registers this contract so that users can approve it for BentoBox.\\n function registerProtocol() external;\\n\\n /// @notice Deposit an amount of `token` represented in either `amount` or `share`.\\n /// @param token The ERC-20 token to deposit.\\n /// @param from which account to pull the tokens.\\n /// @param to which account to push the tokens.\\n /// @param amount Token amount in native representation to deposit.\\n /// @param share Token amount represented in shares to deposit. Takes precedence over `amount`.\\n /// @return amountOut The amount deposited.\\n /// @return shareOut The deposited amount represented in shares.\\n function deposit(\\n address token,\\n address from,\\n address to,\\n uint256 amount,\\n uint256 share\\n ) external payable returns (uint256 amountOut, uint256 shareOut);\\n\\n /// @notice Withdraws an amount of `token` from a user account.\\n /// @param token_ The ERC-20 token to withdraw.\\n /// @param from which user to pull the tokens.\\n /// @param to which user to push the tokens.\\n /// @param amount of tokens. Either one of `amount` or `share` needs to be supplied.\\n /// @param share Like above, but `share` takes precedence over `amount`.\\n function withdraw(\\n address token_,\\n address from,\\n address to,\\n uint256 amount,\\n uint256 share\\n ) external returns (uint256 amountOut, uint256 shareOut);\\n\\n /// @notice Transfer shares from a user account to another one.\\n /// @param token The ERC-20 token to transfer.\\n /// @param from which user to pull the tokens.\\n /// @param to which user to push the tokens.\\n /// @param share The amount of `token` in shares.\\n function transfer(\\n address token,\\n address from,\\n address to,\\n uint256 share\\n ) external;\\n\\n /// @dev Reads the Rebase `totals`from storage for a given token\\n function totals(address token) external view returns (Rebase memory total);\\n\\n function strategyData(address token) external view returns (StrategyData memory total);\\n\\n /// @dev Approves users' BentoBox assets to a \\\"master\\\" contract.\\n function setMasterContractApproval(\\n address user,\\n address masterContract,\\n bool approved,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n function harvest(\\n address token,\\n bool balance,\\n uint256 maxChangeAmount\\n ) external;\\n}\\n\",\"keccak256\":\"0x0c12eba7a5b9d22d37ab8883fe22d6a312a90682809dbd11c43f8e6ceaff73bf\",\"license\":\"UNLICENSED\"},\"interfaces/ICurve.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity >=0.8.0;\\n\\ninterface ICurve {\\n function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) payable external returns (uint256);\\n}\\n\\ninterface ICurveLegacy {\\n function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) payable external;\\n}\\n\\n\",\"keccak256\":\"0x3d4940b3583e06dde20f12e92d2f6ac573b3f64bdaa1e8f480656a3763852518\",\"license\":\"UNLICENSED\"},\"interfaces/IPool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-or-later\\n\\npragma solidity >=0.5.0;\\npragma experimental ABIEncoderV2;\\n\\n/// @notice Trident pool interface.\\ninterface IPool {\\n /// @notice Executes a swap from one token to another.\\n /// @dev The input tokens must've already been sent to the pool.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return finalAmountOut The amount of output tokens that were sent to the user.\\n function swap(bytes calldata data) external returns (uint256 finalAmountOut);\\n\\n /// @notice Executes a swap from one token to another with a callback.\\n /// @dev This function allows borrowing the output tokens and sending the input tokens in the callback.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return finalAmountOut The amount of output tokens that were sent to the user.\\n function flashSwap(bytes calldata data) external returns (uint256 finalAmountOut);\\n\\n /// @notice Mints liquidity tokens.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return liquidity The amount of liquidity tokens that were minted for the user.\\n function mint(bytes calldata data) external returns (uint256 liquidity);\\n\\n /// @notice Burns liquidity tokens.\\n /// @dev The input LP tokens must've already been sent to the pool.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return withdrawnAmounts The amount of various output tokens that were sent to the user.\\n function burn(bytes calldata data) external returns (TokenAmount[] memory withdrawnAmounts);\\n\\n /// @notice Burns liquidity tokens for a single output token.\\n /// @dev The input LP tokens must've already been sent to the pool.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return amountOut The amount of output tokens that were sent to the user.\\n function burnSingle(bytes calldata data) external returns (uint256 amountOut);\\n\\n /// @return A unique identifier for the pool type.\\n function poolIdentifier() external pure returns (bytes32);\\n\\n /// @return An array of tokens supported by the pool.\\n function getAssets() external view returns (address[] memory);\\n\\n /// @notice Simulates a trade and returns the expected output.\\n /// @dev The pool does not need to include a trade simulator directly in itself - it can use a library.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return finalAmountOut The amount of output tokens that will be sent to the user if the trade is executed.\\n function getAmountOut(bytes calldata data) external view returns (uint256 finalAmountOut);\\n\\n /// @notice Simulates a trade and returns the expected output.\\n /// @dev The pool does not need to include a trade simulator directly in itself - it can use a library.\\n /// @param data ABI-encoded params that the pool requires.\\n /// @return finalAmountIn The amount of input tokens that are required from the user if the trade is executed.\\n function getAmountIn(bytes calldata data) external view returns (uint256 finalAmountIn);\\n\\n /// @dev This event must be emitted on all swaps.\\n event Swap(address indexed recipient, address indexed tokenIn, address indexed tokenOut, uint256 amountIn, uint256 amountOut);\\n\\n /// @dev This struct frames output tokens for burns.\\n struct TokenAmount {\\n address token;\\n uint256 amount;\\n }\\n}\\n\",\"keccak256\":\"0xa6f92ccb525b018c0c209819640e8d746f1134b4c4d9acd4f22d3e170323f1fa\",\"license\":\"GPL-3.0-or-later\"},\"interfaces/ITridentCLPool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-or-later\\n\\npragma solidity 0.8.10;\\n\\ninterface ITridentCLPool {\\n function token0() external returns (address);\\n function token1() external returns (address);\\n\\n function swap(\\n address recipient,\\n bool zeroForOne,\\n int256 amountSpecified,\\n uint160 sqrtPriceLimitX96,\\n bool unwrapBento,\\n bytes calldata data\\n ) external returns (int256 amount0, int256 amount1);\\n}\\n\",\"keccak256\":\"0x572376b80c86a94692b0e27e6e63790b763295e32ba1f956c1d331fc1296de8d\",\"license\":\"GPL-3.0-or-later\"},\"interfaces/IUniswapV2Pair.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\n\\npragma solidity >=0.5.0;\\n\\ninterface IUniswapV2Pair {\\n event Approval(address indexed owner, address indexed spender, uint value);\\n event Transfer(address indexed from, address indexed to, uint value);\\n\\n function name() external pure returns (string memory);\\n function symbol() external pure returns (string memory);\\n function decimals() external pure returns (uint8);\\n function totalSupply() external view returns (uint);\\n function balanceOf(address owner) external view returns (uint);\\n function allowance(address owner, address spender) external view returns (uint);\\n\\n function approve(address spender, uint value) external returns (bool);\\n function transfer(address to, uint value) external returns (bool);\\n function transferFrom(address from, address to, uint value) external returns (bool);\\n\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n function PERMIT_TYPEHASH() external pure returns (bytes32);\\n function nonces(address owner) external view returns (uint);\\n\\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\\n\\n event Mint(address indexed sender, uint amount0, uint amount1);\\n event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);\\n event Swap(\\n address indexed sender,\\n uint amount0In,\\n uint amount1In,\\n uint amount0Out,\\n uint amount1Out,\\n address indexed to\\n );\\n event Sync(uint112 reserve0, uint112 reserve1);\\n\\n function MINIMUM_LIQUIDITY() external pure returns (uint);\\n function factory() external view returns (address);\\n function token0() external view returns (address);\\n function token1() external view returns (address);\\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\\n function price0CumulativeLast() external view returns (uint);\\n function price1CumulativeLast() external view returns (uint);\\n function kLast() external view returns (uint);\\n\\n function mint(address to) external returns (uint liquidity);\\n function burn(address to) external returns (uint amount0, uint amount1);\\n function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;\\n function skim(address to) external;\\n function sync() external;\\n\\n function initialize(address, address) external;\\n}\",\"keccak256\":\"0x08f9a63b34855eec941be8d36a04424f1a1725a2c030373fcef3afeb480ca385\",\"license\":\"GPL-3.0\"},\"interfaces/IUniswapV3Pool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-or-later\\n\\npragma solidity 0.8.10;\\n\\ninterface IUniswapV3Pool {\\n function token0() external returns (address);\\n function token1() external returns (address);\\n\\n function swap(\\n address recipient,\\n bool zeroForOne,\\n int256 amountSpecified,\\n uint160 sqrtPriceLimitX96,\\n bytes calldata data\\n ) external returns (int256 amount0, int256 amount1);\\n}\\n\",\"keccak256\":\"0x2a4d7c6120e613f0e95d4dc8c650efb9b59e3c25c64e3e5c0a379281500f0a79\",\"license\":\"GPL-3.0-or-later\"},\"interfaces/IWETH.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-or-later\\n\\npragma solidity 0.8.10;\\n\\ninterface IWETH {\\n function deposit() external payable;\\n\\n function transfer(address to, uint256 value) external returns (bool);\\n\\n function withdraw(uint256) external;\\n}\\n\",\"keccak256\":\"0xae8529ae159f784b90fdcd0629bd03bf7b68accc81edccac53357ad08406a378\",\"license\":\"GPL-3.0-or-later\"}},\"version\":1}", + "bytecode": "0x60a06040526002805461ffff60a01b191661010160a01b1790553480156200002657600080fd5b50604051620040a3380380620040a383398101604081905262000049916200016e565b6200005433620000eb565b6001600160a01b038216608052600280546001600160a01b031916600117905560005b8151811015620000e25760018060008484815181106200009b576200009b62000257565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580620000d9816200026d565b91505062000077565b50505062000297565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200015357600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156200018257600080fd5b6200018d836200013b565b602084810151919350906001600160401b0380821115620001ad57600080fd5b818601915086601f830112620001c257600080fd5b815181811115620001d757620001d762000158565b8060051b604051601f19603f83011681018181108582111715620001ff57620001ff62000158565b6040529182528482019250838101850191898311156200021e57600080fd5b938501935b82851015620002475762000237856200013b565b8452938501939285019262000223565b8096505050505050509250929050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156200029057634e487b7160e01b600052601160045260246000fd5b5060010190565b608051613da3620003006000396000818161018d01528181611798015281816127380152818161279d01528181612807015281816128cc0152818161297901528181612a5d01528181612b6401528181612c1001528181612cdf0152612df10152613da36000f3fe6080604052600436106100ec5760003560e01c8063715018a61161008a5780639a1f3406116100595780639a1f34061461023c578063cd0fb7a71461025c578063f2fde38b1461029c578063fa461e33146102bc57600080fd5b8063715018a6146101d45780638456cb59146101e95780638da5cb5b146101fe57806393b3774c1461022957600080fd5b80632c8958f6116100c65780632c8958f61461010f57806347f8bd41146101555780636678ec1f146101685780636b2ace871461017b57600080fd5b8063046f7da2146100f857806323a69e751461010f5780632646478b1461012f57600080fd5b366100f357005b600080fd5b34801561010457600080fd5b5061010d6102dc565b005b34801561011b57600080fd5b5061010d61012a3660046135d4565b6103e4565b61014261013d366004613750565b6103f6565b6040519081526020015b60405180910390f35b6101426101633660046137d7565b6105a0565b6101426101763660046137d7565b61076e565b34801561018757600080fd5b506101af7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161014c565b3480156101e057600080fd5b5061010d61091c565b3480156101f557600080fd5b5061010d610930565b34801561020a57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166101af565b6101426102373660046137d7565b610a33565b34801561024857600080fd5b5061010d61025736600461388a565b610ba4565b34801561026857600080fd5b5061028c6102773660046138c3565b60016020526000908152604090205460ff1681565b604051901515815260200161014c565b3480156102a857600080fd5b5061010d6102b73660046138c3565b610c02565b3480156102c857600080fd5b5061010d6102d73660046135d4565b610cb9565b60005473ffffffffffffffffffffffffffffffffffffffff1633148061031157503360009081526001602052604090205460ff165b6103a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f52503a2063616c6c6572206973206e6f7420746865206f776e6572206f72206160448201527f2070726976696c6567656420757365720000000000000000000000000000000060648201526084015b60405180910390fd5b600280547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167501000000000000000000000000000000000000000000179055565b6103f084848484610cb9565b50505050565b60025460009074010000000000000000000000000000000000000000900460ff16600114610480576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610508576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674020000000000000000000000000000000000000000179055610555878787878787610e67565b9050600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790559695505050505050565b60025460009074010000000000000000000000000000000000000000900460ff1660011461062a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff166001146106b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905561071273ffffffffffffffffffffffffffffffffffffffff88168a8a61121d565b610720878787878787610e67565b90505b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905598975050505050505050565b60025460009074010000000000000000000000000000000000000000900460ff166001146107f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610880576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740200000000000000000000000000000000000000001790556108cd878787873087610e67565b90506108f073ffffffffffffffffffffffffffffffffffffffff86168a8a611280565b610723836108fe8a84613916565b73ffffffffffffffffffffffffffffffffffffffff88169190611280565b6109246112dd565b61092e600061135e565b565b60005473ffffffffffffffffffffffffffffffffffffffff1633148061096557503360009081526001602052604090205460ff165b6109f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f52503a2063616c6c6572206973206e6f7420746865206f776e6572206f72206160448201527f2070726976696c656765642075736572000000000000000000000000000000006064820152608401610399565b600280547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167502000000000000000000000000000000000000000000179055565b60025460009074010000000000000000000000000000000000000000900460ff16600114610abd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610b45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905561071273ffffffffffffffffffffffffffffffffffffffff8a16896113d3565b610bac6112dd565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b610c0a6112dd565b73ffffffffffffffffffffffffffffffffffffffff8116610cad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610399565b610cb68161135e565b50565b60025473ffffffffffffffffffffffffffffffffffffffff163314610d60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603e60248201527f526f75746550726f636573736f722e756e697377617056335377617043616c6c60448201527f6261636b3a2063616c6c2066726f6d20756e6b6e6f776e20736f7572636500006064820152608401610399565b6000808513610d6f5783610d71565b845b905060008113610e03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603960248201527f526f75746550726f636573736f722e756e697377617056335377617043616c6c60448201527f6261636b3a206e6f7420706f73697469766520616d6f756e74000000000000006064820152608401610399565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001660011790556000610e3c838501856138c3565b9050610e5f73ffffffffffffffffffffffffffffffffffffffff82163384611445565b505050505050565b600080610e8a73ffffffffffffffffffffffffffffffffffffffff891633611519565b90506000610eae73ffffffffffffffffffffffffffffffffffffffff881686611519565b905087600080610ed287604080518082019091528181528151909101602082015290565b90505b805160208201511115611028576000610ef48280516001018051915290565b90508060ff1660011415610f1e576000610f0d83611604565b905083610f18578094505b50611017565b8060ff1660021415610f3957610f34828d6116c9565b611017565b8060ff1660031415610f50576000610f0d836116e9565b8060ff1660041415610f6557610f348261170f565b8060ff1660051415610f7a57610f3482611735565b8060ff1660061415610f9057610f348d8361183a565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f526f75746550726f636573736f723a20556e6b6e6f776e20636f6d6d616e642060448201527f636f6465000000000000000000000000000000000000000000000000000000006064820152608401610399565b6110208361392d565b925050610ed5565b506000905061104d73ffffffffffffffffffffffffffffffffffffffff8c1633611519565b905073ffffffffffffffffffffffffffffffffffffffff8b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611124578361108b8b83613966565b61109690600a613966565b1015611124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f526f75746550726f636573736f723a204d696e696d616c20696e70757420626160448201527f6c616e63652076696f6c6174696f6e00000000000000000000000000000000006064820152608401610399565b600061114673ffffffffffffffffffffffffffffffffffffffff8b1689611519565b90506111528985613966565b811015611198576111638482613916565b6040517f963b34a500000000000000000000000000000000000000000000000000000000815260040161039991815260200190565b6111a28482613916565b6040805173ffffffffffffffffffffffffffffffffffffffff8b81168252602082018790529181018c905260608101839052919750808c1691908e169033907f2db5ddd0b42bdbca0d69ea16f234a870a485854ae0d91f16643d6f317d8b89949060800160405180910390a450505050509695505050505050565b73ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561125e5761125982826113d3565b505050565b61125973ffffffffffffffffffffffffffffffffffffffff841633848461196a565b73ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156112bc5761125982826113d3565b61125973ffffffffffffffffffffffffffffffffffffffff84168383611445565b60005473ffffffffffffffffffffffffffffffffffffffff16331461092e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610399565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808373ffffffffffffffffffffffffffffffffffffffff168360405160006040518083038185875af1925050503d806000811461142e576040519150601f19603f3d011682016040523d82523d6000602084013e611433565b606091505b5091509150816103f057805181602001fd5b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526112599084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526119c8565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561156b575073ffffffffffffffffffffffffffffffffffffffff8116316115fe565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301528416906370a0823190602401602060405180830381865afa1580156115d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fb919061397e565b90505b92915050565b6000806116178380516014018051915290565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290915073ffffffffffffffffffffffffffffffffffffffff8216906370a0823190602401602060405180830381865afa158015611684573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a8919061397e565b915081156116b7576001820391505b6116c383308385611ad4565b50919050565b60006116db8380516014018051915290565b905061125983338385611ad4565b4761170a823073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee84611ad4565b919050565b60006117218280516014018051915290565b9050611731826000836000611b2f565b5050565b60006117478280516014018051915290565b6040517ff7888aec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80831660048301523060248301529192506000917f0000000000000000000000000000000000000000000000000000000000000000169063f7888aec90604401602060405180830381865afa1580156117df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611803919061397e565b9050801561182e577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015b61125983308484611ad4565b600061184c8280516020018051915290565b905060006118608380516020018051915290565b905060006118748480516001018051915290565b905060006118888580516020018051915290565b9050600061189c8680516020018051915290565b6040517fdd62ed3e000000000000000000000000000000000000000000000000000000008152336004820152306024820152909150859073ffffffffffffffffffffffffffffffffffffffff89169063dd62ed3e90604401602060405180830381865afa158015611911573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611935919061397e565b10156119615761196173ffffffffffffffffffffffffffffffffffffffff881633308888888888611c63565b50505050505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526103f09085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611497565b6000611a2a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611ee39092919063ffffffff16565b8051909150156112595780806020019051810190611a489190613997565b611259576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610399565b6000611ae68580516001018051915290565b905060005b8160ff16811015610e5f576000611b088780516002018051915290565b61ffff8082168602049485900394909150611b2588888884611b2f565b5050600101611aeb565b6000611b418580516001018051915290565b905060ff8116611b5c57611b5785858585611efa565b611c5c565b8060ff1660011415611b7457611b57858585856122af565b8060ff1660021415611b8c57611b57858585856124ef565b8060ff1660031415611ba457611b57858585856126cd565b8060ff1660041415611bbc57611b5785858585612d55565b8060ff1660051415611bd457611b5785858585612ee3565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f526f75746550726f636573736f723a20556e6b6e6f776e20706f6f6c2074797060448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610399565b5050505050565b6040517f7ecebe0000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8881166004830152600091908a1690637ecebe0090602401602060405180830381865afa158015611cd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cf7919061397e565b6040517fd505accf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a811660048301528981166024830152604482018990526064820188905260ff8716608483015260a4820186905260c48201859052919250908a169063d505accf9060e401600060405180830381600087803b158015611d9157600080fd5b505af1158015611da5573d6000803e3d6000fd5b50506040517f7ecebe0000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b81166004830152600093508c169150637ecebe0090602401602060405180830381865afa158015611e18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3c919061397e565b9050611e49826001613966565b8114611ed7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f5361666545524332303a207065726d697420646964206e6f742073756363656560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610399565b50505050505050505050565b6060611ef2848460008561329a565b949350505050565b6000611f0c8580516014018051915290565b90506000611f208680516001018051915290565b90506000611f348780516014018051915290565b90506000611f488880516003018051915290565b905073ffffffffffffffffffffffffffffffffffffffff8716301415611f8e57611f8973ffffffffffffffffffffffffffffffffffffffff87168587611445565b611fce565b73ffffffffffffffffffffffffffffffffffffffff8716331415611fce57611fce73ffffffffffffffffffffffffffffffffffffffff871633868861196a565b6000808573ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa15801561201c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204091906139d2565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691506000821180156120755750600081115b6120db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f57726f6e6720706f6f6c207265736572766573000000000000000000000000006044820152606401610399565b6000808660ff166001146120f05782846120f3565b83835b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b8116600483015292945090925083918c16906370a0823190602401602060405180830381865afa158015612167573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218b919061397e565b6121959190613916565b985060006121a686620f4240613a22565b6121b59062ffffff168b613a46565b90506000816121c785620f4240613a46565b6121d19190613966565b6121db8484613a46565b6121e59190613a83565b90506000808a60ff166001146121fd57826000612201565b6000835b604080516000815260208101918290527f022c0d9f00000000000000000000000000000000000000000000000000000000909152919350915073ffffffffffffffffffffffffffffffffffffffff8d169063022c0d9f9061226b90859085908f9060248101613b34565b600060405180830381600087803b15801561228557600080fd5b505af1158015612299573d6000803e3d6000fd5b5050505050505050505050505050505050505050565b60006122c18580516014018051915290565b90506000806122d68780516001018051915290565b60ff1611905060006122ee8780516014018051915290565b905073ffffffffffffffffffffffffffffffffffffffff86163314156123305761233073ffffffffffffffffffffffffffffffffffffffff861633308761196a565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff851690811790915563128acb08828487816123a45761239f600173fffd8963efd1fc6a506488495d951d5263988d26613b6f565b6123b4565b6123b46401000276a36001613b9c565b6040805173ffffffffffffffffffffffffffffffffffffffff8d166020820152016040516020818303038152906040526040518663ffffffff1660e01b8152600401612404959493929190613bd4565b60408051808303816000875af1158015612422573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124469190613c1b565b505060025473ffffffffffffffffffffffffffffffffffffffff16600114611961576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f526f75746550726f636573736f722e73776170556e6956333a20756e6578706560448201527f63746564000000000000000000000000000000000000000000000000000000006064820152608401610399565b60006125018580516001018051915290565b905060006125158680516014018051915290565b9050600180831614156125e45760006125348780516014018051915290565b9050600283166125a0578073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561258657600080fd5b505af115801561259a573d6000803e3d6000fd5b50505050505b73ffffffffffffffffffffffffffffffffffffffff821630146125de576125de73ffffffffffffffffffffffffffffffffffffffff82168386611445565b50610e5f565b600282166126ad5773ffffffffffffffffffffffffffffffffffffffff851633141561262c5761262c73ffffffffffffffffffffffffffffffffffffffff851633308661196a565b6040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff851690632e1a7d4d90602401600060405180830381600087803b15801561269457600080fd5b505af11580156126a8573d6000803e3d6000fd5b505050505b610e5f73ffffffffffffffffffffffffffffffffffffffff8216846113d3565b60006126df8580516001018051915290565b905060006126f38680516014018051915290565b905060ff821615612aee5773ffffffffffffffffffffffffffffffffffffffff85163014156127625761275d73ffffffffffffffffffffffffffffffffffffffff85167f000000000000000000000000000000000000000000000000000000000000000085611445565b612a18565b73ffffffffffffffffffffffffffffffffffffffff85163314156127c25761275d73ffffffffffffffffffffffffffffffffffffffff8516337f00000000000000000000000000000000000000000000000000000000000000008661196a565b6040517f4ffe34db00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301527f00000000000000000000000000000000000000000000000000000000000000001690634ffe34db906024016040805180830381865afa15801561284d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128719190613c5f565b516040517fdf23b45b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526fffffffffffffffffffffffffffffffff909216917f0000000000000000000000000000000000000000000000000000000000000000169063df23b45b90602401606060405180830381865afa158015612913573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129379190613cd2565b60409081015190517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301526fffffffffffffffffffffffffffffffff909216918716906370a0823190602401602060405180830381865afa1580156129dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a01919061397e565b612a0b9190613966565b612a159190613916565b92505b6040517f02b9446c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301527f000000000000000000000000000000000000000000000000000000000000000081166024830181905290831660448301526064820185905260006084830152906302b9446c9060a40160408051808303816000875af1158015612ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae79190613c1b565b5050610e5f565b73ffffffffffffffffffffffffffffffffffffffff851615612bc5576040517ff18d03cc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301528681166024830152306044830152606482018590527f0000000000000000000000000000000000000000000000000000000000000000169063f18d03cc90608401600060405180830381600087803b158015612ba857600080fd5b505af1158015612bbc573d6000803e3d6000fd5b50505050612c7e565b6040517ff7888aec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301523060248301527f0000000000000000000000000000000000000000000000000000000000000000169063f7888aec90604401602060405180830381865afa158015612c57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c7b919061397e565b92505b6040517f97da6d3000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152306024830152828116604483015260006064830152608482018590527f000000000000000000000000000000000000000000000000000000000000000016906397da6d309060a40160408051808303816000875af1158015612d27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d4b9190613c1b565b5050505050505050565b6000612d678580516014018051915290565b85516020808201805190920101875290915073ffffffffffffffffffffffffffffffffffffffff851615612e4e576040517ff18d03cc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015286811660248301528381166044830152606482018590527f0000000000000000000000000000000000000000000000000000000000000000169063f18d03cc90608401600060405180830381600087803b158015612e3557600080fd5b505af1158015612e49573d6000803e3d6000fd5b505050505b6040517f627dd56a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83169063627dd56a90612ea0908490600401613d3e565b6020604051808303816000875af1158015612ebf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611961919061397e565b6000612ef58580516014018051915290565b90506000612f098680516001018051915290565b90506000612f1d8780516001018051915290565b60000b90506000612f348880516001018051915290565b60000b90506000612f4b8980516014018051915290565b90506000612f5f8a80516014018051915290565b9050600073ffffffffffffffffffffffffffffffffffffffff891673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415613048576040517f3df02124000000000000000000000000000000000000000000000000000000008152600f86810b600483015285900b6024820152604481018990526000606482015273ffffffffffffffffffffffffffffffffffffffff881690633df02124908a9060840160206040518083038185885af115801561301c573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190613041919061397e565b905061324f565b73ffffffffffffffffffffffffffffffffffffffff8a163314156130885761308873ffffffffffffffffffffffffffffffffffffffff8a1633308b61196a565b6130a973ffffffffffffffffffffffffffffffffffffffff8a16888a6133b3565b5060ff861661315c576040517f3df02124000000000000000000000000000000000000000000000000000000008152600f86810b600483015285900b6024820152604481018990526000606482015273ffffffffffffffffffffffffffffffffffffffff881690633df02124906084016020604051808303816000875af1158015613138573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613041919061397e565b600061317e73ffffffffffffffffffffffffffffffffffffffff841630611519565b6040517f3df02124000000000000000000000000000000000000000000000000000000008152600f88810b600483015287900b6024820152604481018b90526000606482015290915073ffffffffffffffffffffffffffffffffffffffff891690633df0212490608401600060405180830381600087803b15801561320257600080fd5b505af1158015613216573d6000803e3d6000fd5b506000925061323e91505073ffffffffffffffffffffffffffffffffffffffff851630611519565b905061324a8282613916565b925050505b73ffffffffffffffffffffffffffffffffffffffff8316301461328d5761328d73ffffffffffffffffffffffffffffffffffffffff83168483611280565b5050505050505050505050565b60608247101561332c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610399565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516133559190613d51565b60006040518083038185875af1925050503d8060008114613392576040519150601f19603f3d011682016040523d82523d6000602084013e613397565b606091505b50915091506133a8878383876133e4565b979650505050505050565b60006133c0848484613481565b80611ef257506133d284846000613481565b8015611ef25750611ef2848484613481565b606083156134775782516134705773ffffffffffffffffffffffffffffffffffffffff85163b613470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610399565b5081611ef2565b611ef28383613590565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790529151600092839283929188169161351a9190613d51565b6000604051808303816000865af19150503d8060008114613557576040519150601f19603f3d011682016040523d82523d6000602084013e61355c565b606091505b50915091508180156135865750805115806135865750808060200190518101906135869190613997565b9695505050505050565b8151156135a05781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103999190613d3e565b600080600080606085870312156135ea57600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561361057600080fd5b818701915087601f83011261362457600080fd5b81358181111561363357600080fd5b88602082850101111561364557600080fd5b95989497505060200194505050565b73ffffffffffffffffffffffffffffffffffffffff81168114610cb657600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f8301126136b657600080fd5b813567ffffffffffffffff808211156136d1576136d1613676565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561371757613717613676565b8160405283815286602085880101111561373057600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060008060c0878903121561376957600080fd5b863561377481613654565b955060208701359450604087013561378b81613654565b93506060870135925060808701356137a281613654565b915060a087013567ffffffffffffffff8111156137be57600080fd5b6137ca89828a016136a5565b9150509295509295509295565b600080600080600080600080610100898b0312156137f457600080fd5b88356137ff81613654565b975060208901359650604089013561381681613654565b955060608901359450608089013561382d81613654565b935060a0890135925060c089013561384481613654565b915060e089013567ffffffffffffffff81111561386057600080fd5b61386c8b828c016136a5565b9150509295985092959890939650565b8015158114610cb657600080fd5b6000806040838503121561389d57600080fd5b82356138a881613654565b915060208301356138b88161387c565b809150509250929050565b6000602082840312156138d557600080fd5b81356138e081613654565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015613928576139286138e7565b500390565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561395f5761395f6138e7565b5060010190565b60008219821115613979576139796138e7565b500190565b60006020828403121561399057600080fd5b5051919050565b6000602082840312156139a957600080fd5b81516138e08161387c565b80516dffffffffffffffffffffffffffff8116811461170a57600080fd5b6000806000606084860312156139e757600080fd5b6139f0846139b4565b92506139fe602085016139b4565b9150604084015163ffffffff81168114613a1757600080fd5b809150509250925092565b600062ffffff83811690831681811015613a3e57613a3e6138e7565b039392505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613a7e57613a7e6138e7565b500290565b600082613ab9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60005b83811015613ad9578181015183820152602001613ac1565b838111156103f05750506000910152565b60008151808452613b02816020860160208601613abe565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b84815283602082015273ffffffffffffffffffffffffffffffffffffffff831660408201526080606082015260006135866080830184613aea565b600073ffffffffffffffffffffffffffffffffffffffff83811690831681811015613a3e57613a3e6138e7565b600073ffffffffffffffffffffffffffffffffffffffff808316818516808303821115613bcb57613bcb6138e7565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff8088168352861515602084015285604084015280851660608401525060a060808301526133a860a0830184613aea565b60008060408385031215613c2e57600080fd5b505080516020909101519092909150565b80516fffffffffffffffffffffffffffffffff8116811461170a57600080fd5b600060408284031215613c7157600080fd5b6040516040810181811067ffffffffffffffff82111715613c9457613c94613676565b604052613ca083613c3f565b8152613cae60208401613c3f565b60208201529392505050565b805167ffffffffffffffff8116811461170a57600080fd5b600060608284031215613ce457600080fd5b6040516060810181811067ffffffffffffffff82111715613d0757613d07613676565b604052613d1383613cba565b8152613d2160208401613cba565b6020820152613d3260408401613c3f565b60408201529392505050565b6020815260006138e06020830184613aea565b60008251613d63818460208701613abe565b919091019291505056fea26469706673582212209f3b5dd61e1718e28656003bdb1e93579bac1e86bdbff2eb5116c63421166cc164736f6c634300080a0033", + "deployedBytecode": "0x6080604052600436106100ec5760003560e01c8063715018a61161008a5780639a1f3406116100595780639a1f34061461023c578063cd0fb7a71461025c578063f2fde38b1461029c578063fa461e33146102bc57600080fd5b8063715018a6146101d45780638456cb59146101e95780638da5cb5b146101fe57806393b3774c1461022957600080fd5b80632c8958f6116100c65780632c8958f61461010f57806347f8bd41146101555780636678ec1f146101685780636b2ace871461017b57600080fd5b8063046f7da2146100f857806323a69e751461010f5780632646478b1461012f57600080fd5b366100f357005b600080fd5b34801561010457600080fd5b5061010d6102dc565b005b34801561011b57600080fd5b5061010d61012a3660046135d4565b6103e4565b61014261013d366004613750565b6103f6565b6040519081526020015b60405180910390f35b6101426101633660046137d7565b6105a0565b6101426101763660046137d7565b61076e565b34801561018757600080fd5b506101af7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161014c565b3480156101e057600080fd5b5061010d61091c565b3480156101f557600080fd5b5061010d610930565b34801561020a57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166101af565b6101426102373660046137d7565b610a33565b34801561024857600080fd5b5061010d61025736600461388a565b610ba4565b34801561026857600080fd5b5061028c6102773660046138c3565b60016020526000908152604090205460ff1681565b604051901515815260200161014c565b3480156102a857600080fd5b5061010d6102b73660046138c3565b610c02565b3480156102c857600080fd5b5061010d6102d73660046135d4565b610cb9565b60005473ffffffffffffffffffffffffffffffffffffffff1633148061031157503360009081526001602052604090205460ff165b6103a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f52503a2063616c6c6572206973206e6f7420746865206f776e6572206f72206160448201527f2070726976696c6567656420757365720000000000000000000000000000000060648201526084015b60405180910390fd5b600280547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167501000000000000000000000000000000000000000000179055565b6103f084848484610cb9565b50505050565b60025460009074010000000000000000000000000000000000000000900460ff16600114610480576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610508576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674020000000000000000000000000000000000000000179055610555878787878787610e67565b9050600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790559695505050505050565b60025460009074010000000000000000000000000000000000000000900460ff1660011461062a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff166001146106b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905561071273ffffffffffffffffffffffffffffffffffffffff88168a8a61121d565b610720878787878787610e67565b90505b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905598975050505050505050565b60025460009074010000000000000000000000000000000000000000900460ff166001146107f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610880576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740200000000000000000000000000000000000000001790556108cd878787873087610e67565b90506108f073ffffffffffffffffffffffffffffffffffffffff86168a8a611280565b610723836108fe8a84613916565b73ffffffffffffffffffffffffffffffffffffffff88169190611280565b6109246112dd565b61092e600061135e565b565b60005473ffffffffffffffffffffffffffffffffffffffff1633148061096557503360009081526001602052604090205460ff165b6109f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f52503a2063616c6c6572206973206e6f7420746865206f776e6572206f72206160448201527f2070726976696c656765642075736572000000000000000000000000000000006064820152608401610399565b600280547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167502000000000000000000000000000000000000000000179055565b60025460009074010000000000000000000000000000000000000000900460ff16600114610abd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f72206973206c6f636b656400000000000000006044820152606401610399565b6002547501000000000000000000000000000000000000000000900460ff16600114610b45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f526f75746550726f636573736f722069732070617573656400000000000000006044820152606401610399565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905561071273ffffffffffffffffffffffffffffffffffffffff8a16896113d3565b610bac6112dd565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b610c0a6112dd565b73ffffffffffffffffffffffffffffffffffffffff8116610cad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610399565b610cb68161135e565b50565b60025473ffffffffffffffffffffffffffffffffffffffff163314610d60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603e60248201527f526f75746550726f636573736f722e756e697377617056335377617043616c6c60448201527f6261636b3a2063616c6c2066726f6d20756e6b6e6f776e20736f7572636500006064820152608401610399565b6000808513610d6f5783610d71565b845b905060008113610e03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603960248201527f526f75746550726f636573736f722e756e697377617056335377617043616c6c60448201527f6261636b3a206e6f7420706f73697469766520616d6f756e74000000000000006064820152608401610399565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001660011790556000610e3c838501856138c3565b9050610e5f73ffffffffffffffffffffffffffffffffffffffff82163384611445565b505050505050565b600080610e8a73ffffffffffffffffffffffffffffffffffffffff891633611519565b90506000610eae73ffffffffffffffffffffffffffffffffffffffff881686611519565b905087600080610ed287604080518082019091528181528151909101602082015290565b90505b805160208201511115611028576000610ef48280516001018051915290565b90508060ff1660011415610f1e576000610f0d83611604565b905083610f18578094505b50611017565b8060ff1660021415610f3957610f34828d6116c9565b611017565b8060ff1660031415610f50576000610f0d836116e9565b8060ff1660041415610f6557610f348261170f565b8060ff1660051415610f7a57610f3482611735565b8060ff1660061415610f9057610f348d8361183a565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f526f75746550726f636573736f723a20556e6b6e6f776e20636f6d6d616e642060448201527f636f6465000000000000000000000000000000000000000000000000000000006064820152608401610399565b6110208361392d565b925050610ed5565b506000905061104d73ffffffffffffffffffffffffffffffffffffffff8c1633611519565b905073ffffffffffffffffffffffffffffffffffffffff8b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611124578361108b8b83613966565b61109690600a613966565b1015611124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f526f75746550726f636573736f723a204d696e696d616c20696e70757420626160448201527f6c616e63652076696f6c6174696f6e00000000000000000000000000000000006064820152608401610399565b600061114673ffffffffffffffffffffffffffffffffffffffff8b1689611519565b90506111528985613966565b811015611198576111638482613916565b6040517f963b34a500000000000000000000000000000000000000000000000000000000815260040161039991815260200190565b6111a28482613916565b6040805173ffffffffffffffffffffffffffffffffffffffff8b81168252602082018790529181018c905260608101839052919750808c1691908e169033907f2db5ddd0b42bdbca0d69ea16f234a870a485854ae0d91f16643d6f317d8b89949060800160405180910390a450505050509695505050505050565b73ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561125e5761125982826113d3565b505050565b61125973ffffffffffffffffffffffffffffffffffffffff841633848461196a565b73ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156112bc5761125982826113d3565b61125973ffffffffffffffffffffffffffffffffffffffff84168383611445565b60005473ffffffffffffffffffffffffffffffffffffffff16331461092e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610399565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808373ffffffffffffffffffffffffffffffffffffffff168360405160006040518083038185875af1925050503d806000811461142e576040519150601f19603f3d011682016040523d82523d6000602084013e611433565b606091505b5091509150816103f057805181602001fd5b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526112599084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526119c8565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561156b575073ffffffffffffffffffffffffffffffffffffffff8116316115fe565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301528416906370a0823190602401602060405180830381865afa1580156115d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fb919061397e565b90505b92915050565b6000806116178380516014018051915290565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290915073ffffffffffffffffffffffffffffffffffffffff8216906370a0823190602401602060405180830381865afa158015611684573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a8919061397e565b915081156116b7576001820391505b6116c383308385611ad4565b50919050565b60006116db8380516014018051915290565b905061125983338385611ad4565b4761170a823073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee84611ad4565b919050565b60006117218280516014018051915290565b9050611731826000836000611b2f565b5050565b60006117478280516014018051915290565b6040517ff7888aec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80831660048301523060248301529192506000917f0000000000000000000000000000000000000000000000000000000000000000169063f7888aec90604401602060405180830381865afa1580156117df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611803919061397e565b9050801561182e577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015b61125983308484611ad4565b600061184c8280516020018051915290565b905060006118608380516020018051915290565b905060006118748480516001018051915290565b905060006118888580516020018051915290565b9050600061189c8680516020018051915290565b6040517fdd62ed3e000000000000000000000000000000000000000000000000000000008152336004820152306024820152909150859073ffffffffffffffffffffffffffffffffffffffff89169063dd62ed3e90604401602060405180830381865afa158015611911573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611935919061397e565b10156119615761196173ffffffffffffffffffffffffffffffffffffffff881633308888888888611c63565b50505050505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526103f09085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611497565b6000611a2a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611ee39092919063ffffffff16565b8051909150156112595780806020019051810190611a489190613997565b611259576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610399565b6000611ae68580516001018051915290565b905060005b8160ff16811015610e5f576000611b088780516002018051915290565b61ffff8082168602049485900394909150611b2588888884611b2f565b5050600101611aeb565b6000611b418580516001018051915290565b905060ff8116611b5c57611b5785858585611efa565b611c5c565b8060ff1660011415611b7457611b57858585856122af565b8060ff1660021415611b8c57611b57858585856124ef565b8060ff1660031415611ba457611b57858585856126cd565b8060ff1660041415611bbc57611b5785858585612d55565b8060ff1660051415611bd457611b5785858585612ee3565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f526f75746550726f636573736f723a20556e6b6e6f776e20706f6f6c2074797060448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610399565b5050505050565b6040517f7ecebe0000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8881166004830152600091908a1690637ecebe0090602401602060405180830381865afa158015611cd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cf7919061397e565b6040517fd505accf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a811660048301528981166024830152604482018990526064820188905260ff8716608483015260a4820186905260c48201859052919250908a169063d505accf9060e401600060405180830381600087803b158015611d9157600080fd5b505af1158015611da5573d6000803e3d6000fd5b50506040517f7ecebe0000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b81166004830152600093508c169150637ecebe0090602401602060405180830381865afa158015611e18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3c919061397e565b9050611e49826001613966565b8114611ed7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f5361666545524332303a207065726d697420646964206e6f742073756363656560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610399565b50505050505050505050565b6060611ef2848460008561329a565b949350505050565b6000611f0c8580516014018051915290565b90506000611f208680516001018051915290565b90506000611f348780516014018051915290565b90506000611f488880516003018051915290565b905073ffffffffffffffffffffffffffffffffffffffff8716301415611f8e57611f8973ffffffffffffffffffffffffffffffffffffffff87168587611445565b611fce565b73ffffffffffffffffffffffffffffffffffffffff8716331415611fce57611fce73ffffffffffffffffffffffffffffffffffffffff871633868861196a565b6000808573ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa15801561201c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204091906139d2565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691506000821180156120755750600081115b6120db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f57726f6e6720706f6f6c207265736572766573000000000000000000000000006044820152606401610399565b6000808660ff166001146120f05782846120f3565b83835b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b8116600483015292945090925083918c16906370a0823190602401602060405180830381865afa158015612167573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218b919061397e565b6121959190613916565b985060006121a686620f4240613a22565b6121b59062ffffff168b613a46565b90506000816121c785620f4240613a46565b6121d19190613966565b6121db8484613a46565b6121e59190613a83565b90506000808a60ff166001146121fd57826000612201565b6000835b604080516000815260208101918290527f022c0d9f00000000000000000000000000000000000000000000000000000000909152919350915073ffffffffffffffffffffffffffffffffffffffff8d169063022c0d9f9061226b90859085908f9060248101613b34565b600060405180830381600087803b15801561228557600080fd5b505af1158015612299573d6000803e3d6000fd5b5050505050505050505050505050505050505050565b60006122c18580516014018051915290565b90506000806122d68780516001018051915290565b60ff1611905060006122ee8780516014018051915290565b905073ffffffffffffffffffffffffffffffffffffffff86163314156123305761233073ffffffffffffffffffffffffffffffffffffffff861633308761196a565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff851690811790915563128acb08828487816123a45761239f600173fffd8963efd1fc6a506488495d951d5263988d26613b6f565b6123b4565b6123b46401000276a36001613b9c565b6040805173ffffffffffffffffffffffffffffffffffffffff8d166020820152016040516020818303038152906040526040518663ffffffff1660e01b8152600401612404959493929190613bd4565b60408051808303816000875af1158015612422573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124469190613c1b565b505060025473ffffffffffffffffffffffffffffffffffffffff16600114611961576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f526f75746550726f636573736f722e73776170556e6956333a20756e6578706560448201527f63746564000000000000000000000000000000000000000000000000000000006064820152608401610399565b60006125018580516001018051915290565b905060006125158680516014018051915290565b9050600180831614156125e45760006125348780516014018051915290565b9050600283166125a0578073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561258657600080fd5b505af115801561259a573d6000803e3d6000fd5b50505050505b73ffffffffffffffffffffffffffffffffffffffff821630146125de576125de73ffffffffffffffffffffffffffffffffffffffff82168386611445565b50610e5f565b600282166126ad5773ffffffffffffffffffffffffffffffffffffffff851633141561262c5761262c73ffffffffffffffffffffffffffffffffffffffff851633308661196a565b6040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff851690632e1a7d4d90602401600060405180830381600087803b15801561269457600080fd5b505af11580156126a8573d6000803e3d6000fd5b505050505b610e5f73ffffffffffffffffffffffffffffffffffffffff8216846113d3565b60006126df8580516001018051915290565b905060006126f38680516014018051915290565b905060ff821615612aee5773ffffffffffffffffffffffffffffffffffffffff85163014156127625761275d73ffffffffffffffffffffffffffffffffffffffff85167f000000000000000000000000000000000000000000000000000000000000000085611445565b612a18565b73ffffffffffffffffffffffffffffffffffffffff85163314156127c25761275d73ffffffffffffffffffffffffffffffffffffffff8516337f00000000000000000000000000000000000000000000000000000000000000008661196a565b6040517f4ffe34db00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301527f00000000000000000000000000000000000000000000000000000000000000001690634ffe34db906024016040805180830381865afa15801561284d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128719190613c5f565b516040517fdf23b45b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526fffffffffffffffffffffffffffffffff909216917f0000000000000000000000000000000000000000000000000000000000000000169063df23b45b90602401606060405180830381865afa158015612913573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129379190613cd2565b60409081015190517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301526fffffffffffffffffffffffffffffffff909216918716906370a0823190602401602060405180830381865afa1580156129dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a01919061397e565b612a0b9190613966565b612a159190613916565b92505b6040517f02b9446c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301527f000000000000000000000000000000000000000000000000000000000000000081166024830181905290831660448301526064820185905260006084830152906302b9446c9060a40160408051808303816000875af1158015612ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae79190613c1b565b5050610e5f565b73ffffffffffffffffffffffffffffffffffffffff851615612bc5576040517ff18d03cc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301528681166024830152306044830152606482018590527f0000000000000000000000000000000000000000000000000000000000000000169063f18d03cc90608401600060405180830381600087803b158015612ba857600080fd5b505af1158015612bbc573d6000803e3d6000fd5b50505050612c7e565b6040517ff7888aec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301523060248301527f0000000000000000000000000000000000000000000000000000000000000000169063f7888aec90604401602060405180830381865afa158015612c57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c7b919061397e565b92505b6040517f97da6d3000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152306024830152828116604483015260006064830152608482018590527f000000000000000000000000000000000000000000000000000000000000000016906397da6d309060a40160408051808303816000875af1158015612d27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d4b9190613c1b565b5050505050505050565b6000612d678580516014018051915290565b85516020808201805190920101875290915073ffffffffffffffffffffffffffffffffffffffff851615612e4e576040517ff18d03cc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015286811660248301528381166044830152606482018590527f0000000000000000000000000000000000000000000000000000000000000000169063f18d03cc90608401600060405180830381600087803b158015612e3557600080fd5b505af1158015612e49573d6000803e3d6000fd5b505050505b6040517f627dd56a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83169063627dd56a90612ea0908490600401613d3e565b6020604051808303816000875af1158015612ebf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611961919061397e565b6000612ef58580516014018051915290565b90506000612f098680516001018051915290565b90506000612f1d8780516001018051915290565b60000b90506000612f348880516001018051915290565b60000b90506000612f4b8980516014018051915290565b90506000612f5f8a80516014018051915290565b9050600073ffffffffffffffffffffffffffffffffffffffff891673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415613048576040517f3df02124000000000000000000000000000000000000000000000000000000008152600f86810b600483015285900b6024820152604481018990526000606482015273ffffffffffffffffffffffffffffffffffffffff881690633df02124908a9060840160206040518083038185885af115801561301c573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190613041919061397e565b905061324f565b73ffffffffffffffffffffffffffffffffffffffff8a163314156130885761308873ffffffffffffffffffffffffffffffffffffffff8a1633308b61196a565b6130a973ffffffffffffffffffffffffffffffffffffffff8a16888a6133b3565b5060ff861661315c576040517f3df02124000000000000000000000000000000000000000000000000000000008152600f86810b600483015285900b6024820152604481018990526000606482015273ffffffffffffffffffffffffffffffffffffffff881690633df02124906084016020604051808303816000875af1158015613138573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613041919061397e565b600061317e73ffffffffffffffffffffffffffffffffffffffff841630611519565b6040517f3df02124000000000000000000000000000000000000000000000000000000008152600f88810b600483015287900b6024820152604481018b90526000606482015290915073ffffffffffffffffffffffffffffffffffffffff891690633df0212490608401600060405180830381600087803b15801561320257600080fd5b505af1158015613216573d6000803e3d6000fd5b506000925061323e91505073ffffffffffffffffffffffffffffffffffffffff851630611519565b905061324a8282613916565b925050505b73ffffffffffffffffffffffffffffffffffffffff8316301461328d5761328d73ffffffffffffffffffffffffffffffffffffffff83168483611280565b5050505050505050505050565b60608247101561332c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610399565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516133559190613d51565b60006040518083038185875af1925050503d8060008114613392576040519150601f19603f3d011682016040523d82523d6000602084013e613397565b606091505b50915091506133a8878383876133e4565b979650505050505050565b60006133c0848484613481565b80611ef257506133d284846000613481565b8015611ef25750611ef2848484613481565b606083156134775782516134705773ffffffffffffffffffffffffffffffffffffffff85163b613470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610399565b5081611ef2565b611ef28383613590565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790529151600092839283929188169161351a9190613d51565b6000604051808303816000865af19150503d8060008114613557576040519150601f19603f3d011682016040523d82523d6000602084013e61355c565b606091505b50915091508180156135865750805115806135865750808060200190518101906135869190613997565b9695505050505050565b8151156135a05781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103999190613d3e565b600080600080606085870312156135ea57600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561361057600080fd5b818701915087601f83011261362457600080fd5b81358181111561363357600080fd5b88602082850101111561364557600080fd5b95989497505060200194505050565b73ffffffffffffffffffffffffffffffffffffffff81168114610cb657600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f8301126136b657600080fd5b813567ffffffffffffffff808211156136d1576136d1613676565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561371757613717613676565b8160405283815286602085880101111561373057600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060008060c0878903121561376957600080fd5b863561377481613654565b955060208701359450604087013561378b81613654565b93506060870135925060808701356137a281613654565b915060a087013567ffffffffffffffff8111156137be57600080fd5b6137ca89828a016136a5565b9150509295509295509295565b600080600080600080600080610100898b0312156137f457600080fd5b88356137ff81613654565b975060208901359650604089013561381681613654565b955060608901359450608089013561382d81613654565b935060a0890135925060c089013561384481613654565b915060e089013567ffffffffffffffff81111561386057600080fd5b61386c8b828c016136a5565b9150509295985092959890939650565b8015158114610cb657600080fd5b6000806040838503121561389d57600080fd5b82356138a881613654565b915060208301356138b88161387c565b809150509250929050565b6000602082840312156138d557600080fd5b81356138e081613654565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015613928576139286138e7565b500390565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561395f5761395f6138e7565b5060010190565b60008219821115613979576139796138e7565b500190565b60006020828403121561399057600080fd5b5051919050565b6000602082840312156139a957600080fd5b81516138e08161387c565b80516dffffffffffffffffffffffffffff8116811461170a57600080fd5b6000806000606084860312156139e757600080fd5b6139f0846139b4565b92506139fe602085016139b4565b9150604084015163ffffffff81168114613a1757600080fd5b809150509250925092565b600062ffffff83811690831681811015613a3e57613a3e6138e7565b039392505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613a7e57613a7e6138e7565b500290565b600082613ab9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60005b83811015613ad9578181015183820152602001613ac1565b838111156103f05750506000910152565b60008151808452613b02816020860160208601613abe565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b84815283602082015273ffffffffffffffffffffffffffffffffffffffff831660408201526080606082015260006135866080830184613aea565b600073ffffffffffffffffffffffffffffffffffffffff83811690831681811015613a3e57613a3e6138e7565b600073ffffffffffffffffffffffffffffffffffffffff808316818516808303821115613bcb57613bcb6138e7565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff8088168352861515602084015285604084015280851660608401525060a060808301526133a860a0830184613aea565b60008060408385031215613c2e57600080fd5b505080516020909101519092909150565b80516fffffffffffffffffffffffffffffffff8116811461170a57600080fd5b600060408284031215613c7157600080fd5b6040516040810181811067ffffffffffffffff82111715613c9457613c94613676565b604052613ca083613c3f565b8152613cae60208401613c3f565b60208201529392505050565b805167ffffffffffffffff8116811461170a57600080fd5b600060608284031215613ce457600080fd5b6040516060810181811067ffffffffffffffff82111715613d0757613d07613676565b604052613d1383613cba565b8152613d2160208401613cba565b6020820152613d3260408401613c3f565b60408201529392505050565b6020815260006138e06020830184613aea565b60008251613d63818460208701613abe565b919091019291505056fea26469706673582212209f3b5dd61e1718e28656003bdb1e93579bac1e86bdbff2eb5116c63421166cc164736f6c634300080a0033", + "devdoc": { + "author": "Ilya Lyalin", + "kind": "dev", + "methods": { + "algebraSwapCallback(int256,int256,bytes)": { + "details": "In the implementation you must pay the pool tokens owed for the swap. The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory. amount0Delta and amount1Delta can both be 0 if no tokens were swapped.", + "params": { + "amount0Delta": "The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.", + "amount1Delta": "The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.", + "data": "Any data passed through by the caller via the IAlgebraPoolActions#swap call" + } + }, + "owner()": { + "details": "Returns the address of the current owner." + }, + "pancakeV3SwapCallback(int256,int256,bytes)": { + "details": "In the implementation you must pay the pool tokens owed for the swap.", + "params": { + "amount0Delta": "The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.", + "amount1Delta": "The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.", + "data": "Any data passed through by the caller via the PancakeV3Pool#swap call" + } + }, + "processRoute(address,uint256,address,uint256,address,bytes)": { + "params": { + "amountIn": "Amount of the input token", + "amountOutMin": "Minimum amount of the output token", + "route": "Route to process", + "to": "Where to transfer output tokens", + "tokenIn": "Address of the input token", + "tokenOut": "Address of the output token" + }, + "returns": { + "amountOut": "Actual amount of the output token" + } + }, + "processRouteWithTransferValueInput(address,uint256,address,uint256,address,uint256,address,bytes)": { + "params": { + "amountIn": "Amount of the input token", + "amountOutMin": "Minimum amount of the output token", + "amountValueTransfer": "How much value to transfer", + "tokenIn": "Address of the input token", + "tokenOut": "Address of the output token", + "transferValueTo": "Address where the value should be transferred" + }, + "returns": { + "amountOut": "Actual amount of the output token" + } + }, + "processRouteWithTransferValueOutput(address,uint256,address,uint256,address,uint256,address,bytes)": { + "params": { + "amountIn": "Amount of the input token", + "amountOutMin": "Minimum amount of the output token", + "amountValueTransfer": "How much value to transfer", + "tokenIn": "Address of the input token", + "tokenOut": "Address of the output token", + "transferValueTo": "Address where the value should be transferred" + }, + "returns": { + "amountOut": "Actual amount of the output token" + } + }, + "renounceOwnership()": { + "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." + }, + "transferOwnership(address)": { + "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." + }, + "transferValueAndprocessRoute(address,uint256,address,uint256,address,uint256,address,bytes)": { + "params": { + "amountIn": "Amount of the input token", + "amountOutMin": "Minimum amount of the output token", + "amountValueTransfer": "How much value to transfer", + "tokenIn": "Address of the input token", + "tokenOut": "Address of the output token", + "transferValueTo": "Address where the value should be transferred" + }, + "returns": { + "amountOut": "Actual amount of the output token" + } + }, + "uniswapV3SwapCallback(int256,int256,bytes)": { + "details": "In the implementation you must pay the pool tokens owed for the swap. The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory. amount0Delta and amount1Delta can both be 0 if no tokens were swapped.", + "params": { + "amount0Delta": "The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool.", + "amount1Delta": "The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool.", + "data": "Any data passed through by the caller via the IUniswapV3PoolActions#swap call" + } + } + }, + "title": "A route processor for the Sushi Aggregator", + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "algebraSwapCallback(int256,int256,bytes)": { + "notice": "Called to `msg.sender` after executing a swap via IAlgebraPool#swap." + }, + "pancakeV3SwapCallback(int256,int256,bytes)": { + "notice": "Called to `msg.sender` after executing a swap via PancakeV3Pool#swap." + }, + "processRoute(address,uint256,address,uint256,address,bytes)": { + "notice": "Processes the route generated off-chain. Has a lock" + }, + "processRouteWithTransferValueInput(address,uint256,address,uint256,address,uint256,address,bytes)": { + "notice": "Transfers some value of input tokens to and then processes the route" + }, + "processRouteWithTransferValueOutput(address,uint256,address,uint256,address,uint256,address,bytes)": { + "notice": "processes the route and sends amount of output token to " + }, + "transferValueAndprocessRoute(address,uint256,address,uint256,address,uint256,address,bytes)": { + "notice": "Transfers some value to and then processes the route" + }, + "uniswapV3SwapCallback(int256,int256,bytes)": { + "notice": "Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap." + } + }, + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 7, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "_owner", + "offset": 0, + "slot": "0", + "type": "t_address" + }, + { + "astId": 8573, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "priviledgedUsers", + "offset": 0, + "slot": "1", + "type": "t_mapping(t_address,t_bool)" + }, + { + "astId": 8575, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "lastCalledPool", + "offset": 0, + "slot": "2", + "type": "t_address" + }, + { + "astId": 8578, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "unlocked", + "offset": 20, + "slot": "2", + "type": "t_uint8" + }, + { + "astId": 8581, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "paused", + "offset": 21, + "slot": "2", + "type": "t_uint8" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_bool)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => bool)", + "numberOfBytes": "32", + "value": "t_bool" + }, + "t_uint8": { + "encoding": "inplace", + "label": "uint8", + "numberOfBytes": "1" + } + } + } +} \ No newline at end of file diff --git a/protocols/route-processor/deployments/taiko/solcInputs/9252879aaeb02fabe759ce8768addec4.json b/protocols/route-processor/deployments/taiko/solcInputs/9252879aaeb02fabe759ce8768addec4.json new file mode 100644 index 0000000000..c6762a8dc1 --- /dev/null +++ b/protocols/route-processor/deployments/taiko/solcInputs/9252879aaeb02fabe759ce8768addec4.json @@ -0,0 +1,98 @@ +{ + "language": "Solidity", + "sources": { + "@openzeppelin/contracts/access/Ownable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n address private _owner;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the deployer as the initial owner.\n */\n constructor() {\n _transferOwnership(_msgSender());\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions anymore. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby removing any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n _transferOwnership(address(0));\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n _transferOwnership(newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual {\n address oldOwner = _owner;\n _owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n" + }, + "@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n */\ninterface IERC20Permit {\n /**\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n * given ``owner``'s signed approval.\n *\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n * ordering also apply here.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `deadline` must be a timestamp in the future.\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n * over the EIP712-formatted function arguments.\n * - the signature must use ``owner``'s current nonce (see {nonces}).\n *\n * For more information on the signature format, see the\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n * section].\n */\n function permit(\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n /**\n * @dev Returns the current nonce for `owner`. This value must be\n * included whenever a signature is generated for {permit}.\n *\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\n * prevents a signature from being used multiple times.\n */\n function nonces(address owner) external view returns (uint256);\n\n /**\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n */\n // solhint-disable-next-line func-name-mixedcase\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n" + }, + "@openzeppelin/contracts/token/ERC20/IERC20.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the amount of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the amount of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 amount) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 amount) external returns (bool);\n\n /**\n * @dev Moves `amount` tokens from `from` to `to` using the\n * allowance mechanism. `amount` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) external returns (bool);\n}\n" + }, + "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\nimport \"../extensions/draft-IERC20Permit.sol\";\nimport \"../../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n using Address for address;\n\n function safeTransfer(\n IERC20 token,\n address to,\n uint256 value\n ) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n }\n\n function safeTransferFrom(\n IERC20 token,\n address from,\n address to,\n uint256 value\n ) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n }\n\n /**\n * @dev Deprecated. This function has issues similar to the ones found in\n * {IERC20-approve}, and its usage is discouraged.\n *\n * Whenever possible, use {safeIncreaseAllowance} and\n * {safeDecreaseAllowance} instead.\n */\n function safeApprove(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n // safeApprove should only be called when setting an initial allowance,\n // or when resetting it to zero. To increase and decrease it, use\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n require(\n (value == 0) || (token.allowance(address(this), spender) == 0),\n \"SafeERC20: approve from non-zero to non-zero allowance\"\n );\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n }\n\n function safeIncreaseAllowance(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n uint256 newAllowance = token.allowance(address(this), spender) + value;\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\n }\n\n function safeDecreaseAllowance(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n unchecked {\n uint256 oldAllowance = token.allowance(address(this), spender);\n require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n uint256 newAllowance = oldAllowance - value;\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\n }\n }\n\n function safePermit(\n IERC20Permit token,\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n uint256 nonceBefore = token.nonces(owner);\n token.permit(owner, spender, value, deadline, v, r, s);\n uint256 nonceAfter = token.nonces(owner);\n require(nonceAfter == nonceBefore + 1, \"SafeERC20: permit did not succeed\");\n }\n\n /**\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n * on the return value: the return value is optional (but if data is returned, it must not be false).\n * @param token The token targeted by the call.\n * @param data The call data (encoded using abi.encode or one of its variants).\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n // the target address contains contract code and also asserts for success in the low-level call.\n\n bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n if (returndata.length > 0) {\n // Return data is optional\n require(abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n }\n }\n}\n" + }, + "@openzeppelin/contracts/utils/Address.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n" + }, + "@openzeppelin/contracts/utils/Context.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n}\n" + }, + "contracts/Approve.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\n\nlibrary Approve {\n\n /**\n * @dev ERC20 approve that correct works with token.approve which returns bool or nothing (USDT for example)\n * @param token The token targeted by the call.\n * @param spender token spender\n * @param amount token amount\n */\n function approveStable(IERC20 token, address spender, uint256 amount) internal returns (bool) {\n (bool success, bytes memory data) = address(token).call(\n abi.encodeWithSelector(token.approve.selector, spender, amount)\n );\n return success && (data.length == 0 || abi.decode(data, (bool)));\n }\n\n /**\n * @dev ERC20 approve that correct works with token.approve which reverts if amount and \n * current allowance are not zero simultaniously (USDT for example). \n * In second case it tries to set allowance to 0, and then back to amount.\n * @param token The token targeted by the call.\n * @param spender token spender\n * @param amount token amount\n */\n function approveSafe(IERC20 token, address spender, uint256 amount) internal returns (bool) {\n return approveStable(token, spender, amount) \n || (approveStable(token, spender, 0) && approveStable(token, spender, amount));\n }\n}\n" + }, + "contracts/InputStream.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\n/** @notice Simple read stream */\nlibrary InputStream {\n\n /** @notice Creates stream from data\n * @param data data\n */\n function createStream(bytes memory data) internal pure returns (uint256 stream) {\n assembly {\n stream := mload(0x40)\n mstore(0x40, add(stream, 64))\n mstore(stream, data)\n let length := mload(data)\n mstore(add(stream, 32), add(data, length))\n }\n }\n\n /** @notice Checks if stream is not empty\n * @param stream stream\n */\n function isNotEmpty(uint256 stream) internal pure returns (bool) {\n uint256 pos;\n uint256 finish;\n assembly {\n pos := mload(stream)\n finish := mload(add(stream, 32))\n }\n return pos < finish;\n }\n\n /** @notice Reads uint8 from the stream\n * @param stream stream\n */\n function readUint8(uint256 stream) internal pure returns (uint8 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 1)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads uint16 from the stream\n * @param stream stream\n */\n function readUint16(uint256 stream) internal pure returns (uint16 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 2)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads uint24 from the stream\n * @param stream stream\n */\n function readUint24(uint256 stream) internal pure returns (uint24 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 3)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads uint32 from the stream\n * @param stream stream\n */\n function readUint32(uint256 stream) internal pure returns (uint32 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 4)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads uint256 from the stream\n * @param stream stream\n */\n function readUint(uint256 stream) internal pure returns (uint256 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 32)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads bytes32 from the stream\n * @param stream stream\n */\n function readBytes32(uint256 stream) internal pure returns (bytes32 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 32)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads address from the stream\n * @param stream stream\n */\n function readAddress(uint256 stream) internal pure returns (address res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 20)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads bytes from the stream\n * @param stream stream\n */\n function readBytes(uint256 stream) internal pure returns (bytes memory res) {\n assembly {\n let pos := mload(stream)\n res := add(pos, 32)\n let length := mload(res)\n mstore(stream, add(res, length))\n }\n }\n}\n" + }, + "contracts/RouteProcessor.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport './InputStream.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\n\naddress constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Okavango\ncontract RouteProcessor {\n using SafeERC20 for IERC20;\n using InputStream for uint256;\n\n IBentoBoxMinimal public immutable bentoBox;\n\n uint private unlocked = 1;\n modifier lock() {\n require(unlocked == 1, 'RouteProcessor is locked');\n unlocked = 2;\n _;\n unlocked = 1;\n }\n\n constructor(address _bentoBox) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n (bool success, bytes memory returnBytes) = transferValueTo.call{value: amountValueTransfer}('');\n require(success, string(abi.encodePacked(returnBytes)));\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 amountInAcc = 0;\n uint256 balanceInitial = tokenOut == NATIVE_ADDRESS ? \n address(to).balance : IERC20(tokenOut).balanceOf(to);\n\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode < 20) {\n if (commandCode == 10)\n swapUniswapPool(stream); // Sushi/Uniswap pool swap\n else if (commandCode == 4)\n distributeERC20Shares(stream); // distribute ERC20 tokens from this router to pools\n else if (commandCode == 3)\n amountInAcc += distributeERC20Amounts(stream, tokenIn); // initial distribution\n else if (commandCode == 5)\n amountInAcc += wrapAndDistributeERC20Amounts(stream); // wrap natives and initial distribution \n else if (commandCode == 6) \n unwrapNative(to, stream);\n else if (commandCode == 7)\n amountInAcc += distributeERC20AmountsFromRP(stream, tokenIn); // initial distribution\n else revert('Unknown command code');\n } else if (commandCode < 24) {\n if (commandCode == 20) bentoDepositAmountFromBento(stream, tokenIn);\n else if (commandCode == 21) swapTrident(stream);\n else if (commandCode == 23) bentoWithdrawShareFromRP(stream, tokenIn);\n else revert('Unknown command code');\n } else {\n if (commandCode == 24) amountInAcc += distributeBentoShares(stream, tokenIn);\n else if (commandCode == 25) distributeBentoPortions(stream);\n else if (commandCode == 26) bentoDepositAllFromBento(stream);\n else if (commandCode == 27) bentoWithdrawAllFromRP(stream);\n else revert('Unknown command code');\n }\n }\n\n require(amountInAcc == amountIn, 'Wrong amountIn value');\n uint256 balanceFinal = tokenOut == NATIVE_ADDRESS ? \n address(to).balance : IERC20(tokenOut).balanceOf(to);\n require(balanceFinal >= balanceInitial + amountOutMin, 'Minimal ouput balance violation');\n\n amountOut = balanceFinal - balanceInitial;\n }\n\n /// @notice Transfers input tokens sent to BentoBox to a pool\n /// @notice Expected to be called for initial liquidity transfer from user to BentoBox, so we know exact amounts\n /// @param stream [Pool, Amount]. Pool into which an amount of tokens will be transferred\n /// @param token Address of the token to transfer\n function bentoDepositAmountFromBento(uint256 stream, address token) private {\n address to = stream.readAddress();\n uint256 amount = stream.readUint();\n bentoBox.deposit(token, address(bentoBox), to, amount, 0);\n }\n\n /// @notice Transfers all available input tokens from BentoBox to a pool\n /// @param stream [Pool, Token]. Pool into which all tokens will be transferred \n function bentoDepositAllFromBento(uint256 stream) private {\n address to = stream.readAddress();\n address token = stream.readAddress();\n\n uint256 amount = IERC20(token).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(token).balance -\n bentoBox.totals(token).elastic;\n bentoBox.deposit(token, address(bentoBox), to, amount, 0);\n }\n\n /// @notice Withdraws BentoBox tokens from BentoBox to an address\n /// @param stream [To, Amount]. Destination where an amount of token will be transferred\n /// @param token Token to transfer\n function bentoWithdrawShareFromRP(uint256 stream, address token) private {\n address to = stream.readAddress();\n uint256 amount = stream.readUint();\n bentoBox.withdraw(token, address(this), to, amount, 0);\n }\n\n /// @notice Withdraws all available BentoBox tokens from BentoBox to an address\n /// @param stream [Token, To]. Token which will be transferred to a destination\n function bentoWithdrawAllFromRP(uint256 stream) private {\n address token = stream.readAddress();\n address to = stream.readAddress();\n uint256 amount = bentoBox.balanceOf(token, address(this));\n bentoBox.withdraw(token, address(this), to, 0, amount);\n }\n\n /// @notice Performs a Trident pool swap\n /// @param stream [Pool, SwapData]. Pool against a swap defined by SwapData will be executed\n function swapTrident(uint256 stream) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n IPool(pool).swap(swapData);\n }\n\n /// @notice Performs a Sushi/UniswapV2 pool swap\n /// @param stream [Pool, TokenIn, Direction, To]\n /// @return amountOut Amount of the output token\n function swapUniswapPool(uint256 stream) private returns (uint256 amountOut) {\n address pool = stream.readAddress();\n address tokenIn = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n\n uint256 amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn;\n uint256 amountInWithFee = amountIn * 997;\n amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Distributes input ERC20 tokens from msg.sender to addresses. Tokens should be approved\n /// @notice Expected to be called for initial liquidity transfer from the user to pools, so we know exact amounts\n /// @param stream [ArrayLength, ...[To, Amount][]]. An array of destinations and token amounts\n /// @param token Token to distribute\n /// @return amountTotal Total amount distributed\n function distributeERC20Amounts(uint256 stream, address token) private returns (uint256 amountTotal) {\n uint8 num = stream.readUint8();\n amountTotal = 0;\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint256 amount = stream.readUint();\n amountTotal += amount;\n IERC20(token).safeTransferFrom(msg.sender, to, amount);\n }\n }\n\n /// @notice Distributes input ERC20 tokens from this contract to addresses. Tokens should be approved\n /// @notice Expected to be called for initial liquidity transfer from the user to pools, so we know exact amounts\n /// @param stream [ArrayLength, ...[To, Amount][]]. An array of destinations and token amounts\n /// @param token Token to distribute\n /// @return amountTotal Total amount distributed\n function distributeERC20AmountsFromRP(uint256 stream, address token) private returns (uint256 amountTotal) {\n uint8 num = stream.readUint8();\n amountTotal = 0;\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint256 amount = stream.readUint();\n amountTotal += amount;\n IERC20(token).safeTransfer(to, amount);\n }\n }\n\n /// @notice Wraps all native inputs and distributes wrapped ERC20 tokens from RouteProcessor to addresses\n /// @notice Expected to be called for initial liquidity transfer from the user to pools, so we know exact amounts\n /// @param stream [WrapToken, ArrayLength, ...[To, Amount][]]. An array of destinations and token amounts\n /// @return amountTotal Total amount distributed\n function wrapAndDistributeERC20Amounts(uint256 stream) private returns (uint256 amountTotal) {\n address token = stream.readAddress();\n IWETH(token).deposit{value: address(this).balance}();\n uint8 num = stream.readUint8();\n amountTotal = 0;\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint256 amount = stream.readUint();\n amountTotal += amount;\n IERC20(token).safeTransfer(to, amount);\n }\n require(address(this).balance == 0, \"RouteProcessor: invalid input amount\");\n }\n\n /// @notice Distributes input BentoBox tokens from msg.sender to addresses. Tokens should be approved\n /// @notice Expected to be called for initial liquidity transfer from the user to pools, so we know exact amounts\n /// @param stream [ArrayLength, ...[To, ShareAmount][]]. An array of destinations and token share amounts\n /// @param token Token to distribute\n /// @return sharesTotal Total shares distributed\n function distributeBentoShares(uint256 stream, address token) private returns (uint256 sharesTotal) {\n uint8 num = stream.readUint8();\n sharesTotal = 0;\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint256 share = stream.readUint();\n sharesTotal += share;\n bentoBox.transfer(token, msg.sender, to, share);\n }\n }\n\n /// @notice Distributes ERC20 tokens from RouteProcessor to addresses\n /// @notice Quantity for sending is determined by share in 1/65535\n /// @notice During routing we can't predict in advance the actual value of internal swaps because of slippage,\n /// @notice so we have to work with shares - not fixed amounts\n /// @param stream [Token, ArrayLength, ...[To, ShareAmount][]]. Token to distribute. An array of destinations and token share amounts\n function distributeERC20Shares(uint256 stream) private {\n address token = stream.readAddress();\n uint8 num = stream.readUint8();\n uint256 amountTotal = IERC20(token).balanceOf(address(this))\n - 1; // slot undrain protection\n\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n IERC20(token).safeTransfer(to, amount);\n }\n }\n }\n\n /// @notice Distributes BentoBox tokens from RouteProcessor to addresses\n /// @notice Quantity for sending is determined by portions in 1/65535.\n /// @notice During routing we can't predict in advance the actual value of internal swaps because of slippage,\n /// @notice so we have to work with portions - not fixed amounts\n /// @param stream [Token, ArrayLength, ...[To, ShareAmount][]]. Token to distribute. An array of destinations and token share amounts\n function distributeBentoPortions(uint256 stream) private {\n address token = stream.readAddress();\n uint8 num = stream.readUint8();\n uint256 amountTotal = bentoBox.balanceOf(token, address(this))\n - 1; // slot undrain protection\n\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n address to = stream.readAddress();\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n bentoBox.transfer(token, address(this), to, amount);\n }\n }\n }\n\n /// @notice Unwraps the Native Token\n /// @param receiver Destination of the unwrapped token\n /// @param stream [Token]. Token to unwrap native\n function unwrapNative(address receiver, uint256 stream) private {\n address token = stream.readAddress();\n IWETH(token).withdraw( IERC20(token).balanceOf(address(this))\n - 1); // slot undrain protection\n payable(receiver).transfer(address(this).balance);\n }\n}\n" + }, + "contracts/RouteProcessor3_1.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IUniswapV3Pool.sol';\nimport '../interfaces/ITridentCLPool.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport './InputStream.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\naddress constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\n\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\nuint160 constant MIN_SQRT_RATIO = 4295128739;\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Ilya Lyalin\n/// version 3.1\ncontract RouteProcessor3_1 is Ownable {\n using SafeERC20 for IERC20;\n using SafeERC20 for IERC20Permit;\n using InputStream for uint256;\n\n event Route(\n address indexed from, \n address to, \n address indexed tokenIn, \n address indexed tokenOut, \n uint amountIn, \n uint amountOutMin,\n uint amountOut\n );\n\n IBentoBoxMinimal public immutable bentoBox;\n mapping (address => bool) priviledgedUsers;\n address private lastCalledPool;\n\n uint8 private unlocked = 1;\n uint8 private paused = 1;\n modifier lock() {\n require(unlocked == 1, 'RouteProcessor is locked');\n require(paused == 1, 'RouteProcessor is paused');\n unlocked = 2;\n _;\n unlocked = 1;\n }\n\n modifier onlyOwnerOrPriviledgedUser() {\n require(msg.sender == owner() || priviledgedUsers[msg.sender] == true, \"RP: caller is not the owner or a priviledged user\");\n _;\n }\n\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n\n for (uint i = 0; i < priviledgedUserList.length; i++) {\n priviledgedUsers[priviledgedUserList[i]] = true;\n }\n }\n\n function setPriviledge(address user, bool priviledge) external onlyOwner {\n priviledgedUsers[user] = priviledge;\n }\n\n function pause() external onlyOwnerOrPriviledgedUser {\n paused = 2;\n }\n\n function resume() external onlyOwnerOrPriviledgedUser {\n paused = 1;\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n (bool success, bytes memory returnBytes) = transferValueTo.call{value: amountValueTransfer}('');\n require(success, string(abi.encodePacked(returnBytes)));\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 balanceInInitial = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n uint256 balanceOutInitial = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode == 1) processMyERC20(stream);\n else if (commandCode == 2) processUserERC20(stream, amountIn);\n else if (commandCode == 3) processNative(stream);\n else if (commandCode == 4) processOnePool(stream);\n else if (commandCode == 5) processInsideBento(stream);\n else if (commandCode == 6) applyPermit(tokenIn, stream);\n else revert('RouteProcessor: Unknown command code');\n }\n\n uint256 balanceInFinal = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n require(balanceInFinal + amountIn >= balanceInInitial, 'RouteProcessor: Minimal imput balance violation');\n\n uint256 balanceOutFinal = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n require(balanceOutFinal >= balanceOutInitial + amountOutMin, 'RouteProcessor: Minimal ouput balance violation');\n\n amountOut = balanceOutFinal - balanceOutInitial;\n\n emit Route(msg.sender, to, tokenIn, tokenOut, amountIn, amountOutMin, amountOut);\n }\n\n function applyPermit(address tokenIn, uint256 stream) private {\n //address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s)\n uint256 value = stream.readUint();\n uint256 deadline = stream.readUint();\n uint8 v = stream.readUint8();\n bytes32 r = stream.readBytes32();\n bytes32 s = stream.readBytes32();\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\n }\n\n /// @notice Processes native coin: call swap for all pools that swap from native coin\n /// @param stream Streamed process program\n function processNative(uint256 stream) private {\n uint256 amountTotal = address(this).balance;\n distributeAndSwap(stream, address(this), NATIVE_ADDRESS, amountTotal);\n }\n\n /// @notice Processes ERC20 token from this contract balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processMyERC20(uint256 stream) private {\n address token = stream.readAddress();\n uint256 amountTotal = IERC20(token).balanceOf(address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n \n /// @notice Processes ERC20 token from msg.sender balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n /// @param amountTotal Amount of tokens to take from msg.sender\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\n address token = stream.readAddress();\n distributeAndSwap(stream, msg.sender, token, amountTotal);\n }\n\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountTotal Total amount of tokenIn for swaps \n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\n uint8 num = stream.readUint8();\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, from, tokenIn, amount);\n }\n }\n }\n\n /// @notice Processes ERC20 token for cases when the token has only one output pool\n /// @notice In this case liquidity is already at pool balance. This is an optimization\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processOnePool(uint256 stream) private {\n address token = stream.readAddress();\n swap(stream, address(this), token, 0);\n }\n\n /// @notice Processes Bento tokens \n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processInsideBento(uint256 stream) private {\n address token = stream.readAddress();\n uint8 num = stream.readUint8();\n\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, address(this), token, amount);\n }\n }\n }\n\n /// @notice Makes swap\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 poolType = stream.readUint8();\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\n else revert('RouteProcessor: Unknown pool type');\n }\n\n /// @notice Wraps/unwraps native token\n /// @param stream [direction & fake, recipient, wrapToken?]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 directionAndFake = stream.readUint8();\n address to = stream.readAddress();\n\n if (directionAndFake & 1 == 1) { // wrap native\n address wrapToken = stream.readAddress();\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\n } else { // unwrap native\n if (directionAndFake & 2 == 0) {\n if (from != address(this)) IERC20(tokenIn).safeTransferFrom(from, address(this), amountIn);\n IWETH(tokenIn).withdraw(amountIn);\n }\n payable(to).transfer(address(this).balance);\n }\n }\n\n /// @notice Bridge/unbridge tokens to/from Bento\n /// @param stream [direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (direction > 0) { // outside to Bento\n // deposit to arbitrary recipient is possible only from address(bentoBox)\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, address(bentoBox), amountIn);\n } else {\n // tokens already are at address(bentoBox)\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(tokenIn).balance -\n bentoBox.totals(tokenIn).elastic;\n }\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\n } else { // Bento to outside\n if (amountIn > 0) {\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\n }\n }\n\n /// @notice UniswapV2 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, pool, amountIn);\n }\n // without 'else' in order to support tax tokens\n amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\n\n uint256 amountInWithFee = amountIn * 997;\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Trident pool swap\n /// @param stream [pool, swapData]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n\n if (amountIn != 0) {\n bentoBox.transfer(tokenIn, from, pool, amountIn);\n }\n \n IPool(pool).swap(swapData);\n }\n\n /// @notice UniswapV3 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bool zeroForOne = stream.readUint8() > 0;\n address recipient = stream.readAddress();\n\n if (from != address(this)) {\n require(from == msg.sender, 'swapUniV3: unexpected from address');\n IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\n }\n\n lastCalledPool = pool;\n IUniswapV3Pool(pool).swap(\n recipient,\n zeroForOne,\n int256(amountIn),\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\n abi.encode(tokenIn)\n );\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\n function uniswapV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n (address tokenIn) = abi.decode(data, (address));\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\n\n // Normally, RouteProcessor shouldn't have any liquidity on board\n // If some liquidity exists, it is sweept by the next user that makes swap through these tokens\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\n }\n\n}\n" + }, + "contracts/RouteProcessor3_2.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IUniswapV3Pool.sol';\nimport '../interfaces/ITridentCLPool.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport './InputStream.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\naddress constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\n\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\nuint160 constant MIN_SQRT_RATIO = 4295128739;\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Ilya Lyalin\n/// version 3.2\ncontract RouteProcessor3_2 is Ownable {\n using SafeERC20 for IERC20;\n using SafeERC20 for IERC20Permit;\n using InputStream for uint256;\n\n event Route(\n address indexed from, \n address to, \n address indexed tokenIn, \n address indexed tokenOut, \n uint amountIn, \n uint amountOutMin,\n uint amountOut\n );\n\n IBentoBoxMinimal public immutable bentoBox;\n mapping (address => bool) priviledgedUsers;\n address private lastCalledPool;\n\n uint8 private unlocked = 1;\n uint8 private paused = 1;\n modifier lock() {\n require(unlocked == 1, 'RouteProcessor is locked');\n require(paused == 1, 'RouteProcessor is paused');\n unlocked = 2;\n _;\n unlocked = 1;\n }\n\n modifier onlyOwnerOrPriviledgedUser() {\n require(msg.sender == owner() || priviledgedUsers[msg.sender] == true, \"RP: caller is not the owner or a priviledged user\");\n _;\n }\n\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n\n for (uint i = 0; i < priviledgedUserList.length; i++) {\n priviledgedUsers[priviledgedUserList[i]] = true;\n }\n }\n\n function setPriviledge(address user, bool priviledge) external onlyOwner {\n priviledgedUsers[user] = priviledge;\n }\n\n function pause() external onlyOwnerOrPriviledgedUser {\n paused = 2;\n }\n\n function resume() external onlyOwnerOrPriviledgedUser {\n paused = 1;\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n (bool success, bytes memory returnBytes) = transferValueTo.call{value: amountValueTransfer}('');\n require(success, string(abi.encodePacked(returnBytes)));\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 balanceInInitial = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n uint256 balanceOutInitial = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode == 1) processMyERC20(stream);\n else if (commandCode == 2) processUserERC20(stream, amountIn);\n else if (commandCode == 3) processNative(stream);\n else if (commandCode == 4) processOnePool(stream);\n else if (commandCode == 5) processInsideBento(stream);\n else if (commandCode == 6) applyPermit(tokenIn, stream);\n else revert('RouteProcessor: Unknown command code');\n }\n\n uint256 balanceInFinal = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n require(balanceInFinal + amountIn >= balanceInInitial, 'RouteProcessor: Minimal imput balance violation');\n\n uint256 balanceOutFinal = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n require(balanceOutFinal >= balanceOutInitial + amountOutMin, 'RouteProcessor: Minimal ouput balance violation');\n\n amountOut = balanceOutFinal - balanceOutInitial;\n\n emit Route(msg.sender, to, tokenIn, tokenOut, amountIn, amountOutMin, amountOut);\n }\n\n function applyPermit(address tokenIn, uint256 stream) private {\n //address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s)\n uint256 value = stream.readUint();\n uint256 deadline = stream.readUint();\n uint8 v = stream.readUint8();\n bytes32 r = stream.readBytes32();\n bytes32 s = stream.readBytes32();\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\n }\n\n /// @notice Processes native coin: call swap for all pools that swap from native coin\n /// @param stream Streamed process program\n function processNative(uint256 stream) private {\n uint256 amountTotal = address(this).balance;\n distributeAndSwap(stream, address(this), NATIVE_ADDRESS, amountTotal);\n }\n\n /// @notice Processes ERC20 token from this contract balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processMyERC20(uint256 stream) private {\n address token = stream.readAddress();\n uint256 amountTotal = IERC20(token).balanceOf(address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n \n /// @notice Processes ERC20 token from msg.sender balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n /// @param amountTotal Amount of tokens to take from msg.sender\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\n address token = stream.readAddress();\n distributeAndSwap(stream, msg.sender, token, amountTotal);\n }\n\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountTotal Total amount of tokenIn for swaps \n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\n uint8 num = stream.readUint8();\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, from, tokenIn, amount);\n }\n }\n }\n\n /// @notice Processes ERC20 token for cases when the token has only one output pool\n /// @notice In this case liquidity is already at pool balance. This is an optimization\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processOnePool(uint256 stream) private {\n address token = stream.readAddress();\n swap(stream, address(this), token, 0);\n }\n\n /// @notice Processes Bento tokens \n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processInsideBento(uint256 stream) private {\n address token = stream.readAddress();\n uint8 num = stream.readUint8();\n\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, address(this), token, amount);\n }\n }\n }\n\n /// @notice Makes swap\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 poolType = stream.readUint8();\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\n else revert('RouteProcessor: Unknown pool type');\n }\n\n /// @notice Wraps/unwraps native token\n /// @param stream [direction & fake, recipient, wrapToken?]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 directionAndFake = stream.readUint8();\n address to = stream.readAddress();\n\n if (directionAndFake & 1 == 1) { // wrap native\n address wrapToken = stream.readAddress();\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\n } else { // unwrap native\n if (directionAndFake & 2 == 0) {\n if (from != address(this)) IERC20(tokenIn).safeTransferFrom(from, address(this), amountIn);\n IWETH(tokenIn).withdraw(amountIn);\n }\n payable(to).transfer(address(this).balance);\n }\n }\n\n /// @notice Bridge/unbridge tokens to/from Bento\n /// @param stream [direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (direction > 0) { // outside to Bento\n // deposit to arbitrary recipient is possible only from address(bentoBox)\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, address(bentoBox), amountIn);\n } else {\n // tokens already are at address(bentoBox)\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(tokenIn).balance -\n bentoBox.totals(tokenIn).elastic;\n }\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\n } else { // Bento to outside\n if (amountIn > 0) {\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\n }\n }\n\n /// @notice UniswapV2 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, pool, amountIn);\n }\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\n\n uint256 amountInWithFee = amountIn * 997;\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Trident pool swap\n /// @param stream [pool, swapData]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n\n if (amountIn != 0) {\n bentoBox.transfer(tokenIn, from, pool, amountIn);\n }\n \n IPool(pool).swap(swapData);\n }\n\n /// @notice UniswapV3 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bool zeroForOne = stream.readUint8() > 0;\n address recipient = stream.readAddress();\n\n if (from != address(this)) {\n require(from == msg.sender, 'swapUniV3: unexpected from address');\n IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\n }\n\n lastCalledPool = pool;\n IUniswapV3Pool(pool).swap(\n recipient,\n zeroForOne,\n int256(amountIn),\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\n abi.encode(tokenIn)\n );\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\n function uniswapV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n (address tokenIn) = abi.decode(data, (address));\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\n\n // Normally, RouteProcessor shouldn't have any liquidity on board\n // If some liquidity exists, it is sweept by the next user that makes swap through these tokens\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\n }\n\n}\n" + }, + "contracts/RouteProcessor3.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IUniswapV3Pool.sol';\nimport '../interfaces/ITridentCLPool.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport './InputStream.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\naddress constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\n\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\nuint160 constant MIN_SQRT_RATIO = 4295128739;\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Ilya Lyalin\n/// version 2.1\ncontract RouteProcessor3 is Ownable {\n using SafeERC20 for IERC20;\n using SafeERC20 for IERC20Permit;\n using InputStream for uint256;\n\n event Route(\n address indexed from, \n address to, \n address indexed tokenIn, \n address indexed tokenOut, \n uint amountIn, \n uint amountOutMin,\n uint amountOut\n );\n\n IBentoBoxMinimal public immutable bentoBox;\n mapping (address => bool) priviledgedUsers;\n address private lastCalledPool;\n\n uint8 private unlocked = 1;\n uint8 private paused = 1;\n modifier lock() {\n require(unlocked == 1, 'RouteProcessor is locked');\n require(paused == 1, 'RouteProcessor is paused');\n unlocked = 2;\n _;\n unlocked = 1;\n }\n\n modifier onlyOwnerOrPriviledgedUser() {\n require(msg.sender == owner() || priviledgedUsers[msg.sender] == true, \"RP: caller is not the owner or a priviledged user\");\n _;\n }\n\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n\n for (uint i = 0; i < priviledgedUserList.length; i++) {\n priviledgedUsers[priviledgedUserList[i]] = true;\n }\n }\n\n function setPriviledge(address user, bool priviledge) external onlyOwner {\n priviledgedUsers[user] = priviledge;\n }\n\n function pause() external onlyOwnerOrPriviledgedUser {\n paused = 2;\n }\n\n function resume() external onlyOwnerOrPriviledgedUser {\n paused = 1;\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n (bool success, bytes memory returnBytes) = transferValueTo.call{value: amountValueTransfer}('');\n require(success, string(abi.encodePacked(returnBytes)));\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 balanceInInitial = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n uint256 balanceOutInitial = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode == 1) processMyERC20(stream);\n else if (commandCode == 2) processUserERC20(stream, amountIn);\n else if (commandCode == 3) processNative(stream);\n else if (commandCode == 4) processOnePool(stream);\n else if (commandCode == 5) processInsideBento(stream);\n else if (commandCode == 6) applyPermit(tokenIn, stream);\n else revert('RouteProcessor: Unknown command code');\n }\n\n uint256 balanceInFinal = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);\n require(balanceInFinal + amountIn >= balanceInInitial, 'RouteProcessor: Minimal imput balance violation');\n\n uint256 balanceOutFinal = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n require(balanceOutFinal >= balanceOutInitial + amountOutMin, 'RouteProcessor: Minimal ouput balance violation');\n\n amountOut = balanceOutFinal - balanceOutInitial;\n\n emit Route(msg.sender, to, tokenIn, tokenOut, amountIn, amountOutMin, amountOut);\n }\n\n function applyPermit(address tokenIn, uint256 stream) private {\n //address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s)\n uint256 value = stream.readUint();\n uint256 deadline = stream.readUint();\n uint8 v = stream.readUint8();\n bytes32 r = stream.readBytes32();\n bytes32 s = stream.readBytes32();\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\n }\n\n /// @notice Processes native coin: call swap for all pools that swap from native coin\n /// @param stream Streamed process program\n function processNative(uint256 stream) private {\n uint256 amountTotal = address(this).balance;\n distributeAndSwap(stream, address(this), NATIVE_ADDRESS, amountTotal);\n }\n\n /// @notice Processes ERC20 token from this contract balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processMyERC20(uint256 stream) private {\n address token = stream.readAddress();\n uint256 amountTotal = IERC20(token).balanceOf(address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n \n /// @notice Processes ERC20 token from msg.sender balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n /// @param amountTotal Amount of tokens to take from msg.sender\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\n address token = stream.readAddress();\n distributeAndSwap(stream, msg.sender, token, amountTotal);\n }\n\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountTotal Total amount of tokenIn for swaps \n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\n uint8 num = stream.readUint8();\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, from, tokenIn, amount);\n }\n }\n }\n\n /// @notice Processes ERC20 token for cases when the token has only one output pool\n /// @notice In this case liquidity is already at pool balance. This is an optimization\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processOnePool(uint256 stream) private {\n address token = stream.readAddress();\n swap(stream, address(this), token, 0);\n }\n\n /// @notice Processes Bento tokens \n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed process program\n function processInsideBento(uint256 stream) private {\n address token = stream.readAddress();\n uint8 num = stream.readUint8();\n\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / 65535;\n amountTotal -= amount;\n swap(stream, address(this), token, amount);\n }\n }\n }\n\n /// @notice Makes swap\n /// @param stream Streamed process program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 poolType = stream.readUint8();\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\n else revert('RouteProcessor: Unknown pool type');\n }\n\n /// @notice Wraps/unwraps native token\n /// @param stream [direction & fake, recipient, wrapToken?]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 directionAndFake = stream.readUint8();\n address to = stream.readAddress();\n\n if (directionAndFake & 1 == 1) { // wrap native\n address wrapToken = stream.readAddress();\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\n } else { // unwrap native\n if (directionAndFake & 2 == 0) {\n if (from != address(this)) IERC20(tokenIn).safeTransferFrom(from, address(this), amountIn);\n IWETH(tokenIn).withdraw(amountIn);\n }\n payable(to).transfer(address(this).balance);\n }\n }\n\n /// @notice Bridge/unbridge tokens to/from Bento\n /// @param stream [direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (direction > 0) { // outside to Bento\n // deposit to arbitrary recipient is possible only from address(bentoBox)\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, address(bentoBox), amountIn);\n } else {\n // tokens already are at address(bentoBox)\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(tokenIn).balance -\n bentoBox.totals(tokenIn).elastic;\n }\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\n } else { // Bento to outside\n if (amountIn > 0) {\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\n }\n }\n\n /// @notice UniswapV2 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n\n if (amountIn != 0) {\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\n else IERC20(tokenIn).safeTransferFrom(from, pool, amountIn);\n } else amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\n\n uint256 amountInWithFee = amountIn * 997;\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Trident pool swap\n /// @param stream [pool, swapData]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n\n if (amountIn != 0) {\n bentoBox.transfer(tokenIn, from, pool, amountIn);\n }\n \n IPool(pool).swap(swapData);\n }\n\n /// @notice UniswapV3 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bool zeroForOne = stream.readUint8() > 0;\n address recipient = stream.readAddress();\n\n if (from != address(this)) {\n require(from == msg.sender, 'swapUniV3: unexpected from address');\n IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\n }\n\n lastCalledPool = pool;\n IUniswapV3Pool(pool).swap(\n recipient,\n zeroForOne,\n int256(amountIn),\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\n abi.encode(tokenIn)\n );\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\n function uniswapV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n (address tokenIn) = abi.decode(data, (address));\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\n\n // Normally, RouteProcessor shouldn't have any liquidity on board\n // If some liquidity exists, it is sweept by the next user that makes swap through these tokens\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\n }\n\n}\n" + }, + "contracts/RouteProcessor4.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IUniswapV3Pool.sol';\nimport '../interfaces/ITridentCLPool.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport '../interfaces/ICurve.sol';\nimport './InputStream.sol';\nimport './Approve.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\naddress constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\naddress constant INTERNAL_INPUT_SOURCE = 0x0000000000000000000000000000000000000000;\n\nuint8 constant LOCKED = 2;\nuint8 constant NOT_LOCKED = 1;\nuint8 constant PAUSED = 2;\nuint8 constant NOT_PAUSED = 1;\n\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\nuint160 constant MIN_SQRT_RATIO = 4295128739;\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Ilya Lyalin\ncontract RouteProcessor4 is Ownable {\n using SafeERC20 for IERC20;\n using Approve for IERC20;\n using SafeERC20 for IERC20Permit;\n using InputStream for uint256;\n\n event Route(\n address indexed from, \n address to, \n address indexed tokenIn, \n address indexed tokenOut, \n uint256 amountIn, \n uint256 amountOutMin,\n uint256 amountOut\n );\n\n error MinimalOutputBalanceViolation(uint256 amountOut);\n\n IBentoBoxMinimal public immutable bentoBox;\n mapping (address => bool) public priviledgedUsers;\n address private lastCalledPool;\n\n uint8 private unlocked = NOT_LOCKED;\n uint8 private paused = NOT_PAUSED;\n modifier lock() {\n require(unlocked == NOT_LOCKED, 'RouteProcessor is locked');\n require(paused == NOT_PAUSED, 'RouteProcessor is paused');\n unlocked = LOCKED;\n _;\n unlocked = NOT_LOCKED;\n }\n\n modifier onlyOwnerOrPriviledgedUser() {\n require(msg.sender == owner() || priviledgedUsers[msg.sender], \"RP: caller is not the owner or a privileged user\");\n _;\n }\n\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n\n for (uint256 i = 0; i < priviledgedUserList.length; i++) {\n priviledgedUsers[priviledgedUserList[i]] = true;\n }\n }\n\n function setPriviledge(address user, bool priviledge) external onlyOwner {\n priviledgedUsers[user] = priviledge;\n }\n\n function pause() external onlyOwnerOrPriviledgedUser {\n paused = PAUSED;\n }\n\n function resume() external onlyOwnerOrPriviledgedUser {\n paused = NOT_PAUSED;\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n (bool success, bytes memory returnBytes) = transferValueTo.call{value: amountValueTransfer}('');\n if (!success) {\n assembly {\n revert(add(32, returnBytes), mload(returnBytes))\n }\n }\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 balanceInInitial = tokenIn == NATIVE_ADDRESS ? 0 : IERC20(tokenIn).balanceOf(msg.sender);\n uint256 balanceOutInitial = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n\n uint256 realAmountIn = amountIn;\n {\n uint256 step = 0;\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode == 1) {\n uint256 usedAmount = processMyERC20(stream); \n if (step == 0) realAmountIn = usedAmount;\n } \n else if (commandCode == 2) processUserERC20(stream, amountIn);\n else if (commandCode == 3) {\n uint256 usedAmount = processNative(stream); \n if (step == 0) realAmountIn = usedAmount;\n } \n else if (commandCode == 4) processOnePool(stream);\n else if (commandCode == 5) processInsideBento(stream);\n else if (commandCode == 6) applyPermit(tokenIn, stream);\n else revert('RouteProcessor: Unknown command code');\n ++step;\n }\n }\n\n uint256 balanceInFinal = tokenIn == NATIVE_ADDRESS ? 0 : IERC20(tokenIn).balanceOf(msg.sender);\n require(balanceInFinal + amountIn >= balanceInInitial, 'RouteProcessor: Minimal input balance violation');\n \n uint256 balanceOutFinal = tokenOut == NATIVE_ADDRESS ? address(to).balance : IERC20(tokenOut).balanceOf(to);\n if (balanceOutFinal < balanceOutInitial + amountOutMin)\n revert MinimalOutputBalanceViolation(balanceOutFinal - balanceOutInitial);\n\n amountOut = balanceOutFinal - balanceOutInitial;\n\n emit Route(msg.sender, to, tokenIn, tokenOut, realAmountIn, amountOutMin, amountOut);\n }\n\n /// @notice Applies ERC-2612 permit\n /// @param tokenIn permitted token\n /// @param stream Streamed program\n function applyPermit(address tokenIn, uint256 stream) private {\n uint256 value = stream.readUint();\n uint256 deadline = stream.readUint();\n uint8 v = stream.readUint8();\n bytes32 r = stream.readBytes32();\n bytes32 s = stream.readBytes32();\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\n }\n\n /// @notice Processes native coin: call swap for all pools that swap from native coin\n /// @param stream Streamed program\n function processNative(uint256 stream) private returns (uint256 amountTotal) {\n amountTotal = address(this).balance;\n distributeAndSwap(stream, address(this), NATIVE_ADDRESS, amountTotal);\n }\n\n /// @notice Processes ERC20 token from this contract balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processMyERC20(uint256 stream) private returns (uint256 amountTotal) {\n address token = stream.readAddress();\n amountTotal = IERC20(token).balanceOf(address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n \n /// @notice Processes ERC20 token from msg.sender balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n /// @param amountTotal Amount of tokens to take from msg.sender\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\n address token = stream.readAddress();\n distributeAndSwap(stream, msg.sender, token, amountTotal);\n }\n\n /// @notice Processes ERC20 token for cases when the token has only one output pool\n /// @notice In this case liquidity is already at pool balance. This is an optimization\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processOnePool(uint256 stream) private {\n address token = stream.readAddress();\n swap(stream, INTERNAL_INPUT_SOURCE, token, 0);\n }\n\n /// @notice Processes Bento tokens \n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processInsideBento(uint256 stream) private {\n address token = stream.readAddress();\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\n /// @param stream Streamed program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountTotal Total amount of tokenIn for swaps \n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\n uint8 num = stream.readUint8();\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / type(uint16).max /*65535*/;\n amountTotal -= amount;\n swap(stream, from, tokenIn, amount);\n }\n }\n }\n\n /// @notice Makes swap\n /// @param stream Streamed program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 poolType = stream.readUint8();\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\n else if (poolType == 5) swapCurve(stream, from, tokenIn, amountIn);\n else revert('RouteProcessor: Unknown pool type');\n }\n\n /// @notice Wraps/unwraps native token\n /// @param stream [direction & fake, recipient, wrapToken?]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 directionAndFake = stream.readUint8();\n address to = stream.readAddress();\n\n if (directionAndFake & 1 == 1) { // wrap native\n address wrapToken = stream.readAddress();\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\n } else { // unwrap native\n if (directionAndFake & 2 == 0) {\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\n IWETH(tokenIn).withdraw(amountIn);\n }\n (bool success,)= payable(to).call{value: amountIn}(\"\");\n require(success, \"RouteProcessor.wrapNative: Native token transfer failed\");\n }\n }\n\n /// @notice Bridge/unbridge tokens to/from Bento\n /// @param stream [direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (direction > 0) { // outside to Bento\n // deposit to arbitrary recipient is possible only from address(bentoBox)\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(bentoBox), amountIn);\n else {\n // tokens already are at address(bentoBox)\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(tokenIn).balance -\n bentoBox.totals(tokenIn).elastic;\n }\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\n } else { // Bento to outside\n if (from != INTERNAL_INPUT_SOURCE) {\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\n }\n }\n\n /// @notice UniswapV2 pool swap\n /// @param stream [pool, direction, recipient, fee]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n uint24 fee = stream.readUint24(); // pool fee in 1/1_000_000\n\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, pool, amountIn);\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\n\n uint256 amountInWithFee = amountIn * (1_000_000 - fee);\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1_000_000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Trident pool swap\n /// @param stream [pool, swapData]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n\n if (from != INTERNAL_INPUT_SOURCE) {\n bentoBox.transfer(tokenIn, from, pool, amountIn);\n }\n \n IPool(pool).swap(swapData);\n }\n\n /// @notice UniswapV3 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bool zeroForOne = stream.readUint8() > 0;\n address recipient = stream.readAddress();\n\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\n\n lastCalledPool = pool;\n IUniswapV3Pool(pool).swap(\n recipient,\n zeroForOne,\n int256(amountIn),\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\n abi.encode(tokenIn)\n );\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\n function uniswapV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) public {\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\n \n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n (address tokenIn) = abi.decode(data, (address));\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IAlgebraPool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IAlgebraPoolActions#swap call\n function algebraSwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\n }\n\n /// @notice Called to `msg.sender` after executing a swap via PancakeV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the PancakeV3Pool#swap call\n function pancakeV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\n }\n\n /// @notice Curve pool swap. Legacy pools that don't return amountOut and have native coins are not supported\n /// @param stream [pool, poolType, fromIndex, toIndex, recipient, output token]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapCurve(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 poolType = stream.readUint8();\n int128 fromIndex = int8(stream.readUint8());\n int128 toIndex = int8(stream.readUint8());\n address to = stream.readAddress();\n address tokenOut = stream.readAddress();\n\n uint256 amountOut;\n if (tokenIn == NATIVE_ADDRESS) {\n amountOut = ICurve(pool).exchange{value: amountIn}(fromIndex, toIndex, amountIn, 0);\n } else {\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\n IERC20(tokenIn).approveSafe(pool, amountIn);\n if (poolType == 0) amountOut = ICurve(pool).exchange(fromIndex, toIndex, amountIn, 0);\n else {\n uint256 balanceBefore = IERC20(tokenOut).balanceOf(address(this));\n ICurveLegacy(pool).exchange(fromIndex, toIndex, amountIn, 0);\n uint256 balanceAfter = IERC20(tokenOut).balanceOf(address(this));\n amountOut = balanceAfter - balanceBefore;\n }\n }\n\n if (to != address(this)) { \n if(tokenOut == NATIVE_ADDRESS) {\n (bool success,)= payable(to).call{value: amountOut}(\"\");\n require(success, \"RouteProcessor.swapCurve: Native token transfer failed\");\n } else {\n IERC20(tokenOut).safeTransfer(to, amountOut);\n }\n }\n }\n}\n" + }, + "contracts/RouteProcessor5.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IUniswapV3Pool.sol';\nimport '../interfaces/ITridentCLPool.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport '../interfaces/ICurve.sol';\nimport './InputStream.sol';\nimport './Utils.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\naddress constant INTERNAL_INPUT_SOURCE = 0x0000000000000000000000000000000000000000;\n\nuint8 constant LOCKED = 2;\nuint8 constant NOT_LOCKED = 1;\nuint8 constant PAUSED = 2;\nuint8 constant NOT_PAUSED = 1;\n\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\nuint160 constant MIN_SQRT_RATIO = 4295128739;\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Ilya Lyalin\ncontract RouteProcessor5 is Ownable {\n using SafeERC20 for IERC20;\n using Utils for IERC20;\n using Utils for address;\n using SafeERC20 for IERC20Permit;\n using InputStream for uint256;\n\n event Route(\n address indexed from, \n address to, \n address indexed tokenIn, \n address indexed tokenOut, \n uint256 amountIn, \n uint256 amountOutMin,\n uint256 amountOut\n );\n\n error MinimalOutputBalanceViolation(uint256 amountOut);\n\n IBentoBoxMinimal public immutable bentoBox;\n mapping (address => bool) public priviledgedUsers;\n address private lastCalledPool;\n\n uint8 private unlocked = NOT_LOCKED;\n uint8 private paused = NOT_PAUSED;\n modifier lock() {\n require(unlocked == NOT_LOCKED, 'RouteProcessor is locked');\n require(paused == NOT_PAUSED, 'RouteProcessor is paused');\n unlocked = LOCKED;\n _;\n unlocked = NOT_LOCKED;\n }\n\n modifier onlyOwnerOrPriviledgedUser() {\n require(msg.sender == owner() || priviledgedUsers[msg.sender], \"RP: caller is not the owner or a privileged user\");\n _;\n }\n\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n\n for (uint256 i = 0; i < priviledgedUserList.length; i++) {\n priviledgedUsers[priviledgedUserList[i]] = true;\n }\n }\n\n function setPriviledge(address user, bool priviledge) external onlyOwner {\n priviledgedUsers[user] = priviledge;\n }\n\n function pause() external onlyOwnerOrPriviledgedUser {\n paused = PAUSED;\n }\n\n function resume() external onlyOwnerOrPriviledgedUser {\n paused = NOT_PAUSED;\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @param to Where to transfer output tokens\n /// @param route Route to process\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n transferValueTo.transferNative(amountValueTransfer);\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value of input tokens to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteWithTransferValueInput(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n tokenIn.transferAnyFromSender(transferValueTo, amountValueTransfer);\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n \n /// @notice processes the route and sends amount of output token to \n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteWithTransferValueOutput(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n amountOut = processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, address(this), route);\n tokenOut.transferAny(transferValueTo, amountValueTransfer);\n tokenOut.transferAny(to, amountOut - amountValueTransfer);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 balanceInInitial = tokenIn.anyBalanceOf(msg.sender);\n uint256 balanceOutInitial = tokenOut.anyBalanceOf(to);\n\n uint256 realAmountIn = amountIn;\n {\n uint256 step = 0;\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode == 1) {\n uint256 usedAmount = processMyERC20(stream); \n if (step == 0) realAmountIn = usedAmount;\n } \n else if (commandCode == 2) processUserERC20(stream, amountIn);\n else if (commandCode == 3) {\n uint256 usedAmount = processNative(stream); \n if (step == 0) realAmountIn = usedAmount;\n } \n else if (commandCode == 4) processOnePool(stream);\n else if (commandCode == 5) processInsideBento(stream);\n else if (commandCode == 6) applyPermit(tokenIn, stream);\n else revert('RouteProcessor: Unknown command code');\n ++step;\n }\n }\n\n uint256 balanceInFinal = tokenIn.anyBalanceOf(msg.sender);\n if (tokenIn != Utils.NATIVE_ADDRESS)\n require(balanceInFinal + amountIn + 10 >= balanceInInitial, 'RouteProcessor: Minimal input balance violation');\n \n uint256 balanceOutFinal = tokenOut.anyBalanceOf(to);\n if (balanceOutFinal < balanceOutInitial + amountOutMin)\n revert MinimalOutputBalanceViolation(balanceOutFinal - balanceOutInitial);\n\n amountOut = balanceOutFinal - balanceOutInitial;\n\n emit Route(msg.sender, to, tokenIn, tokenOut, realAmountIn, amountOutMin, amountOut);\n }\n\n /// @notice Applies ERC-2612 permit\n /// @param tokenIn permitted token\n /// @param stream Streamed program\n function applyPermit(address tokenIn, uint256 stream) private {\n uint256 value = stream.readUint();\n uint256 deadline = stream.readUint();\n uint8 v = stream.readUint8();\n bytes32 r = stream.readBytes32();\n bytes32 s = stream.readBytes32();\n if (IERC20(tokenIn).allowance(msg.sender, address(this)) < value) {\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\n }\n }\n\n /// @notice Processes native coin: call swap for all pools that swap from native coin\n /// @param stream Streamed program\n function processNative(uint256 stream) private returns (uint256 amountTotal) {\n amountTotal = address(this).balance;\n distributeAndSwap(stream, address(this), Utils.NATIVE_ADDRESS, amountTotal);\n }\n\n /// @notice Processes ERC20 token from this contract balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processMyERC20(uint256 stream) private returns (uint256 amountTotal) {\n address token = stream.readAddress();\n amountTotal = IERC20(token).balanceOf(address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n \n /// @notice Processes ERC20 token from msg.sender balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n /// @param amountTotal Amount of tokens to take from msg.sender\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\n address token = stream.readAddress();\n distributeAndSwap(stream, msg.sender, token, amountTotal);\n }\n\n /// @notice Processes ERC20 token for cases when the token has only one output pool\n /// @notice In this case liquidity is already at pool balance. This is an optimization\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processOnePool(uint256 stream) private {\n address token = stream.readAddress();\n swap(stream, INTERNAL_INPUT_SOURCE, token, 0);\n }\n\n /// @notice Processes Bento tokens \n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processInsideBento(uint256 stream) private {\n address token = stream.readAddress();\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\n /// @param stream Streamed program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountTotal Total amount of tokenIn for swaps \n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\n uint8 num = stream.readUint8();\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / type(uint16).max /*65535*/;\n amountTotal -= amount;\n swap(stream, from, tokenIn, amount);\n }\n }\n }\n\n /// @notice Makes swap\n /// @param stream Streamed program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 poolType = stream.readUint8();\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\n else if (poolType == 5) swapCurve(stream, from, tokenIn, amountIn);\n else revert('RouteProcessor: Unknown pool type');\n }\n\n /// @notice Wraps/unwraps native token\n /// @param stream [direction & fake, recipient, wrapToken?]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 directionAndFake = stream.readUint8();\n address to = stream.readAddress();\n\n if (directionAndFake & 1 == 1) { // wrap native\n address wrapToken = stream.readAddress();\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\n } else { // unwrap native\n if (directionAndFake & 2 == 0) {\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\n IWETH(tokenIn).withdraw(amountIn);\n }\n to.transferNative(amountIn);\n }\n }\n\n /// @notice Bridge/unbridge tokens to/from Bento\n /// @param stream [direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (direction > 0) { // outside to Bento\n // deposit to arbitrary recipient is possible only from address(bentoBox)\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(bentoBox), amountIn);\n else {\n // tokens already are at address(bentoBox)\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(tokenIn).balance -\n bentoBox.totals(tokenIn).elastic;\n }\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\n } else { // Bento to outside\n if (from != INTERNAL_INPUT_SOURCE) {\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\n }\n }\n\n /// @notice UniswapV2 pool swap\n /// @param stream [pool, direction, recipient, fee]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n uint24 fee = stream.readUint24(); // pool fee in 1/1_000_000\n\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, pool, amountIn);\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\n\n uint256 amountInWithFee = amountIn * (1_000_000 - fee);\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1_000_000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Trident pool swap\n /// @param stream [pool, swapData]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n\n if (from != INTERNAL_INPUT_SOURCE) {\n bentoBox.transfer(tokenIn, from, pool, amountIn);\n }\n \n IPool(pool).swap(swapData);\n }\n\n /// @notice UniswapV3 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bool zeroForOne = stream.readUint8() > 0;\n address recipient = stream.readAddress();\n\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\n\n lastCalledPool = pool;\n IUniswapV3Pool(pool).swap(\n recipient,\n zeroForOne,\n int256(amountIn),\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\n abi.encode(tokenIn)\n );\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\n function uniswapV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) public {\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\n \n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n (address tokenIn) = abi.decode(data, (address));\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IAlgebraPool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IAlgebraPoolActions#swap call\n function algebraSwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\n }\n\n /// @notice Called to `msg.sender` after executing a swap via PancakeV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the PancakeV3Pool#swap call\n function pancakeV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\n }\n\n /// @notice Curve pool swap. Legacy pools that don't return amountOut and have native coins are not supported\n /// @param stream [pool, poolType, fromIndex, toIndex, recipient, output token]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapCurve(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 poolType = stream.readUint8();\n int128 fromIndex = int8(stream.readUint8());\n int128 toIndex = int8(stream.readUint8());\n address to = stream.readAddress();\n address tokenOut = stream.readAddress();\n\n uint256 amountOut;\n if (tokenIn == Utils.NATIVE_ADDRESS) {\n amountOut = ICurve(pool).exchange{value: amountIn}(fromIndex, toIndex, amountIn, 0);\n } else {\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\n IERC20(tokenIn).approveSafe(pool, amountIn);\n if (poolType == 0) amountOut = ICurve(pool).exchange(fromIndex, toIndex, amountIn, 0);\n else {\n uint256 balanceBefore = tokenOut.anyBalanceOf(address(this));\n ICurveLegacy(pool).exchange(fromIndex, toIndex, amountIn, 0);\n uint256 balanceAfter = tokenOut.anyBalanceOf(address(this));\n amountOut = balanceAfter - balanceBefore;\n }\n }\n\n if (to != address(this)) tokenOut.transferAny(to, amountOut);\n }\n}\n" + }, + "contracts/Utils.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\n\nlibrary Utils {\n using SafeERC20 for IERC20;\n\n address constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n /**\n * @dev returns user's balance of token (or native)\n */\n function anyBalanceOf(address token, address user) internal view returns (uint256) {\n if (token == NATIVE_ADDRESS) return address(user).balance;\n else return IERC20(token).balanceOf(user);\n }\n\n /**\n * @dev transfers native with correct revert bubble up\n */\n function transferNative(address to, uint256 amount) internal {\n (bool success, bytes memory returnBytes) = to.call{value: amount}('');\n if (!success) {\n assembly {\n revert(add(32, returnBytes), mload(returnBytes))\n }\n }\n }\n\n /**\n * @dev transfers ERC20 or native\n */\n function transferAny(address token, address to, uint256 amount) internal {\n if (token == NATIVE_ADDRESS) transferNative(to, amount);\n else IERC20(token).safeTransfer(to, amount);\n }\n\n /**\n * @dev transfers from ERC20 or transfers native\n */\n function transferAnyFromSender(address token, address to, uint256 amount) internal {\n if (token == NATIVE_ADDRESS) transferNative(to, amount); // native liquidity is already on this contract\n else IERC20(token).safeTransferFrom(msg.sender, to, amount);\n }\n\n /**\n * @dev ERC20 approve that correct works with token.approve which returns bool or nothing (USDT for example)\n * @param token The token targeted by the call.\n * @param spender token spender\n * @param amount token amount\n */\n function approveStable(IERC20 token, address spender, uint256 amount) internal returns (bool) {\n (bool success, bytes memory data) = address(token).call(\n abi.encodeWithSelector(token.approve.selector, spender, amount)\n );\n return success && (data.length == 0 || abi.decode(data, (bool)));\n }\n\n /**\n * @dev ERC20 approve that correct works with token.approve which reverts if amount and \n * current allowance are not zero simultaniously (USDT for example). \n * In second case it tries to set allowance to 0, and then back to amount.\n * @param token The token targeted by the call.\n * @param spender token spender\n * @param amount token amount\n */\n function approveSafe(IERC20 token, address spender, uint256 amount) internal returns (bool) {\n return approveStable(token, spender, amount) \n || (approveStable(token, spender, 0) && approveStable(token, spender, amount));\n }\n}\n" + }, + "interfaces/IBentoBoxMinimal.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity >=0.8.0;\n\nstruct Rebase {\n uint128 elastic;\n uint128 base;\n}\n\nstruct StrategyData {\n uint64 strategyStartDate;\n uint64 targetPercentage;\n uint128 balance; // the balance of the strategy that BentoBox thinks is in there\n}\n\n/// @notice A rebasing library\nlibrary RebaseLibrary {\n /// @notice Calculates the base value in relationship to `elastic` and `total`.\n function toBase(Rebase memory total, uint256 elastic) internal pure returns (uint256 base) {\n if (total.elastic == 0) {\n base = elastic;\n } else {\n base = (elastic * total.base) / total.elastic;\n }\n }\n\n /// @notice Calculates the elastic value in relationship to `base` and `total`.\n function toElastic(Rebase memory total, uint256 base) internal pure returns (uint256 elastic) {\n if (total.base == 0) {\n elastic = base;\n } else {\n elastic = (base * total.elastic) / total.base;\n }\n }\n}\n\n/// @notice Minimal BentoBox vault interface.\n/// @dev `token` is aliased as `address` from `IERC20` for simplicity.\ninterface IBentoBoxMinimal {\n /// @notice Balance per ERC-20 token per account in shares.\n function balanceOf(address, address) external view returns (uint256);\n\n /// @dev Helper function to represent an `amount` of `token` in shares.\n /// @param token The ERC-20 token.\n /// @param amount The `token` amount.\n /// @param roundUp If the result `share` should be rounded up.\n /// @return share The token amount represented in shares.\n function toShare(\n address token,\n uint256 amount,\n bool roundUp\n ) external view returns (uint256 share);\n\n /// @dev Helper function to represent shares back into the `token` amount.\n /// @param token The ERC-20 token.\n /// @param share The amount of shares.\n /// @param roundUp If the result should be rounded up.\n /// @return amount The share amount back into native representation.\n function toAmount(\n address token,\n uint256 share,\n bool roundUp\n ) external view returns (uint256 amount);\n\n /// @notice Registers this contract so that users can approve it for BentoBox.\n function registerProtocol() external;\n\n /// @notice Deposit an amount of `token` represented in either `amount` or `share`.\n /// @param token The ERC-20 token to deposit.\n /// @param from which account to pull the tokens.\n /// @param to which account to push the tokens.\n /// @param amount Token amount in native representation to deposit.\n /// @param share Token amount represented in shares to deposit. Takes precedence over `amount`.\n /// @return amountOut The amount deposited.\n /// @return shareOut The deposited amount represented in shares.\n function deposit(\n address token,\n address from,\n address to,\n uint256 amount,\n uint256 share\n ) external payable returns (uint256 amountOut, uint256 shareOut);\n\n /// @notice Withdraws an amount of `token` from a user account.\n /// @param token_ The ERC-20 token to withdraw.\n /// @param from which user to pull the tokens.\n /// @param to which user to push the tokens.\n /// @param amount of tokens. Either one of `amount` or `share` needs to be supplied.\n /// @param share Like above, but `share` takes precedence over `amount`.\n function withdraw(\n address token_,\n address from,\n address to,\n uint256 amount,\n uint256 share\n ) external returns (uint256 amountOut, uint256 shareOut);\n\n /// @notice Transfer shares from a user account to another one.\n /// @param token The ERC-20 token to transfer.\n /// @param from which user to pull the tokens.\n /// @param to which user to push the tokens.\n /// @param share The amount of `token` in shares.\n function transfer(\n address token,\n address from,\n address to,\n uint256 share\n ) external;\n\n /// @dev Reads the Rebase `totals`from storage for a given token\n function totals(address token) external view returns (Rebase memory total);\n\n function strategyData(address token) external view returns (StrategyData memory total);\n\n /// @dev Approves users' BentoBox assets to a \"master\" contract.\n function setMasterContractApproval(\n address user,\n address masterContract,\n bool approved,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n function harvest(\n address token,\n bool balance,\n uint256 maxChangeAmount\n ) external;\n}\n" + }, + "interfaces/ICurve.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity >=0.8.0;\n\ninterface ICurve {\n function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) payable external returns (uint256);\n}\n\ninterface ICurveLegacy {\n function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) payable external;\n}\n\n" + }, + "interfaces/IPool.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity >=0.5.0;\npragma experimental ABIEncoderV2;\n\n/// @notice Trident pool interface.\ninterface IPool {\n /// @notice Executes a swap from one token to another.\n /// @dev The input tokens must've already been sent to the pool.\n /// @param data ABI-encoded params that the pool requires.\n /// @return finalAmountOut The amount of output tokens that were sent to the user.\n function swap(bytes calldata data) external returns (uint256 finalAmountOut);\n\n /// @notice Executes a swap from one token to another with a callback.\n /// @dev This function allows borrowing the output tokens and sending the input tokens in the callback.\n /// @param data ABI-encoded params that the pool requires.\n /// @return finalAmountOut The amount of output tokens that were sent to the user.\n function flashSwap(bytes calldata data) external returns (uint256 finalAmountOut);\n\n /// @notice Mints liquidity tokens.\n /// @param data ABI-encoded params that the pool requires.\n /// @return liquidity The amount of liquidity tokens that were minted for the user.\n function mint(bytes calldata data) external returns (uint256 liquidity);\n\n /// @notice Burns liquidity tokens.\n /// @dev The input LP tokens must've already been sent to the pool.\n /// @param data ABI-encoded params that the pool requires.\n /// @return withdrawnAmounts The amount of various output tokens that were sent to the user.\n function burn(bytes calldata data) external returns (TokenAmount[] memory withdrawnAmounts);\n\n /// @notice Burns liquidity tokens for a single output token.\n /// @dev The input LP tokens must've already been sent to the pool.\n /// @param data ABI-encoded params that the pool requires.\n /// @return amountOut The amount of output tokens that were sent to the user.\n function burnSingle(bytes calldata data) external returns (uint256 amountOut);\n\n /// @return A unique identifier for the pool type.\n function poolIdentifier() external pure returns (bytes32);\n\n /// @return An array of tokens supported by the pool.\n function getAssets() external view returns (address[] memory);\n\n /// @notice Simulates a trade and returns the expected output.\n /// @dev The pool does not need to include a trade simulator directly in itself - it can use a library.\n /// @param data ABI-encoded params that the pool requires.\n /// @return finalAmountOut The amount of output tokens that will be sent to the user if the trade is executed.\n function getAmountOut(bytes calldata data) external view returns (uint256 finalAmountOut);\n\n /// @notice Simulates a trade and returns the expected output.\n /// @dev The pool does not need to include a trade simulator directly in itself - it can use a library.\n /// @param data ABI-encoded params that the pool requires.\n /// @return finalAmountIn The amount of input tokens that are required from the user if the trade is executed.\n function getAmountIn(bytes calldata data) external view returns (uint256 finalAmountIn);\n\n /// @dev This event must be emitted on all swaps.\n event Swap(address indexed recipient, address indexed tokenIn, address indexed tokenOut, uint256 amountIn, uint256 amountOut);\n\n /// @dev This struct frames output tokens for burns.\n struct TokenAmount {\n address token;\n uint256 amount;\n }\n}\n" + }, + "interfaces/ITridentCLPool.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity 0.8.10;\n\ninterface ITridentCLPool {\n function token0() external returns (address);\n function token1() external returns (address);\n\n function swap(\n address recipient,\n bool zeroForOne,\n int256 amountSpecified,\n uint160 sqrtPriceLimitX96,\n bool unwrapBento,\n bytes calldata data\n ) external returns (int256 amount0, int256 amount1);\n}\n" + }, + "interfaces/IUniswapV2Pair.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity >=0.5.0;\n\ninterface IUniswapV2Pair {\n event Approval(address indexed owner, address indexed spender, uint value);\n event Transfer(address indexed from, address indexed to, uint value);\n\n function name() external pure returns (string memory);\n function symbol() external pure returns (string memory);\n function decimals() external pure returns (uint8);\n function totalSupply() external view returns (uint);\n function balanceOf(address owner) external view returns (uint);\n function allowance(address owner, address spender) external view returns (uint);\n\n function approve(address spender, uint value) external returns (bool);\n function transfer(address to, uint value) external returns (bool);\n function transferFrom(address from, address to, uint value) external returns (bool);\n\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n function PERMIT_TYPEHASH() external pure returns (bytes32);\n function nonces(address owner) external view returns (uint);\n\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\n\n event Mint(address indexed sender, uint amount0, uint amount1);\n event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);\n event Swap(\n address indexed sender,\n uint amount0In,\n uint amount1In,\n uint amount0Out,\n uint amount1Out,\n address indexed to\n );\n event Sync(uint112 reserve0, uint112 reserve1);\n\n function MINIMUM_LIQUIDITY() external pure returns (uint);\n function factory() external view returns (address);\n function token0() external view returns (address);\n function token1() external view returns (address);\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\n function price0CumulativeLast() external view returns (uint);\n function price1CumulativeLast() external view returns (uint);\n function kLast() external view returns (uint);\n\n function mint(address to) external returns (uint liquidity);\n function burn(address to) external returns (uint amount0, uint amount1);\n function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;\n function skim(address to) external;\n function sync() external;\n\n function initialize(address, address) external;\n}" + }, + "interfaces/IUniswapV3Pool.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity 0.8.10;\n\ninterface IUniswapV3Pool {\n function token0() external returns (address);\n function token1() external returns (address);\n\n function swap(\n address recipient,\n bool zeroForOne,\n int256 amountSpecified,\n uint160 sqrtPriceLimitX96,\n bytes calldata data\n ) external returns (int256 amount0, int256 amount1);\n}\n" + }, + "interfaces/IWETH.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity 0.8.10;\n\ninterface IWETH {\n function deposit() external payable;\n\n function transfer(address to, uint256 value) external returns (bool);\n\n function withdraw(uint256) external;\n}\n" + } + }, + "settings": { + "optimizer": { + "enabled": true, + "runs": 10000000 + }, + "outputSelection": { + "*": { + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata", + "devdoc", + "userdoc", + "storageLayout", + "evm.gasEstimates" + ], + "": [ + "ast" + ] + } + }, + "metadata": { + "useLiteralContent": true + } + } +} \ No newline at end of file diff --git a/protocols/route-processor/deployments/zklink-nova/.chainId b/protocols/route-processor/deployments/zklink-nova/.chainId new file mode 100644 index 0000000000..31706e18e3 --- /dev/null +++ b/protocols/route-processor/deployments/zklink-nova/.chainId @@ -0,0 +1 @@ +810180 \ No newline at end of file diff --git a/protocols/route-processor/deployments/zklink-nova/RouteProcessor5.json b/protocols/route-processor/deployments/zklink-nova/RouteProcessor5.json new file mode 100644 index 0000000000..55c98a2b0e --- /dev/null +++ b/protocols/route-processor/deployments/zklink-nova/RouteProcessor5.json @@ -0,0 +1,669 @@ +{ + "address": "0x9e55e562D40FD01f38cD4057e632352fE0758F16", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_bentoBox", + "type": "address" + }, + { + "internalType": "address[]", + "name": "priviledgedUserList", + "type": "address[]" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "name": "MinimalOutputBalanceViolation", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "name": "Route", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "int256", + "name": "amount0Delta", + "type": "int256" + }, + { + "internalType": "int256", + "name": "amount1Delta", + "type": "int256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "algebraSwapCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "bentoBox", + "outputs": [ + { + "internalType": "contract IBentoBoxMinimal", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int256", + "name": "amount0Delta", + "type": "int256" + }, + { + "internalType": "int256", + "name": "amount1Delta", + "type": "int256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "pancakeV3SwapCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "pause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "priviledgedUsers", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes", + "name": "route", + "type": "bytes" + } + ], + "name": "processRoute", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "transferValueTo", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountValueTransfer", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes", + "name": "route", + "type": "bytes" + } + ], + "name": "processRouteWithTransferValueInput", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "transferValueTo", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountValueTransfer", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes", + "name": "route", + "type": "bytes" + } + ], + "name": "processRouteWithTransferValueOutput", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "resume", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "internalType": "bool", + "name": "priviledge", + "type": "bool" + } + ], + "name": "setPriviledge", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "transferValueTo", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountValueTransfer", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes", + "name": "route", + "type": "bytes" + } + ], + "name": "transferValueAndprocessRoute", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int256", + "name": "amount0Delta", + "type": "int256" + }, + { + "internalType": "int256", + "name": "amount1Delta", + "type": "int256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "uniswapV3SwapCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } + ], + "transactionHash": "0xf43d0c4eb88e8b5498e5005ce9b655951193b8967f541e57d539bfeb2158338f", + "receipt": { + "to": "0x0000000000000000000000000000000000008006", + "from": "0x282607716D9B4fDD0B094d5864fac56313f5e665", + "contractAddress": "0x9e55e562D40FD01f38cD4057e632352fE0758F16", + "transactionIndex": 0, + "gasUsed": "2924048", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x58d5384727293feea48a065cfc5cebf8e403968840f374c02102483e5632f9f5", + "transactionHash": "0xf43d0c4eb88e8b5498e5005ce9b655951193b8967f541e57d539bfeb2158338f", + "logs": [ + { + "transactionIndex": 0, + "blockNumber": 5910411, + "transactionHash": "0xf43d0c4eb88e8b5498e5005ce9b655951193b8967f541e57d539bfeb2158338f", + "address": "0x000000000000000000000000000000000000800A", + "topics": [ + "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", + "0x000000000000000000000000282607716d9b4fdd0b094d5864fac56313f5e665", + "0x0000000000000000000000000000000000000000000000000000000000008001" + ], + "data": "0x000000000000000000000000000000000000000000000000000198e26ddde480", + "logIndex": 0, + "blockHash": "0x58d5384727293feea48a065cfc5cebf8e403968840f374c02102483e5632f9f5" + }, + { + "transactionIndex": 0, + "blockNumber": 5910411, + "transactionHash": "0xf43d0c4eb88e8b5498e5005ce9b655951193b8967f541e57d539bfeb2158338f", + "address": "0x0000000000000000000000000000000000008008", + "topics": [ + "0x27fe8c0b49f49507b9d4fe5968c9f49edfe5c9df277d433a07a0717ede97638d" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002d0000000000000000000000000000000000000000000000000000000000008008000000000000000000000000000000000000000000000000000000000000800e5b9293fc53c92862e5fc0385d4d72ecbaca3d823f010b5b99cdc6ff86ef006d1", + "logIndex": 1, + "blockHash": "0x58d5384727293feea48a065cfc5cebf8e403968840f374c02102483e5632f9f5" + }, + { + "transactionIndex": 0, + "blockNumber": 5910411, + "transactionHash": "0xf43d0c4eb88e8b5498e5005ce9b655951193b8967f541e57d539bfeb2158338f", + "address": "0x0000000000000000000000000000000000008008", + "topics": [ + "0x3a36e47291f4201faf137fab081d92295bce2d53be2c6ca68ba82c7faa9ce241", + "0x000000000000000000000000000000000000000000000000000000000000800e", + "0x5b9293fc53c92862e5fc0385d4d72ecbaca3d823f010b5b99cdc6ff86ef006d1" + ], + "data": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000c1ba0bc80000000000000000000000010020019000000be10010009c00000be101008041000000c0011002100000000001000414000000400200043d00001d7c0000213d2f1f2f1a0000040f000000000001004b0002000000010355000000000068004b000000000701034f0000000008980436000000007907043c00000060033002700000000003010019000000000101043b000000000004004b00000000002104350000001f013000390000000008020019000000000032043500000005053002720000001f0430018f00000be1033001972f1f2f150000040f0000000002000019000000400010043f00001d7c0000c13d00000be10200804100000be10020009c0000000000120435000000000015043500001d7a0000213d000000200030008c000000000300003100000005044002100000000000540435000000000606043b000000000021004b000000000003001f00000000050340190000010005500089000000000656022f0000000305500210000000000112019f00000c240030009c0000000000100439000000000575019f00000000055601cf000000000757022f00000000075701cf000000000121019f00002be40000213d0000001f0550019000000005045002720000000007040433000000000641034f000000000031043500002f210001043000000004001004430000000102004039000020f10000613d0000000505500210ffffffffffffffff000000000500001900000be40010009c000000040020008c0000000006620019000000000131019f0000000007870436000000006806043c00001d820000613d000000050650021000001d7a0000413d000000000601034f000000000001043500000c27011001c7000000400110021000000be301100197000000000002004b00000c22021001970000000000430435000000400220021000000040033002100000002005000039000000c0022002100000000002000414000003890000213d000000000025043500000000010000190000000006520019000000000709001900000c1c011001c7000000400040043f000000000100041000000c220110019700000be40040009c000000400100043d00002be40000c13d00000000044a001900000be1030000410000000000a7004b00000be10090009c00000be10030019d00002bea0000213d0000000004490019000080020200003900000be10040009c0000000000130435000080050200003900000c31011001c700000be10030009c000000400030043f000020e50000013d000000400030008c0000000100500190000000010500403900000be100a0009c00000c2b0100004100000c22033001972f1f2d7f0000040f000000000101043300000be103008041000003890000c13d00002d5d0000613d0000000100100190000000010100403900000be302200197000000000003004b000000630000213d000020e40000013d00000000080a001900000000064a0019000000000200601900000060011002100000000000350435000000400400043d000000000014043500000c090020009c00000be101000041000000000505043b00002bec0000613d000000400a00043d0000000002010433000000400900043d0000000009a90436000000008a08043c000000440210003900000c13011001c70000000001000412000000010200003900000be40020009c000000240000044300000c180100004100000be104008041000000000079004b0000002401200039000000000202043b00000000001004350000000001000411000000600110027000000c350200004100000000030104330000000001920019000000000014004b000000050660021000000be10010019d000000440320003900000020012000390000002003000039000000400020043f00002bea0000413d00000be20110019700000be10200004100000000004204350000010003300089000000030330021000000c1902000041000000000565034f000000000805034f0000000205000367000080090200003900000be40030009c00000be30210019700002d500000013d0000000f02000029000000600030008c0000004005000039000000000206001900000c1d03000041000000640210003900000000030204330000000001090433000000000001042d000000400300043d000000200320003900000be10050009c000000000012004b000000000300001900001d7a0000613d000000130a000029000000000535022f0000001f033001900000003f03300039000000a0012000390000006401000039000000240320003900000024021000390000006401200039000000000032004b000000040040008c000000400090043f000000040060008c0000000402a000390000000004000414000000120200002900001f2c0000413d00000c340020019800000000010a0433000000000200041000000000030940190000010004400089000000030440021000000c1e0020009c000000440120003900000c0401000041000000000002043500000be40050009c00000c1c01000041000000040010043f00000c1b0100004100000012030000290000000f0100002900001f2c0000213d0000000001a20019000000120400002900130000000a001d00000015090000290000001c030000290000800a0200003900000c260100004100000c240010009c000000000706043300000be8011001c7000000800120003900000044010000390000002001000039000000400500043d00000be40090009c00000000010004160000000b06000029000000000204043300000000006104350000003f0110003900000000020500190000000002a1001900001d7a0000013d00000000010a40190000001c0200002900000000013101cf000000000131022f000000000504043300000020021000390000001801700039000000000646022f0000001b09000029001b00000009001d000000040050008c0000001f0310003900000be101100197000000000141034f000000000204001900000c0402000041000000000161019f000000010200c039000000440300003900002f200001042e000003890000413d0000008003000039526f75746550726f00000c240020009c00000c330110019700000000010004150000001b0a0000290000002002000039000000000019004b00000060033002100000000000230435000000000024043500000004013000390000000401700039000000010300c0390000004000a0043f00000c1901000041000000000057004b001300000003001d0000001701700039000000000201043b000000040190003900000c250200004100000000020004110000000506100272000000000705043300000000090400190000008004000039000000400050043f00000c1a0400004100000004021000390000000202000039000000000585019f020000000000000000002d510000013d000000070c00002900002bea0000613d0000000006630019000000000903001900000000076300190000000003140436000000000043004b00000000033400190000006004000039000000010220018f000000000113019f0000001a0400002900000c36010000410000000a040000290000001b0b000029000000000441001900000c3e011001c700000be301700197000000c003400210000000000505043300000c6302100129000000600500003900000c41011001c70000000000340435000000000053043500001d7a0000c13d000000200010008c00001dc50000613d0000001101000029000000000151019f00000000053501cf00000000070a0019000000050430027200000c56044001970000003f0440003900000be2044001970000001f0430003900000be10330019800000c5504000041000000c0031000390000001c090000290000000004190436000000000605043300000c2501000041000000000109401900000004029000390000000002030433000000000474019f000000000747022f00000000074701cf000000000151034f000000050550027200000be10500804100000c20011001c700000c190010009c000000020300003900000100077000890000000307700210000003890000613d000000010100003900000be30010009c00000c220990019700000be30020009c000000000006004b0000000004000019000000000100041a00002bea0000013d00002bed0000413d0000000e03000029000000000001042f00000000010000020000000005020433000000200020008c00000000000404350000004401900039000000040490003900000000020940190000001b030000290000001b0200002900000009040000290000000a0200002900000c29011001c70000000000360435000000000373019f00000000033501cf000000000737022f00000000073701cf000000000664001900000000076400190000000506300272000000000431043600000c2204100197000000600100003900000be1031001970000004004a000390000008003200039000000000065043500000024029000390000000003054019001300000001001d0000001f011000390000000001030433000000000878022f00000013030000290000000401400039000000150a000029000000120500002900000be3016001970000006402a000390000000004020433000000120a00002900000013010000290000000401500039000000160200002900000064015000390000000000200439001200000004001d0000000000760435001100000005001d00000024031000390000001a0600002900000c190020009c00000000004504350000001f0450018f000700000005001d000000000035004b00000005020000290000000601000029000000630000c13d00000be7011001970000004001200210000000ff00100190000080100200003900000bec011001c70000000401700370000000000202041a0000004101000039000000000303043b0000008002000039ffffffffffffffe07fffffffffffffff0000000002000415000000080a0000290000000a0a000029000000080b00002900000009070000290000000a0300002900000000014101cf000000000141022f00000000064601cf00000000055200190000002402300039000000c0024002100000006002500210000000400130021000000080042000390000004404000039000000240420003900000c3204000041000000000056043500000000057501cf000000000575022f00000000087801cf00000000080604330000001f071001900000000002090433000000010050008c0000001808000029001b0000000a001d001800000001001d000000160210003900000000060104330000000001210049001b00000004001d001c00000009001d0000000b03000029001600000002001d00000009020000290000000100300190000000130900002900000000030a40190000002401a0003900000000002a043500000000052a043600000be400a0009c00000044042000390000002401400039000000440140003900000064014000390000001307000029000000000201601900000000020a4019000000000343019f000000400440021000000be1040000410000001f033000390000ffff0090008c001200000005001d0000000000520435000000000702043300000000080204330000001209000029000000600a00003900000013040000290000001c0400002900000c530100004100000024015000390000001308000029000000150700002900000c2b0200004100000000010404330000000001430019000000200550003900000000070704330000000006450019000000e00310003900000c540010009c00000c1e0010009c00000064030000390000000004000411000000160010006b000000a003100039001500000009001d0000002c017000390000000001050433000000000114043600000c300100004100000000029100190000000403900039000000070100002900000000044601cf0000000005590019000000000651034f0000001a0a00002900000000030200190000001c0600002900000be3041001970000054e0000213d000000600300003900000c1a030000410000000000410435000200000001001d00000004030000290000000602000029000000800010043f000000040200002900000000060000190000800d02000039000000000052004b000800000001001d0000008006000039000000200010043f0000038f0000c13d0000038b0000c13d00000100066000890000000306600210000003890000813d0000002402700370636573736f723a20ffffffffffffff80536166654552433202000002000000008000000000000000000000050220021000000c220220019700002e480000213d000000090900002900002a0d0000613d000000020d00002900020000000d001d000000070500002900002bed0000213d000000070a00002900000008050000290000000a09000029000a00000009001d0000000a060000290000000e0020006b000b00000006001d0000001201000029000000600130021000000be10900804100001e810000013d000020f20000013d000000130200003900000c4e0200004100001e730000013d000b00000003001d00000c1a0600004100000005022002700000000100400190000000010400403900000000001a004b000000000a910019000000000016043500001aaa0000613d0000000e0c000029000e0000000c001d00000000020d0019000000240190003900000000031904360000002001400039000000000064043500000000040404330000001b0700002900001c830000613d00000016050000290000000400d0008c000000150d0000290000001b060000290000006401900039001800000008001d00000be306100197001b00000007001d0000002a0210003900000015021000390000001402100039000000000309043300000018020000290000000009a100190000062f0000013d00000000041a04360000000001420019000000000405001900000015010000290000000004910019000000000304401900000000020440190000008401a0003900000c3d020000410000004403a0003900000c3a0030009c000000000212043600000c3a0010009c000000400120003900000c3c0020009c00000c3b020000410000004002200039000000000442043600000000040a0433000000600420003900000c390020009c00000c3802000041000000000097004b00000000023100190000002004400039000000000606043300000000095100190000001005000029001000000005001d0000000001720019000000000307401900000be10070009c000000a4011000390000000002210019000000000013004b000000200330003900000000058300190000000004230019000000a4027000390000008402700039000000000017043500000c4d01000041000000240170003900000044027000390000006401700039000000400700043d0000000400600443001300000007001d000000000100601900000000012100d9000000000221001a0000001506000029001100000002001d00000c490020009c000000110a00002900110000000a001d0000069a0000613d000000010020008c00000000040a4019000000c40330003900000c4001000041001200000001001d00000c4801000041000000800030019000000be20210019700000c4201000041001500000003001d00000011020000290000004402500039001300000008001d0000000008010433000000000715001900000104044000390000000003040433000000e40540003900000044054000390000006405400039000000a40540003900000c440300c04100000c4503000041000000a005000039000000c40340003900000000003a043500000c4303000041000000400a40003900000c3c0040009c000000000013041b000000000103041a00001d830000613d000000440310003900000000010b043300000000054a0019000000000a3b04360000000000b4004b00000000044b0019000000400b00043d000000600b000039000000800a000039000000050020008c000000ff0230018f0000001c010000290000000b04000029001c00000004001d000012b10000013d2f1f21150000040f00000be3023001970000001501600039000000190500002900000008030000290000000005290436000a00000004001d000000000016004b00000040014002100000001101000039000000000171019f000000000034004b000000000443001900000c2204300197000000000005004b000000050300002900000000005104350000000401200039000000000100003100000006030000290000000401000029000000000023004b00000005010000290000000103000039000000000223019f00000be90400004100000003030000390000033c0000c13d00000000050004112f1f05500000040f00000be30030009c000000000101041a000000020500003900000c0e0220019700000c0d0050009c00000c0b0050009c000000000057043500000000056501cf000000000565022f000000000868022f00000000086801cf0000000008070433000000a007700039000000000575034f000000000098004b0000000008b8043600000000ab0a043c000000000a05034f000000a009700039000000a0080000390000000507700210000000000557034f0000002005800039000000000065004b0000002405500039000000800990003900000c090090009c0000003f099000390000000408500039000300000002001d0000006402700370000600000002001d000000000302043b00000be30040009c000001040060008c0000000002020433000000000062004b000000a002200039556e6b6e6f776e2000000004000000000000004400000000636573736f7220690000002400000000eeeeeeeeeeeeeeee00000084000000004f776e61626c653a0000000200000000000000000000000100000000ffffffff00000c6a0300004100002ed50000213d00000000020a001f000000030220008a00002e7a0000613d000000040100003900020000000a001d000000040220008a00002e480000c13d000021210000613d0000000809000029000800000009001d0000000301000029000000090100002900000007040000290000000b010000290000000b020000290000000f04000029000000000015004b000800000005001d000027b80000613d00002b800000013d00002a0b0000613d000026b90000613d000000050ee00210000000000e000415000026490000613d0000000000c4043500002bea0000c13d000025e20000613d00080000000a001d000021260000813d000a0000000a001d0000004401500039000021260000613d0000000b0a000029000b0000000a001d000900000001001d000000090300002900002c030000613d00070000000c001d000900000007001d00000c3301b001970000000000260435000a00000001001d0000000e020000290000000a080000290000000b07000029000b00000007001d000900000004001d0000000e0000006b0000000f03000029000a00000006001d0000000e01000029000900000003001d000000400190021000000000001904352f1f2e940000040f00000021030000390000002403000039001c00000003001d00000040024002100000001d0300003900000c5a03000041000000000636022f00000000063601cf00000c470300004100000c460300004100000012010000390000002a0300003900000c590300004100000c5803000041000000050700002900000007020000290000006002100039000000400210003900001c7e0000613d000000440520003900000020052000390000000002030019000000150500002900000010020000290000001601000029000000000201001f00001aa30000613d000000000114004b000000000027004b000000000082043500000000070904330000001606000029000000000152001900000c1d040000410000002402a000390000001a02000029000000180a000029001600000005001d001500000006001d00001aa70000613d00000000011501cf000000000515022f0000010001100089000000000717022f00000000071701cf00000003011002100000001f011001900000179c0000613d0000000005000415000017300000613d0000000000b40435000016ca0000613d00000c4c0040009c00000c63031001670000000000a2004b00000000013100aa000000000082004b00000c4b0330009900000c4b0030009c00000c4a03300197000000ff0540018f00000c250500004100001f9f0000613d00000be303600197000000ff0080019000000c320300004100001c830000813d001b00000006001d00000c340030019800000c330150019700000c34006001980000007f0130018f000000000201001900000000060060190000000006010019000000800100008a0000002b02100039000000170210003900000be302700197001a00000004001d00000be3057001970000003e01100039001a00000006001d001500000004001d00000029021000392f1f2d720000040f00001f2c0000613d0000000a01000029001300000009001d000000000072004b00000019010000290000000004004019000000010410008c0000001a030000290000002000a0008c001a00000003001d000012b10000c13d000000170000006b001500000002001d001a00000002001d001b00000002001d0000069a0000c13d000000000208001900000c57011001c7001300000004001d00000c3f010000410000008402400039000006980000613d0000ffff0030008c000000240130003900000000011304360000001502000029000000000308043300000000082a043600000c630250016700000c3a0050009c00000012060000290000000002070019000000040070008c00000c1904000041001300000002001d001200000002001d0000069a0000013d000000040080008c00000000030a043300000c240040009c0000001f0540003900000000033a0019000000200040008c00000c50011001c70000069a0000813d0000000001310019000000000191004900000be3028001970000000006420019000000000534001900000057027000390000004403900039000000000a19043600000c370100004100000cb60000613d0000001302000029000f00000001001d00001d8d0000613d000000200050008c000000000501001900000011040000290000000d05000029000000010030008c00001d990000613d000000000305043300000000020a043300001d930000013d00150000000a001d000000130600002900000000060204330000002c0270003900000a490000613d0000000403a0003900000080004001900000000001034019000009550000613d001000000009001d000000020120018f00000ed40000613d001200000009001d00001e460000613d000000000549001900000000093a04360000000000a4004b000008c80000613d0000008009000039000000ff0020019000000be301800197001500000007001d000000160000006b000000000141001900000037047000390000001c05000029000000840340003900000c1903000041000007ac0000613d000000120b00002900120000000b001d000000a00510003900000a720000613d0000000f0a000029000f0000000a001d00110000000b001d00001ddb0000613d0000071e0000613d00000c090010009c00000c0b0010009c001200000003001d0000002f017000390000ffff0190a11a000000000941a0a90000ffff0110a18f00000003027000390000000001020433000000020270003900001dd60000613d000000040240003900000be30130019700000024024000390000000005190436000100000004001d001a00000005001d00000be3033001970000000400200443000500000003001d000600000004001d0000000001050019000000600220021000000000070104330000000501100210000000050110027200000003020000290000000101000029000000000046043500000000044501cf000000000545022f000100000005001d0000000604000029000000000801034f0000001f0350003900000003040000290000052a0000613d0000000006040433000000060800002900000001006001900000000106004039000000000553001900000be1043001970000000303000029000000c40010043f000000a40010043f000000840010043f000000040030008c0000000000030435000000000403043b000600000001001d0000000102200039000000000021041b00000c2302200197000000000201041a00000be3051001970000000003000414000000000031004b0000000504000029000001eb0000c13d00000c03011001c7000000000010041b00000000040004150000000004000031000600000003001d0000000206000039000000000007004b00000c220bb00197000000000808043b000000000404043b00000c08011001c7000000240060008c00000c190050009c000000000025041b00000c0f022001c700000c0c0520019700000c0a0520019700000005072002720000001f0620018f0000000005250019000000800020043f0000001f09200039000000000287034f0000002302500039000000000502043b000000e402700370000200000002001d000000c402700370000000a402700370000400000002001d0000008402700370000500000002001d0000004402700370000000000402043b0000000402700370000001e50000613d0000001f02100039000000000323022f0000010002200089000000000424022f000000030220021000000c1403300197000000000301041a0000000201000039778f701c6a8db8f834cd92433c250f5fac07f3b1dc836f7909c586ba00d81b107400000000000000766520616d6f756e7420706f736974696261636b3a206e6f5377617043616c6c6e69737761705633636573736f722e75736f757263650000756e6b6e6f776e206c6c2066726f6d206261636b3a206361ffffffffffffffc0706f6f6c207479706500000000000000ffffffffffffff60fffffffffffffff5636f6d6d616e6420636f646500000000963b34a500000000643d6f317d8b8994a485854ae0d91f160d69ea16f234a8702db5ddd0b42bdbca0000008000000000696e7075742062614d696e696d616c206f6c6174696f6e006c616e63652076697472616374000000206e6f6e2d636f6e2063616c6c20746f416464726573733a6f6e20646964206e206f706572617469303a20455243323065640000000000006f7420737563636500000003ffffffe06c206661696c65646576656c2063616c303a206c6f772d6cffffffffffffff1ff18d03cc00000000000000000000000376657300000000006f6c20726573657257726f6e6720706f022c0d9f00000000ffffffffffffffdf00000000000f42400000000000ffffff0000ffffffffffff0902f1ac000000003a20756e65787065776170556e695633636573736f722e7363746564000000005d951d5263988d25efd1fc6a5064884900000000fffd896300000001000276a4128acb08000000002e1a7d4d00000000d0e30db00000000097da6d3000000000000000a40000000002b9446c00000000ffffffffffffffbf4ffe34db00000000ffffffffffffff9fdf23b45b00000000627dd56a000000003df0212400000000095ea7b300000000f7888aec0000000074207375636365657420646964206e6f303a207065726d696400000000000000000000e400000000d505accf00000000023a8d90e8508b8302500962caba6a1568e884a7374b41e01806aa1896bbf2657ecebe0000000000dd62ed3e00000000125fc972a6507f396b1951864fbfc14e829bd487b90b72539cc7f708afc6594470a0823100000000ffffffffffffff007320706175736564000000640000000073206c6f636b6564ffffffffffffff5f23b872dd000000004e487b7100000000a9059cbb0000000000000000eeeeeeeeab882de59d99a32eff553aecb10793d015d089f94afb7896310ab089e4439a4c00000064000000806865206f776e65726973206e6f7420742063616c6c6572200000020000000000ffff00ffffffffff6e6572206f7220617420746865206f776572206973206e6f52503a2063616c6c67656420757365722070726976696c650000002000000080ffffff00ffffffff00000100000000000000ff00000000000000000100000000000000ff00000000ffffffffffffff7f00000020000000000000008400000080646472657373000065207a65726f20616572206973207468206e6577206f776e08c379a0000000000000000000000080000000002646478b0000000023a69e7500000000046f7da20000000047f8bd41000000002c8958f6000000006b2ace87000000006678ec1f000000006678ec1e000000002c8958f5000000008456cb5900000000715018a60000000093b3774c000000008da5cb5b000000008da5cb5a00000000cd0fb7a7000000009a1f340600000000fa461e3300000000f2fde38b00000000f2fde38a000000009a1f340500000000715018a5000000800000010000000040000000000000010100000000ffff000000000000e3b4186f6b6457e019497f9722a3daaf1344cd1fd0a4f2848be0079c53165914ffffffff0000000000000001ffffffe000000000000022770000000000002233000000000000220700000000000021c30000000000002162000000000000213e00000000000009b40000000000000810000000000000085400000000000008ea000000000000074000000000000006b2000000000000136c00000000000013470000000000001319000000000000130800000000000012fa00000000000012d200000000000010d4000000000000065700000000000012b6000000000000067d000000000000064f000000000000064000002f1f0000043200002f1d0021042300002f180021042100002f140000613d00000c6d011001c700002eff0000413d000000000121043a00000000020200310000000502400270000000390300003900000c6c0300004100002eea0000013d0000003e0300003900000c6903000041000000800230003900002ef50000813d00000c6b0030009c000000440200003900000044043000390000002004300039000000010130036700002ed50000a13d0000001f0040008c000000000016041b00000001011001bf00000be70170019700002ee10000613d00002ee10000213d00000000008901a0000000010900203900000000090000190000000108006039000000000800001900002ed70000c13d000000000058004b0000000008000411000000000706041a00000000012100190000001f0230003900002ea30000a13d00002e990000413d00000020022000390000000006240019000000000521001900002ea30000613d00000000013204360000000043010434000000400230021000000001020000290000000201000029000100000003001d00002e8c0000c13d00002e500000613d00002e4e0000c13d0000002001a0003900002e4e0000a13d0000001f0010008c00002e4e0000213d00002e470000613d00002e7b0000613d000000020a00002900002e3a0000013d00002e200000613d00002e640000613d00002e300000013d00002e1d0000c13d00002e150000013d00002e150000613d00002de80000c13d0000000008030019000000000653001900002dec0000613d00000000035a04360000000000a3004b00000c560330019700000be20330019700002e130000613d00000be105300198000200000004001d00002dfc0000013d000000000232019f00000000022401cf00000000032301cf0000000001130019000000000414034f00002dfc0000613d00002daa0000c13d0000000007030019000000000604034f000000000513001900002dae0000613d000000020400036700000000031a04360000001f0210018f000000010300403900000000022a00190000003f0220003900002dfb0000613d000000000100003200002dbd0000c13d000000002302043400000c5503000041000000400140003900002e480000813d00000c680040009c0004000000000002000000800110003900000c670300004100000c660300004100002d6b0000c13d00002d6f0000613d00002d4a0000c13d00002d4e0000613d00002d5d0000013d00002d500000c13d00002d3b0000c13d00002d3f0000613d00002d2c0000c13d00002d300000613d00002d1d0000c13d00002d210000613d00002d0e0000c13d00002d120000613d00002cff0000c13d00002d030000613d00002cf00000c13d00002cf40000613d00002ce10000c13d00002ce50000613d00002cd20000c13d00002cd60000613d00002cc30000c13d00002cc70000613d00002cb40000c13d00002cb80000613d00002ca50000c13d00002ca90000613d00002c960000c13d00002c9a0000613d00002c870000c13d00002c8b0000613d00002c780000c13d00002c7c0000613d00002c690000c13d00002c6d0000613d00002c5a0000c13d00002c5e0000613d00002c4b0000c13d00002c4f0000613d00002c3c0000c13d00002c400000613d000021210000013d00002bd00000c13d00002bd40000613d00002baf0000013d00002bae0000613d000021230000013d00002bb40000013d00002ba00000c13d00002b910000c13d000021230000613d000000020310006c00002d420000613d00002b6c0000613d00002b590000c13d00002b5d0000613d00002b720000613d00002b7e0000013d00002b370000c13d00002cbb0000613d000000000205401900002b180000013d00002b040000c13d000000040250003900000c330130019700000024025000390000000400c0044300002d330000613d00002abf0000613d00002aac0000c13d00002ab00000613d0000000209000029000000010a000029000200000009001d00002cf70000613d00002a7f0000613d00002a6c0000c13d00002a700000613d000700000003001d00000000020c001900002ac40000013d00002a940000c13d00002a830000013d00002a530000c13d0000000400c0008c00002ad50000013d00002a470000c13d00002a290000613d00000000011d00490000000502e00270000021260000013d00002cd90000613d00002cac0000613d000029c30000613d000029b10000c13d000029b50000613d000029c70000013d0000299a0000c13d000a00000005001d0000008402500039000000000591001900002d630000613d0000295f0000613d0000294c0000c13d000029500000613d000029d10000013d00002c8e0000613d000029270000613d000029150000c13d000029190000613d0000292b0000013d000028fd0000c13d000000000475001900002d240000613d0000000808000029000028b30000613d000028a10000c13d000028a50000613d000800000008001d000028bc0000613d00002d150000613d000028540000613d000028420000c13d000028460000613d0000285d0000613d00002d060000613d0000280a0000613d000027f70000c13d000027fb0000613d000800000004001d000900000009001d000029740000a13d000000000551001900002ce80000613d00002c2b0000013d000021260000c13d000027a60000c13d000027aa0000613d0000000004060019000027850000013d000027800000813d0000278a0000013d000027750000c13d00002cca0000613d000029dc0000013d000029d70000813d000700000004001d00002c9d0000613d0000272a0000613d000027170000c13d0000271b0000613d0000000709000029000029640000013d000029360000c13d000a00000002001d0000280f0000013d000027df0000c13d000000000429043600002a0a0000613d000026a70000c13d000026ab0000613d000000010e00002900010000000e001d0000268d0000613d000000130ee0008a000026600000613d000000140ee0008a000026370000c13d0000263b0000613d0000261d0000613d00002a0d0000c13d00002bea0000a13d0000001f0020008c000025f30000613d000025d00000c13d000025d40000613d0000270a0000013d000027050000813d000700000006001d0000276f0000013d00002c700000613d0000257a0000613d000025670000c13d0000256b0000613d0000000b09000029000b00000009001d0000257e0000013d000025480000c13d000025420000a13d000025380000413d000025420000613d00002c7f0000613d000028d60000013d0000006403200039000026ca0000c13d0000252b0000013d000027d00000013d000027bb0000c13d000026e10000613d000021260000a13d0000000a0700002900002c610000613d000a00000007001d00002c180000013d00002c520000613d000024690000613d000024570000c13d0000245b0000613d0000249c0000013d000024820000c13d000024340000a13d0000242a0000413d000024340000613d0000000801000029000700000002001d00000000018100a900002c120000613d00000c4b027000d1000023ec0000613d000023e70000613d000000000172004b000000040500002900002c430000613d0000000708000029000023c50000613d000023b20000c13d000023b60000613d000000060a00002900060000000a001d000500000007001d000400000005001d000700000008001d000023cf0000613d000000000702c01900000000080260190000000008070019000000000a59043600000c490070009c00000000070a043300002c340000613d000023660000613d000023540000c13d000023580000613d00070000000a001d000025b40000013d0000259f0000c13d0000000000c3043500000be30cc00197000000000d00041500002be40000813d00000c650020009c000023200000c13d00080000000b001d000400000006001d000300000005001d000600000008001d000029e70000013d0000273f0000c13d000029f40000c13d0000236c0000013d0000233a0000c13d000022d20000c13d0000272e0000013d000025900000c13d00000be305c001970000006401a0003900000000061a04360000004401a00039000022ff0000c13d000000000516019f0000007f0150018f000000000b13019f0000008000500190000900000002001d0000000006050019000000000c0204330000251e0000013d000025080000c13d0000000802000029000a00000008001d000024e20000613d000025030000013d000024e40000c13d000024aa0000613d000027620000013d0000274d0000c13d000021e90000c13d0000258e0000c13d000022da0000c13d0000246d0000013d000024390000c13d000021be0000a13d000021b40000413d000021be0000613d0000000908000029000900000008001d0000218a0000c13d000022ce0000013d000022ba0000c13d00000be306200197000800000003001d000a00000003001d00002bf30000013d00000bdb0002a13e001000000004a01d001200000001a01d00002be30000813d0000000c0020006c00000010041000690000000a0110006900002c2b0000613d0000212c0000013d000e0be30020019b000f0be30030019b00002be30000613d000c00ff00500194000d00000001001d00000000050604330000000106500039000000000501043300140000000000020000210e0000c13d000021120000613d000020ff0000c13d000021030000613d000020de0000c13d000020e20000613d000020cf0000c13d000020d30000613d000020c00000c13d000020c40000613d000020b10000c13d000020b50000613d000020a20000c13d000020a60000613d000020930000c13d000020970000613d000020840000c13d000020880000613d000020750000c13d000020790000613d000020660000c13d0000206a0000613d000020570000c13d0000205b0000613d000020480000c13d0000204c0000613d000020390000c13d0000203d0000613d0000202a0000c13d0000202e0000613d0000201b0000c13d0000201f0000613d0000200c0000c13d000020100000613d00001ffd0000c13d000020010000613d00001fee0000c13d00001ff20000613d00001fdf0000c13d00001fe30000613d00001fd00000c13d00001fd40000613d000020f10000013d000020e40000c13d00001fc10000c13d00001fc50000613d00000060020000390000008001000039000000040320003900000c5f030000410000002f0300003900000c5c0300004100000c5b0300004100001f850000c13d00001f890000613d00001f760000c13d00001f7a0000613d00001f670000c13d00001f6b0000613d00001f580000c13d00001f5c0000613d00001f490000c13d00001f4d0000613d00001f3a0000c13d00001f3e0000613d00001f950000813d000000000131004b00001f230000c13d00001f270000613d00001f140000c13d00001f180000613d00001ddd0000c13d00000c2f0300004100000c2e0300004100001ee60000c13d00001eea0000613d00001ed70000c13d00001edb0000613d0000006001a0021000001ecd0000613d00001ebb0000c13d00001ebf0000613d0000000505a002720000001f04a0018f00001eac0000c13d00001eb00000613d00001e9d0000c13d00001ea10000613d00001e8e0000c13d00001e920000613d0000004002c0021000000be10c00804100000be100c0009c00000c610300004100000c600300004100001e630000c13d00001e670000613d00001e540000c13d00001e580000613d000000400290021000001ef80000613d00001e3f0000c13d00001e430000613d00001e300000c13d00001e340000613d000000600140021000001e260000613d00001e130000c13d00001e170000613d00000005054002720000001f0340018f00001e040000c13d00001e080000613d00001df50000c13d00001df90000613d00001f010000013d00001e7e0000c13d0000004002a0021000000be10a00804100001de30000613d0000006001500210000000000442001900001dc30000613d00001db00000c13d000000050640021000001db40000613d0000001f0350018f00001e700000013d000000020600002900000c5e04000041000000040300003900000c5d011001c7000000000431004b00001f2a0000413d0000000602300029000000060240014f000000010400008a00001fe60000613d00001d3a0000613d00001d270000c13d00001d2b0000613d00001d3e0000013d00001d0e0000c13d00001d4e0000013d00001d020000c13d00001f8c0000413d000000010020006c0000000a0220003900000c640020009c0000000802200029000000080330014f000000010300008a00001fd70000613d00001cd20000613d00001cbf0000c13d00001cc30000613d00001cd60000013d00001ca60000c13d00001d820000013d00001cf00000c13d00001c990000c13d0000001c01100069000000180110006900001c6c0000c13d00001c700000613d00001c4b0000013d00001c4a0000613d00001c800000013d000000000073043500001c500000013d00001c3d0000c13d00001c2e0000c13d00001c800000613d000000000017004b00000be307400197000000130310006c000021060000613d00001c0a0000613d00001bf70000c13d00001bfb0000613d00001c100000613d000000000629043600001c1c0000013d00001bd50000c13d00000000094100190000207c0000613d00001bb70000013d00001ba20000c13d0000000400b00443000020f70000613d00001b5d0000613d00001b4a0000c13d00001b4e0000613d0000000e0a000029000e00000004001d00001c1f0000013d000020d60000613d00001b1c0000613d00001b090000c13d00001b0d0000613d00000000020b001900001b620000013d00001b320000c13d00001b200000013d00001af00000c13d0000000400b0008c00001b730000013d00001ae40000c13d00001ac60000613d00000000011c00490000000d0200002900001dd60000013d00001a910000c13d00001a950000613d000000010220015f00001a750000013d00001a670000c13d0000001805000029000020b80000613d001800000005001d00001a540000013d00001a400000c13d001b00000001001d000020400000613d000019fa0000613d000019e80000c13d000019ec0000613d000019fe0000013d000019d00000c13d00000018030000290000000004740019000020a90000613d000019850000613d000019730000c13d000019770000613d00180000000a001d0000198e0000613d00000c630240016700000c3a0040009c000020c70000613d000019260000613d000019140000c13d000019180000613d000019300000613d0000209a0000613d000018dc0000613d000018c90000c13d000018cd0000613d00001c830000013d00000be3014001970000208b0000613d000019a90000013d001800000000001d00001a0b0000013d0000206d0000613d000018490000613d000018370000c13d0000183b0000613d0000184f0000613d000000000062043500000c3f0200004100000000007204350000004404a000390000008404a000390000205e0000613d000017f60000613d000017e30000c13d000017e70000613d001800000003001d000018740000013d00001aa60000613d0000178a0000c13d0000178e0000613d000017700000613d000d00000005001d0000001d0550008a000017470000613d0000001e0550008a0000171e0000c13d000017220000613d000017040000613d00001aaa0000c13d000016db0000613d000016b80000c13d000016bc0000613d00001b2d0000013d0000204f0000613d000016740000613d000016610000c13d000016650000613d00001a610000013d000017fd0000013d000017c70000c13d00000be3052001970000001b01000029000000000071043500000be30710019700001c830000a13d000020310000613d0000161e0000013d000016040000c13d000015ff0000a13d000015f50000413d000015ff0000613d0000000001a100a900000c4b028000d1000015b70000613d000015b20000613d0000001603000029000000000182004b0000001105000029000020220000613d000015900000613d0000157d0000c13d000015810000613d0000159a0000613d000000000802c019000000000a026019000000000a0800190000001804000029000000000b590436000000000008004b00000c490080009c00000000080a0433000020130000613d000015300000613d0000151e0000c13d000015220000613d000015370000013d000015040000c13d000020040000613d000014d10000613d000014bf0000c13d000014c30000613d000014d50000013d000014a10000c13d0000149c0000a13d000014920000413d0000149c0000613d00000000000504350000008405400039001600000001001d0000169c0000013d000016860000c13d001b0000000b001d0000000000b3043500000be30ba00197000000000c00041500000000010d0019000014360000c13d00150000000d001d001000000006001d00001ff50000613d000014020000613d000013ef0000c13d000013f30000613d001a00000008001d0000000004094019000000000343001900000000039300490000188e0000013d000018790000c13d0000189b0000c13d000016780000013d000016490000c13d00000be302a00197000014160000c13d00000c1900d0009c00000be30d700197000000000116019f0000007f0140018f000000000513019f000000000a020433000014060000013d000013d00000c13d000013660000a13d0000135c0000413d00000000075100190000006901100039000013660000613d000000440490003900000024049000390000000003030433000000000849043600000c37040000410000000004340019000000000403043300000049031000390000002903100039000018e20000013d000018b00000c13d001600000006001d00000be3082001970000000003290436000018590000613d000017ad0000613d0000162c0000613d000000ff003001900000002a0110003900001a240000013d00001a0e0000613d000016470000c13d000013ad0000c13d000000020230018f0000146a0000013d0000144e0000613d000014f70000013d000014fc0000c13d000014ea0000613d00000be30630019700000041011000390000003e02100039001800000004001d001c00000002001d00000bcf0002a13e001c00000004a01d0000001403000029000000170010006b000000010100008a00001eed0000c13d000000010220003a00001f6e0000613d0000129a0000613d000012870000c13d0000128b0000613d001b00000005001d000012a00000613d00000c2a01000041000000000029004b000000000942001900001f5f0000613d00000c2d011001c700001ede0000613d0000122a0000613d000012170000c13d0000121b0000613d000012580000013d000012450000c13d00000c2c01000041000000ff0110018f0000001a01000029000000a401400039000000c40140003900001f500000613d000011bf0000613d000011ac0000c13d000011b00000613d000011c50000613d00000c2a02000041000012b10000813d0000001c0700002900001ecf0000613d000011730000613d000011600000c13d000011640000613d000b00000004001d00000c2400a0009c0000001f01a0003900001eb30000613d00000000000a001f000011290000613d000011160000c13d0000000000b7004b0000111a0000613d00000000050a401900000be10a300197000011780000013d000011480000c13d001c00000007001d0000000401a0003900000c28010000410000008201600039001800000002001d000000620160003900000042016000390000004101600039000000210160003900001fae0000013d00001fb00000013d0000000006610019000010ce0000613d0000001f04400190000010bc0000c13d00000000090100190000000007610019000010c00000613d00000005064002720000000001420436000000000051004b000000000125001900000c520510019700000c5101500197000010d10000613d00000be10410019800001f0c0000613d00001e950000613d000010570000613d000010450000c13d000010490000613d0000105b0000013d0000102e0000c13d000000440240003900001f7d0000613d00000ff30000613d00000fe00000c13d00000fe40000613d000010070000a13d00001f1b0000613d000006980000013d00000f950000c13d00000f990000613d0000109f0000013d00000000040800190000109e0000613d000010700000013d0000106b0000813d001100000004001d00000ff70000013d00000fca0000c13d000010650000013d00001e5b0000613d00000f250000613d00000f130000c13d00000f170000613d00000f290000013d00000efb0000c13d000000000214004b000000000465001900001f410000613d00000eb10000613d00000e9f0000c13d00000ea30000613d00000eba0000613d000000000026004b00001f320000613d00000e570000613d00000e450000c13d00000e490000613d00000e5f0000613d001200000006001d000000000609043300000000002a004b000000000a92001900001ea40000613d00000e0f0000613d00000dfc0000c13d00000e000000613d00000011090000290000000002230436001100000003001d00000f740000013d00000f700000813d000000000063043500000c1a05000041000000200420003900001d7c0000013d000010a80000a13d00000f620000c13d00000db70000c13d00000be30680019700000c2201500197000000110700002900001e0b0000613d0000001508000029000000000004001f0000000007030433000000000631034f000000050330021000000d930000613d00000d800000c13d00000d840000613d0000000503500272000000000504401900000f790000013d00000dc60000c13d000000150400002900001dfc0000613d00000d530000613d00000d400000c13d00000d440000613d00000d570000013d00000d210000c13d00000d1b0000a13d00000d110000413d00000d1b0000613d00001e4c0000613d00001d830000013d00000ed40000c13d00000cd30000c13d00000ca40000c13d00000ca80000613d000000640310003900000dd10000c13d00000fbb0000013d00000fa80000c13d00000f340000613d00000d040000013d0000069a0000a13d00001e370000613d00000c070000013d00000bed0000c13d00000be80000a13d00000bde0000413d0000000f0800002900000be80000613d00000010010000290000000000070435000000200170003900000c4c0070009c00000000014100a900000c4b02c000d100000c6305100167000000000042004b00000ba00000613d00000000015100aa00000b9b0000613d0000000000c2004b00000c4b0550009900000c4b0050009c00000c4a055001970000000001c2004b00000000020b0433000000400070043f00000be40070009c0000000007b100190000001f0150003900001da80000613d000000000005001f000000000797019f00000000077801cf000000000979022f00000000097901cf000000000906043300000000066b0019000000000861034f00000b810000613d0000001f0770019000000b6e0000c13d0000000000d9004b00000000090b001900000b720000613d00000005067002720000000007054019000000200700003900000be1055001970000006005500270000000110c006029000000000c0500190000000004056019000000ff0330018f0000000f0b0000290000000e0d000029000d00000003001d000f00000004001d00000000010440190000000000910435000e00000002001d00000000022404360000004001a0003900000c490030009c0000000004a100190000000f0500002900001ded0000613d00000b230000613d00000b110000c13d00000b150000613d0000000002090019000f00000005001d00001e280000613d00000ade0000613d00000acc0000c13d00000ad00000613d00000d730000013d00000d6f0000813d001500000008001d001100000007001d0000107a0000013d00000f540000c13d0000001003000029001300000006001d000010870000c13d00000b290000013d00000af70000c13d000000040090008c00000000051a043600000a660000c13d00000a370000c13d00000a3b0000613d000000000092043500000a720000c13d00000d990000013d00000a9d0000c13d000000000334019f00000c4f042001970000007f0330018f00000000054a043600000c36040000410000002404a00039000000000224019f000000000445019f00000c4f052001970000007f0440018f00000c62060000410000004402a0003900000042027000390000002e027000390000001a027000390000001902700039000000180270003900000d680000013d0000001009000029000000130120002900001e860000613d0000097d0000613d00120000000a001d00130000000b001d000009710000c13d00001ef60000613d000009430000c13d000009470000613d0000097d0000c13d00000d670000c13d00000a7a0000c13d00000cd70000013d000008e50000c13d000008b60000c13d000008ba0000613d00000c3c0030009c00000080031000390000002404100039000000000301043b00000c4d0000813d00000c170000613d00000cf70000013d00000ce10000c13d001100000001001d00000c150000613d00000ae20000013d00000aae0000c13d0000080b0000a13d000008010000413d0000080b0000613d00000be303900197000000ff00a0019000000be302b0019700000000010c0433000007d70000613d000000100c00002900100000000c001d00110000000d001d000007cb0000c13d00001de10000613d00000000010d043300000000044c00190000079a0000c13d00000000070c001900000000054c00190000079e0000613d000000000c3d04360000000000d4004b00000000044d0019000000400d00043d000000600d000039000000800c000039000007d70000c13d0000000009010433000000000a010433000000000b01043300000a6a0000013d0000073b0000c13d0000070c0000c13d000007100000613d00000c3c0050009c00000080051000390000000000930435000009eb0000813d00000be309200197001000000003001d000012c20000013d00000bd50002a13e001a00000006a01d001b00000004a01d001c00000001a01d000010f90000813d000000180060006c00000001066000390000001b04100069000006a10000013d00160be30010019b000010f90000613d001800ff002001940000000101100039000b00000001001d0000122e0000013d000012010000c13d001b00000003001d001a00000001001d00000008040000290000112e0000013d000000000a000031000010fd0000c13d00001e6a0000013d00000bc90001a13e001400000003a01d000000050010008c000000010110008a000000ff0120018f000000010160003900001c870000813d0000000c01000029001700010010003d0000001701000029000006370000013d001900000005001d001700000000001d00090be30010019b00001c870000a13d000000000061004b000c00000002001d0000000001610019000000000106043300000000026504360000004001500039000400000001001d000000000502001900001fc80000613d000006080000613d000005f50000c13d000005f90000613d0000060d0000013d000005dc0000c13d0000061e0000013d000005d00000c13d000000000409043300001d7a0000a13d0000001f0030008c00001fb90000613d000005a40000613d000005910000c13d000005950000613d000000000141019f000000c0013002100000004004100210000005a90000013d000005770000c13d000005b90000013d000000000401043b0000056b0000c13d001c00000006001d00000c190040009c000800000002001d001e00000000000200000000064300190000002403600039000000000343034f00000004046000390000054e0000813d000000230460003900000be40060009c000000000604043b0000004404300370000000000504043b0000000404300370000000240230037000000001030003670000054e0000a13d000000630010008c0000000202000029000000000012041b00000c0b011001c700000c0e01100197000000000102041a0000000001140019000000000616034f0000051b0000613d000005090000c13d000000000806034f00000000071400190000050d0000613d000000020600036700000000041304360000001f0510018f0000051b0000013d000004f20000c13d000004e80000013d000004e40000c13d000000020040006b000004ed0000013d000004d80000c13d00000003050000290000052d0000013d000004930000013d0000000106600029000004930000613d000004b80000c13d000000000779001900000001090000290000000507600210000004bc0000613d00000000051304360000001f0410018f000004d10000813d000000020330006b000004cc0000613d0000049e0000c13d0000044b0000013d00000000016101cf000000000161022f000000000767022f00000000076701cf00000000055400190000044b0000613d000004720000c13d00000000077400190000000507500210000004760000613d00000000045304360000001f0650018f000000fe0000013d000000000023041b00000c0b022001c7000000000203041a00000002050000290000045a0000c13d00000be105300197000004cd0000013d000004070000013d00000000015101cf000000000151022f00000000065601cf0000000604400029000004070000613d000004290000c13d00000000064800190000042d0000613d0000000504400272000600000006001d00000000064304360000001f0540018f00000c22053001970000001f03400039000004530000013d000000010500002900000002040000290000043c0000613d000004100000c13d0000048b0000013d000004860000c13d000000050000006b000004410000013d0000043e0000c13d000000c0025002100000051d0000013d000004980000413d000000020120006b000003fe0000013d000003fb0000c13d00000040015002100000044d0000013d00000c1d05000041000000180300003900000c2103000041000003920000013d00000c1f03000041000000300300003900000c120300004100000c1103000041000002a00000c13d000003680000013d000000240000c13d00000c170100004100000c160100004100000c0701000041000000e40010043f00000c060100004100000c050100004100000026010000390000037b0000c13d00000be30060009c000000000601043b000004900000013d000003f00000c13d000003bf0000c13d000100000006001d0000000005000410000000000035041b00000c0f033001c700000c0e0330019700000c0c0530019700000c0a05300197000000000303041a000000a003300039000003010000613d000002ef0000c13d000002f30000613d00000005073002720000001f0630018f0000000005350019000000800030043f0000001f09300039000000000387034f000000000063004b0000002303500039000000000503043b000000e403700370000300000003001d000000c403700370000000a403700370000400000003001d00000084037003700000004401700370000500000001001d000000240170037000000c1001000041000000000031041b00000c0d033001c7000003570000c13d000001eb0000013d00000006022001af0000000003000411000000000200041a000000440060008c00000bed010000410000012000300443000001000010044300000160001004430000014000000443000000800100043d0000024b0000413d00000001022001bf000000200030043f00000004011000290000000501200210000002680000613d000000000032041b00000beb033001c700000bea03300197000000000302041a000600000007001d00000be8012001c7000000c003300210000000000020041b000000000262019f000000000600041100000be702100197000002200000413d00000000024204360000000014010434000002260000613d000000000053004b0000000003130019000000c001100039000400000004001d0000000004240436000000a005600039000000000054004b000500000005001d000000000445001900000be6044001970000003f043000390000000503200210000003890000013d2f1f2ea70000040f2f1f05330000040f000000000106001900000bf20020009c000003200000613d00000bf10020009c000002ad0000013d2f1f2efc0000040f00000c1802000041000000080440008a0000800501000039000700000000001d00000bfd0020009c000002b10000613d00000bfc0020009c000004040000013d000003b40000c13d000001ba0000613d000001a80000c13d000001ac0000613d000100000002001d00000bf70020009c000002a90000613d00000bf60020009c000004550000013d000000000068041b00000c0f066001c700000c0e0660019700000c0d0070009c00000c0c0760019700000c0b0070009c00000c0a07600197000000000606041a00000000080600190000000000060435000000a00680003900000000006904350000000006a6019f00000000067601cf000000000676022f000000000a7a022f000000000a7a01cf000000000a090433000000a009900039000000000696034f0000000509900210000001520000613d0000013f0000c13d0000000000ba004b000000000ada043600000000cd0c043c000000000c06034f000000a00bb00039000000050b900210000000a00a000039000001430000613d00000005098002720000001f0780018f000000000667034f0000002006a00039000000000069004b00000024099000390000000009890019000000800080043f0000004000b0043f000000800bb0003900000c0900b0009c0000003f0bb000390000001f0b80003900000be40080009c0000000008a7034f000000040a9000390000002308900039000000000908043b000000a40870037000000be30050009c000000840570037000000064047003700000004403700370000000c40060008c00000c020020009c00000c010020009c000002970000613d00000c000020009c000000010100c03900000bf40020009c0000026f0000613d00000bf30020009c000001e10000213d00000bf00020009c000004470000013d0000000005000031000003e50000c13d0000000005000414000003a00000c13d0000000605000029000000c60000613d000000b40000c13d000000b80000613d00000bff0020009c00000bfe0020009c000001cf0000213d00000bfb0020009c000001050000a13d00000bfa0020009c000002070000a13d000000a002100039000000000403c01900000be50020009c00000be50400404100000be50220019700000be503008041000000c00100043d00000be30070009c000000a00700043d000000400060008c000000000242019f00000000022301cf00000000042401cf0000000004010433000000a001100039000000000317034f00000005013002100000004b0000613d000000380000c13d000000000041004b0000000001810436000000005805043c000000000507034f000000a00440003900000005043002100000003c0000613d00000005036002720000001f0260018f00000be2022001970000001f026000390000000002000416000000a001000039000002a40000013d00000c15033001c7000003450000c13d00000bf90020009c000001f00000613d00000bf80020009c000001640000213d00000bf50020009c000000de0000213d00000bef0020009c0000006d0000a13d00000bee0020009c000000e002200270000000000207043b000000000167034f000000690000413d000000290000c13d0001000000070355000200000067035500000be1061001970000000001070019000800000000000200030000000000020bc70bc6000c0bc500a20bc40bc30bc200010bc10118007200d60bc00bbf0bbe0bbd0bbc0bbb0bba0bb90bb80bb70bb60bb50bb4007d00fb0009007d017b00b900a100280bb301c40492049104900bb20bb10bb0001c0baf0051007d0bae0bad032600ac0bac0bab0baa0ba90ba80ba70ba60ba50ba40ba300510ba20ba10ba0048f0b9f0b9e0b9d048e01c3048d048c0b9c0b9b00130b9a01170b990b9800590b9700430059048b032500c80b960b950051017a0b940b930b920012007d0b91032400990b9000e800a001c200e700e6003c0179007d005b01160b8f0b8e0b8d0b8c0b8b048a0b8a007d032301170489048803220059023b03210487009f032001780059031f009f04860485009f0484017800590483009f031e0482009f0481017800590480047f00e50059047e0325023a031d047d009f00990083047c0177031c0177031b0083031a00d5047b047a031903180059031703160479047803150b8903140313031203110310030f0b8801790b87030e0239030d030c030b030a008e02380309030801370307032600e4013601c1047703060237047603050236030404750303047400060b8604730b850b8400d40b8300980b820b810b800b7f0b7e0b7d0b7c007d0472011700fb0009007d01c000110176005900a001750235000500020003000401bf01be0008000101740011030201bd005b0b7b00060020001f001e01bc047101160b7a0b790b78048a0b77007d0b76011701c0001101760059023b009f0b7501c3030100590b7404700b73008e0b7200590b710b7000fa00590b6f000b023a0b6e0b6d046f0b6c00830b6b046e0b6a046e0b6900830b680b670b660b650b640b6300590b620b610b600b5f0b5e0b5d0b5c0b5b0b5a0b590b580b570b56046d0b550b540b5301730b520b510b500b4f002701720b4e0b4d0b4c0b4b0b4a0b49046c0b480b470b460b4502370b440b4302360b420b410b400234030001710b3f0b3e0b3d046b0b3c007d032301170489048803220059023b03210487009f048601780059031f009f04840485009f031e017800590483009f04810482009f0b3b017800590480047f00e50059047e0325023a031d047d009f00990083047c0177031c0177031b0083031a00d5047b047a031903180059031703160479047803150b3a03140313031203110310030f0b3901790b38030e0239030d030c030b030a008e02380309030801370307032600e4013601c1047703060237047603050236030404750303047400f9005800d40b370098046a0b360b350b340b33007d00fb0009007d009702330b320b31011504690b3000250b2f0b2e0b2d0b2c0b2b0b2a007d00fb0009007d0b290b280b27006300020003004f011600fb0009007d017b00b902ff023202fe01bb046800050002000300040467023102fd02fc0230001a000104660b260b250b240b2300f90b220b210b200042007600620083007501ba0b1f005f04650b1e0b1d0b1c0b1b0b1a005900510b19022f0b18032200590b1704640b16017b0b150b140b130b120006001f001e005404630071007c0b1102fb04620b10023102fd02fc0b0f001a01b900010174005001360b0e022e0b0d0b0c0b0b01b80324005102fa0b0a001b03200b090b08007b005000a00b07000500020003000401bf01be0008000101740011046104600b06045f022d045e02f9007b00c702fa0b050b040b030b0200f80b010b000aff01160afe011700fb0009007d01c0001101760059023b03210082001b0114046b02f8007d0afd00810afc00d302fe00a001750235000500020003000401bf01be0008000101740011046104600afb045f0afa00fb0009007d017b00b900a100280af901c40492049104900af80af7001f001e01bc011600fb0009007d017b0050022e0af601160323011701c00011045d017600590af500110af40af3001101760059031f009f0af201c30af1030100590af0045c0aef01c30aee030100590aed0aec00e500590aeb0aea023a031d0ae901c300b800830ae80177031c0177031b0083031a00d50ae70ae6031903180059031703160ae50ae403150ae303140313031203110310030f0ae201790ae1030e0239030d030c030b030a008e023803090308013703070ae0045b01710adf0ade030602370add030502360adc0adb03030ada0ad90234022c0ad803000006022b02f701700ad7000502f6045a0ad6009802f50ad50472011700fb0009007d01c00ad40ad30059017b00b902ff023202fe01790ad200e3022e00f804590ad104580ad004570acf0ace0acd003c00e3022e00f8045904580acc04570acb003c00a001750235000500020003000401bf01be00080001017400060011030201bd0aca0ac900a001750235000500020003000401bf01be00080001017400060011030201bd0ac800d20ac7003b00e20ac6003b009e0ac5003b00e3002002f400ab003b001f001e01bc0096003c01bb0113046800050002000300040467023102fd02fc001a00010466005b003c006300950ac40ac3006300950ac2001600d10ac1001601120013013500ab001600020003004f016f003c00aa0ac002f300d2003b00e2022a00a1005000d0006e00cf002000e1008300ce001c01b9007a0abf00c6016e0abe001f001e0057002e00820abd01110abc00aa0229003b00e202f2003b009e02f6003b00f70020008c008300f6001c02f7007a01b80abb0aba000600c50134005300a9006e009e0456003b00f70020008c008300f6001c02f7007a0ab9001f001e01bc00c6016e0ab8002e00820ab701110ab6001f001e005400020003000400350ab50ab4022d0ab300f500b70042001a000a0010000f0069045500120ab2022800010ab1023402f9022f04560ab00aaf0aae006200830aad007900cd0aac00c4045401b70230045300e50083045201ba01330aab0aaa0aa90aa800250aa704510aa6000c000e000d000b0aa502f10aa401100aa3002d04500aa2002c0011002b0aa10aa00113008b0a9f01b90a9e00f500b70042001a000a0010000f00690a9d02f10a9c022801320001044f023401b901b8022c044e0a9b030001710a9a03040a990a980a9700e50083044d007900cd02f000c402ef02ee0230045300620083045201ba005f0a960a95016d0a940a930a92044c013100940093009d0a9101790a900040016c0a8f023901300a8e0a8d001102380a8c0a8b02ed00210a8a00f500b702f2044b0042001a000a00a200a8010f00090a89022800010a8802f20a870a8600e800a002ec00e700e6003c00430083010e007900cd02f000c402ef02ee0042007600620083007501ba005f0a850a84044a00b6012f0a830a820a810a8000b500940093009d0a7f00120a7e00a700b40a7d00e000f4016b016a008e00df04490448016904470a7c044600020003004f0a7b008a00580a7a010d0a7900980a78006d009c02eb001f001e0057002e04650a770a7604450a7500f500b7044e0042001a000a00a200a8010f00090a74022801320a73010e007900cd02f000c402ef02ee0042007600620083007501ba005f0a720a710a70044404430a6f0a6e0a6d013100940093009d0a6c02f10a6b0a6a0a69002d0442003400330027002b002c0032003102f30001044f01360a680a670a660a6500630a64001300020003004f04710116006d009c02eb0168001f001e0441002e003c00f302270a630a620a610a60009f0a5f0a5e0a5d0a5c0a5b02270a5a00a60a590a580a57045c006202270a560a5502ea0227044000c3005b003c0a5401b6043f043e0a53012e02260a5202e9022b0a510a5000f20030043d0005000200030004004e00f10008000100490a4f02250a4e00920224012d02e8043c01670016046300d40a4d00240a4c00680111008d01660a4b0071007c0a4a0a49005e010c043b00080223010b0010000f001900230056002a01b5016d0a48004c005d0048004700670a4700120a4600400222022100e00130016b016a002700df010a0220016901b40029000a00010a4502250014005200a50028001b003e004300070001001d001c002f00220a440a430a4202f900b901b3031e043a0a4100f20030021f003d0005000200030004004e00f100080001004900f9001102250a40009201650439021f0050021e006e000500440a3f00240a3e0068006600de00550002000300040046005e010c043b00080223010b0010000f001900230056002a01b5016d0a3d004c005d0048004700670a3c00120a3b00400222022100e00130016b016a002700df010a0220016901b40029000a00010a3a022500140061021d00c7005b00800a3900990007007f001d0133002f00220023004b00c20a380a37001c0a360a350a340a3300200a3202e70a3100a10a300a2f02e70a2e0a2d0a2c0a2b02e601640a2a007b02ea0a290a28009100210a270a260a250a240a230a2202e500a40021009201650163012c00dd0013000502e400440a210a200a1f02e500a400210440012e0a1e02e302e202e500a4002100600050008a04380020021c021b0a1d0a1c043702e104360020009b00300097003d009a00050002000300040070006f000800010049012b0005008100440a1b002401620a1a00f200300060003d0005000200030004004e00f100080001004900110a1902e6021a0a18009100210a170a1600600a1502e002300a140001043502df0a1301b20a120a1102e60a10013004340433005a043200c1005a02de02dd04310430042f0a0f0a0e0a0d0a0c0a0b012a00910021010900a401290021021900a40a0a0021042e00a4042d00210a090060042c02180a080063009500f0001601080229001601b10a070115003b042b00070a0601330a0500070161007200ab0089021701600053001f001e0054007b00020003008800350058001f001e0057003500b301b0001a00ef000a0010000f0069015f02dc02db042a015e015d015c015b02da02d902d800420076006200070075001d005f02d7015a00250a0402d6004c01590048004701280a0300cc042a0110006500b20107015800cb001100b1010601050157008b02d50001042900090a0204280427007800300127003d0005000200030004004e006c0008000100490011000901560155007b000900ef0426042500f300220154004b0a01012a0a000021010909ff0021021909fe002100a1021609fd006300c000f00016010800bf001602d40215005301b100530214003b0213000704240133021200070211007200ab0089016101600053001f001e0054007b00020003008800350058001f001e0057003500b3021800ee042301b0001a042200ca00ef000a0010000f0069015f09fc09fb0421015e015d015c015b09fa09f909f800420076006200070075001d005f09f7015a002509f609f5004c09f400480047012809f300cc0421011009f200b20107015800cb001100b1010601050157008b09f1000109f0000909ef09ee09ed007800300127003d0005000200030004004e006c0008000100490011000901560155007b000900ef00ca042209ec09eb00f300220154004b09ea0009001b011400280153000902d309e9017102d201bb003502d1008a00f8021b0420003b02d0000709e802cf012602ce02cd02cc02cb015202ca02c902c80089041f041e015200c8012502c7008909e702c6008902c502c40089008209e602c30042021002c2020f01af020e01b709e509e4020d004d0005004409e3002409e2012a02c10021041d020c041c0021041b09e101ae02c0041a009b00300097003d009a00050002000300040070006f0008000100490011020b01ad005009e0003d0005000200030004004e006c00080001004900110009020a020900ed00c900f901ac01040013041902bf0020020801ab00130207002101aa00b30013000502be004409df002409de012400910021010900a40021041802bd09dd009b00300097003d009a0060042c09dc00050002000300040070006f00080001004909db00630095020600b00108013400b0043c09da01510115003b042b000709d90072012909d800070161007200ab02050151021701600053001f001e0054007b00020003008800350058001f001e0057003500b3001a000a0010000f0069015f041702040416015e015d015c015b00900065041500420076006200070075001d005f0414015a002509d70413004c005d00480047012809d600cc04160110006b00b20107015800cb001100b1010601050157008b00dc00010412000909d500ee0411007800300127003d0005000200030004004e006c0008000100490011000901a90155007b000901040203041000f300220154004b09d4012400910021010900a402bd0021040f000109d3000909d200a10216040e09d1006300c000f00016010800bf001602d40215005301b100530214003b02130007021701290072021200070211007200ab02050151016101600053001f001e0054007b00020003008800350058001f001e0057003500b3001a000a0010000f0069015f02dc02db040d015e015d015c015b02da02d902d800420076006200070075001d005f02d7015a002509d002d6004c015900480047012809cf00cc040d0110006500b20107015800cb001100b1010601050157008b02d5000109ce000909cd09cc09cb007800300127003d0005000200030004004e006c0008000100490011000901a90155007b000901a809ca00f300220154004b00dc0009001b011400280153000902d3007800300127003d0005000200030004004e006c0008000100490011000900c900c402bc006e01230104001300710129008d040c004f0058001f001e0057002e005e00b3001a0010000f00690019000a000109c9001402bb09c80028001b003e004309c700070001001d001c09c6012a007b09c5005a09c400c1005a09c301a7005a09c20202005a09c10201005a009009c0041e0200040b09bf00be008709be09bd09bc00db00a3008709bb09ba012202ba00be008709b909b809b709b609b500db00a3008702fb040a012101a600e40058022600d409b4046a09b300a1021609b2006300c000f00016009509b1010800bf001601b1021500530214003b0213000704240133021200070211007200ab0089016101600053001f001e0054007b00020003008800350058001f001e0057003500b301b0001a00ef000a0010000f0069015f02dc02db0409015e015d015c015b02da02d902d800420076006200070075001d005f02d7015a002509b002d6004c015900480047012809af00cc04090110006500b20107015800cb001100b1010601050157008b02d500010429000909ae04280427007800300127003d0005000200030004004e006c0008000100490011000901560155007b000900ef0426042500f300220154004b00dc0009001b011400280153000902d3009002b909ad000509ac09ab002409aa04080407005a000909a9040e0078003009a801a502b8003d0005000200030004004e006c0008000100490011000909a7040600c9008a02b7008b000501a4010d09a6002409a501ff09a409a3007700ee008d0103004f001f001e0057002e01fe09a20096011109a101fd007902b60071007c0120007701fc02b501fb01fa00020003000400460405001a01a30010000f0019007400bd002a0038002509a00086000c0085000e000d000b099f0037099e003a0065002d0039003400330027002b002c0032003100260029000a0001099d0014005200ec0028001b003e004300070001001d001c002f00220074004b013601c1008102b402b30404099c007700af01f9005400020003000400350150099b02b2000802b10010000f001900bc014f002a00380025099a0086000c0085000e000d000b099900370998003a0065002d0039003400330027002b002c0032003100260029000a000100ef0997099600140061099500a6005b008000620007007f001d005f002f002200bc004b040302b000220402099400220993007b0002002201a202af0051040100820401012d099209910990006d008d098f004f0058001f001e0057002e005e00b3098e098d0008098c098b01a1098a040003ff03fe09890988098703fd0986098503fc0984098309820981044c098000940093097f097e097d097c00a7097b097a0173097909780977046f017201a00976097501af0974000a00010973097200ae0971097002ae0007096f03fc004b096e096d00da01a4096c096b00eb096a09690968014e023200da09670966014e096500da09640963023200eb02ad03fb096202ac0400001b01f802af02ab02b809610007096003fa001c02aa095f0078003002a90005000200030004004e006c0008000100490011000902ae01a100c902a802a701c40013095e005002a6002002a502be001302a402a3012400d90013019f02a200200009095d02a100c8095c02a0029f014d0026029e029d095b095a029c00e4005800d6095900240958019e0061029b000200030088029a02aa0066029900550046001f001e0057002e00be001a0010000f00690019000a0001095701f70014005202980028001b003e004300070001001d001c002f0956010200920955041b0954009b00300097003d009a00050002000300040070006f0008000100490011020b01ad0050019d003d0005000200030004004e006c0008000100490011000900c9008a01f60104001301f501ab001301f400130207008b01a200b30013000503f9004409530024095200a10216095100050002000300040070006f000800010049012b0063095002060053008102d40121010800bf001601b1021500530214003b02130007021701290072021200070211007200ab02050151016101600053001f001e0054007b00020003008800350058001f001e0057003500b3001a000a0010000f0069015f0417020403f8015e015d015c015b00900065041500420076006200070075001d005f0414015a0025094f0413004c005d004800470128094e00cc03f80110006b00b20107015800cb001100b1010601050157008b00dc000104120009094d00ee0411007800300127003d0005000200030004004e006c0008000100490011000901a90155007b000901040203041000f300220154004b00c20009001b01140028015300090104094c094b00c602970066019c005500020003000400460096001a0010000f00690019000a0001094a020a020900ed0296001400610295011f005b008000fa0007007f001d00d5002f002203f703f6012c011e0013020c019b002003f50009094903f4017a03f303f20294019a029300a609480947029200e400d803f10044094600240945019e006103f003ef0002000300880068006600de00550046006d009c014c0046021800ee001a00ca00ef0010000f001900230056002a00380944004c005d0048004700670943003709420025003a006b002d0039003400330027002b002c0032003100260029000a000109410014005200a50028001b003e004300070001001d001c002f0022002303ee010200630058094000d4093f00240098093e03ed00b700f00042001a0010000f045503ec0056093d093c00ca0203093b004c0159004800470291093a003709390938093703eb002d0936003400330027002b002c0032003101520935000a000109340933093203ea0931010100c7005b008000990007007f001d00ac03e9002203ec004b0930006002ea02b303e8014b0170092f000503e7092e006202fa092d092c092b092a002601f3015100d0092901150016008c000701990072007a03e600020003004f001f001e0057002e01fe09280111092700050002000300040070006f000800010049001100c40926012d092503e500b9012303e400130071008d040c004f0058001f001e0057002e005e00b3000801a809240010000f001900230056002a00380923004c005d0048004700670922003709210025003a006b002d0039003400330027002b002c0032003100260029000a00010920001402bb091f091e001b003e01f201f700070001001d01260023004b091d029001f100d703e300b0005803e2091c091b02970077008d0103004f001f001e0057002e005e03e102b2000802b10010000f001900bc014f002a00380025091a0086000c0085000e000d000b091900370918003a0065002d0039003400330027002b002c0032003100260029000a00010917001403e001f7029600ae01010099000700ac00bc004b028f0007028e005f028d00620022028c014d00e5002200260198010703df0022028b020003de091600eb0090028a03dd00d703e300b0005803e2091502c002970077008d0103004f001f001e0057002e005e03e102b2000802b10010000f0019007400bd002a0038002509140086000c0085000e000d000b091300370912003a0065002d0039003400330027002b002c0032003100260029000a000102090911001400ae03e00296010100c7005b008000990007007f001d00ac0074004b028900070288001c00dc02870022028603dc0285002209100016090f00da03e4009b00300097003d009a00050002000300040070006f0008000100490011009001a601a1001603db008102840121028301f000d70420001600b901ef00130282004d00050044090e0024090d0077006601ee00550002000300040046014a0405001a01a30010000f0019007400bd002a00380025090c0086000c0085000e000d000b090b0037090a003a0065002d0039003400330027002b002c0032003100260029000a000109090014005200ec0028001b003e004300070001001d090800c4021c03da02b8012300b30013012903d9004d009b00300097003d009a00050002000300040070006f000800010049012b0005008100440907002401ed0906006d090500af02810054000200030004003503d80904015001000903001f001e005400020003000400350082090200f500b709010042090000f500b700f00042001a000a00a200a8019700820132019603d700b800070014006100ff01950063014900a600420076006200070075001d005f019400b6019300a708ff019200b5013100940093009d08fe00cc03d700b4019100b200f40190018f008e00b100cb018e018d018c08fd006d01ae00660280005500020003000400460096001a0010000f00690019000a000108fc00ed00140061014900a6005b008000620007007f001d005f002f02df08fb010201a10071007c00550002000300040046018b000801ed0010000f001900230056002a003801a808fa004c005d00480047006708f9003708f80025003a006b002d0039003400330027002b002c0032003100260029000a000108f700140061027f00a6005b008000620007007f001d005f002f00220023004b00c203d60020027e005008f6002001f401ab001303d5008b01a200b3001303d401f6004d009b00300097003d009a00050002000300040070006f000800010049012b00050081004408f5002400ca08f401a10071007c00550002000300040046014a001a00ca0010000f0019007400bd002a0038002508f30086000c0085000e000d000b08f2003708f1003a0065002d0039003400330027002b002c0032003100260029000a000108f00014005200ec0028001b003e004300070001001d001c002f0022007403ee010203d300b700f0027d0042001a000a0010000f006900190001040608ef03fe00140052027c0028001b003e004300070001001d001c002f0022027e005000dd002802b3000600c50134005300a90206005300d0006e00f70020008c000700f6001c01a5007a03e603d2001a0224000a00a200a808ee08ed000603ea08ec00ff08eb08ea08e900420076004300070075001d001c08e800b608e700a708e608e500b508e400940093009d08e308e208e100b408e000e000f4016b016a008e00df044904480169044701ec03d108df01ec03d108de08dd0442002108dc009103d0002108db009103cf002108da009108d9002108d8009103ce0021009008d7027b08d601eb0013006000b901ef01ea00130005018a004408d508d4002408d303cd01e903cc027a03cb0068006600de00550002000300040046005e01e801e70008014801620010000f08d203ca005608d1003808d0004c005d0048004708cf08ce003708cd0025003a006b002d0039003400330027002b002c00320031002608cc000a000108cb03c908ca005200a50028001b003e004300070001001d001c08c9002203ca004b00c203c803c708c803c600dd02e301e903cd03cc027a0077006601ee00550002000300040046018b00ee01ae0008020300ca0010000f001900230056002a003808c7004c015900480047029108c6003708c50025003a0065002d0039003400330027002b002c0032003100260029000a000108c408c3001400610279011f001b003e00fa00070001001d00d5002f00220023004b040303c508c208c102e80167018900b00058014700d408c00068008d0166004f001f001e0057002e005e018a03c401ff000801a801ed0010000f001900230056002a003808bf004c005d00480047006708be003708bd0025003a006b002d0039003400330027002b002c0032003100260029000a000108bc001400ae021d00c7005b008000990007007f001d00ac0023004b00c2019d0078003003c3003d0005000200030004004e006c0008000100490011000900f000c9008a08bb03db001308ba0278001308b908b803d6002001f60188001301f5003b01f401ab001308b7008b01a201eb00130005018a004408b6002408b500f00071007c00550002000300040046018b000801620010000f001900230056002a0038022308b4004c005d00480047006708b3003708b20025003a006b002d0039003400330027002b002c0032003100260029000a000108b10014005200a50028001b003e004300070001001d001c002f00220023004b00c203c803c703c600dd018702e302e2006d02e1006602800055000200030004004608b0001a0010000f00690019000a000108af02060014005208ae08ad005b008000fa0007007f001d00d5002f002208ac0439012c0189022a0005014700d408ab006800af018600540002000300040035005e018a01e808aa0008011d01620010000f001900230056002a003808a9004c005d00480047006708a8003708a70025003a006b002d0039003400330027002b002c0032003100260029000a000108a6001402bb00a50028001b003e004300070001001d001c0023004b03f908a503c2027702f808a408a308a203c208a1027a0469021a02760201005a027500c1005a02de02dd08a0089f0006089e00e3002002f403c1010401e6000200030088001f001e00540035003c03c000c1005a027401a7089d005a089c01a703bf005a089b009101ea0021089a0060000903be0273089900a100090898000600aa00bf003b00e200fe00cf002000d2004d009e004d00e1000700ce089703c000c1005a02740202005a03bd01e5002100a10009089603bc089501e400c1005a027401a7005a089401ec08930051089200a1000903bb089103ba089001e400c1005a088f00910021009b00300097003d009a088e027303cf088d00600009088c00a10009088b00050002000300040070006f00080001004900110092012d088a0272012c00fe00050188088903e70888027108870024088608850168008908840883088201b4009208810880018500560026087f087e0151087d0082087c087b00420210087a020f01af020e01b708790878020d004d000500810044087700240876011c01e3021a02760875005a02750202005a01e400c1005a03b901a7005a03b8040703be005a00ff009101ea0021040b03b703b603b502ba03b4008703b3022408740873087208710870086f011b03b200a30087002e0092019b00200146016303b103b000a30087002e016700200270004d0184004d0005086e0044086d0024086c03bd01e500210051086b03bb0078003003af01a501e3003d0005000200030004004e006c000800010049001100090145026f00c900f902b70021000502780044086a0024086901fd0079086808670071007c0120006801fc086601fb01fa0002000300040144010c0865001a0223010b0010000f001900230056002a00380864004c005d0048004700670863003708620025003a006b002d0039003400330027002b002c0032003100260029000a000108610014005200a50028001b003e004300070001001d001c002f0022002303ae010202c003fa086001b0042d00a10009085f085e01e2000600aa00bf003b0060005000a9006e00cf002000d2004d009e004d00e1000700ce001c085d007a026e011d085c000600aa03ad003b01150016085b00d0085a00a9045b008c00070199007200c10058026d0859085802f50098085703cb000600aa00bf003b0060005000a9006e00cf002000d2004d009e004d00e1000700ce001c014b085603af0271007a026c01e1026f03c902e4017102d201bb003502d1008a00f8021b02f302d0000703ac02cf012602ce02cd02cc02cb015202ca02c902c8008900c8012502c7008903ab02c6008902c502c40089085508540082085302c30042021002c2020f01af020e01b708520851020d004d0005004408500024084f01fd007902b60071007c0120007701fc02b501fb01fa000200030004004601e2001a011d0010000f0019007400bd002a00380025084e0086000c0085000e000d000b084d0037084c003a0065002d0039003400330027002b002c0032003100260029000a0001084b0014005200ec0028001b003e004300070001001d001c002f00220074004b013601c1008102b4026b0404000600aa0229003b009e00fe00f7002000e2004d008c000700f6001c014b007a01b2026a009002b9027b000500d6084a0024084901ae007700af01f900540002000300040035015000be00ee000800ca0010000f001900bc014f002a0038002508480086000c0085000e000d000b084700370846003a0065002d0039003400330027002b002c0032003100260029000a00010845026a01b200ed001400610279011f001b003e00fa00070001001d00d5002f002200bc004b08440843002200fd02b0002201980269006d00220185084203aa005103aa03a908410268084003a801e0083f083e083d00d803ba0044083c00ee01b002710068008d0166004f006d009c014c0144005e010c0423000801a8010b0010000f001900230056002a0038083b004c005d004800470067083a003708390025003a006b002d0039003400330027002b002c0032003100260029000a000101e100ca0838001400ae01b20837027f00a6005b008000620007007f001d005f0023004b01df083600da083503a703a600eb03a503a40834014e00d300da03a30833014e03a200da03a1083200d300eb02ad03fb083102ac01e0001b01f801ea02ab01e303a000070267019d001c01e701830078003002a90005000200030004004e006c0008000100490011000901b2018700c902a802a701c40013027e005002a6002002a501ab001302a402a3012402780013019f02a200200009083002a100c8020902a0029f014d0026029e029d082f082e029c00e4005800d6082d0024082c019e0061029b000200030088029a02730066029900550046001f001e0057002e00be001a0010000f00690019000a0001082b026a0014005202980028001b003e004300070001001d001c002f082a010200050002000300040070006f000800010049012b0092021c0266006008290265082808270272012c00fe00050826010d082500240824006308230068006600de005500020003000400460096010c03bf001a01a3010b0010000f001900230056002a00380822004c005d0048004700670821003708200025003a006b002d0039003400330027002b002c0032003100260029000a0001081f0014005200a50028001b003e004300070001001d001c002f0022081e00020003004f0071007c01200144001f001e0057003502640263001a026e026201480143000a00a200a8010f000901180142039f00430007010e007900cd0079008a014101400042007600b800070075001d0072013f00b6012f00a7081d013e00b5013d00940093009d081c01de039f00b4013c017301dd01dc01a0008e017201db01da013701d90051081b00fd00510261011a00220182004b0168005100c8012500d301530051081a000600c501d8005301d7039e01d600b001f30183008c000701d5005f018100d8026d009808190071007c01d400c6016e01d3002e006d009c01d2003502640263001a026e026201480143000a00a200a8010f000901180142039d010e007900cd0079008a014101400042007600b800070075001d0072013f00b6012f00a70818013e00b5013d00940093009d081701de039d00b4013c017301dd01dc01a0008e017201db01da013701d900510261039c0816004000fd00510815011a00220182004b0168005100c8012500d30153039c08140040005102610813000600c501d8005301d7039e01d600b001f30183008c000701d5005f018100d8026d009808120071007c01d400c6016e01d3002e006d009c01d2003502640263001a026201480143000a00a200a8010f000901180142039b010e007900cd0079008a014101400042007600b800070075001d0072013f00b6012f00a70811013e00b5013d00940093009d0810039a039b00b4013c039900f403980397008e03960395039402ed02600051080f00fd005101750393011a00220182004b019f0009001b011400280393010200050002000300040070006f0008000100490011000600c501340053005000d0006e00f7002000e2004d008c0187000700f6080e02aa0392006800af018600540002000300040035018b03910100010c080d00080390010b0010000f001900230056002a0038080c004c005d004800470067080b0037080a0025003a006b002d0039003400330027002b002c0032003100260029000a00010809026c02ae01f700140061025f025e001b003e01f200070001001d0126002f00220023004b01df08080122038f008108070122038e0806080501f000d7080401a600e40058010d08030077008d0103004f001f001e0057002e014a010001e2001a011d0010000f0019007400bd002a0038002508020086000c0085000e000d000b080100370800003a0065002d0039003400330027002b002c0032003100260029000a000107ff001400ae010100c7005b008000990007007f001d00ac07fe00050002000300040070006f0008000100490011000600c5038d0053005000a9006e00cf002000d2004d009e004d00e10187000700ce001c0437007a07fd07fc00c603910066019c005500020003000400460150001a0010000f00690019000a000107fb0145026f026c00140052038c0028001b003e004300070001001d001c002f002207fa00dd0028026b000600c50134005300d0006e00f7002000e2004d008c000700f6001c01a5007a07f9006800af018600540002000300040035005e03d202180129000800ca00ef0010000f001900230056002a003807f8004c005d00480047006707f7003707f60025003a006b002d0039003400330027002b002c0032003100260029000a000101e107f5038b00140061025f025e001b003e01f200070001001d0126002f00220023004b038a029001f100d70389005800d6041a07f401ff0077008d0103004f001f001e0057002e005e00be00ee000800ca0010000f001900bc014f002a0038002507f30086000c0085000e000d000b07f2003707f1003a0065002d0039003400330027002b002c0032003100260029000a000101e107f0001400ae038b020a01a4010100c7017a025d00990007025c001d00ac00bc004b028f0007028e005f028d00620022028c014d00e5002200260198026907ef0022028b00b007ee038800eb0090028a01f100d70389005800d607ed01ff03d40077008d0103004f001f001e0057002e005e00be07ec000803900010000f0019007400bd002a0038002507eb0086000c0085000e000d000b07ea003707e9003a0065002d0039003400330027002b002c0032003100260029000a000107e8001400ae020a020501a4010100c7005b008000990007007f001d00ac0074004b028900070288001c00dc02870022028604020285002207e70016038700da01e3009b00300097003d009a00050002000300040070006f0008000100490011009001a607e60016038f008102840121028301f001880081040a012100b901ef00130282004d0005004407e5002407e40077006601ee00550002000300040046014a01e2001a011d0010000f0019007400bd002a0038002507e30086000c0085000e000d000b07e2003707e1003a0065002d0039003400330027002b002c0032003100260029000a000107e00014005200ec0028001b003e004300070001001d001c002f0022007403ae0102000600aa00bf003b0060005000a9006e00cf002000d2004d009e004d00e1000700ce001c014b07df007a01880078003003d0043d0005000200030004004e006c00080001004900110009014500c900f902bc002101aa004d00050188004407de002407dd00c607dc0066019c00550002000300040046005e001a0010000f00690019000a000107db014507da00140052038c0028001b003e004300070001001d001c002f0022005800d407d90024001b07d800020003004f001f001e0057002e0111001a07d7000a00a200a80197008201320196038600b800070014006100ff01950063014900a600420076006200070075001d005f019400b6019300a707d6019200b5013100940093009d07d500cc038600b4019100b200f40190018f008e00b100cb018e018d018c0001026b07d4005b07d3025b0385011c07d2018001a901bd07d1038400b901b303ce07d000f200300060003d0005000200030004004e00f10008000100490011019d014807cf00ea011b038300db00a30087002e0092019b0020014602660156011b00d900db00a30087002e016700200270004d0184004d000507ce07cd002407cc00920165016300600050021e006e0005004407cb002407ca006800af018600540002000300040035009607c9010c02bd001a01a3010b0010000f001900230056002a003807c8004c005d00480047006707c7003707c60025003a006b002d0039003400330027002b002c0032003100260029000a000107c50014005200a50028001b003e004300070001001d001c002f00220023004b0277014507c40068006600de00550002000300040046005e03c407c3000807c201ed0010000f001900230056002a003807c1004c005d00480047006707c0003707bf0025003a006b002d0039003400330027002b002c0032003100260029000a0001014807be0014005200a50028001b003e004300070001001d001c002f00220023004b00c2019d0078003007bd0005000200030004004e006c000800010049001100090187038200c900ea011b038300db00a30087002e008a043800200146008b0156011b00d900db00a30087002e0436002001f6004d01f5004d0005045a07bc002407bb006d01ae00af02810054000200030004003500960381001a0010000f00690019000a000107ba038200ed0014006107b9011f001b003e00fa00070001001d00d5002f0022047307b800f200300060003d0005000200030004004e00f1000800010049001107b7012d07b600dd0081018501220058010d07b50068008d0166004f001f001e0057002e005e0100010c0392000801a3010b0010000f001900230056002a003807b4004c005d00480047006707b3003707b20025003a006b002d0039003400330027002b002c0032003100260029000a000107b1001400ae021d00c7005b008000990007007f001d00ac0023004b00c207b0014500da07af006007ae07ad000603840050017007ac000500d407ab0024009807aa0380025a019a037f008900d007a901150016008c000701990072007a07a8001f001e00540002000300040035008207a700f500b7004207a60111001a000a00a200a80197008201320196037e00b800070014006100ff01950063014900a600420076006200070075001d005f019400b6019300a707a5019200b5013100940093009d07a400cc037e00b4019100b200f40190018f008e00b100cb018e018d018c00010435011c07a30180011c07a2018002e203c30170025907a100f2003000a1003d0005000200030004004e00f10008000107a0079f00920165016300a1005001670020018a00050044079e0024079d0068006600de00550002000300040046005e01e801e70008011d01620010000f001900230056002a01b5016d079c004c005d004800470067079b0012079a00400222022100e00130016b016a002700df010a0220016901b40029000a000107990014005200a50028001b003e004300070001001d001c002f00220023004b0798079701df00d300eb0796079500eb079407930792044501b3079100f20030021f003d0005000200030004004e00f100080001004900110790009201650163021f0050021e006e00050044078f0024078e0068006600de00550002000300040046005e01e801e70008011d01620010000f001900230056002a01b5016d078d004c005d004800470067078c0012078b00400222022100e00130016b016a002700df010a0220016901b40029000a0001078a0014005200a50028001b003e004300070001001d001c002f00220023004b00c2022c0789078802f800eb022c078700280786078500da0063037d02f60016010801e90016037c02e100b0037b0081001300020003004f0058001f001e0057002e078402310783078202ff0781037a001a000100c902df00c3005b003c00e800a001c200e700e6003c017f006300c00379001600950378001600d10377025800e800a0037600e700e6003c00c00375001600950374078001120122011e001301f50257001301f402560013006d009c02eb016f003c0006077f0038077e077d0045000c0015000e000d000b077c0082077b00250110077a00b2045003730372001100b1010601050113008b07790255006300950371001600d10370001601120013013500ab001600020003004f016f003c006d009c036f007b02540009077800770777077602540009077500c4036e00e3006e0123011e001301d1015607740006001800170773004a0045000c0015000e000d000b07720012003f00840006001800170771004a0045000c0015000e000d000b07700012003f00840006076f076e076d004a0045000c0015000e000d000b076c0082076b0040016c01d000b2016403730372001100b10106010501130021076a02550006001800170769004a0045000c0015000e000d000b07680012003f00840006001800170767004a0045000c0015000e000d000b07660012003f008400090765006802530764025400060018001700400763005c000c0015000e000d000b07620012003f007300060018001700400761005c000c0015000e000d000b07600012003f0073006300c0075f00160095075e001600d1036d001601120013013500ab001600020003004f0096003c075d075c075b0002000300880035003c0006001800170040075a005c000c0015000e000d000b07590012003f007300060018001700400758005c000c0015000e000d000b07570012003f00730006001800170756004a0045000c0015000e000d000b07550012003f008400060754075300400752005c000c0015000e000d000b075100120750016c01d000e0016401cf010a001100df01ce01cd01130021074f02550006001800170040074e005c000c0015000e000d000b074d0012003f00730006001800170040074c005c000c0015000e000d000b074b0012003f007300c0074a001600950749001600d1036c02580009074800c4036e00e3006e0123011e001301d101a9036b010401e600020003001f001e008800540035003c00060018001700400747005c000c0015000e000d000b07460012003f007300060018001700400745005c000c0015000e000d000b07440012003f00730743074200e800a002ec00e700e6003c00060018001700400741005c000c0015000e000d000b07400012003f00730006001800170040073f005c000c0015000e000d000b073e0012003f0073000600180017073d004a0045000c0015000e000d000b073c0012003f0084000600180017073b004a0045000c0015000e000d000b073a0012003f00840006001800170739004a0045000c0015000e000d000b07380012003f008400060018001700400737005c000c0015000e000d000b07360012003f007300c00735001600950734001600d1073302580006073200160731006e001f001e01bc005e003c00e3036a00f8008b018402570013026502560013006802530369016f003c0730072f00020003004f0324001f001e0441002e003c000600180017072e004a0045000c0015000e000d000b072d0012072c072b000600180017072a004a0045000c0015000e000d000b07290012003f00840006001800170728004a0045000c0015000e000d000b07270012003f00840006001800170726004a0045000c0015000e000d000b07250012003f008400060018001700400724005c000c0015000e000d000b07230012003f007300060018001700400722005c000c0015000e000d000b07210012003f007300060018001700400720005c000c0015000e000d000b071f0012003f00730006001800170040071e005c000c0015000e000d000b071d0012003f00730006001800170040071c005c000c0015000e000d000b071b0012003f0073000600180017071a004a0045000c0015000e000d000b07190012003f00840006001800170718004a0045000c0015000e000d000b07170012003f008400060018001700400716005c000c0015000e000d000b07150012003f007300060018001700400714005c000c0015000e000d000b07130012003f007300060018001700400712005c000c0015000e000d000b07110012003f00730006001800170710004a0045000c0015000e000d000b070f0012003f0084000600180017070e004a0045000c0015000e000d000b070d0012003f0084000600180017070c004a0045000c0015000e000d000b070b0012003f0084000600180017070a004a0045000c0015000e000d000b07090012003f00840006001800170708004a0045000c0015000e000d000b07070012003f00840006001800170706004a0045000c0015000e000d000b07050012003f0040016c01d000e0016401cf010a001100df01ce01cd011300210252001f001e0054002e003c00060018001700400704005c000c0015000e000d000b07030012003f007300060018001700400702005c000c0015000e000d000b07010012003f0073070006ff06fe06fd06fc00fe06fb06fa06f906f8001b06f7000106f6011c06f50180025106f402be045e06f306f202af03ff013004340433005a043200c1005a02de02dd04310430042f06f106f006ef06ee012a00910021010900a406ed0021021900a406ec0021042e00a40368002106eb036700dd0028025006ea000600aa0229003b00e200e9003b009e00fe00f70020008c003600f606e9012a00a40021010902c10021021901e50021012e024f06e80259000600aa00bf003b00d200e9003b0060005000a9006e009e017e003b00cf002000e1003600ce001c00ea036606e7007a06e6024e01e902e4017102d201bb003502d1008a00f8021b0365003b02d0003603ac02cf012602ce02cd02cc02cb015202ca02c902c80089041f01a4015200c8012502c7008903ab02c6008902c502c40089008206e502c30042021002c2020f01af020e01b706e406e3020d004d0005004406e2002406e1012400910021010901e50021040f000106e0000906df024d0250012e024f06de000600aa00bf003b00d200e9003b0060005000a9006e009e017e003b00cf002000e1003600ce001c00ea007a0078003000ea003d0005000200030004004e006c00080001008f0011000900fc024c013b008a02bc008b01a200d90013000500bb004406dd002406dc012400910021010900a402590021041806db009b00300097003d009a036700dd002806da00050002000300040070006f00080001008f0011000600c50134005300a900ed0053005000d0006e00f70020008c003600f606d9012a02c10021041d020c041c0021036406d8036306d70362009b00300097003d009a00050002000300040070006f00080001008f0011020b01ad00500233003d0005000200030004004e006c00080001008f00110009036103600189013b00f901ac00d90013041902bf00200208035f00130207002101aa00bb0013000506d6004406d5002406d4011c035e021a027606d3005a02750202005a01e400c1005a03b906d20181035d03b802010362035d00ff009106d1026006d003b703b603b502ba03b4008703b3022406cf06ce06cd00ea017006cc009006cb00d9001303b103b200a30087002e038e0020014606ca035c03b000a30087002e00d7002006c9004d000506c8010d06c7002406c6012e002806c5000600aa00bf003b00d200e9003b00e200fe009e017e003b00cf002000e1003600ce001c00ea007a00fc009002b9027b000500d606c4002406c304080201005a000906c2024d025000780030035b014b0233003d0005000200030004004e006c00080001008f0011000900fc01cc01cb013b008a02b7008b0005024b010d06c1002406c006bf06be06bd043e012e024f06bc06bb035a000600aa00bf003b00d200e9003b0060005000a9006e009e017e003b00cf002006ba06b900ce001c00ea007a01ca013a06b8000600e200e9003b00aa03ad003b0115001606b700d006b6008c00360199007200c100d800bb0044035a06b502f5009806b4043f007700af01f900540002000300040035015000be06b30008024a0010000f001900bc014f002a0038002506b20086000c0085000e000d000b06b1003706b0003a0065002d0039003400330027002b002c0032003100260029000a000106af00fc044b001400610279011f001b003e00fa00360001006400d5002f006a00bc00ad06ae06ad006a00fd02b0006a01980269006d006a0185046d03590051035903a906ac0268014703a801e006ab06aa06a900d800bb004406a806a706a606a50068008d0166004f006d009c014c0144005e024d06a4000806a3024c0010000f001900230056002a003806a2004c005d00480047006706a1003706a00025003a006b002d0039003400330027002b002c0032003100260029000a0001069f069e001400ae00fc037a069d027f00a6005b008000620036007f0064005f002300ad01df069c017d035803a703a6024903a503c5069b014e00d3017d03a3069a014e03a4017d03a1069900d3024902ad0698069702ac01e0001b01f8069602ab035703a000360267045d001c02e901830078003002a90005000200030004004e006c00080001008f0011000900fc01cc013b02a802a701c400130695005002a6002002a5037b001302a402a3012401eb0013019f02a2002000090451069402a100c802a0029f014d0026029e029d06930692029c00e4005800d606910024069001fd007902b60071007c0120007701fc02b501fb01fa00020003000400460356001a03550010000f0019007400bd002a00380025068f0086000c0085000e000d000b068e0037068d003a0065002d0039003400330027002b002c0032003100260029000a0001068c0014005200ec0028001b003e0043003600010064001c002f006a007400ad013601c1008102b40354068b019e0061029b000200030088029a068a0066029900550046001f001e0057002e00be001a0010000f00690019000a0001068906880014005202980028001b003e0043003600010064001c002f0687017c03640686009b00300097003d009a00050002000300040070006f00080001008f0011020b01ad00500357003d0005000200030004004e006c00080001008f00110009013b00f901ac00d900130208035f00130207002101aa00bb0013006002260353022a000501eb004406850024068400920683012e0028068200050002000300040070006f00080001008f0011000600c5038d0053068100ed0053005000a9006e009e017e003b00cf002000e1003600ce001c00ea007a0251068000c601b60066019c005500020003000400460096001a0010000f00690019000a0001067f0361036001890248001400610295011f005b008000fa0036007f006400d5002f006a03f703f6012c011e0013020c019b002003f50009067e03f4017a03f303f20294019a029300a6067d067c029200e400d803f10044067b0024067a019e006103f003ef0002000300880068006600de00550046006d009c014c004606790352001a01c906780010000f001900230056002a00380677004c005d0048004700670676003706750025003a006b002d0039003400330027002b002c0032003100260029000a000106740014005200a50028001b003e0043003600010064001c002f006a00230351017c0063067306720077035000af01f90054000200030004003501fe067100960100067000020003004f0071007c01200144006d009c014c00460247001a0246013a01ca0143000a00a200a8010f000901180142034f00430036010e007900cd0079008a014101400042007600b80036007500640072013f00b6012f00a7066f013e00b5013d00940093009d066e01de034f00b4013c017301dd01dc01a0008e017201db01da013701d90051066d00fd00510245011a006a066c066b0168005100c8012500d3034e0051066a000600c501d8005301d7034d01d600b001f30183008c003601d5005f018100d800bb0044009806690071007c01d400c6016e01d3002e006d009c01d2003500bb0247001a0246013a01ca0143000a00a200a8010f000901180142034c010e007900cd0079008a014101400042007600b80036007500640072013f00b6012f00a70668013e00b5013d00940093009d066701de034c00b4013c017301dd01dc01a0008e017201db01da013701d900510245034b0666034a00fd00510665011a006a018200ad0168005100c8012500d3034e034b0664034a00510245000600a900ed005300c501d8005301d7034d01d600b0008c003601d5005f018100d800bb0044009806630071007c01d400c6016e01d3002e006d009c01d2003500bb02470662001a06610246013a01ca0143000a00a200a8010f0009011801420349010e007900cd0079008a014101400042007600b80036007500640072013f00b6012f00a70660013e00b5013d00940093009d065f039a034900b4013c039900f403980397008e03960395039402ed02600051065e00fd005101750348011a006a018200ad019f0009001b011400280348017c00050002000300040070006f00080001008f00110092012d065d0272012c00fe000500bb00440366065c0024065b00c4021c03da0233012300bb0013006000b9036803d9065a0013009b00300097003d009a00050002000300040070006f00080001008f012b0005008100440659002401470244065803ed00b700e9027d0042001a0010000f001900230056002a003801c806570656004c01590048004702910655003706540025003a0065002d0039003400330027002b002c0032003100260029000a000106530014005200ec0028001b003e0043003600010064001c002f006a002300ad03e80347006d065200af02810054000200030004003503d80651015001000650006d03630066028000550002000300040046005e001a0010000f00690019000a0001064f00fc024c018900140052027c0028001b003e0043003600010064001c002f006a005800d6064e00240098064d00020003004f001f001e0057002e01fe064c00be064b00f500b700e9064a0042001a000a00a200a80197008201320196034600b800360014006100ff01950063014900a6004200760062003600750064005f019400b6019300a70649019200b5013100940093009d064800cc034600b4019100b200f40190018f008e00b100cb018e018d018c00010647064602e900c603450066019c005500020003000400460096001a0010000f00690019000a000106450147024b0014006106440344005b008000e50036007f00640133002f02510643017c0068006600de00550002000300040046005e06420641000801c802440010000f001900230056002a00380640004c005d004800470067063f0037063e0025003a006b002d0039003400330027002b002c0032003100260029000a0001063d024e00140061025f025e001b003e01f20036000100640126002f006a002300ad038a029001f100d7034300b0005800d6035b063c01b60077008d0103004f001f001e0057002e005e00be0350000801c80010000f001900bc014f002a00380025063b0086000c0085000e000d000b063a00370639003a0065002d0039003400330027002b002c0032003100260029000a00010638001400ae024e01cb0248010100c7017a025d00990036025c006400ac00bc00ad028f0036028e005f028d0062006a028c014d00e5006a00260198010703df006a028b020003de038802490090028a03dd00d7034300b0005800d60637063601b60077008d0103004f001f001e0057002e005e00be0352000801c90010000f0019007400bd002a0038002506350086000c0085000e000d000b063400370633003a0065002d0039003400330027002b002c0032003100260029000a000106320631001400ae01cb0248010100c7005b008000990036007f006400ac007400ad028900360288001c00dc0287006a028603dc0285006a063000160387017d035e009b00300097003d009a00050002000300040070006f00080001008f0011009001a601cc00160342008102840121028301f000d70365001600b901ef00130282004d00050044062f0024062e0077006601ee00550002000300040046014a0356001a03550010000f0019007400bd002a00380025062d0086000c0085000e000d000b062c0037062b003a0065002d0039003400330027002b002c0032003100260029000a0001062a0014005200ec0028001b003e0043003600010064062903580071007c00550002000300040046018b000802440010000f001900230056002a003801c80628004c005d0048004700670627003706260025003a006b002d0039003400330027002b002c0032003100260029000a0001062501470014006106240344005b008000e50036007f00640133002f006a002300ad00c2062300200341005002bf00200208022a03d5002101aa00bb0013062201ac004d009b00300097003d009a00050002000300040070006f00080001008f012b0005008100440621002401c9062001cc0071007c00550002000300040046014a001a01c90010000f0019007400bd002a00380025061f0086000c0085000e000d000b061e0037061d003a0065002d0039003400330027002b002c0032003100260029000a0001061c0014005200ec0028001b003e0043003600010064001c002f006a00740351017c03d300b700e9027d0042001a000a0010000f00690019000101cb061b00fc034000140052027c0028001b003e0043003600010064001c002f006a01a500dd00280354000600c50134005300a900ed005300d0006e00f70020008c003600f6001c014b007a061a005b06190385011c0618018001b901bd0617033f00b901b30320061600f200300060003d0005000200030004004e00f100080001008f0011022b013a06150092018400d90013033e011b022f00db00a30087002e019b002001460266035c01b800db00a30087002e016700200270004d0005061406130024061200920165016300600050021e006e00050044061100240610006800af0186005400020003000400350096060f033d060e001a024a033c0010000f001900230056002a0038060d004c005d004800470067060c0037060b0025003a006b002d0039003400330027002b002c0032003100260029000a0001060a0014005200a50028001b003e0043003600010064001c002f006a002300ad027703470068006600de00550002000300040046005e0609043a0008060806070010000f001900230056002a00380606004c005d0048004700670605003706040025003a006b002d0039003400330027002b002c0032003100260029000a0001013a06030014005200a50028001b003e0043003600010064001c002f006a002300ad00c2022b0078003006020005000200030004004e006c00080001008f0011000902e70340013b00f9035300d90013033e011b022f00db00a30087002e0601002001460021060001b800db00a30087002e05ff002001ac004d000500d405fe002405fd00c6034500af05fc0054000200030004003500960111001a0010000f00690019000a000105fb024b001400610295011f001b003e00fa00360001006400d5002f006a022d01b305fa00f200300060003d0005000200030004004e00f100080001008f001105f9012d02e800dd008101850122022d00d8004405f80068008d0166004f006d009c014c0144005e033d01b60008024a033c0010000f001900230056002a003805f7004c005d00480047006705f6003705f50025003a006b002d0039003400330027002b002c0032003100260029000a000105f4001400ae021d00c7005b008000990036007f006400ac002300ad00c205f3017d03410226006000a605f20006033f0050017005f1000502e000d405f00024009805ef0380025a019a037f008900d0005301150016008c003601990072007a05ee001f001e00540002000300040035008205ed00f500b702e0004205ec0342001a000a00a200a80197008201320196033b00b800360014006100ff01950063014900a6004200760062003600750064005f019400b6019300a705eb019200b5013100940093009d05ea00cc033b00b4019100b200f40190018f008e00b100cb018e018d018c05e900c300e800a001c200e700e6003c005b003c017f00e800a002ec00e700e6003c000603e500e3002002f403c100d901e6000200030088001f001e00540035003c00e3036a00f8008b018402570013026502560013006802530369016f003c00e800a0037600e700e6003c00c00375001600950374001600d1036d001601120013013500ab001600020003004f0096003c006d009c036f007b0002000300880035003c00060018001705e8004a0045000c0015000e000d000b05e70012007e00ba00060018001705e6004a0045000c0015000e000d000b05e50012007e00ba00060018001705e4004a0045000c0015000e000d000b05e30012007e00ba00060018001705e2004a0045000c0015000e000d000b05e10012007e00ba00060018001705e0004a0045000c0015000e000d000b05df0012007e00ba00060018001705de004a0045000c0015000e000d000b05dd0012007e00ba00060018001705dc004a0045000c0015000e000d000b05db0012007e00ba000600180017004005da005c000c0015000e000d000b05d90012007e0139000600180017004005d8005c000c0015000e000d000b05d70012007e013900060018001705d6004a0045000c0015000e000d000b05d50012007e00ba000600180017004005d4005c000c0015000e000d000b05d30012007e0139000600180017004005d2005c000c0015000e000d000b05d10012007e0139000600180017004005d0005c000c0015000e000d000b05cf0012007e013900060018001705ce004a0045000c0015000e000d000b05cd0012007e00ba00060018001705cc004a0045000c0015000e000d000b05cb0012007e00ba00060018001705ca004a0045000c0015000e000d000b05c90012007e00ba00060018001705c8004a0045000c0015000e000d000b05c70012007e00ba00060018001705c6004a0045000c0015000e000d000b05c5001205c405c300060018001705c2004a0045000c0015000e000d000b05c10012007e0040016c01d000e0016401cf010a001100df01ce01cd011300210252001f001e0054002e003c000600180017004005c0005c000c0015000e000d000b05bf0012007e0139037c05be0016037d05bd00160108036c0016011e001305bc00c305bb008a05ba05b9046205b8001c026705b7003b00f8008b05b60005010d05b505b405b300430243048b024205b20242009005b103a200c805b00099024301ec033a00ac05af05ae05ad0444044305ac05ab05aa05a900480047012805a8005105a705a605a5048f00a405a4048c0470048d048e05a305a2001305a105a00071007c0120001f001e005402fb000200030004002e044a0100001a000a0010000f0069059f059e044d059d00cd059c009003eb059b017a025d00b80243025c033a007201b5059a016d004005990598000c0597000e000d000b059600120595016c045400e0016401cf010a001100df01ce01cd011300210594020401c70339024100dc000905930338007800300337003d0005000200030004004e006c00080001033601c7033905920204011800dc0001059101c70335024100090590025b0334058f0338007800300446003d0005000200030004004e006c00080001033601c70335024100110009058e058d00dc025b03340009058c00f3058b058a05890588007b0009001b0114002805870009058600c300e800a001c200e700e6003c005b003c006300c00379001600950378001600d10377001601120013013500ab001600020003004f0096003c0009058500c4058400e3006e0123011e001301d10583036b058201e600020003001f001e008800540035003c017f006300950371001600d10370001601120013013500ab001600020003004f016f003c0071007c05810002000300880035003c0580057f0082057e001b057d057c0294019a057b00d3057a0579029200e405780242057700c3046c057603bc05750574057300090572057100f30570056f056e01f8011a056d0051056c056b056a056903e9033305680567056600110176033300c40565025a02680564012201d102000563012105620561056000ac0381007a00c3005b003c006300c0055f001600950332001600d1055e055d006300c0055c001600950332001600d1055b001601120013013500ab001600020003004f0096003c00e800a001c200e700e6003c017f03fd01ad0337055a055905580293046405570071007c02520058001f001e0057002e05560100000800010555001100c3017f0554009800c3001b00c30553009800c3001b00c305520116003c0000000000000000000005510000000000000550000000000000054f000000000000054e000000000000054d000000000000054c000000000000054b000000000000054a0000000000000549000000000000054800000000000005470000000000000546000000000000054500000000000005440000000000000543000000000000054200000000000005410000000000000540000000000000053f000000000000053e000000000000053d000000000000053c000000000000053b000000000000053a0000000000000331000000000000053900000331004100410000000000000041024000000000000001c60041004101c5004105380000000001380000000000000537053605350534004105330000000000000532000003300138000005310000032f000005300000000000000000052f000000000000052e000000000000052d000000000000052c000000000000052b000000000000052a0000000000000529000000000000052800000000000005270000000000000526000000000000052500000000000005240000000000000523000000000000052200000000000005210000000000000520000000000000051f000000000000051e000000000000051d000000000000051c000000000000051b01380000051a00000519000000000000032e0518051705160515000000000000000000000514000000000000051300000000000000000512000005110000000000000510000000000000050f000000000000050e000000000041050d004100410000032f0000000000000000050c0000050b050a00000000050905080507050600000000032d000000410505004100410000050400000000032e050305020501000000000500000004ff04fe04fd04fc000004fb032c032c04fa00000000000004f900000000000000000000032b000004f800000000000000000000000004f70119032a04f600000000000004f500000119032a04f4000000410041004101c500410041004104f301c600410041004104f200000000000004f104f004ef04ee023f0000032b000004ed000000000000000000000329000004ec00000000000004eb04ea04e904e804e70000000000000000000004e6000004e5000000000000023e04e404e304e204e1000000000000023f00000329000004e00000000000000000000001c600410000000002400000004100410240000004df00000000000004de00000000000004dd00000000000000000000000004dc000000000041004104db00000000000000000000000004da04d90000000000000000000004d8000004d700000000000004d6000000000000000000000328000004d500000000000004d400000000000000000000000004d3000004d204d104d004cf000000000000011904ce04cd04cc04cb0000000000000000000004ca004100000000000004c900000000000004c800000000000004c704c600000000000004c504c404c300000000000001c6023d01380000032d000000000000033001c50000000004c201c504c100000000000000000000000004c0023e04bf04be04bd00000000000004bc013800000328000004bb04ba00000000023e04b904b804b704b604b504b404b304b204b1000000000119023c04b004af0138000004ae000004ad04ac04ab04aa04a900000000000004a80000000000000119023c032704a7004100410041023d004100410041004100410041004104a600000000000004a504a40000000000000119023c032704a300000000000004a204a104a0049f049e0119049d049c049b000000000000023d049a049904980497023f0000000000000496049504940493000000000000", + "logIndex": 2, + "blockHash": "0x58d5384727293feea48a065cfc5cebf8e403968840f374c02102483e5632f9f5" + }, + { + "transactionIndex": 0, + "blockNumber": 5910411, + "transactionHash": "0xf43d0c4eb88e8b5498e5005ce9b655951193b8967f541e57d539bfeb2158338f", + "address": "0x0000000000000000000000000000000000008004", + "topics": [ + "0xc94722ff13eacf53547c4741dab5228353a05938ffcdd5d4a2d533ae0e618287", + "0x01000c6fd0e0c82b17ff0dafb921b03b072ffbe196ea2dd963e76e2550f37e48", + "0x0000000000000000000000000000000000000000000000000000000000000000" + ], + "data": "0x", + "logIndex": 3, + "blockHash": "0x58d5384727293feea48a065cfc5cebf8e403968840f374c02102483e5632f9f5" + }, + { + "transactionIndex": 0, + "blockNumber": 5910411, + "transactionHash": "0xf43d0c4eb88e8b5498e5005ce9b655951193b8967f541e57d539bfeb2158338f", + "address": "0x9e55e562D40FD01f38cD4057e632352fE0758F16", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000282607716d9b4fdd0b094d5864fac56313f5e665" + ], + "data": "0x", + "logIndex": 4, + "blockHash": "0x58d5384727293feea48a065cfc5cebf8e403968840f374c02102483e5632f9f5" + }, + { + "transactionIndex": 0, + "blockNumber": 5910411, + "transactionHash": "0xf43d0c4eb88e8b5498e5005ce9b655951193b8967f541e57d539bfeb2158338f", + "address": "0x0000000000000000000000000000000000008006", + "topics": [ + "0x290afdae231a3fc0bbae8b1af63698b0a1d79b21ad17df0342dfb952fe74f8e5", + "0x000000000000000000000000282607716d9b4fdd0b094d5864fac56313f5e665", + "0x01000c6fd0e0c82b17ff0dafb921b03b072ffbe196ea2dd963e76e2550f37e48", + "0x0000000000000000000000009e55e562d40fd01f38cd4057e632352fe0758f16" + ], + "data": "0x", + "logIndex": 5, + "blockHash": "0x58d5384727293feea48a065cfc5cebf8e403968840f374c02102483e5632f9f5" + }, + { + "transactionIndex": 0, + "blockNumber": 5910411, + "transactionHash": "0xf43d0c4eb88e8b5498e5005ce9b655951193b8967f541e57d539bfeb2158338f", + "address": "0x000000000000000000000000000000000000800A", + "topics": [ + "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", + "0x0000000000000000000000000000000000000000000000000000000000008001", + "0x000000000000000000000000282607716d9b4fdd0b094d5864fac56313f5e665" + ], + "data": "0x00000000000000000000000000000000000000000000000000004c756e92d080", + "logIndex": 6, + "blockHash": "0x58d5384727293feea48a065cfc5cebf8e403968840f374c02102483e5632f9f5" + } + ], + "blockNumber": 5910411, + "cumulativeGasUsed": "0", + "status": 1, + "byzantium": true + }, + "args": [ + "0x0000000000000000000000000000000000000000", + [] + ], + "numDeployments": 1, + "solcInputHash": "5e48b44fb0b1f9a4a45f36e515a4fccf", + "bytecode": "0x00030000000000020008000000000002000000000701034f0000000001070019000000600110027000000be106100197000200000067035500010000000703550000000100200190000000290000c13d0000008003000039000000400030043f000000040060008c000000690000413d000000000167034f000000000207043b000000e00220027000000bee0020009c0000006d0000a13d00000bef0020009c000000de0000213d00000bf50020009c000001640000213d00000bf80020009c000001f00000613d00000bf90020009c000003890000c13d0000000001000416000000000001004b000003890000c13d000000000100041a00000be3021001970000000001000411000000000021004b000003450000c13d00000080020000390000000201000039000000000301041a00000c140330019700000c15033001c7000002a40000013d000000a001000039000000400010043f0000000002000416000000000002004b000003890000c13d0000001f0260003900000be202200197000000a002200039000000400020043f0000001f0260018f00000005036002720000003c0000613d0000000504300210000000a004400039000000000507034f000000005805043c0000000001810436000000000041004b000000380000c13d000000000002004b0000004b0000613d0000000501300210000000000317034f0000000302200210000000a001100039000000000401043300000000042401cf000000000424022f000000000303043b0000010002200089000000000323022f00000000022301cf000000000242019f0000000000210435000000400060008c000003890000413d000000a00700043d00000be30070009c000003890000213d000000c00100043d00000be40010009c000003890000213d0000001f02100039000000000062004b000000000300001900000be50300804100000be502200197000000000002004b000000000400001900000be50400404100000be50020009c000000000403c019000000000004004b000003890000c13d000000a002100039000000000202043300000be40020009c000002070000a13d00000c1b0100004100000000001004350000004101000039000000040010043f00000c1c0100004100002f2100010430000000000006004b000003890000c13d000000000100001900002f200001042e00000bfa0020009c000001050000a13d00000bfb0020009c000001cf0000213d00000bfe0020009c000001e50000613d00000bff0020009c000003890000c13d000001040060008c000003890000413d0000000402700370000000000402043b00000be30040009c000003890000213d0000002402700370000000000302043b0000004402700370000000000202043b000600000002001d00000be30020009c000003890000213d0000006402700370000000000202043b000500000002001d0000008402700370000000000202043b000400000002001d00000be30020009c000003890000213d000000a402700370000000000202043b000300000002001d000000c402700370000000000202043b000200000002001d00000be30020009c000003890000213d000000e402700370000000000502043b00000be40050009c000003890000213d0000002302500039000000000062004b000003890000813d0000000408500039000000000287034f000000000202043b00000be40020009c000000630000213d0000001f0920003900000c22099001970000003f0990003900000c220990019700000c090090009c000000630000213d0000008009900039000000400090043f000000800020043f00000000052500190000002405500039000000000065004b000003890000213d0000002005800039000000000557034f0000001f0620018f00000005072002720000000507700210000000b80000613d000000a008000039000000a009700039000000000a05034f00000000ab0a043c0000000008b80436000000000098004b000000b40000c13d000000000006004b000000c60000613d000000000575034f0000000306600210000000a007700039000000000807043300000000086801cf000000000868022f000000000505043b0000010006600089000000000565022f00000000056501cf000000000585019f0000000000570435000000a00220003900000000000204350000000202000039000000000202041a00000c0a0520019700000c0b0050009c0000038b0000c13d00000c0c0520019700000c0d0050009c0000038f0000c13d00000c0e0220019700000c0f022001c70000000205000039000000000025041b000000400200043d000000060500002900000c190050009c000003a00000c13d0000000005000414000000040040008c000003e50000c13d00000001020000390000000005000031000004470000013d00000bf00020009c000001e10000213d00000bf30020009c0000026f0000613d00000bf40020009c000003890000c13d000000240060008c000003890000413d0000000001000416000000000001004b000003890000c13d0000000401700370000000000101043b00000be30010009c000003890000213d00000000001004350000000101000039000000200010043f000000000100041400000be10010009c00000be101008041000000c00110021000000bec011001c700008010020000392f1f2f1a0000040f0000000100200190000003890000613d000000000101043b000000000101041a000000ff001001900000000001000019000000010100c039000000400200043d000000000012043500000be10020009c00000be102008041000000400120021000000c08011001c700002f200001042e00000c000020009c000002970000613d00000c010020009c000001e50000613d00000c020020009c000003890000c13d000000c40060008c000003890000413d0000000401700370000000000101043b00000be30010009c000003890000213d0000002402700370000000000202043b0000004403700370000000000303043b00000be30030009c000003890000213d0000006404700370000000000404043b0000008405700370000000000505043b00000be30050009c000003890000213d000000a408700370000000000908043b00000be40090009c000003890000213d0000002308900039000000000068004b000003890000813d000000040a9000390000000008a7034f000000000808043b00000be40080009c000000630000213d0000001f0b80003900000c220bb001970000003f0bb0003900000c220bb0019700000c0900b0009c000000630000213d000000800bb000390000004000b0043f000000800080043f00000000098900190000002409900039000000000069004b000003890000213d0000002006a00039000000000667034f0000001f0780018f0000000509800272000001430000613d000000a00a000039000000050b900210000000a00bb00039000000000c06034f00000000cd0c043c000000000ada04360000000000ba004b0000013f0000c13d000000000007004b000001520000613d0000000509900210000000000696034f0000000307700210000000a009900039000000000a090433000000000a7a01cf000000000a7a022f000000000606043b0000010007700089000000000676022f00000000067601cf0000000006a6019f0000000000690435000000a006800039000000000006043500000002060000390000000008060019000000000606041a00000c0a0760019700000c0b0070009c0000038b0000c13d00000c0c0760019700000c0d0070009c0000038f0000c13d00000c0e0660019700000c0f066001c7000000000068041b00000080060000392f1f05500000040f0000000203000039000004550000013d00000bf60020009c000002a90000613d000600000003001d00000bf70020009c000003890000c13d000001040060008c000003890000413d0000000402700370000000000402043b00000be30040009c000003890000213d0000002402700370000000000302043b0000004402700370000000000202043b000500000002001d00000be30020009c000003890000213d0000006402700370000000000202043b000400000002001d0000008402700370000000000202043b000300000002001d00000be30020009c000003890000213d000000a402700370000000000202043b000200000002001d000000c402700370000000000202043b000100000002001d00000be30020009c000003890000213d000000e402700370000000000502043b00000be40050009c000003890000213d0000002302500039000000000062004b000003890000813d0000000408500039000000000287034f000000000202043b00000be40020009c000000630000213d0000001f0920003900000c22099001970000003f0990003900000c220990019700000c090090009c000000630000213d0000008009900039000000400090043f000000800020043f00000000052500190000002405500039000000000065004b000003890000213d0000002005800039000000000557034f0000001f0620018f00000005072002720000000507700210000001ac0000613d000000a008000039000000a009700039000000000a05034f00000000ab0a043c0000000008b80436000000000098004b000001a80000c13d000000000006004b000001ba0000613d000000000575034f0000000306600210000000a007700039000000000807043300000000086801cf000000000868022f000000000505043b0000010006600089000000000565022f00000000056501cf000000000585019f0000000000570435000000a00220003900000000000204350000000202000039000000000202041a00000c0a0520019700000c0b0050009c0000038b0000c13d00000c0c0520019700000c0d0050009c0000038f0000c13d00000c0e0220019700000c0f022001c70000000205000039000000000025041b000000400500043d0000000002000414000000040040008c000003b40000c13d00000001020000390000000004000031000004040000013d00000bfc0020009c000002b10000613d00000bfd0020009c000003890000c13d0000000001000416000000000001004b000003890000c13d0000000001000412000800000001001d000700000000001d000080050100003900000044030000390000000004000415000000080440008a000000050440021000000c18020000412f1f2efc0000040f000002ad0000013d00000bf10020009c000003200000613d00000bf20020009c000003890000c13d0000000001000416000000000001004b000003890000c13d00000000010600192f1f05330000040f2f1f2ea70000040f000000400100043d00000be10010009c00000be101008041000000400110021000002f200001042e0000000001000416000000000001004b000003890000c13d000000000100041a00000be3021001970000000005000411000000000052004b0000033c0000c13d00000be701100197000000000010041b000000000100041400000be10010009c00000be101008041000000c00110021000000c03011001c70000800d02000039000000030300003900000be90400004100000000060000192f1f2f150000040f0000000100200190000001eb0000c13d000003890000013d00000005032002100000003f0430003900000be604400197000000400500043d0000000004450019000500000005001d000000000054004b0000000005000019000000010500403900000be40040009c000000630000213d0000000100500190000000630000c13d000000a005600039000000400040043f00000005040000290000000004240436000400000004001d000000c0011000390000000003130019000000000053004b000003890000213d000000000002004b000002260000613d0000000402000029000000001401043400000be30040009c000003890000213d0000000002420436000000000031004b000002200000413d000000000100041a00000be7021001970000000006000411000000000262019f000000000020041b000000400200043d00000be10020009c00000be1020080410000004002200210000000000300041400000be10030009c00000be103008041000000c003300210000000000223019f00000be30510019700000be8012001c70000800d02000039000000030300003900000be904000041000600000007001d2f1f2f150000040f00000006010000290000000100200190000003890000613d00000be3011001970000000202000039000000000302041a000000800010043f00000bea0330019700000beb033001c7000000000032041b00000005020000290000000002020433000000000002004b0000000103000039000002680000613d0000000002000019000600000002001d00000005012002100000000401100029000000000101043300000be3011001970000000000100435000000200030043f000000000100041400000be10010009c00000be101008041000000c00110021000000bec011001c700008010020000392f1f2f1a0000040f0000000100200190000003890000613d000000000101043b000000000201041a00000c230220019700000001022001bf000000000021041b0000000602000029000000010220003900000005010000290000000001010433000000000012004b00000001030000390000024b0000413d000000800100043d0000014000000443000001600010044300000020010000390000010000100443000001200030044300000bed0100004100002f200001042e000000440060008c000003890000413d0000000001000416000000000001004b000003890000c13d0000000401700370000000000101043b00000be30010009c000003890000213d0000002402700370000000000302043b000000000003004b0000000002000019000000010200c039000600000003001d000000000023004b000003890000c13d000000000200041a00000be3022001970000000003000411000000000032004b0000033c0000c13d00000000001004350000000101000039000000200010043f000000000100041400000be10010009c00000be101008041000000c00110021000000bec011001c700008010020000392f1f2f1a0000040f0000000100200190000003890000613d000000000101043b000000000201041a00000c230220019700000006022001af000000000021041b000001eb0000013d0000000001000416000000000001004b000003890000c13d000000000100041a00000be3021001970000000001000411000000000021004b000003570000c13d00000080020000390000000201000039000000000301041a00000c140330019700000c0d033001c7000000000031041b00000be10020009c00000be102008041000000400120021000002f200001042e0000000001000416000000000001004b000003890000c13d000000000100041a00000be301100197000000800010043f00000c100100004100002f200001042e000001040060008c000003890000413d0000000401700370000000000101043b000600000001001d00000be30010009c000003890000213d0000002401700370000000000101043b000500000001001d0000004401700370000000000101043b00000be30010009c000003890000213d0000006402700370000000000202043b0000008403700370000000000303043b000400000003001d00000be30030009c000003890000213d000000a403700370000000000403043b000000c403700370000000000303043b000300000003001d00000be30030009c000003890000213d000000e403700370000000000503043b00000be40050009c000003890000213d0000002303500039000000000063004b000003890000813d0000000408500039000000000387034f000000000303043b00000be40030009c000000630000213d0000001f0930003900000c22099001970000003f0990003900000c220990019700000c090090009c000000630000213d0000008009900039000000400090043f000000800030043f00000000053500190000002405500039000000000065004b000003890000213d0000002005800039000000000557034f0000001f0630018f00000005073002720000000507700210000002f30000613d000000a008000039000000a009700039000000000a05034f00000000ab0a043c0000000008b80436000000000098004b000002ef0000c13d000000000006004b000003010000613d000000000575034f0000000306600210000000a007700039000000000807043300000000086801cf000000000868022f000000000505043b0000010006600089000000000565022f00000000056501cf000000000585019f0000000000570435000000a00330003900000000000304350000000203000039000000000303041a00000c0a0530019700000c0b0050009c0000038b0000c13d00000c0c0530019700000c0d0050009c0000038f0000c13d00000c0e0330019700000c0f033001c70000000205000039000000000035041b000000000500041000000080060000390000000403000029000100000006001d2f1f05500000040f000000400200043d000200000001001d000000040100002900000c190010009c000003bf0000c13d00000000010004140000000603000029000000040030008c000003f00000c13d00000001020000390000000001000031000004900000013d000000240060008c000003890000413d0000000001000416000000000001004b000003890000c13d0000000401700370000000000601043b00000be30060009c000003890000213d000000000100041a00000be3021001970000000005000411000000000052004b0000033c0000c13d000000000006004b0000037b0000c13d00000c0401000041000000800010043f0000002001000039000000840010043f0000002601000039000000a40010043f00000c0501000041000000c40010043f00000c0601000041000000e40010043f00000c070100004100002f210001043000000c0401000041000000800010043f0000002001000039000000840010043f000000a40010043f00000c1601000041000000c40010043f00000c170100004100002f210001043000000000001004350000000101000039000000200010043f000000000100041400000be10010009c00000be101008041000000c00110021000000bec011001c700008010020000392f1f2f1a0000040f0000000100200190000003890000613d000000400200043d000000000101043b000000000101041a000000ff00100190000000240000c13d000003680000013d00000000001004350000000101000039000000200010043f000000000100041400000be10010009c00000be101008041000000c00110021000000bec011001c700008010020000392f1f2f1a0000040f0000000100200190000003890000613d000000400200043d000000000101043b000000000101041a000000ff00100190000002a00000c13d000000640120003900000c11030000410000000000310435000000440120003900000c1203000041000000000031043500000024012000390000003003000039000000000031043500000c0401000041000000000012043500000004012000390000002003000039000000000031043500000be10020009c00000be102008041000000400120021000000c13011001c700002f210001043000000be701100197000000000161019f000000000010041b000000000100041400000be10010009c00000be101008041000000c00110021000000c03011001c70000800d02000039000000030300003900000be9040000412f1f2f150000040f0000000100200190000001eb0000c13d000000000100001900002f2100010430000000400100043d000000440210003900000c1f03000041000003920000013d000000400100043d000000440210003900000c2103000041000000000032043500000024021000390000001803000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c20011001c700002f2100010430000000200120003900000c1d0500004100000000005104350000006401200039000000000031043500000044012000390000000000410435000000000100041100000be301100197000000240320003900000000001304350000006401000039000000000012043500000c1e0020009c000000630000213d000000a001200039000000400010043f00000006010000292f1f2d7f0000040f0000044d0000013d00000be10050009c00000be105008041000000400150021000000be10020009c00000be102008041000000c002200210000000000112019f000000000003004b000003fb0000c13d0000000002040019000003fe0000013d000000200120003900000c1a0300004100000000003104350000004401200039000000050300002900000000003104350000002401200039000000060300002900000000003104350000004401000039000000000012043500000c090020009c000000630000213d0000008001200039000000400010043f00000004010000292f1f2d7f0000040f0000000502000029000000020120006b000004980000413d000000400200043d000000200320003900000c1a040000410000000000430435000000440320003900000000001304350000002401200039000000030300002900000000003104350000004401000039000000000012043500000c090020009c000000630000213d0000008001200039000000400010043f00000004010000292f1f2d7f0000040f0000051d0000013d00000be10020009c00000be102008041000000400120021000000be10050009c00000be105008041000000c002500210000000000112019f000000000003004b0000043e0000c13d0000000002040019000004410000013d00000be10020009c00000be102008041000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f000000050000006b000004860000c13d00000006020000290000048b0000013d00000be8011001c7000080090200003900000000050000192f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be104300197000000000004004b000004100000c13d000000600300003900000001002001900000043c0000613d000000800600003900000005010000290000000402000029000000030300002900000002040000290000000105000029000004530000013d00000be40040009c000000630000213d0000001f0340003900000c22033001970000003f0330003900000c2205300197000000400300043d0000000005530019000000000035004b0000000006000019000000010600403900000be40050009c000000630000213d0000000100600190000000630000c13d000000400050043f0000001f0540018f0000000006430436000600000006001d000000050440027200000005044002100000042d0000613d00000006080000290000000006480019000000000701034f000000007907043c0000000008980436000000000068004b000004290000c13d000000000005004b000004070000613d000000000141034f00000006044000290000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f0000000000140435000004070000013d0000000601000029000004cd0000013d00000be8011001c7000080090200003900000000050000192f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be105300197000000000005004b0000045a0000c13d0000006003000039000000800400003900000001002001900000052a0000613d0000008006000039000000060100002900000005020000290000000403000029000000030400002900000002050000292f1f05500000040f0000000203000039000000000203041a00000c0e0220019700000c0b022001c7000000000023041b000000fe0000013d00000be40050009c000000630000213d0000001f0350003900000c22033001970000003f0330003900000c2204300197000000400300043d0000000004430019000000000034004b0000000006000019000000010600403900000be40040009c000000630000213d0000000100600190000000630000c13d000000400040043f0000001f0650018f00000000045304360000000505500272000004760000613d00000005075002100000000007740019000000000801034f0000000009040019000000008a08043c0000000009a90436000000000079004b000004720000c13d000000000006004b0000044b0000613d0000000505500210000000000151034f00000000055400190000000306600210000000000705043300000000076701cf000000000767022f000000000101043b0000010006600089000000000161022f00000000016101cf000000000171019f00000000001504350000044b0000013d00000be8011001c700008009020000390000000503000029000000060400002900000000050000192f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b0000049e0000c13d00000060030000390000000100200190000004cc0000613d0000000503000029000000020330006b000004d10000813d00000c1b0100004100000000001004350000001101000039000000040010043f00000c1c0100004100002f210001043000000be40010009c000000630000213d0000001f0310003900000c22033001970000003f0330003900000c2204300197000000400300043d0000000004430019000000000034004b0000000005000019000000010500403900000be40040009c000000630000213d0000000100500190000000630000c13d000000400040043f0000001f0410018f0000000005130436000100000005001d00000002050003670000000506100272000004bc0000613d000000050760021000000001090000290000000007790019000000000805034f000000008a08043c0000000009a90436000000000079004b000004b80000c13d000000000004004b000004930000613d0000000506600210000000000565034f00000001066000290000000304400210000000000706043300000000074701cf000000000747022f000000000505043b0000010004400089000000000545022f00000000044501cf000000000474019f0000000000460435000004930000013d000000010100002900000be10010009c00000be10100804100000040011002100000052d0000013d000000400400043d00000000020004140000000305000029000000040050008c000004d80000c13d0000000102000039000004ed0000013d00000be10040009c00000be104008041000000400140021000000be10020009c00000be102008041000000c002200210000000000112019f0000000504000029000000020040006b000004e40000c13d0000000302000029000004e80000013d00000be8011001c70000800902000039000000030400002900000000050000192f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b000004f20000c13d000000600300003900000080040000390000051b0000013d0000001f0310003900000c22033001970000003f0330003900000c2204300197000000400300043d0000000004430019000000000034004b0000000005000019000000010500403900000be40040009c000000630000213d0000000100500190000000630000c13d000000400040043f0000001f0510018f00000000041304360000000206000367000000050110027200000005011002100000050d0000613d0000000007140019000000000806034f0000000009040019000000008a08043c0000000009a90436000000000079004b000005090000c13d000000000005004b0000051b0000613d000000000616034f00000000011400190000000305500210000000000701043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f000000000051043500000001002001900000052a0000613d0000000202000039000000000102041a00000c0e0110019700000c0b011001c7000000000012041b000000400100043d0000000202000029000000000021043500000be10010009c00000be101008041000000400110021000000c08011001c700002f200001042e00000be10040009c00000be1040080410000004001400210000000000203043300000be10020009c00000be1020080410000006002200210000000000112019f00002f210001043000000c240010009c0000054e0000213d000000630010008c0000054e0000a13d00000001030003670000002402300370000000000202043b0000000404300370000000000504043b0000004404300370000000000604043b00000be40060009c0000054e0000213d0000002304600039000000000014004b0000054e0000813d0000000404600039000000000343034f000000000403043b00000be40040009c0000054e0000213d00000024036000390000000006430019000000000016004b0000054e0000213d0000000001050019000000000001042d000000000100001900002f2100010430001e000000000002000700000005001d000600000004001d000500000003001d000800000002001d000000000200041100000be30410019700000c190040009c000a00000004001d000200000001001d001c00000006001d0000056b0000c13d00000c260100004100000000001004390000000400200443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000000401043b0000001c06000029000005b90000013d000000400900043d000000000302001900000c2502000041000000000529043600000be303300197000000040290003900000000003204350000000003000414000000040040008c000005770000c13d0000000003000031000005a90000013d00000be10090009c000000000204001900000be1010000410000000001094019000000400410021000000be10030009c00000be103008041000000c001300210000000000141019f00000c1c011001c7001b00000009001d001a00000005001d2f1f2f1a0000040f0000001a0a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000001f0450018f0000000505500272000005950000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000005910000c13d000000000004004b000005a40000613d0000000505500210000000000651034f00000000055900190000000304400210000000000705043300000000074701cf000000000747022f000000000606043b0000010004400089000000000646022f00000000044601cf000000000474019f0000000000450435000000000003001f0002000000010355000000010020019000001fb90000613d0000001c060000290000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d0000001f0030008c00001d7a0000a13d0000000004090433000000050100002900000be30210019700000c190020009c000300000002001d000100000004001d000005d00000c13d00000c2601000041000000000010043900000007010000290000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000400500043d000000000101043b0000001c060000290000061e0000013d000000400900043d00000c25010000410000000005190436000000070100002900000be301100197000000040390003900000000001304350000000001000414000000040020008c000005dc0000c13d00000000030000310000060d0000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7001b00000009001d001a00000005001d2f1f2f1a0000040f0000001a0a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000001f0450018f0000000505500272000005f90000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000005f50000c13d000000000004004b000006080000613d0000000505500210000000000651034f00000000055900190000000304400210000000000705043300000000074701cf000000000747022f000000000606043b0000010004400089000000000646022f00000000044601cf000000000474019f0000000000450435000000000003001f0002000000010355000000010020019000001fc80000613d0000001c060000290000001f0130003900000c22011001970000000002910019000000000012004b00000000010000190000000101004039000000000502001900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400050043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d0000000001090433000400000001001d0000004001500039000000400010043f000000000265043600000000010604330000000001610019000c00000002001d0000000000120435000000000061004b000000080300002900001c870000a13d000000000100041100090be30010019b001700000000001d0000000803000029001900000005001d000006370000013d0000001701000029001700010010003d000000190500002900000000060504330000000c010000290000000001010433000000000016004b00001c870000813d000000010160003900000000020104330000000000150435000000ff0120018f000000010110008a000000050010008c001400000003a01d00000bc90001a13e00001e6a0000013d000000150160003900000000030104330000000000150435000000400900043d00000c25010000410000000004190436000000040190003900000000020004100000000000210435000000000100041400000be302300197000000040020008c000010fd0000c13d000000000a0000310000112e0000013d0000001501600039000000000301043300000000001504350000000001050019000000000200041100000008040000292f1f21150000040f000012b10000013d000000150160003900000000030104330000000000150435000000000100041000000be301100197000000400400043d0000002402400039000000000012043500000c30010000410000000001140436001a00000001001d001b00000003001d00000be301300197001c00000004001d0000000402400039000000000012043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000201043b000000000100041400000be302200197000000040020008c000012010000c13d00000000030000310000001c090000290000122e0000013d00000c2601000041000000000010043900000000010004100000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000b00000001001d00000019050000290000000001050433000000010110003900000000020104330000000000150435001800ff00200194000010f90000613d000000000100041000160be30010019b0000000b040000290000000006000019000006a10000013d000000010020019000001dd60000613d0000001c010000290000001b041000690000001a060000290000000106600039000000180060006c0000001905000029000010f90000813d0000000007050433000000020270003900000000010204330000000000250435000000030270003900000000030204330000000000250435000000ff0230018f000000050020008c0000ffff0110a18f000000000941a0a90000ffff0190a11a001c00000001a01d001b00000004a01d001a00000006a01d00000bd50002a13e000012c20000013d00000017017000390000000002010433000000000015043500000018017000390000000003010433001300000003001d00000000001504350000002c017000390000000003010433001000000003001d00000000001504350000002f017000390000000003010433001200000003001d000000000015043500000be309200197000000000100041000000c0b0010009c001500000009001d000009eb0000813d000000400100043d00000044021000390000001c030000290000000000320435000000200210003900000c1a030000410000000000320435000000240310003900000000009304350000004403000039000000000031043500000c090010009c00001d7c0000213d0000008005100039000000400050043f00000c3c0050009c00001d7c0000213d000000c003100039000000400030043f00000020030000390000000000350435000000a00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c1902000041001100000005001d2f1f2f150000040f000000150900002900020000000103550000000003010019000000600330027000000be10030019d00000be103300198000000800a000039000000600b0000390000071e0000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400b00043d00000000044b00190000000000b4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000a3b043600000005043002720000000504400210000007100000613d00000000054a0019000000000601034f00000000070a0019000000006806043c0000000007870436000000000057004b0000070c0000c13d0000001f033001900000071e0000613d000000000141034f00000000044a00190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010b0433000000010020019000001ddb0000613d000000000001004b0000073b0000c13d00110000000b001d000f0000000a001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000110100002900001dc50000613d0000000001010433000000000001004b00000015090000290000000f0a00002900000a720000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d00000a6a0000013d0000001701700039000000000b01043300000000001504350000001801700039000000000a01043300000000001504350000002c01700039000000000901043300000000001504350000000001000411000000160010006b000007d70000c13d000000400100043d00000064021000390000001c030000290000000000320435000000200210003900000c1d030000410000000000320435000000440310003900000000040004110000000000430435000000240310003900000000004304350000006403000039000000000031043500000c1e0010009c00001d7c0000213d000000a005100039000000400050043f00000c540010009c00001d7c0000213d000000e003100039000000400030043f00000020030000390000000000350435000000c00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c1902000041001500000009001d00130000000a001d00120000000b001d001100000005001d2f1f2f150000040f000000120b000029000000130a000029000000150900002900020000000103550000000003010019000000600330027000000be10030019d00000be103300198000000800c000039000000600d000039000007ac0000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400d00043d00000000044d00190000000000d4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000c3d0436000000050430027200000005044002100000079e0000613d00000000054c0019000000000601034f00000000070c0019000000006806043c0000000007870436000000000057004b0000079a0000c13d0000001f03300190000007ac0000613d000000000141034f00000000044c00190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010d0433000000010020019000001de10000613d000000000001004b000007cb0000c13d00110000000d001d00100000000c001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000110100002900001dc50000613d0000000001010433000000000001004b0000001509000029000000130a000029000000120b000029000000100c000029000007d70000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d00000000010c0433000000000001004b0000000002000019000000010200c039000000000021004b00001d7a0000c13d000000000001004b00001d830000613d00000be302b001970000000203000039000000000103041a00000be701100197000000000121019f000000000013041b000000400400043d0000002001000039000000000114043600000c1903000041000000000031043500000c3c0040009c00001d7c0000213d000000ff00a00190000000400a4000390000004000a0043f00000c430300004100000000003a0435000000c403400039000000a005000039000000000053043500000c450300004100000c440300c041000000a405400039000000000035043500000084034000390000001c0500002900000000005304350000000003000019000000010300c0390000006405400039000000000035043500000be30390019700000044054000390000000000350435000000e40540003900000000030404330000000000350435000000000003004b0000080b0000613d0000010404400039000000000500001900000000064500190000000007150019000000000707043300000000007604350000002005500039000000000035004b000008010000413d0000080b0000a13d000000000143001900000000000104350000000001000414000000040020008c00000aae0000c13d000000000300003100000ae20000013d0000001701700039000000000801043300000000001504350000003704700039000000000104043300000000014100190000000000150435000000160000006b00000c150000613d001200000004001d001300000008001d001500000007001d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b00000c2b02000041000000000020043900000be301100197001100000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b00000015070000290000001308000029000000120400002900001d7a0000613d000000400500043d00000064015000390000001c02000029000000000021043500000be3018001970000004402500039000000000012043500000024015000390000001602000029000000000021043500000c53010000410000000000150435000000040150003900000c1902000041000000000021043500000000010004140000001102000029000000040020008c00000ce10000c13d000000000300003100000cf70000013d000000040170003900000000020104330000000000150435000000180170003900000000030104330000000000150435000000ff00200190001500000003001d00000c170000613d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041000000c0b0010009c00000c4d0000813d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000301043b000000400100043d00000044021000390000001c040000290000000000420435000000200210003900000c1a04000041000000000042043500000be303300197000000240410003900000000003404350000004403000039000000000031043500000c090010009c00001d7c0000213d0000008003100039000000400030043f001300000003001d00000c3c0030009c00001d7c0000213d000000c003100039000000400030043f000000200300003900000013040000290000000000340435000000a00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c19020000412f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be1033001980000008009000039000000600a000039000008c80000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400a00043d00000000044a00190000000000a4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f00000000093a043600000005043002720000000504400210000008ba0000613d0000000005490019000000000601034f0000000007090019000000006806043c0000000007870436000000000057004b000008b60000c13d0000001f03300190000008c80000613d000000000141034f00000000044900190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010a0433000000010020019000001e460000613d000000000001004b000008e50000c13d00130000000a001d001200000009001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000130100002900001dc50000613d0000000001010433000000000001004b0000001c02000029000000120900002900000ed40000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d00000cd70000013d00000004017000390000000002010433000000000015043500000018017000390000000003010433001500000003001d0000000000150435000000020120018f000000010020019000000a7a0000c13d000000000001004b00000d670000c13d0000000001000411000000160010006b001000000009001d0000097d0000c13d000000400100043d00000064021000390000001c030000290000000000320435000000200210003900000c1d030000410000000000320435000000440310003900000000040004110000000000430435000000240310003900000000004304350000006403000039000000000031043500000c1e0010009c00001d7c0000213d000000a003100039001300000003001d000000400030043f00000c540010009c00001d7c0000213d000000e003100039000000400030043f000000200300003900000013040000290000000000340435000000c00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c19020000412f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be103300198000000800a000039000000600b000039000009550000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400b00043d00000000044b00190000000000b4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000a3b043600000005043002720000000504400210000009470000613d00000000054a0019000000000601034f00000000070a0019000000006806043c0000000007870436000000000057004b000009430000c13d0000001f03300190000009550000613d000000000141034f00000000044a00190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010b0433000000010020019000001ef60000613d000000000001004b000009710000c13d00130000000b001d00120000000a001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000130100002900001dc50000613d0000000001010433000000000001004b000000120a0000290000097d0000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d00000000010a0433000000000001004b0000000002000019000000010200c039000000000021004b00001d7a0000c13d000000000001004b00001d830000613d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b00001d7a0000613d000000400300043d00000c4201000041000000000013043500000004013000390000001c02000029000000000021043500000be10030009c001300000003001d00000be10100004100000000010340190000004001100210000000000200041400000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c700000c19020000412f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000001e860000613d0000001f0130003900000be2021001970000001301200029000000000021004b0000000002000019000000010200403900000be40010009c000000100900002900001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000d680000013d00000017017000390000000001010433000000180270003900000000002504350000001902700039000000000302043300000000002504350000001a02700039000000000402043300000000002504350000002e0270003900000000080204330000000000250435000000420270003900000000070204330000000000250435000000400a00043d0000004402a000390000001c050000290000000000520435000000800040019000000c6206000041000000000206001900000000020060190000007f0440018f00000c4f05200197000000000445019f00000c340020019800000c35020000410000000002006019000000000224019f0000002404a00039000000000024043500000080003001900000000002060019000000000200601900000c360400004100000000054a04360000007f0330018f00000c4f04200197000000000334019f00000c340020019800000c35020000410000000002006019000000000223019f0000000403a0003900000000002304350000006402a000390000000000020435000000000200041400000be304100197000000040040008c00000a9d0000c13d000000000400003100000d990000013d0000000001000411000000160010006b00000a720000c13d000000400100043d00000064021000390000001c03000029000000000032043500000044021000390000000000920435000000200210003900000c1d0300004100000000003204350000002403100039000000000400041100000000004304350000006403000039000000000031043500000c1e0010009c00001d7c0000213d000000a005100039000000400050043f00000c540010009c00001d7c0000213d000000e003100039000000400030043f00000020030000390000000000350435000000c00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c1902000041001100000005001d2f1f2f150000040f000000150900002900020000000103550000000003010019000000600330027000000be10030019d00000be103300198000000800a000039000000600b00003900000a490000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400b00043d00000000044b00190000000000b4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000a3b04360000000504300272000000050440021000000a3b0000613d00000000054a0019000000000601034f00000000070a0019000000006806043c0000000007870436000000000057004b00000a370000c13d0000001f0330019000000a490000613d000000000141034f00000000044a00190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010b0433000000010020019000001ddb0000613d000000000001004b00000a660000c13d00110000000b001d000f0000000a001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000110100002900001dc50000613d0000000001010433000000000001004b00000015090000290000000f0a00002900000a720000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d00000000010a0433000000000001004b0000000002000019000000010200c039000000000021004b00001d7a0000c13d000000000001004b00001d830000613d000000400a00043d00000c480100004100000000051a04360000000001000414000000040090008c00000af70000c13d000000000300003100000b290000013d0000002c0270003900000000060204330000000000250435000000000001004b000010870000c13d001000000009001d00000c2b010000410000000000100439001300000006001d00000be301600197001200000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001003000029000000130600002900001d7a0000613d000000400400043d00000c4001000041000000000014043500000000010004140000001205000029000000040050008c00000f540000c13d00000000030000310000107a0000013d001200000005001d001100000007001d001500000008001d00000be100a0009c00130000000a001d00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f0000ffff0090008c00000d6f0000813d00000c13011001c7000000000204001900000d730000013d0000001f0330003900000c2203300197000000c40330003900000be10030009c00000be103008041000000600330021000000be100a0009c00000be10400004100000000040a40190000004004400210000000000343019f00000be10010009c00000be101008041000000c001100210000000000131019f00150000000a001d2f1f2f150000040f000000150a0000290000000003010019000000600330027000000be103300197000000400030008c000000400500003900000000050340190000000504500272000000050440021000000ad00000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b00000acc0000c13d0000001f0550019000000ade0000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001e280000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000400030008c00001d7a0000413d0000000202000039000000000202041a00000be302200197000000010020008c0000069a0000613d00001d930000013d000f00000005001d00000be100a0009c00000be10200004100000000020a4019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c41011001c7000000000209001900110000000a001d2f1f2f1a0000040f000000110a0000290000000003010019000000600330027000000be103300197000000600030008c000000600500003900000000050340190000000504500272000000050440021000000b150000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b00000b110000c13d0000001f0550019000000b230000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000000150900002900001ded0000613d0000000f050000290000001f0130003900000c22011001970000000004a10019000000000014004b0000000001000019000000010100403900000be40040009c00001d7c0000213d000000010010019000001d7c0000c13d000000400040043f00000c240030009c00001d7a0000213d000000600030008c00001d7a0000413d00000000020a043300000c490020009c00001d7a0000213d000000000305043300000c490030009c00001d7a0000213d0000004001a00039000000000101043300000be10010009c00001d7a0000213d0000000401400039001100000002001d000000000002004b00001d990000613d000000000003004b00001d990000613d00000c25020000410000000002240436000e00000002001d000000000091043500000be10040009c00000be10100004100000000010440190000004001100210000000000200041400000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c700000c1902000041000f00000004001d000d00000003001d2f1f2f1a0000040f0000000e0d0000290000000f0b0000290000001303000029000000ff0330018f000000010030008c0000000d0500002900000011040000290000000004056019000000000c050019000000110c0060290000000005010019000000600550027000000be105500197000000200050008c00000020070000390000000007054019000000050670027200000b720000613d000000000801034f00000000090b0019000000008a08043c0000000009a904360000000000d9004b00000b6e0000c13d0000001f0770019000000b810000613d0000000506600210000000000861034f00000000066b00190000000307700210000000000906043300000000097901cf000000000979022f000000000808043b0000010007700089000000000878022f00000000077801cf000000000797019f0000000000760435000000000005001f0002000000010355000000010020019000001da80000613d0000001f0150003900000be2011001970000000007b1001900000be40070009c000000150600002900001d7c0000213d000000400070043f000000200050008c00001d7a0000413d00000000020b04330000000001c2004b00001f2c0000413d000000120500002900000c4a0550019700000c4b0050009c00001f2c0000213d00000c4b055000990000000000c2004b00000b9b0000613d00000c6302100129000000000052004b00001f2c0000413d00000000015100aa00000ba00000613d00000c6302100129000000000042004b00001f2c0000413d00000c630510016700000c4b02c000d1000000000052004b00001f2c0000213d000000000221001a00001d8d0000613d00000000014100a900000000012100d9000000010030008c00000000020000190000000002016019001100000002001d0000000001006019001200000001001d00000c4c0070009c00001d7c0000213d0000002001700039000f00000001001d000000400010043f001300000007001d000000000007043500000c2b0100004100000000001004390000000400600443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001506000029000000130300002900001d7a0000613d000000400700043d000000640170003900000080020000390000000000210435000000100100002900000be3011001970000004402700039000000000012043500000024017000390000001102000029000000000021043500000c4d010000410000000000170435000000040170003900000012020000290000000000210435000000000103043300000084027000390000000000120435000000000001004b00000be80000613d000000a40270003900000000030000190000000f0800002900000000042300190000000005830019000000000505043300000000005404350000002003300039000000000013004b00000bde0000413d00000be80000a13d000000000221001900000000000204350000000002000414000000040060008c00000bed0000c13d000000000300003100000c070000013d0000001f0110003900000c2201100197000000a40110003900000be10010009c00000be101008041000000600110021000000be10070009c001300000007001d00000be10300004100000000030740190000004003300210000000000131019f00000be10020009c00000be102008041000000c002200210000000000112019f00000000020600192f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000001e370000613d00000013070000290000001f0130003900000c22021001970000000001720019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c0000069a0000a13d00001d7a0000013d000000400900043d00000d040000013d000000160000006b00000f340000613d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b00000c2b02000041000000000020043900000be301100197001300000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b00001d7a0000613d000000400400043d00000064014000390000001c0200002900000000002104350000004401400039000000160200002900000000002104350000002401400039000000000021043500000c53010000410000000000140435000000040140003900000c1902000041000000000021043500000000010004140000001302000029000000040020008c00000fa80000c13d000000000300003100000fbb0000013d0000000001000411000000160010006b00000dd10000c13d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000201043b000000400100043d00000064031000390000001c04000029000000000043043500000be30220019700000044031000390000000000230435000000200210003900000c1d0300004100000000003204350000002403100039000000000400041100000000004304350000006403000039000000000031043500000c1e0010009c00001d7c0000213d000000a003100039001300000003001d000000400030043f00000c540010009c00001d7c0000213d000000e003100039000000400030043f000000200300003900000013040000290000000000340435000000c00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c19020000412f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be1033001980000008009000039000000600a00003900000cb60000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400a00043d00000000044a00190000000000a4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f00000000093a04360000000504300272000000050440021000000ca80000613d0000000005490019000000000601034f0000000007090019000000006806043c0000000007870436000000000057004b00000ca40000c13d0000001f0330019000000cb60000613d000000000141034f00000000044900190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010a0433000000010020019000001e460000613d000000000001004b00000cd30000c13d00130000000a001d001200000009001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000130100002900001dc50000613d0000000001010433000000000001004b0000001c02000029000000120900002900000ed40000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d0000000001090433000000000001004b0000000002000019000000010200c039000000000021004b00001d7a0000c13d000000000001004b0000001c0200002900000ed40000c13d00001d830000013d00000be10050009c001000000005001d00000be1030000410000000003054019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c13011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000001e4c0000613d00000015070000290000001308000029000000120400002900000010050000290000001f0130003900000c22011001970000000009510019000000000019004b0000000001000019000000010100403900000be40090009c00001d7c0000213d000000010010019000001d7c0000c13d000000400090043f00000c240030009c00001d7a0000213d00000c3701000041000000000a1904360000000401900039000000200200003900000000002104350000000001040433000000240290003900000000001204350000004403900039000000000001004b00000d1b0000613d0000005702700039000000000400001900000000053400190000000006420019000000000606043300000000006504350000002004400039000000000014004b00000d110000413d00000d1b0000a13d00000000023100190000000000020435000000000400041400000be302800197000000040020008c00000d210000c13d000000000300003100000d570000013d0000001f0110003900000c22011001970000000001910049000000000131001900000be10010009c00000be101008041000000600110021000000be10090009c00000be10300004100000000030940190000004003300210000000000131019f00000be10040009c00000be104008041000000c003400210000000000131019f001500000009001d00130000000a001d2f1f2f150000040f000000130a00002900000015090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200000d440000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00000d400000c13d0000001f0550019000000d530000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001dfc0000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c0000069a0000813d00001d7a0000013d000000400100043d00000000020004140000001504000029000000040040008c00000dc60000c13d0000000003000031000000010200003900000f790000013d00000c50011001c700008009020000390000001c0300002900000000050000192f1f2f150000040f0000000003010019000000600330027000000be104300197000000200040008c000000200500003900000000050440190000000503500272000000130a000029000000120900002900000d840000613d000000000601034f00000000070a0019000000006806043c0000000007870436000000000097004b00000d800000c13d0000001f0550019000000d930000613d0000000503300210000000000631034f00000000033a00190000000305500210000000000703043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000530435000000000004001f00020000000103550000000100200190000000150800002900001e0b0000613d00000011070000290000001f0540003900000c22015001970000000002a10019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f00000c240040009c00001d7a0000213d000000200040008c00001d7a0000413d00000be3068001970000000001000410000000000016004b0000069a0000613d00000000030a043300000be30170019700000c190010009c00000db70000c13d0000000001000414000000040080008c00000f620000c13d00000be40040009c0000000103000039000010a80000a13d00001d7c0000013d000000200420003900000c1a05000041000000000054043500000044042000390000000000340435000000240320003900000000006304350000004403000039000000000032043500000c090020009c00001d7c0000213d0000008003200039000000400030043f2f1f2d7f0000040f0000069a0000013d00000be10010009c00000be101008041000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f0000ffff0090008c00000f700000813d000000000204001900000f740000013d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400300043d001100000003001d00000c25020000410000000002230436001200000002001d00000be3021001970000000401300039001300000002001d000000000021043500000be10030009c00000be10100004100000000010340190000004001100210000000000200041400000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c700000c19020000412f1f2f1a0000040f000000120a00002900000011090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200000e000000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00000dfc0000c13d0000001f0550019000000e0f0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001ea40000613d0000001f0130003900000be202100197000000000a92001900000000002a004b0000000002000019000000010200403900000be400a0009c000000130700002900001d7c0000213d000000010020019000001d7c0000c13d0000004000a0043f000000200030008c00001d7a0000413d000000000609043300000c380200004100000000052a04360000000402a0003900000c190400004100000000004204350000000002000414000000040070008c001200000006001d00000e5f0000613d001000000005001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c7000000000207001900110000000a001d2f1f2f1a0000040f000000110a0000290000000003010019000000600330027000000be103300197000000600030008c000000600500003900000000050340190000000504500272000000050440021000000e490000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b00000e450000c13d0000001f0550019000000e570000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001f320000613d0000001f0130003900000012060000290000001307000029000000100500002900000be2011001970000000002a1001900000be40020009c00001d7c0000213d000000400020043f000000600030008c00001d7a0000413d00000c390020009c00001d7c0000213d0000006004200039000000400040043f00000000040a043300000be40040009c00001d7a0000213d0000000004420436000000000505043300000be40050009c00001d7a0000213d00000000005404350000004004a00039000000000504043300000c3a0050009c00001d7a0000213d0000004002200039000000000052043500000c6302500167000000000026004b00001f2c0000213d000000400a00043d00000c3b0200004100000000082a04360000000402a0003900000c190400004100000000004204350000000002000414000000040070008c00000eba0000613d001300000008001d001000000005001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c7000000000207001900110000000a001d2f1f2f1a0000040f000000110a0000290000000003010019000000600330027000000be103300197000000400030008c000000400500003900000000050340190000000504500272000000050440021000000ea30000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b00000e9f0000c13d0000001f0550019000000eb10000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000000130800002900001f410000613d0000001f0130003900000be201100197000000120600002900000010050000290000000002a10019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f000000400030008c00001d7a0000413d00000c3c0020009c00001d7c0000213d0000004001200039000000400010043f00000000010a043300000c3a0010009c00001d7a0000213d0000000002120436000000000308043300000c3a0030009c00001d7a0000213d00000000046500190000000000320435000000000214004b00001f2c0000413d001300000002001d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400a00043d0000006402a0003900000013030000290000000000320435000000150200002900000be3022001970000004403a00039000000000023043500000c3d0200004100000000002a04350000000402a0003900000c1903000041000000000032043500000be3021001970000002401a0003900000000002104350000008401a0003900000000000104350000000001000414000000040020008c00000efb0000c13d000000000300003100000f290000013d00000be100a0009c00000be10300004100000000030a4019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c3e011001c700150000000a001d2f1f2f150000040f000000150a0000290000000003010019000000600330027000000be103300197000000400030008c000000400500003900000000050340190000000504500272000000050440021000000f170000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b00000f130000c13d0000001f0550019000000f250000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001e5b0000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000010650000013d000000400300043d00000c30010000410000000001130436001200000001001d000000040130003900000c19020000410000000000210435001300000003001d0000002401300039000000000001043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000201043b000000000100041400000be302200197000000040020008c00000fca0000c13d0000000003000031000000130900002900000ff70000013d00000be10040009c001100000004001d00000be1020000410000000002044019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f0000ffff0030008c0000106b0000813d00000c41011001c70000000002050019000010700000013d00000be10020009c00000be102008041000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f000000000003004b0000109e0000613d00000be8011001c70000800902000039000000000408001900000000050000190000109f0000013d00000be8011001c700008009020000390000001c0300002900000000050000192f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be103100197000000000003004b00000080040000390000006001000039000006980000613d00000be40030009c00001d7c0000213d0000001f0130003900000c22011001970000003f0110003900000c2204100197000000400100043d0000000004410019000000000014004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000431043600000002050003670000000506300272000000050660021000000f990000613d0000000007640019000000000805034f0000000009040019000000008a08043c0000000009a90436000000000079004b00000f950000c13d0000001f03300190000006980000613d000000000565034f00000000066400190000000303300210000000000706043300000000073701cf000000000737022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000373019f0000000000360435000006980000013d00000be10040009c001200000004001d00000be1030000410000000003044019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c13011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000001f1b0000613d00000012040000290000001f0130003900000c22011001970000000004410019000000000014004b0000000001000019000000010100403900000be40040009c00001d7c0000213d000000010010019000001d7c0000c13d000000400040043f00000c240030009c0000001c01000029000010070000a13d00001d7a0000013d000000130300002900000be10030009c00000be103008041000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c29011001c72f1f2f1a0000040f00000013090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000000120a00002900000fe40000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00000fe00000c13d0000001f0550019000000ff30000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001f7d0000613d0000001f0130003900000c22011001970000000004910019000000000014004b0000000001000019000000010100403900000be40040009c00001d7c0000213d000000010010019000001d7c0000c13d000000400040043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d000000000109043300000084024000390000000000120435000000150100002900000be3011001970000004402400039000000000012043500000024014000390000001602000029000000000021043500000c3f010000410000000000140435000000040140003900000c19020000410000000000210435001300000004001d0000006401400039000000000001043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000201043b000000000100041400000be302200197000000040020008c0000102e0000c13d0000000003000031000000130a0000290000105b0000013d000000130300002900000be10030009c00000be103008041000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c3e011001c72f1f2f150000040f000000130a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000010490000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000010450000c13d0000001f05500190000010570000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001e950000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000400030008c0000069a0000813d00001d7a0000013d00000c57011001c700008009020000390000001c03000029000000000405001900000000050000192f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be1033001970000000100200190000000130600002900001f0c0000613d00000011040000290000001f0130003900000c22021001970000000001420019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000150100002900000be3011001970000000002000410000000000021004b0000069a0000613d000000400200043d000000200320003900000c1a04000041000000000043043500000044032000390000001c040000290000000000430435000000240320003900000000001304350000004401000039000000000012043500000c090020009c00001d7c0000213d0000008001200039000000400010043f00000be3016001972f1f2d7f0000040f0000069a0000013d00000000020800192f1f2f150000040f00000000030200190002000000010355000000600110027000000be10010019d00000be104100198000010d10000613d000000400200043d0000001f0540003900000c51015001970000003f0110003900000c52051001970000000001250019000000000051004b0000000005000019000000010500403900000be40010009c00001d7c0000213d000000010050019000001d7c0000c13d000000400010043f0000000001420436000000020500036700000005064002720000000506600210000010c00000613d0000000007610019000000000805034f0000000009010019000000008a08043c0000000009a90436000000000079004b000010bc0000c13d0000001f04400190000010ce0000613d000000000565034f00000000066100190000000304400210000000000706043300000000074701cf000000000747022f000000000505043b0000010004400089000000000545022f00000000044501cf000000000474019f000000000046043500000001003001900000069a0000c13d00001fb00000013d00000001003001900000069a0000c13d00001fae0000013d00000021016000390000000007010433000000000015043500000041016000390000000002010433001b00000002001d000000000015043500000042016000390000000002010433001a00000002001d000000000015043500000062016000390000000002010433001800000002001d000000000015043500000082016000390000000002010433001500000002001d0000000000150435000000400a00043d00000c280100004100000000041a04360000000401a0003900000009020000290000000000210435000000000100041000000be3021001970000002401a00039001600000002001d000000000021043500000000010004140000000a02000029000000040020008c001c00000007001d000011480000c13d0000000003000031000011780000013d000000170000006b0000000b03000029000012b10000c13d0000062f0000013d001a00000003001d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7001c00000009001d001b00000004001d2f1f2f1a0000040f0000001b0b0000290000001c090000290000000003010019000000600330027000000be10a3001970000002000a0008c000000200500003900000000050a401900000005045002720000111a0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000b7004b000011160000c13d0000001f05500190000011290000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f000000000054043500000000000a001f0002000000010355000000010020019000001eb30000613d0000001a030000290000001f01a0003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c2400a0009c00001d7a0000213d0000002000a0008c00001d7a0000413d0000000001090433000000010410008c0000000004004019000b00000004001d000000190100002900000000020004102f1f21150000040f0000000b03000029000000170000006b000012b10000c13d0000062f0000013d00000be100a0009c00000be10300004100000000030a4019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c29011001c700130000000a001d001200000004001d2f1f2f1a0000040f0000001209000029000000130a0000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000011640000613d000000000601034f00000000070a0019000000006806043c0000000007870436000000000097004b000011600000c13d0000001f05500190000011730000613d0000000504400210000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001ecf0000613d0000001c070000290000001f0130003900000c22011001970000000009a10019000000000019004b0000000002000019000000010200403900000be40090009c00001d7c0000213d000000010020019000001d7c0000c13d000000400090043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d00000000020a0433000000000072004b000012b10000813d00000c2a02000041000000000529043600000004029000390000000904000029000000000042043500000000020004140000000a04000029000000040040008c000011c50000613d00000be10090009c00000be1010000410000000001094019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c70000000a02000029001300000009001d001200000005001d2f1f2f1a0000040f000000120a00002900000013090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000011b00000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000011ac0000c13d0000001f05500190000011bf0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001f500000613d0000001f0130003900000be2011001970000000002910019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f000000200030008c00001d7a0000413d0000000001090433001300000001001d00000c2b0100004100000000001004390000000a010000290000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001c0300002900001d7a0000613d000000400400043d000000c40140003900000015020000290000000000210435000000a401400039000000180200002900000000002104350000001a01000029000000ff0110018f0000008402400039000000000012043500000064014000390000001b0200002900000000002104350000004401400039000000000031043500000024014000390000001602000029000000000021043500000c2c01000041000000000014043500000004014000390000000902000029000000000021043500000000010004140000000a02000029000000040020008c000012450000c13d0000000003000031000012580000013d0000001c0300002900000be10030009c00000be103008041000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c29011001c72f1f2f1a0000040f0000001c090000290000000003010019000000600330027000000be103300197000000200030008c0000002005000039000000000503401900000005045002720000001a0a0000290000121b0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000012170000c13d0000001f055001900000122a0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001ede0000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d0000000001090433000000010410008c0000000004004019000000190100002900000000020004100000001b030000292f1f21150000040f000012b10000013d00000be10040009c001c00000004001d00000be1030000410000000003044019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c2d011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000001f5f0000613d0000001c040000290000001f0130003900000c22021001970000000009420019000000000029004b0000000001000019000000010100403900000be40090009c00001d7c0000213d000000010010019000001d7c0000c13d000000400090043f00000c240030009c00001d7a0000213d00000c2a01000041000000000519043600000004019000390000000904000029000000000041043500000000010004140000000a04000029000000040040008c000012a00000613d00000be10090009c00000be1020000410000000002094019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c1c011001c70000000a02000029001c00000009001d001b00000005001d2f1f2f1a0000040f0000001b0a0000290000001c090000290000000003010019000000600330027000000be103300197000000200030008c0000002005000039000000000503401900000005045002720000128b0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000012870000c13d0000001f055001900000129a0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001f6e0000613d0000001f0130003900000be2021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f000000200030008c00001d7a0000413d0000001302000029000000010220003a00001f2c0000613d0000000003090433000000000023004b00001eed0000c13d000000010100008a000000170010006b00001f2c0000613d00000014030000290000062f0000013d00000000040004150000000001050433000000140210003900000000070204330000000000250435000000150210003900000000030204330000000000250435000000ff0230018f000000050020008c001c00000004a01d00000bcf0002a13e000000400200043d001c00000002001d00000c0401000041000000000012043500000004012000392f1f2d720000040f0000001c02000029000000000121004900000be10010009c00000be101008041000000600110021000000be10020009c00000be1020080410000004002200210000000000121019f00002f21000104300000002902100039000000000302043300000000002504350000002a021000390000000004020433001800000004001d00000000002504350000003e021000390000000004020433001500000004001d000000000025043500000041011000390000000002010433001600000002001d000000000015043500000be3063001970000000001000410000000000001004b001a00000006001d001b00000007001d000014ea0000613d0000000001000411000000000001004b000014fc0000c13d000000400200043d000000200120003900000c1d0300004100000000003104350000004401200039000000000061043500000064010000390000000000120435000000640120003900000000000104350000002401200039000000000001043500000c1e0020009c00001d7c0000213d000000a001200039000014f70000013d0000002902100039000000000302043300000000002504350000002a02100039000000000802043300000000002504350000003e01100039000000000601043300000000001504350000000001000411000000000001004b0000144e0000613d00000be3057001970000146a0000013d0000001602100039000000000302043300000000002504350000002a0210003900000000040204330000000000250435000000020230018f0000000100300190000013ad0000c13d000000000002004b000016470000c13d0000000001000411000000000001004b001a00000004001d00001a0e0000613d00000be30270019700001a240000013d0000001602100039000000000302043300000000002504350000002a011000390000000002010433000000000015043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000ff00300190001b00000007001d001a00000002001d0000162c0000613d0000000001000410000000000001004b000017ad0000613d0000000001000411000000000001004b000018590000613d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400900043d00000c2502000041000000000329043600000be3061001970000000401900039000000000061043500000000010004140000001b0200002900000be308200197000000040080008c001600000006001d001800000008001d000018b00000c13d0000000003000031000018e20000013d0000002903100039000000000203043300000000003504350000004903100039000000000403043300000000043400190000000000450435000000400900043d00000c370400004100000000084904360000000404900039000000200500003900000000005404350000000003030433000000240490003900000000003404350000004404900039000000000003004b000013660000613d0000006901100039000000000500001900000000064500190000000007510019000000000707043300000000007604350000002005500039000000000035004b0000135c0000413d000013660000a13d00000000014300190000000000010435000000000100041400000be302200197000000040020008c000013d00000c13d0000000003000031000014060000013d0000000001000415001800000001001d00000000010504330000001402100039000000000a02043300000000002504350000001502100039000000000802043300000000002504350000001602100039000000000302043300000000002504350000001702100039000000000402043300000000002504350000002b021000390000000006020433001a00000006001d00000000002504350000003f011000390000000002010433001600000002001d00000000001504350000008000400190000000800100008a000000000601001900000000060060190000008000300190000000000201001900000000020060190000007f0130018f0000000003020019000000000513019f0000007f0140018f000000000116019f00000be30d70019700000c1900d0009c000014160000c13d00000c330110019700000c340060019800000c35020000410000000002006019000000000112019f000000400900043d0000002402900039000000000012043500000c3601000041000000000419043600000c330150019700000c340030019800000c35020000410000000002006019000000000112019f000000040290003900000000001204350000006401900039000000000001043500000044019000390000000000010435000000000100041400000be302a00197000000040020008c000016490000c13d0000000003000031000016780000013d0000003e0110003900000000060104330000000000150435000000000002004b0000189b0000c13d001a00000004001d00000c2b010000410000000000100439001b00000006001d00000be301600197001800000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001a040000290000001b0600002900001d7a0000613d000000400500043d00000c4001000041000000000015043500000000010004140000001802000029000000040020008c000018790000c13d00000000030000310000188e0000013d0000001f0330003900000c22033001970000000003930049000000000343001900000be10030009c00000be103008041000000600330021000000be10090009c00000be10400004100000000040940190000004004400210000000000343019f00000be10010009c00000be101008041000000c001100210000000000113019f001b00000009001d001a00000008001d2f1f2f150000040f0000001a0a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000013f30000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000013ef0000c13d0000001f05500190000014020000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001ff50000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001c830000813d00001d7a0000013d001300000008001d000f00000001001d001000000006001d001100000005001d001200000003001d0000000001000411000000000001004b00150000000d001d000014360000c13d001b0000000a001d000000400200043d000000200120003900000c1d030000410000000000310435000000000100041000000be3011001970000004403200039000000000013043500000064010000390000000000120435000000640120003900000000000104350000002401200039000000000001043500000c1e0020009c00001d7c0000213d000000a001200039000000400010043f00000000010d00192f1f2d7f0000040f000000150d0000290000001b0a000029000000000c000415000000400200043d000000200120003900000c320300004100000000003104350000004403000039000000000032043500000be30ba0019700000024032000390000000000b304350000004403200039000000000003043500000c090020009c00001d7c0000213d0000008003200039000000400030043f000000000302043300000000020004140000000400d0008c001b0000000b001d000016860000c13d000000000100003100000001020000390000169c0000013d001a00000003001d000000400200043d000000200120003900000c1d030000410000000000310435000000000100041000000be3011001970000004403200039000000000013043500000064010000390000000000120435000000640120003900000000000104350000002401200039000000000001043500000c1e0020009c00001d7c0000213d000000a001200039000000400010043f00000be301700197001600000001001d001b00000006001d001800000008001d2f1f2d7f0000040f000000160500002900000018080000290000001b060000290000001a0300002900000be3023001970000000203000039000000000103041a00000be701100197000000000121019f000000000013041b000000400400043d00000020010000390000000001140436000000000051043500000c3c0040009c00001d7c0000213d000000ff00800190000000400a4000390000004000a0043f00000c430300004100000000003a0435000000c403400039000000a005000039000000000053043500000c450300004100000c440300c041000000a40540003900000000003504350000000003000019000000010300c0390000006405400039000000000035043500000be30360019700000044054000390000000000350435000000e4054000390000000003040433000000000035043500000084054000390000000000050435000000000003004b0000149c0000613d0000010404400039000000000500001900000000064500190000000007150019000000000707043300000000007604350000002005500039000000000035004b000014920000413d0000149c0000a13d000000000143001900000000000104350000000001000414000000040020008c000014a10000c13d0000000003000031000014d50000013d0000001f0330003900000c2203300197000000c40330003900000be10030009c00000be103008041000000600330021000000be100a0009c00000be10400004100000000040a40190000004004400210000000000343019f00000be10010009c00000be101008041000000c001100210000000000131019f001b0000000a001d2f1f2f150000040f0000001b0a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000014c30000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000014bf0000c13d0000001f05500190000014d10000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000020040000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000400030008c00001d7a0000413d0000000202000039000000000202041a00000be302200197000000010020008c00001c830000613d00001d930000013d000000400200043d000000200120003900000c1a03000041000000000031043500000024012000390000000000610435000000440100003900000000001204350000004401200039000000000001043500000c090020009c00001d7c0000213d0000008001200039000000400010043f00000be3017001972f1f2d7f0000040f0000001a060000290000001b07000029000000400a00043d00000c480100004100000000041a04360000000001000414000000040060008c000015040000c13d0000000003000031000015370000013d001200000004001d00000be100a0009c00000be10200004100000000020a4019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c41011001c7000000000206001900130000000a001d2f1f2f1a0000040f000000130a0000290000000003010019000000600330027000000be103300197000000600030008c0000006005000039000000000503401900000005045002720000000504400210000015220000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b0000151e0000c13d0000001f05500190000015300000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000020130000613d0000001b070000290000001a0600002900000012040000290000001f0130003900000c22011001970000000009a10019000000000019004b0000000002000019000000010200403900000be40090009c00001d7c0000213d000000010020019000001d7c0000c13d000000400090043f00000c240030009c00001d7a0000213d000000600030008c00001d7a0000413d00000000080a043300000c490080009c00001d7a0000213d000000000204043300000c490020009c00001d7a0000213d0000004004a00039000000000404043300000be10040009c00001d7a0000213d0000000404900039000000000008004b00001f9f0000613d000000000002004b00001f9f0000613d00000c2505000041000000000b59043600000000006404350000001804000029000000ff0540018f000000010050008c000000000a080019000000000a026019000000000802c019000000000400041400000be302700197000000040020008c0000159a0000613d00130000000a001d001100000005001d001800000008001d00000be10090009c00000be1010000410000000001094019000000400110021000000be10040009c00000be104008041000000c003400210000000000113019f00000c1c011001c7001b00000009001d00120000000b001d2f1f2f1a0000040f000000120a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000015810000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b0000157d0000c13d0000001f05500190000015900000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000001808000029000000130a000029000020220000613d0000001f0130003900000be2011001970000001a0600002900000011050000290000000004910019000000000014004b0000000001000019000000010100403900000be40040009c00001d7c0000213d000000010010019000001d7c0000c13d000000400040043f000000200030008c00001d7a0000413d0000000002090433000000000182004b00001f2c0000413d000000160300002900000c4a0330019700000c4b0030009c00001f2c0000213d00000c4b03300099000000000082004b000015b20000613d00000c6302100129000000000032004b00001f2c0000413d00000000013100aa000015b70000613d00000c63021001290000000000a2004b00001f2c0000413d00000c630310016700000c4b028000d1000000000032004b00001f2c0000213d000000000221001a00001d8d0000613d0000000001a100a900000000012100d9000000010050008c00000000020000190000000002016019001600000002001d0000000001006019001800000001001d00000c4c0040009c00001d7c0000213d0000002001400039001300000001001d000000400010043f001b00000004001d000000000004043500000c2b0100004100000000001004390000000400600443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001a060000290000001b0300002900001d7a0000613d000000400700043d000000640170003900000080020000390000000000210435000000150100002900000be3011001970000004402700039000000000012043500000024017000390000001602000029000000000021043500000c4d010000410000000000170435000000040170003900000018020000290000000000210435000000000103043300000084027000390000000000120435000000000001004b000015ff0000613d000000a4027000390000000003000019000000130800002900000000042300190000000005830019000000000505043300000000005404350000002003300039000000000013004b000015f50000413d000015ff0000a13d000000000221001900000000000204350000000002000414000000040060008c000016040000c13d00000000030000310000161e0000013d0000001f0110003900000c2201100197000000a40110003900000be10010009c00000be101008041000000600110021000000be10070009c001b00000007001d00000be10300004100000000030740190000004003300210000000000131019f00000be10020009c00000be102008041000000c002200210000000000112019f00000000020600192f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be10330019700020000000103550000000100200190000020310000613d0000001b070000290000001f0130003900000c22021001970000000001720019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001c830000a13d00001d7a0000013d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000201043b000000400900043d00000c30010000410000000003190436000000000100041000000be307100197000000240190003900000000007104350000001b0100002900000be30610019700000004019000390000000000610435000000000100041400000be305200197000000040050008c000017c70000c13d0000000003000031000017fd0000013d000000400100043d00001a610000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c13011001c7001b00000009001d001500000004001d2f1f2f150000040f000000150a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000016650000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000016610000c13d0000001f05500190000016740000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000204f0000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d00001b2d0000013d00000be10010009c00000be101008041000000400110021000000be10030009c00000be1030080410000006003300210000000000113019f00000be10020009c00000be102008041000000c002200210000000000121019f00000000020d0019000e0000000c001d2f1f2f150000040f000000150d0000290000000e0c0000290000001b0b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b00000080030000390000006004000039000016ca0000613d00000be40010009c00001d7c0000213d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00001d7c0000213d000000010050019000001d7c0000c13d000000400030043f0000000003140436000000020500036700000005061002720000000506600210000016bc0000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b000016b80000c13d0000001f07100190000016ca0000613d000000000565034f00000000066300190000000307700210000000000806043300000000087801cf000000000878022f000000000505043b0000010007700089000000000575022f00000000057501cf000000000585019f0000000000560435000000000002004b000016db0000613d0000000002040433000000000002004b00001aaa0000613d00000c240020009c00001d7a0000213d000000200020008c00001d7a0000413d0000000002030433000000000002004b0000000003000019000000010300c039000000000032004b00001d7a0000c13d000000000002004b00001aaa0000c13d000000400200043d000000200320003900000c3204000041000000000043043500000024042000390000000000b40435000000440400003900000000004204350000004404200039000000000004043500000c090020009c00001d7c0000213d0000008004200039000000400040043f000000000502043300000000040004140000000400d0008c0000000102000039000017040000613d00000be10030009c00000be103008041000000400130021000000be10050009c00000be1050080410000006002500210000000000112019f00000be10040009c00000be104008041000000c002400210000000000121019f00000000020d0019000e0000000c001d2f1f2f150000040f000000150d0000290000000e0c0000290000001b0b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b00000080030000390000006004000039000017300000613d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00001d7c0000213d000000010050019000001d7c0000c13d000000400030043f0000000003140436000000020500036700000005061002720000000506600210000017220000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b0000171e0000c13d0000001f07100190000017300000613d000000000565034f00000000066300190000000307700210000000000806043300000000087801cf000000000878022f000000000505043b0000010007700089000000000575022f00000000057501cf000000000585019f0000000000560435000000000002004b00001aaa0000613d00000000050004150000001e0550008a00000005055002100000000002040433000000000002004b000017470000613d00000c240020009c00001d7a0000213d000000200020008c00001d7a0000413d0000000002030433000000000002004b0000000003000019000000010300c039000000000032004b00001d7a0000c13d00000000050004150000001d0550008a0000000505500210000000000002004b00001aaa0000613d000d00000005001d000000400200043d000000200320003900000c3204000041000000000043043500000024042000390000000000b40435000000440400003900000000004204350000004404200039000000000004043500000c090020009c00001d7c0000213d0000008004200039000000400040043f000000000502043300000000040004140000000400d0008c0000000102000039000017700000613d00000be10030009c00000be103008041000000400130021000000be10050009c00000be1050080410000006002500210000000000112019f00000be10040009c00000be104008041000000c002400210000000000121019f00000000020d0019000e0000000c001d2f1f2f150000040f0000000e0c0000290000001b0b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b000000800300003900000060040000390000179c0000613d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00001d7c0000213d000000010050019000001d7c0000c13d000000400030043f00000000031404360000000205000367000000050610027200000005066002100000178e0000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b0000178a0000c13d0000001f011001900000179c0000613d000000000565034f00000000066300190000000301100210000000000706043300000000071701cf000000000717022f000000000505043b0000010001100089000000000515022f00000000011501cf000000000171019f0000000000160435000000000002004b00001aa60000613d0000000002040433000000000002004b000000010100003900001aa70000613d00000c240020009c00001d7a0000213d000000200020008c00001d7a0000413d0000000001030433000000000001004b0000000002000019000000010200c039000000000021004b00001aa70000613d00001d7a0000013d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400200043d000000200320003900000c1a04000041000000000043043500000be30110019700000024032000390000000000130435000000440100003900000000001204350000004401200039000000000001043500000c090020009c0000001b0300002900001d7c0000213d0000008001200039000018740000013d001300000007001d001500000006001d00000be10090009c00000be1020000410000000002094019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c29011001c7001600000005001d0000000002050019001b00000009001d001800000003001d2f1f2f1a0000040f000000180a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000017e70000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000017e30000c13d0000001f05500190000017f60000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000205e0000613d0000001605000029000000150600002900000013070000290000001f0130003900000c2201100197000000000a91001900000000001a004b0000000002000019000000010200403900000be400a0009c00001d7c0000213d000000010020019000001d7c0000c13d0000004000a0043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d00000000020904330000008404a0003900000000002404350000001a0200002900000be3022001970000004404a0003900000000002404350000002402a00039000000000072043500000c3f0200004100000000002a04350000000402a0003900000000006204350000006402a0003900000000000204350000000002000414000000040050008c0000184f0000613d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c3e011001c70000000002050019001b0000000a001d2f1f2f150000040f0000001b0a0000290000000003010019000000600330027000000be103300197000000400030008c00000040050000390000000005034019000000050450027200000005044002100000183b0000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000018370000c13d0000001f05500190000018490000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000206d0000613d0000001f0130003900000be2011001970000000002a10019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f00001a0b0000013d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400200043d000000200320003900000c1d04000041000000000043043500000be3011001970000004403200039000000000013043500000064010000390000000000120435000000640120003900000000000104350000002401200039000000000001043500000c1e0020009c0000001b0300002900001d7c0000213d000000a001200039000000400010043f00000be3013001972f1f2d7f0000040f001800000000001d000019a90000013d00000be10050009c001600000005001d00000be1030000410000000003054019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c41011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be103300197000200000001035500000001002001900000208b0000613d0000001a040000290000001b0600002900000016050000290000001f0130003900000c22021001970000000001520019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d00000be3014001970000000002000410000000000021004b00001c830000613d000000400200043d000000200320003900000c1a04000041000000000043043500000024032000390000000000130435000000440100003900000000001204350000004401200039000000000001043500000c090020009c00001d7c0000213d0000008001200039000000400010043f00000be3016001972f1f2d7f0000040f00001c830000013d00000be10090009c00000be1020000410000000002094019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c1c011001c70000000002080019001500000009001d001300000003001d2f1f2f1a0000040f000000130a00002900000015090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000018cd0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000018c90000c13d0000001f05500190000018dc0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000000018080000290000209a0000613d00000016060000290000001f0130003900000c2201100197000000000a91001900000000001a004b0000000002000019000000010200403900000be400a0009c00001d7c0000213d000000010020019000001d7c0000c13d0000004000a0043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d000000000709043300000c380200004100000000052a04360000000402a0003900000000008204350000000002000414000000040060008c001500000007001d000019300000613d001200000005001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c7000000000206001900130000000a001d2f1f2f1a0000040f000000130a0000290000000003010019000000600330027000000be103300197000000600030008c0000006005000039000000000503401900000005045002720000000504400210000019180000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000019140000c13d0000001f05500190000019260000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000001808000029000020c70000613d0000001f0130003900000be2011001970000001606000029000000150700002900000012050000290000000002a10019000000000012004b0000000004000019000000010400403900000be40020009c00001d7c0000213d000000010040019000001d7c0000c13d000000400020043f000000600030008c00001d7a0000413d00000c390020009c00001d7c0000213d0000006004200039000000400040043f00000000040a043300000be40040009c00001d7a0000213d0000000004420436000000000505043300000be40050009c00001d7a0000213d00000000005404350000004004a00039000000000404043300000c3a0040009c00001d7a0000213d0000004002200039000000000042043500000c6302400167000000000027004b00001f2c0000213d000000400a00043d00000c3b0200004100000000052a04360000000402a0003900000000008204350000000002000414000000040060008c0000198e0000613d001200000005001d001300000004001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c7000000000206001900180000000a001d2f1f2f1a0000040f000000180a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000019770000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000019730000c13d0000001f05500190000019850000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000020a90000613d0000001f0130003900000be2011001970000001507000029000000130400002900000012050000290000000002a10019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f000000400030008c00001d7a0000413d00000c3c0020009c00001d7c0000213d0000004001200039000000400010043f00000000010a043300000c3a0010009c00001d7a0000213d0000000002120436000000000305043300000c3a0030009c00001d7a0000213d00000000047400190000000000320435000000000114004b00001f2c0000413d001800000001001d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400a00043d0000006402a00039000000180300002900000000003204350000001a0200002900000be3022001970000004403a00039000000000023043500000c3d0200004100000000002a04350000001b0200002900000be3022001970000000403a00039000000000023043500000be3021001970000002401a0003900000000002104350000008401a0003900000000000104350000000001000414000000040020008c000019d00000c13d0000000003000031000019fe0000013d00000be100a0009c00000be10300004100000000030a4019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c3e011001c7001b0000000a001d2f1f2f150000040f0000001b0a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000019ec0000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000019e80000c13d0000001f05500190000019fa0000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000020400000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000400030008c00001c830000813d00001d7a0000013d000000400200043d000000200120003900000c1d030000410000000000310435000000000100041000000be3011001970000004403200039000000000013043500000064010000390000000000120435000000640120003900000000000104350000002401200039000000000001043500000c1e0020009c00001d7c0000213d000000a001200039000000400010043f00000be301700197001b00000001001d2f1f2d7f0000040f0000001b0200002900000c2b010000410000000000100439001b00000002001d0000000400200443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001a0400002900001d7a0000613d000000400500043d00000c420100004100000000001504350000000401500039000000000001043500000000010004140000001b02000029000000040020008c00001a400000c13d000000000300003100001a540000013d00000be10050009c001800000005001d00000be1030000410000000003054019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be10330019700020000000103550000000100200190000020b80000613d0000001a0400002900000018050000290000001f0130003900000c22021001970000000001520019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d0000000002000414000000040040008c00001a670000c13d0000000003000031000000000200001900001a750000013d00000be10010009c00000be101008041000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000000020400192f1f2f150000040f000000010220015f0002000000010355000000600110027000000be10010019d00000be103100197000000000003004b0000008004000039000000600100003900001aa30000613d00000be40030009c00001d7c0000213d0000001f0130003900000c22011001970000003f0110003900000c2204100197000000400100043d0000000004410019000000000014004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000431043600000002050003670000000506300272000000050660021000001a950000613d0000000007640019000000000805034f0000000009040019000000008a08043c0000000009a90436000000000079004b00001a910000c13d0000001f0330019000001aa30000613d000000000565034f00000000066400190000000303300210000000000706043300000000073701cf000000000737022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000373019f0000000000360435000000010020019000001c830000613d00001dd60000013d00000000010000190000000d020000290000000502200270000000000201001f000000000100041500000000011c004900000000010000020000001301000029000000ff0010019000001ac60000613d000000160100002900000be30210019700000c190020009c001500000002001d00001ae40000c13d00000c2601000041000000000010043900000000010004100000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b001300000001001d0000001b0b00002900001b730000013d0000000f0100002900000c3301100197000000100200002900000c340020019800000c35020000410000000002006019000000000112019f000000400900043d0000002402900039000000000012043500000c36010000410000000003190436000000110100002900000c3301100197000000120200002900000c340020019800000c35020000410000000002006019000000000112019f00000004029000390000000000120435000000640190003900000000000104350000004401900039000000000001043500000000010004140000000400b0008c00001af00000c13d000000000300003100001b200000013d000000400900043d00000c25010000410000000004190436000000000100041000000be301100197000000040390003900000000001304350000000001000414000000040020008c00001b320000c13d000000000300003100001b620000013d00000be10090009c00000be1020000410000000002094019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c13011001c700000000020b0019001b00000009001d001500000003001d2f1f2f150000040f000000150a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200001b0d0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00001b090000c13d0000001f0550019000001b1c0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000020d60000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d00000000030904330000001a0400002900001c1f0000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7001300000009001d000e00000004001d2f1f2f1a0000040f0000000e0a00002900000013090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200001b4e0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00001b4a0000c13d0000001f0550019000001b5d0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000001b0b000029000020f70000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d0000000001090433001300000001001d00000c2b0100004100000000001004390000000400b00443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001b03000029000000150500002900001d7a0000613d0000000f0100002900000c3301100197000000100200002900000c340020019800000c35020000410000000002006019000000000112019f000000400400043d0000002402400039000000000012043500000c36010000410000000000140435000000110100002900000c3301100197000000120200002900000c340020019800000c35020000410000000002006019000000000112019f0000000402400039000000000012043500000064014000390000000000010435000000440140003900000000000104350000000001000414000000040030008c00001ba20000c13d000000000300003100001bb70000013d00000be10040009c001200000004001d00000be1020000410000000002044019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c13011001c700000000020300192f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be103300197000200000001035500000001002001900000207c0000613d000000150500002900000012040000290000001f0130003900000c22011001970000000009410019000000000019004b0000000002000019000000010200403900000be40090009c00001d7c0000213d000000010020019000001d7c0000c13d000000400090043f00000c240030009c00001d7a0000213d00000c190050009c00001bd50000c13d00000c2601000041000000000010043900000000010004100000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b00001c1c0000013d00000c25020000410000000006290436000000000200041000000be302200197000000040490003900000000002404350000000002000414000000040050008c00001c100000613d00000be10090009c00000be1010000410000000001094019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c70000000002050019001b00000009001d001500000006001d2f1f2f1a0000040f000000150a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200001bfb0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00001bf70000c13d0000001f0550019000001c0a0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000021060000613d0000001f0130003900000be2011001970000000002910019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f000000200030008c00001d7a0000413d0000000001090433000000130310006c0000001a0400002900001f2c0000413d00000be3074001970000000001000410000000000017004b00001c800000613d000000400200043d000000160100002900000be30110019700000c190010009c00001c2e0000c13d0000000001000414000000040040008c00001c3d0000c13d0000000003000031000000010200003900001c500000013d000000200520003900000c1a06000041000000000065043500000044052000390000000000350435000000240320003900000000007304350000004403000039000000000032043500000c090020009c00001d7c0000213d0000008003200039000000400030043f2f1f2d7f0000040f00001c800000013d00000be10020009c00000be102008041000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f000000000003004b00001c4a0000613d00000be8011001c70000800902000039000000000500001900001c4b0000013d00000000020400192f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be103100197000000000003004b0000008004000039000000600100003900001c7e0000613d00000be40030009c00001d7c0000213d0000001f0130003900000c22011001970000003f0110003900000c2204100197000000400100043d0000000004410019000000000014004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000431043600000002050003670000000506300272000000050660021000001c700000613d0000000007640019000000000805034f0000000009040019000000008a08043c0000000009a90436000000000079004b00001c6c0000c13d0000001f0330019000001c7e0000613d000000000565034f00000000066400190000000303300210000000000706043300000000073701cf000000000737022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000373019f0000000000360435000000010020019000001dd60000613d00000000010004150000001801100069000000000100000200000000010004150000001c011000690000000001000002000012b10000013d0000000a0100002900000c190010009c000b00000003001d00001c990000c13d00000c2601000041000000000010043900000000010004110000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001cf00000c13d00001d820000013d000000400900043d00000c25010000410000000004190436000000000100041100000be301100197000000040290003900000000001204350000000a020000290000000001000414000000040020008c00001ca60000c13d000000000300003100001cd60000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7001c00000009001d001b00000004001d2f1f2f1a0000040f0000001b0a0000290000001c090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000001f0450018f000000050550027200001cc30000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00001cbf0000c13d000000000004004b00001cd20000613d0000000505500210000000000651034f00000000055900190000000304400210000000000705043300000000074701cf000000000747022f000000000606043b0000010004400089000000000646022f00000000044601cf000000000474019f0000000000450435000000000003001f0002000000010355000000010020019000001fd70000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d000000010300008a000000080330014f0000000002090433000000000032004b00001f2c0000213d000000080220002900000c640020009c00001f2c0000213d0000000a02200039000000010020006c00001f8c0000413d000000030200002900000c190020009c00001d020000c13d00000c2601000041000000000010043900000007010000290000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b00001d4e0000013d000000400900043d00000c25010000410000000004190436000000070100002900000be301100197000000040390003900000000001304350000000001000414000000040020008c00001d0e0000c13d000000000300003100001d3e0000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7001c00000009001d001b00000004001d2f1f2f1a0000040f0000001b0a0000290000001c090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000001f0450018f000000050550027200001d2b0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00001d270000c13d000000000004004b00001d3a0000613d0000000505500210000000000651034f00000000055900190000000304400210000000000705043300000000074701cf000000000747022f000000000606043b0000010004400089000000000646022f00000000044601cf000000000474019f0000000000450435000000000003001f0002000000010355000000010020019000001fe60000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d00000000010904330000000403000029000000010400008a000000060240014f000000000023004b00001f2c0000213d00000004030000290000000602300029000000000021004b00001f2a0000413d000000000431004b00001f2c0000413d000000400100043d00000040021000390000000603000029000000000032043500000020021000390000000b0300002900000000003204350000006002100039001c00000004001d0000000000420435000000070200002900000be302200197000000000021043500000be10010009c00000be1010080410000004001100210000000000200041400000be10020009c00000be102008041000000c002200210000000000112019f00000c5d011001c70000800d02000039000000040300003900000c5e040000410000000005000411000000020600002900000005070000292f1f2f150000040f000000010020019000001d7a0000613d0000001c01000029000000000001042d000000000100001900002f210001043000000c1b0100004100000000001004350000004101000039000000040010043f00000c1c0100004100002f2100010430000000000001042f000000400100043d000000640210003900000c58030000410000000000320435000000440210003900000c5903000041000000000032043500000024021000390000002a0300003900001e730000013d00000c1b0100004100000000001004350000001201000039000000040010043f00000c1c0100004100002f2100010430000000640210003900000c46030000410000000000320435000000440210003900000c470300004100001e700000013d00000c0402000041000000000024043500000020020000390000000000210435000000440140003900000c4e02000041000000000021043500000024014000390000001302000039000000000021043500000be10040009c00000be104008041000000400140021000000c20011001c700002f2100010430000000400200043d0000001f0350018f000000050450027200001db40000613d00000005064002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001db00000c13d000000000003004b00001dc30000613d0000000504400210000000000141034f00000000044200190000000303300210000000000604043300000000063601cf000000000636022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000161019f00000000001404350000006001500210000020f20000013d000000400100043d000000440210003900000c5a03000041000000000032043500000024021000390000001d03000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c20011001c700002f210001043000000be10040009c00000be1040080410000004002400210000000000101043300001e810000013d000000000001004b00001de30000613d00000be100a0009c00000be10a0080410000004002a0021000001e810000013d000000000001004b00001e7e0000c13d000000400300043d001c00000003001d00000c040100004100000000001304350000000401300039000000200200003900000000002104350000002402300039000000110100002900001f010000013d000000400200043d0000001f0430018f000000050530027200001df90000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001df50000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001e080000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e040000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0340018f000000050540027200001e170000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e130000c13d000000000003004b00001e260000613d0000000505500210000000000151034f00000000055200190000000303300210000000000605043300000000063601cf000000000636022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000161019f00000000001504350000006001400210000020f20000013d000000400200043d0000001f0430018f000000050530027200001e340000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e300000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001e430000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e3f0000c13d000000000004004b000020f10000613d000020e40000013d000000000001004b00001ef80000613d00000be10090009c00000be109008041000000400290021000001e810000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001e580000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e540000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001e670000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e630000c13d000000000004004b000020f10000613d000020e50000013d000000400100043d000000640210003900000c60030000410000000000320435000000440210003900000c6103000041000000000032043500000024021000390000002403000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c13011001c700002f210001043000000be100c0009c00000be10c0080410000004002c0021000000be10010009c00000be1010080410000006001100210000000000121019f00002f2100010430000000400200043d0000001f0430018f0000000505300272000000050550021000001e920000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e8e0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001ea10000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e9d0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f000000050530027200001eb00000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001eac0000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f04a0018f0000000505a00272000000050550021000001ebf0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001ebb0000c13d000000000004004b00001ecd0000613d000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f00000000001504350000006001a00210000020f20000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001edb0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001ed70000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001eea0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001ee60000c13d000000000004004b000020f10000613d000020e50000013d000000640210003900000c2e030000410000000000320435000000440210003900000c2f0300004100000000003204350000002402100039000000210300003900001e730000013d000000000001004b00001ddd0000c13d000000400300043d001c00000003001d00000c04010000410000000000130435000000040130003900000020020000390000000000210435000000240230003900000013010000292f1f2e940000040f0000001c02000029000000000121004900000be10010009c00000be10100804100000be10020009c00000be10200804100000060011002100000004002200210000000000121019f00002f2100010430000000400200043d0000001f0430018f0000000505300272000000050550021000001f180000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f140000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001f270000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f230000c13d000000000004004b000020f10000613d000020e50000013d000000000131004b00001f950000813d00000c1b0100004100000000001004350000001101000039000000040010043f00000c1c0100004100002f2100010430000000400200043d0000001f0430018f0000000505300272000000050550021000001f3e0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f3a0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001f4d0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f490000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f000000050530027200001f5c0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f580000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001f6b0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f670000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001f7a0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f760000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001f890000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f850000c13d000000000004004b000020f10000613d000020e50000013d000000640210003900000c5b030000410000000000320435000000440210003900000c5c03000041000000000032043500000024021000390000002f0300003900001e730000013d000000400200043d00000c5f0300004100000000003204350000000403200039000000000013043500000be10020009c00000be102008041000000400120021000000c1c011001c700002f210001043000000c0401000041000000000019043500000020010000390000000000140435000000440190003900000c4e02000041000000000021043500000024019000390000001302000039000000000021043500000be10090009c00000be109008041000000400190021000000c20011001c700002f21000104300000008001000039000000600200003900000be10010009c00000be1010080410000004001100210000000000202043300000be10020009c00000be1020080410000006002200210000000000112019f00002f2100010430000000400200043d0000001f0430018f000000050530027200001fc50000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001fc10000c13d000000000004004b000020e40000c13d000020f10000013d000000400200043d0000001f0430018f000000050530027200001fd40000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001fd00000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001fe30000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001fdf0000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001ff20000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001fee0000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f00000005053002720000000505500210000020010000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001ffd0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f00000005053002720000000505500210000020100000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b0000200c0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f000000050530027200000005055002100000201f0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b0000201b0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f000000050530027200000005055002100000202e0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b0000202a0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f000000050530027200000005055002100000203d0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020390000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f00000005053002720000204c0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020480000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f00000005053002720000205b0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020570000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200000005055002100000206a0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020660000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f00000005053002720000000505500210000020790000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020750000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f00000005053002720000000505500210000020880000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020840000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000020970000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020930000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000020a60000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020a20000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000020b50000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020b10000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000020c40000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020c00000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000020d30000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020cf0000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000020e20000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020de0000c13d000000000004004b000020f10000613d0000000505500210000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f0000000000150435000000600130021000000be10020009c00000be1020080410000004002200210000000000112019f00002f2100010430000000400200043d0000001f0430018f00000005053002720000000505500210000021030000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020ff0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f00000005053002720000000505500210000021120000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b0000210e0000c13d000000000004004b000020f10000613d000020e50000013d0014000000000002000000000501043300000001065000390000000005060433000d00000001001d0000000000610435000c00ff0050019400002be30000613d000f0be30030019b000e0be30020019b00000000020000190000212c0000013d000000010020019000002c2b0000613d00000000010004150000000a01100069000000000100000200000012010000290000001004100069000000110200002900000001022000390000000c0020006c00002be30000813d001100000002001d0000000d050000290000000007050433000000020270003900000000010204330000000000250435000000030270003900000000030204330000000000250435000000ff0230018f000000050020008c0000ffff0110a18f000000000941a0a90000ffff0190a11a001200000001a01d001000000004a01d00000bdb0002a13e00002bf30000013d00000017017000390000000002010433000000000015043500000018017000390000000003010433000a00000003001d00000000001504350000002c017000390000000003010433000800000003001d00000000001504350000002f017000390000000003010433000900000003001d000000000015043500000be3062001970000000e010000290000000002000410000000000021004b000b00000006001d000022ba0000c13d000000400200043d000000200120003900000c1a030000410000000000310435000000440120003900000012030000290000000000310435000000240120003900000000006104350000004401000039000000000012043500000c090020009c00002be40000213d0000008001200039000022ce0000013d0000001701700039000000000301043300000000001504350000001801700039000000000801043300000000001504350000002c017000390000000006010433000000000015043500000000020004110000000e0020006b0000218a0000c13d000b00000003001d000000400200043d000000200120003900000c1d030000410000000000310435000000640120003900000012030000290000000000310435000000000100041000000be3011001970000004403200039000000000013043500000024012000390000000e0300002900000000003104350000006401000039000000000012043500000c1e0020009c00002be40000213d000000a001200039000000400010043f0000000f01000029000a00000006001d000900000008001d2f1f2d7f0000040f00000009080000290000000a060000290000000b0300002900000be3023001970000000203000039000000000103041a00000be701100197000000000121019f000000000013041b000000400400043d000000200100003900000000011404360000000f03000029000000000031043500000c3c0040009c00002be40000213d000000ff00800190000000400a4000390000004000a0043f00000c430300004100000000003a0435000000c403400039000000a005000039000000000053043500000c450300004100000c440300c041000000a40540003900000000003504350000008403400039000000120500002900000000005304350000000003000019000000010300c0390000006405400039000000000035043500000be30360019700000044054000390000000000350435000000e40540003900000000030404330000000000350435000000000003004b000021be0000613d0000010404400039000000000500001900000000064500190000000007150019000000000707043300000000007604350000002005500039000000000035004b000021b40000413d000021be0000a13d000000000143001900000000000104350000000001000414000000040020008c000024390000c13d00000000030000310000246d0000013d000000040170003900000000020104330000000000150435000000180170003900000000060104330000000000150435000000020120018f0000000100200190000022da0000c13d000000000001004b0000258e0000c13d000a00000009001d000b00000006001d00000000020004110000000e0020006b000021e90000c13d000000400200043d000000200120003900000c1d030000410000000000310435000000640120003900000012030000290000000000310435000000000100041000000be3011001970000004403200039000000000013043500000024012000390000000e0300002900000000003104350000006401000039000000000012043500000c1e0020009c00002be40000213d000000a001200039000000400010043f0000000f010000292f1f2d7f0000040f00000c2b0100004100000000001004390000000f010000290000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b0000000b060000290000000a0900002900002bea0000613d000000400400043d00000c4201000041000000000014043500000004014000390000001202000029000000000021043500000000010004140000000f02000029000000040020008c0000274d0000c13d0000000003000031000027620000013d00000004017000390000000002010433000000000015043500000018017000390000000003010433000b00000003001d0000000000150435000000ff00200190000024aa0000613d00000c180100004100000000001004390000000001000412000000040010044300000024000004430000000e010000290000000002000410000000000021004b000024e40000c13d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000400200043d000000200320003900000c1a04000041000000000043043500000044032000390000001204000029000000000043043500000be301100197000000240320003900000000001304350000004401000039000000000012043500000c090020009c00002be40000213d0000008001200039000025030000013d00000017017000390000000008010433000000000015043500000037047000390000000001040433000000000141001900000000001504350000000e0000006b000024e20000613d000900000004001d000a00000008001d000b00000007001d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b00000c2b02000041000000000020043900000be301100197000800000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b0000000b070000290000000a08000029000000090400002900002bea0000613d000000400500043d00000064015000390000001202000029000000000021043500000be3018001970000004402500039000000000012043500000024015000390000000e02000029000000000021043500000c5301000041000000000015043500000004015000390000000f02000029000000000021043500000000010004140000000802000029000000040020008c000025080000c13d00000000030000310000251e0000013d0000000001000415000a00000001001d00000000010504330000001402100039000000000c020433000000000025043500000015021000390000000008020433000000000025043500000016021000390000000003020433000000000025043500000017021000390000000006050019000000000502043300000000002604350000002b021000390000000007020433000b00000007001d00000000002604350000003f011000390000000002010433000900000002001d00000000001604350000008000500190000000800100008a000000000601001900000000060060190000008000300190000000000201001900000000020060190000007f0130018f0000000003020019000000000b13019f0000007f0150018f000000000516019f0000000f0100002900000c190010009c000022ff0000c13d000000400a00043d0000004401a000390000001202000029000000000021043500000c330150019700000c340060019800000c35020000410000000002006019000000000112019f0000002402a00039000000000012043500000c360100004100000000061a043600000c3301b0019700000c340030019800000c35020000410000000002006019000000000112019f0000000402a0003900000000001204350000006401a000390000000000010435000000000100041400000be305c00197000000040050008c000025900000c13d00000000030000310000272e0000013d0000000002000411000000000021004b000022d20000c13d000000400200043d000000200120003900000c1d0300004100000000003104350000006401200039000000120300002900000000003104350000004401200039000000000061043500000024012000390000000e0300002900000000003104350000006401000039000000000012043500000c1e0020009c00002be40000213d000000a001200039000000400010043f0000000f010000292f1f2d7f0000040f0000000b06000029000000400a00043d00000c480100004100000000041a04360000000001000414000000040060008c0000233a0000c13d00000000030000310000236c0000013d0000002c0270003900000000070204330000000000250435000000000001004b000029f40000c13d000a00000009001d000b00000006001d00000c2b010000410000000000100439000900000007001d00000be301700197000800000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b0000000b060000290000000a03000029000000090700002900002bea0000613d000000400400043d00000c4001000041000000000014043500000000010004140000000805000029000000040050008c0000273f0000c13d0000000003000031000029e70000013d000600000008001d000300000005001d000400000006001d000500000003001d00000000020004110000000e0020006b00080000000b001d000023200000c13d00070000000c001d000000400200043d000000200120003900000c1d030000410000000000310435000000640120003900000012030000290000000000310435000000000100041000000be3011001970000004403200039000000000013043500000024012000390000000e0300002900000000003104350000006401000039000000000012043500000c650020009c00002be40000813d000000a001200039000000400010043f0000000f010000292f1f2d7f0000040f000000080b000029000000070c000029000000000d000415000000400200043d000000440120003900000012030000290000000000310435000000200120003900000c320300004100000000003104350000004403000039000000000032043500000be30cc0019700000024032000390000000000c3043500000c090020009c00002be40000213d0000008003200039000000400030043f000000000302043300000000040004140000000f02000029000000040020008c00070000000c001d0000259f0000c13d00000000010000310000000102000039000025b40000013d000600000004001d00000be100a0009c00000be10200004100000000020a4019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c41011001c7000000000206001900070000000a001d2f1f2f1a0000040f000000070a0000290000000003010019000000600330027000000be103300197000000600030008c0000006005000039000000000503401900000005045002720000000504400210000023580000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000023540000c13d0000001f05500190000023660000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002c340000613d0000000b0600002900000006040000290000001f0130003900000c22011001970000000009a10019000000000019004b0000000002000019000000010200403900000be40090009c00002be40000213d000000010020019000002be40000c13d000000400090043f00000c240030009c00002bea0000213d000000600030008c00002bea0000413d00000000070a043300000c490070009c00002bea0000213d000000000204043300000c490020009c00002bea0000213d0000004004a00039000000000404043300000be10040009c00002bea0000213d0000000404900039000000000007004b00002c030000613d000000000002004b00002c030000613d00000c2505000041000000000a59043600000000006404350000000a04000029000000ff0540018f000000010050008c00000000080700190000000008026019000000000702c01900000000040004140000000f02000029000000040020008c000023cf0000613d000700000008001d000400000005001d000500000007001d00000be10090009c00000be1010000410000000001094019000000400110021000000be10040009c00000be104008041000000c003400210000000000113019f00000c1c011001c7000a00000009001d00060000000a001d2f1f2f1a0000040f000000060a0000290000000a090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000023b60000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000023b20000c13d0000001f05500190000023c50000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000000070800002900002c430000613d0000001f0130003900000be2011001970000000b06000029000000050700002900000004050000290000000004910019000000000014004b0000000001000019000000010100403900000be40040009c00002be40000213d000000010010019000002be40000c13d000000400040043f000000200030008c00002bea0000413d0000000002090433000000000172004b00002bed0000413d000000090300002900000c4a0330019700000c4b0030009c00002bed0000213d00000c4b03300099000000000072004b000023e70000613d00000c6302100129000000000032004b00002bed0000413d00000000013100aa000023ec0000613d00000c6302100129000000000082004b00002bed0000413d00000c630310016700000c4b027000d1000000000032004b00002bed0000213d000000000221001a00002c120000613d00000000018100a900000000012100d9000000010050008c00000000020000190000000002016019000700000002001d0000000001006019000900000001001d00000c4c0040009c00002be40000213d0000002001400039000600000001001d000000400010043f000a00000004001d000000000004043500000c2b0100004100000000001004390000000400600443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b0000000b060000290000000a0300002900002bea0000613d000000400700043d000000640170003900000080020000390000000000210435000000080100002900000be3011001970000004402700039000000000012043500000024017000390000000702000029000000000021043500000c4d010000410000000000170435000000040170003900000009020000290000000000210435000000000103043300000084027000390000000000120435000000000001004b0000000608000029000024340000613d000000a402700039000000000300001900000000042300190000000005830019000000000505043300000000005404350000002003300039000000000013004b0000242a0000413d000024340000a13d000000000221001900000000000204350000000002000414000000040060008c000024820000c13d00000000030000310000249c0000013d0000001f0330003900000c2203300197000000c40330003900000be10030009c00000be103008041000000600330021000000be100a0009c00000be10400004100000000040a40190000004004400210000000000343019f00000be10010009c00000be101008041000000c001100210000000000131019f000b0000000a001d2f1f2f150000040f0000000b0a0000290000000003010019000000600330027000000be103300197000000400030008c00000040050000390000000005034019000000050450027200000005044002100000245b0000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000024570000c13d0000001f05500190000024690000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002c520000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000400030008c00002bea0000413d0000000202000039000000000202041a00000be302200197000000010020008c000021260000613d00002c180000013d0000001f0110003900000c2201100197000000a40110003900000be10010009c00000be101008041000000600110021000000be10070009c000a00000007001d00000be10300004100000000030740190000004003300210000000000131019f00000be10020009c00000be102008041000000c002200210000000000112019f00000000020600192f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000002c610000613d0000000a070000290000001f0130003900000c22021001970000000001720019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c000021260000a13d00002bea0000013d0000000e0000006b000026e10000613d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b00000c2b02000041000000000020043900000be301100197000900000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b00002bea0000613d000000400500043d00000064015000390000001202000029000000000021043500000024015000390000000e02000029000000000021043500000c5301000041000000000015043500000004015000390000000f020000290000000000210435000000000100041000000be3041001970000004401500039000000000041043500000000010004140000000902000029000000040020008c000027bb0000c13d0000000003000031000027d00000013d000000400900043d0000252b0000013d0000000002000411000000000021004b000026ca0000c13d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000400200043d000000200320003900000c1d04000041000000000043043500000064032000390000001204000029000000000043043500000be3011001970000004403200039000000000013043500000024012000390000000e0300002900000000003104350000006401000039000000000012043500000c1e0020009c00002be40000213d000000a001200039000000400010043f0000000f010000292f1f2d7f0000040f0000001201000029000028d60000013d00000be10050009c000700000005001d00000be1030000410000000003054019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c13011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000002c7f0000613d0000000b070000290000000a08000029000000090400002900000007050000290000001f0130003900000c22011001970000000009510019000000000019004b0000000001000019000000010100403900000be40090009c00002be40000213d000000010010019000002be40000c13d000000400090043f00000c240030009c00002bea0000213d00000c3701000041000000000a1904360000000401900039000000200200003900000000002104350000000001040433000000240290003900000000001204350000004403900039000000000001004b000025420000613d0000005702700039000000000400001900000000053400190000000006420019000000000606043300000000006504350000002004400039000000000014004b000025380000413d000025420000a13d00000000023100190000000000020435000000000400041400000be302800197000000040020008c000025480000c13d00000000030000310000257e0000013d0000001f0110003900000c22011001970000000001910049000000000131001900000be10010009c00000be101008041000000600110021000000be10090009c00000be10300004100000000030940190000004003300210000000000131019f00000be10040009c00000be104008041000000c003400210000000000131019f000b00000009001d000a0000000a001d2f1f2f150000040f0000000a0a0000290000000b090000290000000003010019000000600330027000000be103300197000000200030008c0000002005000039000000000503401900000005045002720000256b0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000025670000c13d0000001f055001900000257a0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002c700000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000200030008c000021260000813d00002bea0000013d000000400100043d0000276f0000013d000700000006001d00000be100a0009c00080000000a001d00000be10200004100000000020a4019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f0000ffff0090008c000027050000813d00000c13011001c700000000020500190000270a0000013d00000be10010009c00000be101008041000000400110021000000be10030009c00000be1030080410000006003300210000000000113019f00000be10040009c00000be104008041000000c003400210000000000131019f00020000000d001d2f1f2f150000040f000000020d000029000000070c000029000000080b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b00000080030000390000006004000039000025e20000613d00000be40010009c00002be40000213d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00002be40000213d000000010050019000002be40000c13d000000400030043f0000000003140436000000020500036700000005061002720000000506600210000025d40000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b000025d00000c13d0000001f07100190000025e20000613d000000000565034f00000000066300190000000307700210000000000806043300000000087801cf000000000878022f000000000505043b0000010007700089000000000575022f00000000057501cf000000000585019f0000000000560435000000000002004b000025f30000613d0000000002040433000000000002004b00002a0d0000613d00000c240020009c00002bea0000213d0000001f0020008c00002bea0000a13d0000000002030433000000000002004b0000000003000019000000010300c039000000000032004b00002bea0000c13d000000000002004b00002a0d0000c13d000000400200043d000000200320003900000c3204000041000000000043043500000024042000390000000000c40435000000440400003900000000004204350000004404200039000000000004043500000c090020009c00002be40000213d0000008004200039000000400040043f000000000502043300000000040004140000000f02000029000000040020008c00000001020000390000261d0000613d00000be10030009c00000be103008041000000400130021000000be10050009c00000be1050080410000006002500210000000000112019f00000be10040009c00000be104008041000000c002400210000000000121019f0000000f0200002900020000000d001d2f1f2f150000040f000000020d000029000000070c000029000000080b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b00000080030000390000006004000039000026490000613d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00002be40000213d000000010050019000002be40000c13d000000400030043f00000000031404360000000205000367000000050610027200000005066002100000263b0000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b000026370000c13d0000001f07100190000026490000613d000000000565034f00000000066300190000000307700210000000000806043300000000087801cf000000000878022f000000000505043b0000010007700089000000000575022f00000000057501cf000000000585019f0000000000560435000000000002004b00002a0d0000613d000000000e000415000000140ee0008a000000050ee002100000000002040433000000000002004b000026600000613d00000c240020009c00002bea0000213d000000200020008c00002bea0000413d0000000002030433000000000002004b0000000003000019000000010300c039000000000032004b00002bea0000c13d000000000e000415000000130ee0008a000000050ee00210000000000002004b00002a0d0000613d000000400200043d000000440320003900000012040000290000000000430435000000200320003900000c3204000041000000000043043500000024042000390000000000c404350000004404000039000000000042043500000c090020009c00002be40000213d0000008004200039000000400040043f000000000502043300000000040004140000000f02000029000000040020008c00000001020000390000268d0000613d00000be10030009c00000be103008041000000400130021000000be10050009c00000be1050080410000006002500210000000000112019f00000be10040009c00000be104008041000000c002400210000000000121019f0000000f0200002900020000000d001d00010000000e001d2f1f2f150000040f000000010e000029000000020d000029000000070c000029000000080b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b00000080030000390000006004000039000026b90000613d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00002be40000213d000000010050019000002be40000c13d000000400030043f0000000003140436000000020500036700000005061002720000000506600210000026ab0000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b000026a70000c13d0000001f01100190000026b90000613d000000000565034f00000000066300190000000301100210000000000706043300000000071701cf000000000717022f000000000505043b0000010001100089000000000515022f00000000011501cf000000000171019f0000000000160435000000000002004b00002a0a0000613d0000000002040433000000000002004b000000010100003900002a0b0000613d00000c240020009c00002bea0000213d000000200020008c00002bea0000413d0000000001030433000000000001004b0000000002000019000000010200c039000000000021004b00002a0b0000613d00002bea0000013d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000400900043d00000c2502000041000000000429043600000be3061001970000000401900039000000000061043500000000010004140000000f02000029000000040020008c000a00000006001d000027df0000c13d00000000030000310000280f0000013d000000400300043d00000c30010000410000000001130436000800000001001d00000004013000390000000f020000290000000000210435000000000100041000000be302100197000900000003001d0000002401300039000a00000002001d000000000021043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000201043b000000000100041400000be302200197000000040020008c000029360000c13d00000000030000310000000a040000290000000909000029000029640000013d00000c50011001c700008009020000390000001203000029000000000405001900000000050000192f1f2f150000040f0000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000000080a00002900000007090000290000271b0000613d000000000601034f00000000070a0019000000006806043c0000000007870436000000000097004b000027170000c13d0000001f055001900000272a0000613d0000000504400210000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002c9d0000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000200030008c00002bea0000413d00000000030a043300002b800000013d00000be10040009c000700000004001d00000be1020000410000000002044019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f0000ffff0030008c000029d70000813d00000c41011001c70000000002050019000029dc0000013d00000be10040009c000900000004001d00000be1030000410000000003044019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000002cca0000613d0000000b060000290000000a0900002900000009040000290000001f0130003900000c22021001970000000001420019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d0000000002000414000000040060008c000027750000c13d000000000300003100000001020000390000278a0000013d00000be10010009c00000be101008041000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f0000ffff0090008c000027800000813d0000000002060019000027850000013d00000be8011001c700008009020000390000001203000029000000000406001900000000050000192f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be103100197000000000003004b00000080040000390000006001000039000027b80000613d00000be40030009c00002be40000213d0000001f0130003900000c22011001970000003f0110003900000c2204100197000000400100043d0000000004410019000000000014004b0000000005000019000000010500403900000be40040009c00002be40000213d000000010050019000002be40000c13d000000400040043f0000000004310436000000020500036700000005063002720000000506600210000027aa0000613d0000000007640019000000000805034f0000000009040019000000008a08043c0000000009a90436000000000079004b000027a60000c13d0000001f03300190000027b80000613d000000000565034f00000000066400190000000303300210000000000706043300000000073701cf000000000737022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000373019f00000000003604350000000100200190000021260000c13d00002c2b0000013d000a00000004001d00000be10050009c000800000005001d00000be1030000410000000003054019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c13011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000002ce80000613d0000000a0400002900000008050000290000001f0130003900000c22011001970000000005510019000000000015004b0000000001000019000000010100403900000be40050009c00002be40000213d000000010010019000002be40000c13d000000400050043f00000c240030009c0000001201000029000029740000a13d00002bea0000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7000900000009001d000800000004001d2f1f2f1a0000040f000000080a00002900000009090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000027fb0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000027f70000c13d0000001f055001900000280a0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002d060000613d0000000a060000290000001f0130003900000c2201100197000000000a91001900000000001a004b0000000002000019000000010200403900000be400a0009c00002be40000213d000000010020019000002be40000c13d0000004000a0043f00000c240030009c00002bea0000213d000000200030008c00002bea0000413d000000000709043300000c380200004100000000052a04360000000402a000390000000f0400002900000000004204350000000002000414000000040060008c000900000007001d0000285d0000613d000700000005001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c7000000000206001900080000000a001d2f1f2f1a0000040f000000080a0000290000000003010019000000600330027000000be103300197000000600030008c0000006005000039000000000503401900000005045002720000000504400210000028460000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000028420000c13d0000001f05500190000028540000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002d150000613d0000001f0130003900000be2011001970000000a06000029000000090700002900000007050000290000000002a10019000000000012004b0000000004000019000000010400403900000be40020009c00002be40000213d000000010040019000002be40000c13d000000400020043f000000600030008c00002bea0000413d00000c390020009c00002be40000213d0000006004200039000000400040043f00000000040a043300000be40040009c00002bea0000213d0000000004420436000000000505043300000be40050009c00002bea0000213d00000000005404350000004004a00039000000000504043300000c3a0050009c00002bea0000213d0000004002200039000000000052043500000c6302500167000000000027004b00002bed0000213d000000400a00043d00000c3b0200004100000000082a04360000000402a000390000000f0400002900000000004204350000000002000414000000040060008c000028bc0000613d000800000008001d000700000005001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c70000000002060019000a0000000a001d2f1f2f1a0000040f0000000a0a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000028a50000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000028a10000c13d0000001f05500190000028b30000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000000080800002900002d240000613d0000001f0130003900000be201100197000000090700002900000007050000290000000002a10019000000000012004b0000000001000019000000010100403900000be40020009c00002be40000213d000000010010019000002be40000c13d000000400020043f000000400030008c00002bea0000413d00000c3c0020009c00002be40000213d0000004001200039000000400010043f00000000010a043300000c3a0010009c00002bea0000213d0000000002120436000000000308043300000c3a0030009c00002bea0000213d00000000047500190000000000320435000000000114004b00002bed0000413d000a00000001001d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000400a00043d0000006402a000390000000a0300002900000000003204350000000b0200002900000be3022001970000004403a00039000000000023043500000c3d0200004100000000002a04350000000402a000390000000f03000029000000000032043500000be3021001970000002401a0003900000000002104350000008401a0003900000000000104350000000001000414000000040020008c000028fd0000c13d00000000030000310000292b0000013d00000be100a0009c00000be10300004100000000030a4019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c3e011001c7000b0000000a001d2f1f2f150000040f0000000b0a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000029190000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000029150000c13d0000001f05500190000029270000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002c8e0000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000029d10000013d000000090300002900000be10030009c00000be103008041000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c29011001c72f1f2f1a0000040f00000009090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000000080a000029000029500000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b0000294c0000c13d0000001f055001900000295f0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002d630000613d0000000a040000290000001f0130003900000c22011001970000000005910019000000000015004b0000000001000019000000010100403900000be40050009c00002be40000213d000000010010019000002be40000c13d000000400050043f00000c240030009c00002bea0000213d000000200030008c00002bea0000413d0000000001090433000000840250003900000000001204350000000b0100002900000be301100197000000440250003900000000001204350000002401500039000000000041043500000c3f01000041000000000015043500000004015000390000000f020000290000000000210435000a00000005001d0000006401500039000000000001043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000201043b000000000100041400000be302200197000000040020008c0000299a0000c13d00000000030000310000000a0a000029000029c70000013d0000000a0300002900000be10030009c00000be103008041000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c3e011001c72f1f2f150000040f0000000a0a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000029b50000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000029b10000c13d0000001f05500190000029c30000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002cac0000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000400030008c000021260000813d00002bea0000013d00000c57011001c700008009020000390000001203000029000000000405001900000000050000192f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be1033001970000000100200190000000090700002900002cd90000613d0000000b0600002900000007040000290000001f0130003900000c22021001970000000001420019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d00000be3016001970000000002000410000000000021004b000021260000613d000000400200043d000000200320003900000c1a040000410000000000430435000000440320003900000012040000290000000000430435000000240320003900000000001304350000004401000039000000000012043500000c090020009c00002be40000213d0000008001200039000000400010043f00000be3017001972f1f2d7f0000040f000021260000013d00000000010000190000000502e00270000000000201001f000000000100041500000000011d004900000000010000020000000601000029000000ff0010019000002a290000613d000000090100002900000be30210019700000c190020009c000600000002001d00002a470000c13d00000c2601000041000000000010043900000000010004100000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000200000001001d000000070c00002900002ad50000013d000000400900043d000000440190003900000012020000290000000000210435000000030100002900000c3301100197000000040200002900000c340020019800000c35020000410000000002006019000000000112019f0000002402900039000000000012043500000c3601000041000000000319043600000c3301b00197000000050200002900000c340020019800000c35020000410000000002006019000000000112019f000000040290003900000000001204350000006401900039000000000001043500000000010004140000000400c0008c00002a530000c13d000000000300003100002a830000013d000000400900043d00000c25010000410000000004190436000000000100041000000be301100197000000040390003900000000001304350000000001000414000000040020008c00002a940000c13d000000000300003100002ac40000013d00000be10090009c00000be1020000410000000002094019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c13011001c700000000020c0019000800000009001d000700000003001d2f1f2f150000040f000000070a00002900000008090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200002a700000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00002a6c0000c13d0000001f0550019000002a7f0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002cf70000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000200030008c00002bea0000413d000000000309043300002b800000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7000200000009001d000100000004001d2f1f2f1a0000040f000000010a00002900000002090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200002ab00000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00002aac0000c13d0000001f0550019000002abf0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000000070c00002900002d330000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000200030008c00002bea0000413d0000000001090433000200000001001d00000c2b0100004100000000001004390000000400c00443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b0000000803000029000000070400002900002bea0000613d000000400500043d000000440150003900000012020000290000000000210435000000030100002900000c3301100197000000040200002900000c340020019800000c35020000410000000002006019000000000112019f0000002402500039000000000012043500000c3601000041000000000015043500000c3301300197000000050200002900000c340020019800000c35020000410000000002006019000000000112019f00000004025000390000000000120435000000640150003900000000000104350000000001000414000000040040008c00002b040000c13d000000000300003100002b180000013d00000be10050009c000800000005001d00000be1020000410000000002054019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c13011001c700000000020400192f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000002cbb0000613d00000008050000290000001f0130003900000c22011001970000000009510019000000000019004b0000000002000019000000010200403900000be40090009c00002be40000213d000000010020019000002be40000c13d000000400090043f00000c240030009c00002bea0000213d000000060200002900000c190020009c00002b370000c13d00000c2601000041000000000010043900000000010004100000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b00002b7e0000013d00000c25020000410000000005290436000000000200041000000be3022001970000000404900039000000000024043500000006020000290000000004000414000000040020008c00002b720000613d00000be10090009c00000be1010000410000000001094019000000400110021000000be10040009c00000be104008041000000c003400210000000000113019f00000c1c011001c7000800000009001d000700000005001d2f1f2f1a0000040f000000070a00002900000008090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200002b5d0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00002b590000c13d0000001f0550019000002b6c0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002d420000613d0000001f0130003900000be2011001970000000002910019000000000012004b0000000001000019000000010100403900000be40020009c00002be40000213d000000010010019000002be40000c13d000000400020043f000000200030008c00002bea0000413d0000000001090433000000020310006c00002bed0000413d0000000b0100002900000be3041001970000000001000410000000000014004b000021230000613d000000400200043d000000090100002900000be30110019700000c190010009c00002b910000c13d00000000010004140000000b04000029000000040040008c00002ba00000c13d0000000003000031000000010200003900002bb40000013d000000200520003900000c1a06000041000000000065043500000044052000390000000000350435000000240320003900000000004304350000004403000039000000000032043500000c090020009c00002be40000213d0000008003200039000000400030043f2f1f2d7f0000040f000021230000013d00000be10020009c00000be102008041000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f000000000003004b00002bae0000613d00000be8011001c700008009020000390000000b04000029000000000500001900002baf0000013d0000000b020000292f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be103100197000000000003004b00000080040000390000006001000039000021210000613d00000be40030009c00002be40000213d0000001f0130003900000c22011001970000003f0110003900000c2204100197000000400100043d0000000004410019000000000014004b0000000005000019000000010500403900000be40040009c00002be40000213d000000010050019000002be40000c13d000000400040043f000000000431043600000002050003670000000506300272000000050660021000002bd40000613d0000000007640019000000000805034f0000000009040019000000008a08043c0000000009a90436000000000079004b00002bd00000c13d0000001f03300190000021210000613d000000000565034f00000000066400190000000303300210000000000706043300000000073701cf000000000737022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000373019f0000000000360435000021210000013d000000000001042d00000c1b0100004100000000001004350000004101000039000000040010043f00000c1c0100004100002f2100010430000000000100001900002f2100010430000000000001042f00000c1b0100004100000000001004350000001101000039000000040010043f00000c1c0100004100002f2100010430000000400200043d001200000002001d00000c0401000041000000000012043500000004012000392f1f2d720000040f0000001202000029000000000121004900000be10010009c00000be101008041000000600110021000000be10020009c00000be1020080410000004002200210000000000121019f00002f210001043000000c0401000041000000000019043500000020010000390000000000140435000000440190003900000c4e02000041000000000021043500000024019000390000001302000039000000000021043500000be10090009c00000be109008041000000400190021000000c20011001c700002f210001043000000c1b0100004100000000001004350000001201000039000000040010043f00000c1c0100004100002f2100010430000000640210003900000c46030000410000000000320435000000440210003900000c4703000041000000000032043500000024021000390000002403000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c13011001c700002f210001043000000be10040009c00000be1040080410000004002400210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f00002f2100010430000000400200043d0000001f0430018f000000050530027200002c400000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c3c0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c4f0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c4b0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c5e0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c5a0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c6d0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c690000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c7c0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c780000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c8b0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c870000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c9a0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c960000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f0000000505300272000000050550021000002ca90000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002ca50000c13d000000000004004b00002d5d0000613d00002d510000013d000000400200043d0000001f0430018f0000000505300272000000050550021000002cb80000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002cb40000c13d000000000004004b00002d5d0000613d00002d510000013d000000400200043d0000001f0430018f000000050530027200002cc70000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002cc30000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f0000000505300272000000050550021000002cd60000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002cd20000c13d000000000004004b00002d5d0000613d00002d510000013d000000400200043d0000001f0430018f0000000505300272000000050550021000002ce50000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002ce10000c13d000000000004004b00002d5d0000613d00002d510000013d000000400200043d0000001f0430018f0000000505300272000000050550021000002cf40000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002cf00000c13d000000000004004b00002d5d0000613d00002d510000013d000000400200043d0000001f0430018f000000050530027200002d030000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002cff0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002d120000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d0e0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002d210000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d1d0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002d300000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d2c0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002d3f0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d3b0000c13d000000000004004b00002d500000c13d00002d5d0000013d000000400200043d0000001f0430018f000000050530027200002d4e0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d4a0000c13d000000000004004b00002d5d0000613d0000000505500210000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f0000000000150435000000600130021000000be10020009c00000be1020080410000004002200210000000000112019f00002f2100010430000000400200043d0000001f0430018f0000000505300272000000050550021000002d6f0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d6b0000c13d000000000004004b00002d5d0000613d00002d510000013d000000600210003900000c66030000410000000000320435000000400210003900000c67030000410000000000320435000000200210003900000021030000390000000000320435000000200200003900000000002104350000008001100039000000000001042d0004000000000002000000400400043d00000c680040009c00002e480000813d00000be3051001970000004001400039000000400010043f000000200140003900000c550300004100000000003104350000002001000039000000000014043500000000230204340000000001000414000000040050008c00002dbd0000c13d000000000100003200002dfb0000613d00000be40010009c00002e480000213d0000001f0210003900000c22022001970000003f0220003900000c2202200197000000400a00043d00000000022a00190000000000a2004b0000000003000019000000010300403900000be40020009c00002e480000213d000000010030019000002e480000c13d000000400020043f0000001f0210018f00000000031a043600000002040003670000000501100272000000050110021000002dae0000613d0000000005130019000000000604034f0000000007030019000000006806043c0000000007870436000000000057004b00002daa0000c13d000000000002004b00002dfc0000613d000000000414034f00000000011300190000000302200210000000000301043300000000032301cf000000000323022f000000000404043b0000010002200089000000000424022f00000000022401cf000000000232019f000000000021043500002dfc0000013d000200000004001d00000be10030009c00000be103008041000000600330021000000be10020009c00000be1020080410000004002200210000000000223019f00000be10010009c00000be101008041000000c001100210000000000112019f000100000005001d00000000020500192f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be10530019800002e130000613d0000001f0350003900000be2033001970000003f0330003900000c5603300197000000400a00043d00000000033a00190000000000a3004b0000000004000019000000010400403900000be40030009c00002e480000213d000000010040019000002e480000c13d000000400030043f0000001f0450018f00000000035a04360000000505500272000000050550021000002dec0000613d0000000006530019000000000701034f0000000008030019000000007907043c0000000008980436000000000068004b00002de80000c13d000000000004004b00002e150000613d000000000151034f00000000055300190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f000000000015043500002e150000013d000000600a0000390000000002000415000000040220008a000000050220021000000000010a0433000000000001004b00002e1d0000c13d00020000000a001d00000c2b01000041000000000010043900000004010000390000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002e7a0000613d0000000002000415000000040220008a00002e300000013d000000600a000039000000800300003900000000010a0433000000010020019000002e640000613d0000000002000415000000030220008a0000000502200210000000000001004b00002e200000613d000000050220027000000000020a001f00002e3a0000013d00020000000a001d00000c2b01000041000000000010043900000001010000290000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002e7a0000613d0000000002000415000000030220008a0000000502200210000000000101043b000000000001004b000000020a00002900002e7b0000613d00000000010a0433000000050220027000000000020a001f000000000001004b00002e470000613d00000c240010009c00002e4e0000213d0000001f0010008c00002e4e0000a13d0000002001a000390000000001010433000000000001004b0000000002000019000000010200c039000000000021004b00002e4e0000c13d000000000001004b00002e500000613d000000000001042d00000c1b0100004100000000001004350000004101000039000000040010043f00000c1c0100004100002f2100010430000000000100001900002f2100010430000000400100043d000000640210003900000c58030000410000000000320435000000440210003900000c5903000041000000000032043500000024021000390000002a03000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c13011001c700002f2100010430000000000001004b00002e8c0000c13d000000400300043d000100000003001d00000c04010000410000000000130435000000040130003900000020020000390000000000210435000000240230003900000002010000292f1f2e940000040f0000000102000029000000000121004900000be10010009c00000be10100804100000be10020009c00000be10200804100000060011002100000004002200210000000000121019f00002f2100010430000000000001042f000000400100043d000000440210003900000c5a03000041000000000032043500000024021000390000001d03000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c20011001c700002f210001043000000be10030009c00000be103008041000000400230021000000be10010009c00000be1010080410000006001100210000000000121019f00002f210001043000000000430104340000000001320436000000000003004b00002ea30000613d000000000200001900000000052100190000000006240019000000000606043300000000006504350000002002200039000000000032004b00002e990000413d00002ea30000a13d000000000231001900000000000204350000001f0230003900000c22022001970000000001210019000000000001042d0000000206000039000000000706041a00000be3057001970000000008000411000000000058004b00002ed70000c13d000000000001004b0000000008000019000000010800603900000c240010009c0000000009000019000000010900203900000000008901a0000000000201601900000c240020009c00002ee10000213d000000000002004b00002ee10000613d00000be70170019700000001011001bf000000000016041b00000c240040009c00002ed50000213d0000001f0040008c00002ed50000a13d0000000101300367000000000101043b00000be30010009c00002ed50000213d000000400300043d000000200430003900000c1a06000041000000000064043500000044043000390000000000240435000000240230003900000000005204350000004402000039000000000023043500000c6b0030009c00002ef50000813d0000008002300039000000400020043f00000000020300192f1f2d7f0000040f000000000001042d000000000100001900002f2100010430000000400100043d000000640210003900000c69030000410000000000320435000000440210003900000c6a03000041000000000032043500000024021000390000003e0300003900002eea0000013d000000400100043d000000640210003900000c6c030000410000000000320435000000440210003900000c6a03000041000000000032043500000024021000390000003903000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c13011001c700002f210001043000000c1b0100004100000000001004350000004101000039000000040010043f00000c1c0100004100002f2100010430000000000001042f00000000050100190000000000200439000000040100003900000005024002700000000002020031000000000121043a0000002004400039000000000031004b00002eff0000413d00000be10030009c00000be1030080410000006001300210000000000200041400000be10020009c00000be102008041000000c002200210000000000112019f00000c6d011001c700000000020500192f1f2f1a0000040f000000010020019000002f140000613d000000000101043b000000000001042d000000000001042f00002f18002104210000000102000039000000000001042d0000000002000019000000000001042d00002f1d002104230000000102000039000000000001042d0000000002000019000000000001042d00002f1f0000043200002f200001042e00002f2100010430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000064f000000000000000000000000000000000000000000000000000000000000067d00000000000000000000000000000000000000000000000000000000000012b6000000000000000000000000000000000000000000000000000000000000065700000000000000000000000000000000000000000000000000000000000010d400000000000000000000000000000000000000000000000000000000000012d200000000000000000000000000000000000000000000000000000000000012fa000000000000000000000000000000000000000000000000000000000000130800000000000000000000000000000000000000000000000000000000000013190000000000000000000000000000000000000000000000000000000000001347000000000000000000000000000000000000000000000000000000000000136c00000000000000000000000000000000000000000000000000000000000006b2000000000000000000000000000000000000000000000000000000000000074000000000000000000000000000000000000000000000000000000000000008ea0000000000000000000000000000000000000000000000000000000000000854000000000000000000000000000000000000000000000000000000000000081000000000000000000000000000000000000000000000000000000000000009b4000000000000000000000000000000000000000000000000000000000000213e000000000000000000000000000000000000000000000000000000000000216200000000000000000000000000000000000000000000000000000000000021c300000000000000000000000000000000000000000000000000000000000022070000000000000000000000000000000000000000000000000000000000002233000000000000000000000000000000000000000000000000000000000000227700000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000ffffffffffffffff80000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0ffffffffffffffffffffffff000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000000000010200000000000000000000000000000000000040000000000000000000000000000000020000000000000000000000000000008000000100000000000000000000000000000000000000000000000000000000000000000000000000715018a5000000000000000000000000000000000000000000000000000000009a1f340500000000000000000000000000000000000000000000000000000000f2fde38a00000000000000000000000000000000000000000000000000000000f2fde38b00000000000000000000000000000000000000000000000000000000fa461e33000000000000000000000000000000000000000000000000000000009a1f340600000000000000000000000000000000000000000000000000000000cd0fb7a7000000000000000000000000000000000000000000000000000000008da5cb5a000000000000000000000000000000000000000000000000000000008da5cb5b0000000000000000000000000000000000000000000000000000000093b3774c00000000000000000000000000000000000000000000000000000000715018a6000000000000000000000000000000000000000000000000000000008456cb59000000000000000000000000000000000000000000000000000000002c8958f5000000000000000000000000000000000000000000000000000000006678ec1e000000000000000000000000000000000000000000000000000000006678ec1f000000000000000000000000000000000000000000000000000000006b2ace87000000000000000000000000000000000000000000000000000000002c8958f60000000000000000000000000000000000000000000000000000000047f8bd4100000000000000000000000000000000000000000000000000000000046f7da20000000000000000000000000000000000000000000000000000000023a69e75000000000000000000000000000000000000000000000000000000002646478b020000000000000000000000000000000000000000000080000000000000000008c379a0000000000000000000000000000000000000000000000000000000004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000840000008000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff7f0000000000000000000000ff0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000ff0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000ffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000200000008000000000000000002070726976696c6567656420757365720000000000000000000000000000000052503a2063616c6c6572206973206e6f7420746865206f776e6572206f7220610000000000000000000000000000000000000084000000000000000000000000ffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff00000000000000000000020000000000000000000000000000000000000000004f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65720000000000000000000000000000000000000064000000800000000000000000310ab089e4439a4c15d089f94afb7896ff553aecb10793d0ab882de59d99a32e000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeea9059cbb000000000000000000000000000000000000000000000000000000004e487b7100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000000000000000000000023b872dd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff5f526f75746550726f636573736f72206973206c6f636b656400000000000000000000000000000000000000000000000000000064000000000000000000000000526f75746550726f636573736f72206973207061757365640000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff70a08231000000000000000000000000000000000000000000000000000000009cc7f708afc65944829bd487b90b72536b1951864fbfc14e125fc972a6507f390200000200000000000000000000000000000024000000000000000000000000dd62ed3e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000440000000000000000000000007ecebe00000000000000000000000000000000000000000000000000000000001806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b83d505accf0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e400000000000000000000000064000000000000000000000000000000000000000000000000000000000000005361666545524332303a207065726d697420646964206e6f7420737563636565f7888aec000000000000000000000000000000000000000000000000000000000200000200000000000000000000000000000044000000000000000000000000095ea7b300000000000000000000000000000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffff0000000000000000000000000000000080000000000000000000000000000000ffffffffffffffffffffffffffffffff800000000000000000000000000000003df0212400000000000000000000000000000000000000000000000000000000627dd56a00000000000000000000000000000000000000000000000000000000df23b45b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff9f00000000000000000000000000000000ffffffffffffffffffffffffffffffff4ffe34db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffbf02b9446c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a400000000000000000000000097da6d3000000000000000000000000000000000000000000000000000000000d0e30db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000002e1a7d4d00000000000000000000000000000000000000000000000000000000128acb080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000276a4000000000000000000000000fffd8963efd1fc6a506488495d951d5263988d256374656400000000000000000000000000000000000000000000000000000000526f75746550726f636573736f722e73776170556e6956333a20756e657870650902f1ac00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000ffffff00000000000000000000000000000000000000000000000000000000000f4240000000000000000000000000000000000000000000000000ffffffffffffffdf022c0d9f0000000000000000000000000000000000000000000000000000000057726f6e6720706f6f6c20726573657276657300000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffff800200000000000000000000000000000000000084000000000000000000000000000000000000000000000000000000000000000000000001ffffffffffffffe0000000000000000000000000000000000000000000000003ffffffffffffffe0f18d03cc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff1f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656400000000000000000000000000000000000000000000000000000003ffffffe002000000000000000000000000000000000000040000000000000000000000006f742073756363656564000000000000000000000000000000000000000000005361666545524332303a204552433230206f7065726174696f6e20646964206e416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006c616e63652076696f6c6174696f6e0000000000000000000000000000000000526f75746550726f636573736f723a204d696e696d616c20696e70757420626102000000000000000000000000000000000000800000000000000000000000002db5ddd0b42bdbca0d69ea16f234a870a485854ae0d91f16643d6f317d8b8994963b34a500000000000000000000000000000000000000000000000000000000636f646500000000000000000000000000000000000000000000000000000000526f75746550726f636573736f723a20556e6b6e6f776e20636f6d6d616e6420ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5000000000000000000000000000000000000000000000000ffffffffffffff606500000000000000000000000000000000000000000000000000000000000000526f75746550726f636573736f723a20556e6b6e6f776e20706f6f6c20747970000000000000000000000000000000000000000000000000ffffffffffffffc06261636b3a2063616c6c2066726f6d20756e6b6e6f776e20736f757263650000526f75746550726f636573736f722e756e697377617056335377617043616c6c000000000000000000000000000000000000000000000000ffffffffffffff806261636b3a206e6f7420706f73697469766520616d6f756e7400000000000000020000020000000000000000000000000000000000000000000000000000000009c586ba00d81b10ac07f3b1dc836f7934cd92433c250f5f778f701c6a8db8f8", + "deployedBytecode": "0x00030000000000020008000000000002000000000701034f0000000001070019000000600110027000000be106100197000200000067035500010000000703550000000100200190000000290000c13d0000008003000039000000400030043f000000040060008c000000690000413d000000000167034f000000000207043b000000e00220027000000bee0020009c0000006d0000a13d00000bef0020009c000000de0000213d00000bf50020009c000001640000213d00000bf80020009c000001f00000613d00000bf90020009c000003890000c13d0000000001000416000000000001004b000003890000c13d000000000100041a00000be3021001970000000001000411000000000021004b000003450000c13d00000080020000390000000201000039000000000301041a00000c140330019700000c15033001c7000002a40000013d000000a001000039000000400010043f0000000002000416000000000002004b000003890000c13d0000001f0260003900000be202200197000000a002200039000000400020043f0000001f0260018f00000005036002720000003c0000613d0000000504300210000000a004400039000000000507034f000000005805043c0000000001810436000000000041004b000000380000c13d000000000002004b0000004b0000613d0000000501300210000000000317034f0000000302200210000000a001100039000000000401043300000000042401cf000000000424022f000000000303043b0000010002200089000000000323022f00000000022301cf000000000242019f0000000000210435000000400060008c000003890000413d000000a00700043d00000be30070009c000003890000213d000000c00100043d00000be40010009c000003890000213d0000001f02100039000000000062004b000000000300001900000be50300804100000be502200197000000000002004b000000000400001900000be50400404100000be50020009c000000000403c019000000000004004b000003890000c13d000000a002100039000000000202043300000be40020009c000002070000a13d00000c1b0100004100000000001004350000004101000039000000040010043f00000c1c0100004100002f2100010430000000000006004b000003890000c13d000000000100001900002f200001042e00000bfa0020009c000001050000a13d00000bfb0020009c000001cf0000213d00000bfe0020009c000001e50000613d00000bff0020009c000003890000c13d000001040060008c000003890000413d0000000402700370000000000402043b00000be30040009c000003890000213d0000002402700370000000000302043b0000004402700370000000000202043b000600000002001d00000be30020009c000003890000213d0000006402700370000000000202043b000500000002001d0000008402700370000000000202043b000400000002001d00000be30020009c000003890000213d000000a402700370000000000202043b000300000002001d000000c402700370000000000202043b000200000002001d00000be30020009c000003890000213d000000e402700370000000000502043b00000be40050009c000003890000213d0000002302500039000000000062004b000003890000813d0000000408500039000000000287034f000000000202043b00000be40020009c000000630000213d0000001f0920003900000c22099001970000003f0990003900000c220990019700000c090090009c000000630000213d0000008009900039000000400090043f000000800020043f00000000052500190000002405500039000000000065004b000003890000213d0000002005800039000000000557034f0000001f0620018f00000005072002720000000507700210000000b80000613d000000a008000039000000a009700039000000000a05034f00000000ab0a043c0000000008b80436000000000098004b000000b40000c13d000000000006004b000000c60000613d000000000575034f0000000306600210000000a007700039000000000807043300000000086801cf000000000868022f000000000505043b0000010006600089000000000565022f00000000056501cf000000000585019f0000000000570435000000a00220003900000000000204350000000202000039000000000202041a00000c0a0520019700000c0b0050009c0000038b0000c13d00000c0c0520019700000c0d0050009c0000038f0000c13d00000c0e0220019700000c0f022001c70000000205000039000000000025041b000000400200043d000000060500002900000c190050009c000003a00000c13d0000000005000414000000040040008c000003e50000c13d00000001020000390000000005000031000004470000013d00000bf00020009c000001e10000213d00000bf30020009c0000026f0000613d00000bf40020009c000003890000c13d000000240060008c000003890000413d0000000001000416000000000001004b000003890000c13d0000000401700370000000000101043b00000be30010009c000003890000213d00000000001004350000000101000039000000200010043f000000000100041400000be10010009c00000be101008041000000c00110021000000bec011001c700008010020000392f1f2f1a0000040f0000000100200190000003890000613d000000000101043b000000000101041a000000ff001001900000000001000019000000010100c039000000400200043d000000000012043500000be10020009c00000be102008041000000400120021000000c08011001c700002f200001042e00000c000020009c000002970000613d00000c010020009c000001e50000613d00000c020020009c000003890000c13d000000c40060008c000003890000413d0000000401700370000000000101043b00000be30010009c000003890000213d0000002402700370000000000202043b0000004403700370000000000303043b00000be30030009c000003890000213d0000006404700370000000000404043b0000008405700370000000000505043b00000be30050009c000003890000213d000000a408700370000000000908043b00000be40090009c000003890000213d0000002308900039000000000068004b000003890000813d000000040a9000390000000008a7034f000000000808043b00000be40080009c000000630000213d0000001f0b80003900000c220bb001970000003f0bb0003900000c220bb0019700000c0900b0009c000000630000213d000000800bb000390000004000b0043f000000800080043f00000000098900190000002409900039000000000069004b000003890000213d0000002006a00039000000000667034f0000001f0780018f0000000509800272000001430000613d000000a00a000039000000050b900210000000a00bb00039000000000c06034f00000000cd0c043c000000000ada04360000000000ba004b0000013f0000c13d000000000007004b000001520000613d0000000509900210000000000696034f0000000307700210000000a009900039000000000a090433000000000a7a01cf000000000a7a022f000000000606043b0000010007700089000000000676022f00000000067601cf0000000006a6019f0000000000690435000000a006800039000000000006043500000002060000390000000008060019000000000606041a00000c0a0760019700000c0b0070009c0000038b0000c13d00000c0c0760019700000c0d0070009c0000038f0000c13d00000c0e0660019700000c0f066001c7000000000068041b00000080060000392f1f05500000040f0000000203000039000004550000013d00000bf60020009c000002a90000613d000600000003001d00000bf70020009c000003890000c13d000001040060008c000003890000413d0000000402700370000000000402043b00000be30040009c000003890000213d0000002402700370000000000302043b0000004402700370000000000202043b000500000002001d00000be30020009c000003890000213d0000006402700370000000000202043b000400000002001d0000008402700370000000000202043b000300000002001d00000be30020009c000003890000213d000000a402700370000000000202043b000200000002001d000000c402700370000000000202043b000100000002001d00000be30020009c000003890000213d000000e402700370000000000502043b00000be40050009c000003890000213d0000002302500039000000000062004b000003890000813d0000000408500039000000000287034f000000000202043b00000be40020009c000000630000213d0000001f0920003900000c22099001970000003f0990003900000c220990019700000c090090009c000000630000213d0000008009900039000000400090043f000000800020043f00000000052500190000002405500039000000000065004b000003890000213d0000002005800039000000000557034f0000001f0620018f00000005072002720000000507700210000001ac0000613d000000a008000039000000a009700039000000000a05034f00000000ab0a043c0000000008b80436000000000098004b000001a80000c13d000000000006004b000001ba0000613d000000000575034f0000000306600210000000a007700039000000000807043300000000086801cf000000000868022f000000000505043b0000010006600089000000000565022f00000000056501cf000000000585019f0000000000570435000000a00220003900000000000204350000000202000039000000000202041a00000c0a0520019700000c0b0050009c0000038b0000c13d00000c0c0520019700000c0d0050009c0000038f0000c13d00000c0e0220019700000c0f022001c70000000205000039000000000025041b000000400500043d0000000002000414000000040040008c000003b40000c13d00000001020000390000000004000031000004040000013d00000bfc0020009c000002b10000613d00000bfd0020009c000003890000c13d0000000001000416000000000001004b000003890000c13d0000000001000412000800000001001d000700000000001d000080050100003900000044030000390000000004000415000000080440008a000000050440021000000c18020000412f1f2efc0000040f000002ad0000013d00000bf10020009c000003200000613d00000bf20020009c000003890000c13d0000000001000416000000000001004b000003890000c13d00000000010600192f1f05330000040f2f1f2ea70000040f000000400100043d00000be10010009c00000be101008041000000400110021000002f200001042e0000000001000416000000000001004b000003890000c13d000000000100041a00000be3021001970000000005000411000000000052004b0000033c0000c13d00000be701100197000000000010041b000000000100041400000be10010009c00000be101008041000000c00110021000000c03011001c70000800d02000039000000030300003900000be90400004100000000060000192f1f2f150000040f0000000100200190000001eb0000c13d000003890000013d00000005032002100000003f0430003900000be604400197000000400500043d0000000004450019000500000005001d000000000054004b0000000005000019000000010500403900000be40040009c000000630000213d0000000100500190000000630000c13d000000a005600039000000400040043f00000005040000290000000004240436000400000004001d000000c0011000390000000003130019000000000053004b000003890000213d000000000002004b000002260000613d0000000402000029000000001401043400000be30040009c000003890000213d0000000002420436000000000031004b000002200000413d000000000100041a00000be7021001970000000006000411000000000262019f000000000020041b000000400200043d00000be10020009c00000be1020080410000004002200210000000000300041400000be10030009c00000be103008041000000c003300210000000000223019f00000be30510019700000be8012001c70000800d02000039000000030300003900000be904000041000600000007001d2f1f2f150000040f00000006010000290000000100200190000003890000613d00000be3011001970000000202000039000000000302041a000000800010043f00000bea0330019700000beb033001c7000000000032041b00000005020000290000000002020433000000000002004b0000000103000039000002680000613d0000000002000019000600000002001d00000005012002100000000401100029000000000101043300000be3011001970000000000100435000000200030043f000000000100041400000be10010009c00000be101008041000000c00110021000000bec011001c700008010020000392f1f2f1a0000040f0000000100200190000003890000613d000000000101043b000000000201041a00000c230220019700000001022001bf000000000021041b0000000602000029000000010220003900000005010000290000000001010433000000000012004b00000001030000390000024b0000413d000000800100043d0000014000000443000001600010044300000020010000390000010000100443000001200030044300000bed0100004100002f200001042e000000440060008c000003890000413d0000000001000416000000000001004b000003890000c13d0000000401700370000000000101043b00000be30010009c000003890000213d0000002402700370000000000302043b000000000003004b0000000002000019000000010200c039000600000003001d000000000023004b000003890000c13d000000000200041a00000be3022001970000000003000411000000000032004b0000033c0000c13d00000000001004350000000101000039000000200010043f000000000100041400000be10010009c00000be101008041000000c00110021000000bec011001c700008010020000392f1f2f1a0000040f0000000100200190000003890000613d000000000101043b000000000201041a00000c230220019700000006022001af000000000021041b000001eb0000013d0000000001000416000000000001004b000003890000c13d000000000100041a00000be3021001970000000001000411000000000021004b000003570000c13d00000080020000390000000201000039000000000301041a00000c140330019700000c0d033001c7000000000031041b00000be10020009c00000be102008041000000400120021000002f200001042e0000000001000416000000000001004b000003890000c13d000000000100041a00000be301100197000000800010043f00000c100100004100002f200001042e000001040060008c000003890000413d0000000401700370000000000101043b000600000001001d00000be30010009c000003890000213d0000002401700370000000000101043b000500000001001d0000004401700370000000000101043b00000be30010009c000003890000213d0000006402700370000000000202043b0000008403700370000000000303043b000400000003001d00000be30030009c000003890000213d000000a403700370000000000403043b000000c403700370000000000303043b000300000003001d00000be30030009c000003890000213d000000e403700370000000000503043b00000be40050009c000003890000213d0000002303500039000000000063004b000003890000813d0000000408500039000000000387034f000000000303043b00000be40030009c000000630000213d0000001f0930003900000c22099001970000003f0990003900000c220990019700000c090090009c000000630000213d0000008009900039000000400090043f000000800030043f00000000053500190000002405500039000000000065004b000003890000213d0000002005800039000000000557034f0000001f0630018f00000005073002720000000507700210000002f30000613d000000a008000039000000a009700039000000000a05034f00000000ab0a043c0000000008b80436000000000098004b000002ef0000c13d000000000006004b000003010000613d000000000575034f0000000306600210000000a007700039000000000807043300000000086801cf000000000868022f000000000505043b0000010006600089000000000565022f00000000056501cf000000000585019f0000000000570435000000a00330003900000000000304350000000203000039000000000303041a00000c0a0530019700000c0b0050009c0000038b0000c13d00000c0c0530019700000c0d0050009c0000038f0000c13d00000c0e0330019700000c0f033001c70000000205000039000000000035041b000000000500041000000080060000390000000403000029000100000006001d2f1f05500000040f000000400200043d000200000001001d000000040100002900000c190010009c000003bf0000c13d00000000010004140000000603000029000000040030008c000003f00000c13d00000001020000390000000001000031000004900000013d000000240060008c000003890000413d0000000001000416000000000001004b000003890000c13d0000000401700370000000000601043b00000be30060009c000003890000213d000000000100041a00000be3021001970000000005000411000000000052004b0000033c0000c13d000000000006004b0000037b0000c13d00000c0401000041000000800010043f0000002001000039000000840010043f0000002601000039000000a40010043f00000c0501000041000000c40010043f00000c0601000041000000e40010043f00000c070100004100002f210001043000000c0401000041000000800010043f0000002001000039000000840010043f000000a40010043f00000c1601000041000000c40010043f00000c170100004100002f210001043000000000001004350000000101000039000000200010043f000000000100041400000be10010009c00000be101008041000000c00110021000000bec011001c700008010020000392f1f2f1a0000040f0000000100200190000003890000613d000000400200043d000000000101043b000000000101041a000000ff00100190000000240000c13d000003680000013d00000000001004350000000101000039000000200010043f000000000100041400000be10010009c00000be101008041000000c00110021000000bec011001c700008010020000392f1f2f1a0000040f0000000100200190000003890000613d000000400200043d000000000101043b000000000101041a000000ff00100190000002a00000c13d000000640120003900000c11030000410000000000310435000000440120003900000c1203000041000000000031043500000024012000390000003003000039000000000031043500000c0401000041000000000012043500000004012000390000002003000039000000000031043500000be10020009c00000be102008041000000400120021000000c13011001c700002f210001043000000be701100197000000000161019f000000000010041b000000000100041400000be10010009c00000be101008041000000c00110021000000c03011001c70000800d02000039000000030300003900000be9040000412f1f2f150000040f0000000100200190000001eb0000c13d000000000100001900002f2100010430000000400100043d000000440210003900000c1f03000041000003920000013d000000400100043d000000440210003900000c2103000041000000000032043500000024021000390000001803000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c20011001c700002f2100010430000000200120003900000c1d0500004100000000005104350000006401200039000000000031043500000044012000390000000000410435000000000100041100000be301100197000000240320003900000000001304350000006401000039000000000012043500000c1e0020009c000000630000213d000000a001200039000000400010043f00000006010000292f1f2d7f0000040f0000044d0000013d00000be10050009c00000be105008041000000400150021000000be10020009c00000be102008041000000c002200210000000000112019f000000000003004b000003fb0000c13d0000000002040019000003fe0000013d000000200120003900000c1a0300004100000000003104350000004401200039000000050300002900000000003104350000002401200039000000060300002900000000003104350000004401000039000000000012043500000c090020009c000000630000213d0000008001200039000000400010043f00000004010000292f1f2d7f0000040f0000000502000029000000020120006b000004980000413d000000400200043d000000200320003900000c1a040000410000000000430435000000440320003900000000001304350000002401200039000000030300002900000000003104350000004401000039000000000012043500000c090020009c000000630000213d0000008001200039000000400010043f00000004010000292f1f2d7f0000040f0000051d0000013d00000be10020009c00000be102008041000000400120021000000be10050009c00000be105008041000000c002500210000000000112019f000000000003004b0000043e0000c13d0000000002040019000004410000013d00000be10020009c00000be102008041000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f000000050000006b000004860000c13d00000006020000290000048b0000013d00000be8011001c7000080090200003900000000050000192f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be104300197000000000004004b000004100000c13d000000600300003900000001002001900000043c0000613d000000800600003900000005010000290000000402000029000000030300002900000002040000290000000105000029000004530000013d00000be40040009c000000630000213d0000001f0340003900000c22033001970000003f0330003900000c2205300197000000400300043d0000000005530019000000000035004b0000000006000019000000010600403900000be40050009c000000630000213d0000000100600190000000630000c13d000000400050043f0000001f0540018f0000000006430436000600000006001d000000050440027200000005044002100000042d0000613d00000006080000290000000006480019000000000701034f000000007907043c0000000008980436000000000068004b000004290000c13d000000000005004b000004070000613d000000000141034f00000006044000290000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f0000000000140435000004070000013d0000000601000029000004cd0000013d00000be8011001c7000080090200003900000000050000192f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be105300197000000000005004b0000045a0000c13d0000006003000039000000800400003900000001002001900000052a0000613d0000008006000039000000060100002900000005020000290000000403000029000000030400002900000002050000292f1f05500000040f0000000203000039000000000203041a00000c0e0220019700000c0b022001c7000000000023041b000000fe0000013d00000be40050009c000000630000213d0000001f0350003900000c22033001970000003f0330003900000c2204300197000000400300043d0000000004430019000000000034004b0000000006000019000000010600403900000be40040009c000000630000213d0000000100600190000000630000c13d000000400040043f0000001f0650018f00000000045304360000000505500272000004760000613d00000005075002100000000007740019000000000801034f0000000009040019000000008a08043c0000000009a90436000000000079004b000004720000c13d000000000006004b0000044b0000613d0000000505500210000000000151034f00000000055400190000000306600210000000000705043300000000076701cf000000000767022f000000000101043b0000010006600089000000000161022f00000000016101cf000000000171019f00000000001504350000044b0000013d00000be8011001c700008009020000390000000503000029000000060400002900000000050000192f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b0000049e0000c13d00000060030000390000000100200190000004cc0000613d0000000503000029000000020330006b000004d10000813d00000c1b0100004100000000001004350000001101000039000000040010043f00000c1c0100004100002f210001043000000be40010009c000000630000213d0000001f0310003900000c22033001970000003f0330003900000c2204300197000000400300043d0000000004430019000000000034004b0000000005000019000000010500403900000be40040009c000000630000213d0000000100500190000000630000c13d000000400040043f0000001f0410018f0000000005130436000100000005001d00000002050003670000000506100272000004bc0000613d000000050760021000000001090000290000000007790019000000000805034f000000008a08043c0000000009a90436000000000079004b000004b80000c13d000000000004004b000004930000613d0000000506600210000000000565034f00000001066000290000000304400210000000000706043300000000074701cf000000000747022f000000000505043b0000010004400089000000000545022f00000000044501cf000000000474019f0000000000460435000004930000013d000000010100002900000be10010009c00000be10100804100000040011002100000052d0000013d000000400400043d00000000020004140000000305000029000000040050008c000004d80000c13d0000000102000039000004ed0000013d00000be10040009c00000be104008041000000400140021000000be10020009c00000be102008041000000c002200210000000000112019f0000000504000029000000020040006b000004e40000c13d0000000302000029000004e80000013d00000be8011001c70000800902000039000000030400002900000000050000192f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b000004f20000c13d000000600300003900000080040000390000051b0000013d0000001f0310003900000c22033001970000003f0330003900000c2204300197000000400300043d0000000004430019000000000034004b0000000005000019000000010500403900000be40040009c000000630000213d0000000100500190000000630000c13d000000400040043f0000001f0510018f00000000041304360000000206000367000000050110027200000005011002100000050d0000613d0000000007140019000000000806034f0000000009040019000000008a08043c0000000009a90436000000000079004b000005090000c13d000000000005004b0000051b0000613d000000000616034f00000000011400190000000305500210000000000701043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f000000000051043500000001002001900000052a0000613d0000000202000039000000000102041a00000c0e0110019700000c0b011001c7000000000012041b000000400100043d0000000202000029000000000021043500000be10010009c00000be101008041000000400110021000000c08011001c700002f200001042e00000be10040009c00000be1040080410000004001400210000000000203043300000be10020009c00000be1020080410000006002200210000000000112019f00002f210001043000000c240010009c0000054e0000213d000000630010008c0000054e0000a13d00000001030003670000002402300370000000000202043b0000000404300370000000000504043b0000004404300370000000000604043b00000be40060009c0000054e0000213d0000002304600039000000000014004b0000054e0000813d0000000404600039000000000343034f000000000403043b00000be40040009c0000054e0000213d00000024036000390000000006430019000000000016004b0000054e0000213d0000000001050019000000000001042d000000000100001900002f2100010430001e000000000002000700000005001d000600000004001d000500000003001d000800000002001d000000000200041100000be30410019700000c190040009c000a00000004001d000200000001001d001c00000006001d0000056b0000c13d00000c260100004100000000001004390000000400200443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000000401043b0000001c06000029000005b90000013d000000400900043d000000000302001900000c2502000041000000000529043600000be303300197000000040290003900000000003204350000000003000414000000040040008c000005770000c13d0000000003000031000005a90000013d00000be10090009c000000000204001900000be1010000410000000001094019000000400410021000000be10030009c00000be103008041000000c001300210000000000141019f00000c1c011001c7001b00000009001d001a00000005001d2f1f2f1a0000040f0000001a0a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000001f0450018f0000000505500272000005950000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000005910000c13d000000000004004b000005a40000613d0000000505500210000000000651034f00000000055900190000000304400210000000000705043300000000074701cf000000000747022f000000000606043b0000010004400089000000000646022f00000000044601cf000000000474019f0000000000450435000000000003001f0002000000010355000000010020019000001fb90000613d0000001c060000290000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d0000001f0030008c00001d7a0000a13d0000000004090433000000050100002900000be30210019700000c190020009c000300000002001d000100000004001d000005d00000c13d00000c2601000041000000000010043900000007010000290000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000400500043d000000000101043b0000001c060000290000061e0000013d000000400900043d00000c25010000410000000005190436000000070100002900000be301100197000000040390003900000000001304350000000001000414000000040020008c000005dc0000c13d00000000030000310000060d0000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7001b00000009001d001a00000005001d2f1f2f1a0000040f0000001a0a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000001f0450018f0000000505500272000005f90000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000005f50000c13d000000000004004b000006080000613d0000000505500210000000000651034f00000000055900190000000304400210000000000705043300000000074701cf000000000747022f000000000606043b0000010004400089000000000646022f00000000044601cf000000000474019f0000000000450435000000000003001f0002000000010355000000010020019000001fc80000613d0000001c060000290000001f0130003900000c22011001970000000002910019000000000012004b00000000010000190000000101004039000000000502001900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400050043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d0000000001090433000400000001001d0000004001500039000000400010043f000000000265043600000000010604330000000001610019000c00000002001d0000000000120435000000000061004b000000080300002900001c870000a13d000000000100041100090be30010019b001700000000001d0000000803000029001900000005001d000006370000013d0000001701000029001700010010003d000000190500002900000000060504330000000c010000290000000001010433000000000016004b00001c870000813d000000010160003900000000020104330000000000150435000000ff0120018f000000010110008a000000050010008c001400000003a01d00000bc90001a13e00001e6a0000013d000000150160003900000000030104330000000000150435000000400900043d00000c25010000410000000004190436000000040190003900000000020004100000000000210435000000000100041400000be302300197000000040020008c000010fd0000c13d000000000a0000310000112e0000013d0000001501600039000000000301043300000000001504350000000001050019000000000200041100000008040000292f1f21150000040f000012b10000013d000000150160003900000000030104330000000000150435000000000100041000000be301100197000000400400043d0000002402400039000000000012043500000c30010000410000000001140436001a00000001001d001b00000003001d00000be301300197001c00000004001d0000000402400039000000000012043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000201043b000000000100041400000be302200197000000040020008c000012010000c13d00000000030000310000001c090000290000122e0000013d00000c2601000041000000000010043900000000010004100000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000b00000001001d00000019050000290000000001050433000000010110003900000000020104330000000000150435001800ff00200194000010f90000613d000000000100041000160be30010019b0000000b040000290000000006000019000006a10000013d000000010020019000001dd60000613d0000001c010000290000001b041000690000001a060000290000000106600039000000180060006c0000001905000029000010f90000813d0000000007050433000000020270003900000000010204330000000000250435000000030270003900000000030204330000000000250435000000ff0230018f000000050020008c0000ffff0110a18f000000000941a0a90000ffff0190a11a001c00000001a01d001b00000004a01d001a00000006a01d00000bd50002a13e000012c20000013d00000017017000390000000002010433000000000015043500000018017000390000000003010433001300000003001d00000000001504350000002c017000390000000003010433001000000003001d00000000001504350000002f017000390000000003010433001200000003001d000000000015043500000be309200197000000000100041000000c0b0010009c001500000009001d000009eb0000813d000000400100043d00000044021000390000001c030000290000000000320435000000200210003900000c1a030000410000000000320435000000240310003900000000009304350000004403000039000000000031043500000c090010009c00001d7c0000213d0000008005100039000000400050043f00000c3c0050009c00001d7c0000213d000000c003100039000000400030043f00000020030000390000000000350435000000a00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c1902000041001100000005001d2f1f2f150000040f000000150900002900020000000103550000000003010019000000600330027000000be10030019d00000be103300198000000800a000039000000600b0000390000071e0000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400b00043d00000000044b00190000000000b4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000a3b043600000005043002720000000504400210000007100000613d00000000054a0019000000000601034f00000000070a0019000000006806043c0000000007870436000000000057004b0000070c0000c13d0000001f033001900000071e0000613d000000000141034f00000000044a00190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010b0433000000010020019000001ddb0000613d000000000001004b0000073b0000c13d00110000000b001d000f0000000a001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000110100002900001dc50000613d0000000001010433000000000001004b00000015090000290000000f0a00002900000a720000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d00000a6a0000013d0000001701700039000000000b01043300000000001504350000001801700039000000000a01043300000000001504350000002c01700039000000000901043300000000001504350000000001000411000000160010006b000007d70000c13d000000400100043d00000064021000390000001c030000290000000000320435000000200210003900000c1d030000410000000000320435000000440310003900000000040004110000000000430435000000240310003900000000004304350000006403000039000000000031043500000c1e0010009c00001d7c0000213d000000a005100039000000400050043f00000c540010009c00001d7c0000213d000000e003100039000000400030043f00000020030000390000000000350435000000c00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c1902000041001500000009001d00130000000a001d00120000000b001d001100000005001d2f1f2f150000040f000000120b000029000000130a000029000000150900002900020000000103550000000003010019000000600330027000000be10030019d00000be103300198000000800c000039000000600d000039000007ac0000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400d00043d00000000044d00190000000000d4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000c3d0436000000050430027200000005044002100000079e0000613d00000000054c0019000000000601034f00000000070c0019000000006806043c0000000007870436000000000057004b0000079a0000c13d0000001f03300190000007ac0000613d000000000141034f00000000044c00190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010d0433000000010020019000001de10000613d000000000001004b000007cb0000c13d00110000000d001d00100000000c001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000110100002900001dc50000613d0000000001010433000000000001004b0000001509000029000000130a000029000000120b000029000000100c000029000007d70000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d00000000010c0433000000000001004b0000000002000019000000010200c039000000000021004b00001d7a0000c13d000000000001004b00001d830000613d00000be302b001970000000203000039000000000103041a00000be701100197000000000121019f000000000013041b000000400400043d0000002001000039000000000114043600000c1903000041000000000031043500000c3c0040009c00001d7c0000213d000000ff00a00190000000400a4000390000004000a0043f00000c430300004100000000003a0435000000c403400039000000a005000039000000000053043500000c450300004100000c440300c041000000a405400039000000000035043500000084034000390000001c0500002900000000005304350000000003000019000000010300c0390000006405400039000000000035043500000be30390019700000044054000390000000000350435000000e40540003900000000030404330000000000350435000000000003004b0000080b0000613d0000010404400039000000000500001900000000064500190000000007150019000000000707043300000000007604350000002005500039000000000035004b000008010000413d0000080b0000a13d000000000143001900000000000104350000000001000414000000040020008c00000aae0000c13d000000000300003100000ae20000013d0000001701700039000000000801043300000000001504350000003704700039000000000104043300000000014100190000000000150435000000160000006b00000c150000613d001200000004001d001300000008001d001500000007001d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b00000c2b02000041000000000020043900000be301100197001100000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b00000015070000290000001308000029000000120400002900001d7a0000613d000000400500043d00000064015000390000001c02000029000000000021043500000be3018001970000004402500039000000000012043500000024015000390000001602000029000000000021043500000c53010000410000000000150435000000040150003900000c1902000041000000000021043500000000010004140000001102000029000000040020008c00000ce10000c13d000000000300003100000cf70000013d000000040170003900000000020104330000000000150435000000180170003900000000030104330000000000150435000000ff00200190001500000003001d00000c170000613d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041000000c0b0010009c00000c4d0000813d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000301043b000000400100043d00000044021000390000001c040000290000000000420435000000200210003900000c1a04000041000000000042043500000be303300197000000240410003900000000003404350000004403000039000000000031043500000c090010009c00001d7c0000213d0000008003100039000000400030043f001300000003001d00000c3c0030009c00001d7c0000213d000000c003100039000000400030043f000000200300003900000013040000290000000000340435000000a00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c19020000412f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be1033001980000008009000039000000600a000039000008c80000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400a00043d00000000044a00190000000000a4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f00000000093a043600000005043002720000000504400210000008ba0000613d0000000005490019000000000601034f0000000007090019000000006806043c0000000007870436000000000057004b000008b60000c13d0000001f03300190000008c80000613d000000000141034f00000000044900190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010a0433000000010020019000001e460000613d000000000001004b000008e50000c13d00130000000a001d001200000009001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000130100002900001dc50000613d0000000001010433000000000001004b0000001c02000029000000120900002900000ed40000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d00000cd70000013d00000004017000390000000002010433000000000015043500000018017000390000000003010433001500000003001d0000000000150435000000020120018f000000010020019000000a7a0000c13d000000000001004b00000d670000c13d0000000001000411000000160010006b001000000009001d0000097d0000c13d000000400100043d00000064021000390000001c030000290000000000320435000000200210003900000c1d030000410000000000320435000000440310003900000000040004110000000000430435000000240310003900000000004304350000006403000039000000000031043500000c1e0010009c00001d7c0000213d000000a003100039001300000003001d000000400030043f00000c540010009c00001d7c0000213d000000e003100039000000400030043f000000200300003900000013040000290000000000340435000000c00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c19020000412f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be103300198000000800a000039000000600b000039000009550000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400b00043d00000000044b00190000000000b4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000a3b043600000005043002720000000504400210000009470000613d00000000054a0019000000000601034f00000000070a0019000000006806043c0000000007870436000000000057004b000009430000c13d0000001f03300190000009550000613d000000000141034f00000000044a00190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010b0433000000010020019000001ef60000613d000000000001004b000009710000c13d00130000000b001d00120000000a001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000130100002900001dc50000613d0000000001010433000000000001004b000000120a0000290000097d0000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d00000000010a0433000000000001004b0000000002000019000000010200c039000000000021004b00001d7a0000c13d000000000001004b00001d830000613d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b00001d7a0000613d000000400300043d00000c4201000041000000000013043500000004013000390000001c02000029000000000021043500000be10030009c001300000003001d00000be10100004100000000010340190000004001100210000000000200041400000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c700000c19020000412f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000001e860000613d0000001f0130003900000be2021001970000001301200029000000000021004b0000000002000019000000010200403900000be40010009c000000100900002900001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000d680000013d00000017017000390000000001010433000000180270003900000000002504350000001902700039000000000302043300000000002504350000001a02700039000000000402043300000000002504350000002e0270003900000000080204330000000000250435000000420270003900000000070204330000000000250435000000400a00043d0000004402a000390000001c050000290000000000520435000000800040019000000c6206000041000000000206001900000000020060190000007f0440018f00000c4f05200197000000000445019f00000c340020019800000c35020000410000000002006019000000000224019f0000002404a00039000000000024043500000080003001900000000002060019000000000200601900000c360400004100000000054a04360000007f0330018f00000c4f04200197000000000334019f00000c340020019800000c35020000410000000002006019000000000223019f0000000403a0003900000000002304350000006402a000390000000000020435000000000200041400000be304100197000000040040008c00000a9d0000c13d000000000400003100000d990000013d0000000001000411000000160010006b00000a720000c13d000000400100043d00000064021000390000001c03000029000000000032043500000044021000390000000000920435000000200210003900000c1d0300004100000000003204350000002403100039000000000400041100000000004304350000006403000039000000000031043500000c1e0010009c00001d7c0000213d000000a005100039000000400050043f00000c540010009c00001d7c0000213d000000e003100039000000400030043f00000020030000390000000000350435000000c00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c1902000041001100000005001d2f1f2f150000040f000000150900002900020000000103550000000003010019000000600330027000000be10030019d00000be103300198000000800a000039000000600b00003900000a490000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400b00043d00000000044b00190000000000b4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000a3b04360000000504300272000000050440021000000a3b0000613d00000000054a0019000000000601034f00000000070a0019000000006806043c0000000007870436000000000057004b00000a370000c13d0000001f0330019000000a490000613d000000000141034f00000000044a00190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010b0433000000010020019000001ddb0000613d000000000001004b00000a660000c13d00110000000b001d000f0000000a001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000110100002900001dc50000613d0000000001010433000000000001004b00000015090000290000000f0a00002900000a720000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d00000000010a0433000000000001004b0000000002000019000000010200c039000000000021004b00001d7a0000c13d000000000001004b00001d830000613d000000400a00043d00000c480100004100000000051a04360000000001000414000000040090008c00000af70000c13d000000000300003100000b290000013d0000002c0270003900000000060204330000000000250435000000000001004b000010870000c13d001000000009001d00000c2b010000410000000000100439001300000006001d00000be301600197001200000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001003000029000000130600002900001d7a0000613d000000400400043d00000c4001000041000000000014043500000000010004140000001205000029000000040050008c00000f540000c13d00000000030000310000107a0000013d001200000005001d001100000007001d001500000008001d00000be100a0009c00130000000a001d00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f0000ffff0090008c00000d6f0000813d00000c13011001c7000000000204001900000d730000013d0000001f0330003900000c2203300197000000c40330003900000be10030009c00000be103008041000000600330021000000be100a0009c00000be10400004100000000040a40190000004004400210000000000343019f00000be10010009c00000be101008041000000c001100210000000000131019f00150000000a001d2f1f2f150000040f000000150a0000290000000003010019000000600330027000000be103300197000000400030008c000000400500003900000000050340190000000504500272000000050440021000000ad00000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b00000acc0000c13d0000001f0550019000000ade0000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001e280000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000400030008c00001d7a0000413d0000000202000039000000000202041a00000be302200197000000010020008c0000069a0000613d00001d930000013d000f00000005001d00000be100a0009c00000be10200004100000000020a4019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c41011001c7000000000209001900110000000a001d2f1f2f1a0000040f000000110a0000290000000003010019000000600330027000000be103300197000000600030008c000000600500003900000000050340190000000504500272000000050440021000000b150000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b00000b110000c13d0000001f0550019000000b230000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000000150900002900001ded0000613d0000000f050000290000001f0130003900000c22011001970000000004a10019000000000014004b0000000001000019000000010100403900000be40040009c00001d7c0000213d000000010010019000001d7c0000c13d000000400040043f00000c240030009c00001d7a0000213d000000600030008c00001d7a0000413d00000000020a043300000c490020009c00001d7a0000213d000000000305043300000c490030009c00001d7a0000213d0000004001a00039000000000101043300000be10010009c00001d7a0000213d0000000401400039001100000002001d000000000002004b00001d990000613d000000000003004b00001d990000613d00000c25020000410000000002240436000e00000002001d000000000091043500000be10040009c00000be10100004100000000010440190000004001100210000000000200041400000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c700000c1902000041000f00000004001d000d00000003001d2f1f2f1a0000040f0000000e0d0000290000000f0b0000290000001303000029000000ff0330018f000000010030008c0000000d0500002900000011040000290000000004056019000000000c050019000000110c0060290000000005010019000000600550027000000be105500197000000200050008c00000020070000390000000007054019000000050670027200000b720000613d000000000801034f00000000090b0019000000008a08043c0000000009a904360000000000d9004b00000b6e0000c13d0000001f0770019000000b810000613d0000000506600210000000000861034f00000000066b00190000000307700210000000000906043300000000097901cf000000000979022f000000000808043b0000010007700089000000000878022f00000000077801cf000000000797019f0000000000760435000000000005001f0002000000010355000000010020019000001da80000613d0000001f0150003900000be2011001970000000007b1001900000be40070009c000000150600002900001d7c0000213d000000400070043f000000200050008c00001d7a0000413d00000000020b04330000000001c2004b00001f2c0000413d000000120500002900000c4a0550019700000c4b0050009c00001f2c0000213d00000c4b055000990000000000c2004b00000b9b0000613d00000c6302100129000000000052004b00001f2c0000413d00000000015100aa00000ba00000613d00000c6302100129000000000042004b00001f2c0000413d00000c630510016700000c4b02c000d1000000000052004b00001f2c0000213d000000000221001a00001d8d0000613d00000000014100a900000000012100d9000000010030008c00000000020000190000000002016019001100000002001d0000000001006019001200000001001d00000c4c0070009c00001d7c0000213d0000002001700039000f00000001001d000000400010043f001300000007001d000000000007043500000c2b0100004100000000001004390000000400600443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001506000029000000130300002900001d7a0000613d000000400700043d000000640170003900000080020000390000000000210435000000100100002900000be3011001970000004402700039000000000012043500000024017000390000001102000029000000000021043500000c4d010000410000000000170435000000040170003900000012020000290000000000210435000000000103043300000084027000390000000000120435000000000001004b00000be80000613d000000a40270003900000000030000190000000f0800002900000000042300190000000005830019000000000505043300000000005404350000002003300039000000000013004b00000bde0000413d00000be80000a13d000000000221001900000000000204350000000002000414000000040060008c00000bed0000c13d000000000300003100000c070000013d0000001f0110003900000c2201100197000000a40110003900000be10010009c00000be101008041000000600110021000000be10070009c001300000007001d00000be10300004100000000030740190000004003300210000000000131019f00000be10020009c00000be102008041000000c002200210000000000112019f00000000020600192f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000001e370000613d00000013070000290000001f0130003900000c22021001970000000001720019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c0000069a0000a13d00001d7a0000013d000000400900043d00000d040000013d000000160000006b00000f340000613d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b00000c2b02000041000000000020043900000be301100197001300000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b00001d7a0000613d000000400400043d00000064014000390000001c0200002900000000002104350000004401400039000000160200002900000000002104350000002401400039000000000021043500000c53010000410000000000140435000000040140003900000c1902000041000000000021043500000000010004140000001302000029000000040020008c00000fa80000c13d000000000300003100000fbb0000013d0000000001000411000000160010006b00000dd10000c13d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000201043b000000400100043d00000064031000390000001c04000029000000000043043500000be30220019700000044031000390000000000230435000000200210003900000c1d0300004100000000003204350000002403100039000000000400041100000000004304350000006403000039000000000031043500000c1e0010009c00001d7c0000213d000000a003100039001300000003001d000000400030043f00000c540010009c00001d7c0000213d000000e003100039000000400030043f000000200300003900000013040000290000000000340435000000c00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c19020000412f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be1033001980000008009000039000000600a00003900000cb60000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400a00043d00000000044a00190000000000a4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f00000000093a04360000000504300272000000050440021000000ca80000613d0000000005490019000000000601034f0000000007090019000000006806043c0000000007870436000000000057004b00000ca40000c13d0000001f0330019000000cb60000613d000000000141034f00000000044900190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010a0433000000010020019000001e460000613d000000000001004b00000cd30000c13d00130000000a001d001200000009001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000130100002900001dc50000613d0000000001010433000000000001004b0000001c02000029000000120900002900000ed40000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d0000000001090433000000000001004b0000000002000019000000010200c039000000000021004b00001d7a0000c13d000000000001004b0000001c0200002900000ed40000c13d00001d830000013d00000be10050009c001000000005001d00000be1030000410000000003054019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c13011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000001e4c0000613d00000015070000290000001308000029000000120400002900000010050000290000001f0130003900000c22011001970000000009510019000000000019004b0000000001000019000000010100403900000be40090009c00001d7c0000213d000000010010019000001d7c0000c13d000000400090043f00000c240030009c00001d7a0000213d00000c3701000041000000000a1904360000000401900039000000200200003900000000002104350000000001040433000000240290003900000000001204350000004403900039000000000001004b00000d1b0000613d0000005702700039000000000400001900000000053400190000000006420019000000000606043300000000006504350000002004400039000000000014004b00000d110000413d00000d1b0000a13d00000000023100190000000000020435000000000400041400000be302800197000000040020008c00000d210000c13d000000000300003100000d570000013d0000001f0110003900000c22011001970000000001910049000000000131001900000be10010009c00000be101008041000000600110021000000be10090009c00000be10300004100000000030940190000004003300210000000000131019f00000be10040009c00000be104008041000000c003400210000000000131019f001500000009001d00130000000a001d2f1f2f150000040f000000130a00002900000015090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200000d440000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00000d400000c13d0000001f0550019000000d530000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001dfc0000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c0000069a0000813d00001d7a0000013d000000400100043d00000000020004140000001504000029000000040040008c00000dc60000c13d0000000003000031000000010200003900000f790000013d00000c50011001c700008009020000390000001c0300002900000000050000192f1f2f150000040f0000000003010019000000600330027000000be104300197000000200040008c000000200500003900000000050440190000000503500272000000130a000029000000120900002900000d840000613d000000000601034f00000000070a0019000000006806043c0000000007870436000000000097004b00000d800000c13d0000001f0550019000000d930000613d0000000503300210000000000631034f00000000033a00190000000305500210000000000703043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000530435000000000004001f00020000000103550000000100200190000000150800002900001e0b0000613d00000011070000290000001f0540003900000c22015001970000000002a10019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f00000c240040009c00001d7a0000213d000000200040008c00001d7a0000413d00000be3068001970000000001000410000000000016004b0000069a0000613d00000000030a043300000be30170019700000c190010009c00000db70000c13d0000000001000414000000040080008c00000f620000c13d00000be40040009c0000000103000039000010a80000a13d00001d7c0000013d000000200420003900000c1a05000041000000000054043500000044042000390000000000340435000000240320003900000000006304350000004403000039000000000032043500000c090020009c00001d7c0000213d0000008003200039000000400030043f2f1f2d7f0000040f0000069a0000013d00000be10010009c00000be101008041000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f0000ffff0090008c00000f700000813d000000000204001900000f740000013d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400300043d001100000003001d00000c25020000410000000002230436001200000002001d00000be3021001970000000401300039001300000002001d000000000021043500000be10030009c00000be10100004100000000010340190000004001100210000000000200041400000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c700000c19020000412f1f2f1a0000040f000000120a00002900000011090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200000e000000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00000dfc0000c13d0000001f0550019000000e0f0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001ea40000613d0000001f0130003900000be202100197000000000a92001900000000002a004b0000000002000019000000010200403900000be400a0009c000000130700002900001d7c0000213d000000010020019000001d7c0000c13d0000004000a0043f000000200030008c00001d7a0000413d000000000609043300000c380200004100000000052a04360000000402a0003900000c190400004100000000004204350000000002000414000000040070008c001200000006001d00000e5f0000613d001000000005001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c7000000000207001900110000000a001d2f1f2f1a0000040f000000110a0000290000000003010019000000600330027000000be103300197000000600030008c000000600500003900000000050340190000000504500272000000050440021000000e490000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b00000e450000c13d0000001f0550019000000e570000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001f320000613d0000001f0130003900000012060000290000001307000029000000100500002900000be2011001970000000002a1001900000be40020009c00001d7c0000213d000000400020043f000000600030008c00001d7a0000413d00000c390020009c00001d7c0000213d0000006004200039000000400040043f00000000040a043300000be40040009c00001d7a0000213d0000000004420436000000000505043300000be40050009c00001d7a0000213d00000000005404350000004004a00039000000000504043300000c3a0050009c00001d7a0000213d0000004002200039000000000052043500000c6302500167000000000026004b00001f2c0000213d000000400a00043d00000c3b0200004100000000082a04360000000402a0003900000c190400004100000000004204350000000002000414000000040070008c00000eba0000613d001300000008001d001000000005001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c7000000000207001900110000000a001d2f1f2f1a0000040f000000110a0000290000000003010019000000600330027000000be103300197000000400030008c000000400500003900000000050340190000000504500272000000050440021000000ea30000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b00000e9f0000c13d0000001f0550019000000eb10000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000000130800002900001f410000613d0000001f0130003900000be201100197000000120600002900000010050000290000000002a10019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f000000400030008c00001d7a0000413d00000c3c0020009c00001d7c0000213d0000004001200039000000400010043f00000000010a043300000c3a0010009c00001d7a0000213d0000000002120436000000000308043300000c3a0030009c00001d7a0000213d00000000046500190000000000320435000000000214004b00001f2c0000413d001300000002001d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400a00043d0000006402a0003900000013030000290000000000320435000000150200002900000be3022001970000004403a00039000000000023043500000c3d0200004100000000002a04350000000402a0003900000c1903000041000000000032043500000be3021001970000002401a0003900000000002104350000008401a0003900000000000104350000000001000414000000040020008c00000efb0000c13d000000000300003100000f290000013d00000be100a0009c00000be10300004100000000030a4019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c3e011001c700150000000a001d2f1f2f150000040f000000150a0000290000000003010019000000600330027000000be103300197000000400030008c000000400500003900000000050340190000000504500272000000050440021000000f170000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b00000f130000c13d0000001f0550019000000f250000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001e5b0000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000010650000013d000000400300043d00000c30010000410000000001130436001200000001001d000000040130003900000c19020000410000000000210435001300000003001d0000002401300039000000000001043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000201043b000000000100041400000be302200197000000040020008c00000fca0000c13d0000000003000031000000130900002900000ff70000013d00000be10040009c001100000004001d00000be1020000410000000002044019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f0000ffff0030008c0000106b0000813d00000c41011001c70000000002050019000010700000013d00000be10020009c00000be102008041000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f000000000003004b0000109e0000613d00000be8011001c70000800902000039000000000408001900000000050000190000109f0000013d00000be8011001c700008009020000390000001c0300002900000000050000192f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be103100197000000000003004b00000080040000390000006001000039000006980000613d00000be40030009c00001d7c0000213d0000001f0130003900000c22011001970000003f0110003900000c2204100197000000400100043d0000000004410019000000000014004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000431043600000002050003670000000506300272000000050660021000000f990000613d0000000007640019000000000805034f0000000009040019000000008a08043c0000000009a90436000000000079004b00000f950000c13d0000001f03300190000006980000613d000000000565034f00000000066400190000000303300210000000000706043300000000073701cf000000000737022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000373019f0000000000360435000006980000013d00000be10040009c001200000004001d00000be1030000410000000003044019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c13011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000001f1b0000613d00000012040000290000001f0130003900000c22011001970000000004410019000000000014004b0000000001000019000000010100403900000be40040009c00001d7c0000213d000000010010019000001d7c0000c13d000000400040043f00000c240030009c0000001c01000029000010070000a13d00001d7a0000013d000000130300002900000be10030009c00000be103008041000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c29011001c72f1f2f1a0000040f00000013090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000000120a00002900000fe40000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00000fe00000c13d0000001f0550019000000ff30000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001f7d0000613d0000001f0130003900000c22011001970000000004910019000000000014004b0000000001000019000000010100403900000be40040009c00001d7c0000213d000000010010019000001d7c0000c13d000000400040043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d000000000109043300000084024000390000000000120435000000150100002900000be3011001970000004402400039000000000012043500000024014000390000001602000029000000000021043500000c3f010000410000000000140435000000040140003900000c19020000410000000000210435001300000004001d0000006401400039000000000001043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000201043b000000000100041400000be302200197000000040020008c0000102e0000c13d0000000003000031000000130a0000290000105b0000013d000000130300002900000be10030009c00000be103008041000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c3e011001c72f1f2f150000040f000000130a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000010490000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000010450000c13d0000001f05500190000010570000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001e950000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000400030008c0000069a0000813d00001d7a0000013d00000c57011001c700008009020000390000001c03000029000000000405001900000000050000192f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be1033001970000000100200190000000130600002900001f0c0000613d00000011040000290000001f0130003900000c22021001970000000001420019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000150100002900000be3011001970000000002000410000000000021004b0000069a0000613d000000400200043d000000200320003900000c1a04000041000000000043043500000044032000390000001c040000290000000000430435000000240320003900000000001304350000004401000039000000000012043500000c090020009c00001d7c0000213d0000008001200039000000400010043f00000be3016001972f1f2d7f0000040f0000069a0000013d00000000020800192f1f2f150000040f00000000030200190002000000010355000000600110027000000be10010019d00000be104100198000010d10000613d000000400200043d0000001f0540003900000c51015001970000003f0110003900000c52051001970000000001250019000000000051004b0000000005000019000000010500403900000be40010009c00001d7c0000213d000000010050019000001d7c0000c13d000000400010043f0000000001420436000000020500036700000005064002720000000506600210000010c00000613d0000000007610019000000000805034f0000000009010019000000008a08043c0000000009a90436000000000079004b000010bc0000c13d0000001f04400190000010ce0000613d000000000565034f00000000066100190000000304400210000000000706043300000000074701cf000000000747022f000000000505043b0000010004400089000000000545022f00000000044501cf000000000474019f000000000046043500000001003001900000069a0000c13d00001fb00000013d00000001003001900000069a0000c13d00001fae0000013d00000021016000390000000007010433000000000015043500000041016000390000000002010433001b00000002001d000000000015043500000042016000390000000002010433001a00000002001d000000000015043500000062016000390000000002010433001800000002001d000000000015043500000082016000390000000002010433001500000002001d0000000000150435000000400a00043d00000c280100004100000000041a04360000000401a0003900000009020000290000000000210435000000000100041000000be3021001970000002401a00039001600000002001d000000000021043500000000010004140000000a02000029000000040020008c001c00000007001d000011480000c13d0000000003000031000011780000013d000000170000006b0000000b03000029000012b10000c13d0000062f0000013d001a00000003001d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7001c00000009001d001b00000004001d2f1f2f1a0000040f0000001b0b0000290000001c090000290000000003010019000000600330027000000be10a3001970000002000a0008c000000200500003900000000050a401900000005045002720000111a0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000b7004b000011160000c13d0000001f05500190000011290000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f000000000054043500000000000a001f0002000000010355000000010020019000001eb30000613d0000001a030000290000001f01a0003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c2400a0009c00001d7a0000213d0000002000a0008c00001d7a0000413d0000000001090433000000010410008c0000000004004019000b00000004001d000000190100002900000000020004102f1f21150000040f0000000b03000029000000170000006b000012b10000c13d0000062f0000013d00000be100a0009c00000be10300004100000000030a4019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c29011001c700130000000a001d001200000004001d2f1f2f1a0000040f0000001209000029000000130a0000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000011640000613d000000000601034f00000000070a0019000000006806043c0000000007870436000000000097004b000011600000c13d0000001f05500190000011730000613d0000000504400210000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001ecf0000613d0000001c070000290000001f0130003900000c22011001970000000009a10019000000000019004b0000000002000019000000010200403900000be40090009c00001d7c0000213d000000010020019000001d7c0000c13d000000400090043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d00000000020a0433000000000072004b000012b10000813d00000c2a02000041000000000529043600000004029000390000000904000029000000000042043500000000020004140000000a04000029000000040040008c000011c50000613d00000be10090009c00000be1010000410000000001094019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c70000000a02000029001300000009001d001200000005001d2f1f2f1a0000040f000000120a00002900000013090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000011b00000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000011ac0000c13d0000001f05500190000011bf0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001f500000613d0000001f0130003900000be2011001970000000002910019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f000000200030008c00001d7a0000413d0000000001090433001300000001001d00000c2b0100004100000000001004390000000a010000290000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001c0300002900001d7a0000613d000000400400043d000000c40140003900000015020000290000000000210435000000a401400039000000180200002900000000002104350000001a01000029000000ff0110018f0000008402400039000000000012043500000064014000390000001b0200002900000000002104350000004401400039000000000031043500000024014000390000001602000029000000000021043500000c2c01000041000000000014043500000004014000390000000902000029000000000021043500000000010004140000000a02000029000000040020008c000012450000c13d0000000003000031000012580000013d0000001c0300002900000be10030009c00000be103008041000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c29011001c72f1f2f1a0000040f0000001c090000290000000003010019000000600330027000000be103300197000000200030008c0000002005000039000000000503401900000005045002720000001a0a0000290000121b0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000012170000c13d0000001f055001900000122a0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001ede0000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d0000000001090433000000010410008c0000000004004019000000190100002900000000020004100000001b030000292f1f21150000040f000012b10000013d00000be10040009c001c00000004001d00000be1030000410000000003044019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c2d011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000001f5f0000613d0000001c040000290000001f0130003900000c22021001970000000009420019000000000029004b0000000001000019000000010100403900000be40090009c00001d7c0000213d000000010010019000001d7c0000c13d000000400090043f00000c240030009c00001d7a0000213d00000c2a01000041000000000519043600000004019000390000000904000029000000000041043500000000010004140000000a04000029000000040040008c000012a00000613d00000be10090009c00000be1020000410000000002094019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c1c011001c70000000a02000029001c00000009001d001b00000005001d2f1f2f1a0000040f0000001b0a0000290000001c090000290000000003010019000000600330027000000be103300197000000200030008c0000002005000039000000000503401900000005045002720000128b0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000012870000c13d0000001f055001900000129a0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001f6e0000613d0000001f0130003900000be2021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f000000200030008c00001d7a0000413d0000001302000029000000010220003a00001f2c0000613d0000000003090433000000000023004b00001eed0000c13d000000010100008a000000170010006b00001f2c0000613d00000014030000290000062f0000013d00000000040004150000000001050433000000140210003900000000070204330000000000250435000000150210003900000000030204330000000000250435000000ff0230018f000000050020008c001c00000004a01d00000bcf0002a13e000000400200043d001c00000002001d00000c0401000041000000000012043500000004012000392f1f2d720000040f0000001c02000029000000000121004900000be10010009c00000be101008041000000600110021000000be10020009c00000be1020080410000004002200210000000000121019f00002f21000104300000002902100039000000000302043300000000002504350000002a021000390000000004020433001800000004001d00000000002504350000003e021000390000000004020433001500000004001d000000000025043500000041011000390000000002010433001600000002001d000000000015043500000be3063001970000000001000410000000000001004b001a00000006001d001b00000007001d000014ea0000613d0000000001000411000000000001004b000014fc0000c13d000000400200043d000000200120003900000c1d0300004100000000003104350000004401200039000000000061043500000064010000390000000000120435000000640120003900000000000104350000002401200039000000000001043500000c1e0020009c00001d7c0000213d000000a001200039000014f70000013d0000002902100039000000000302043300000000002504350000002a02100039000000000802043300000000002504350000003e01100039000000000601043300000000001504350000000001000411000000000001004b0000144e0000613d00000be3057001970000146a0000013d0000001602100039000000000302043300000000002504350000002a0210003900000000040204330000000000250435000000020230018f0000000100300190000013ad0000c13d000000000002004b000016470000c13d0000000001000411000000000001004b001a00000004001d00001a0e0000613d00000be30270019700001a240000013d0000001602100039000000000302043300000000002504350000002a011000390000000002010433000000000015043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000ff00300190001b00000007001d001a00000002001d0000162c0000613d0000000001000410000000000001004b000017ad0000613d0000000001000411000000000001004b000018590000613d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400900043d00000c2502000041000000000329043600000be3061001970000000401900039000000000061043500000000010004140000001b0200002900000be308200197000000040080008c001600000006001d001800000008001d000018b00000c13d0000000003000031000018e20000013d0000002903100039000000000203043300000000003504350000004903100039000000000403043300000000043400190000000000450435000000400900043d00000c370400004100000000084904360000000404900039000000200500003900000000005404350000000003030433000000240490003900000000003404350000004404900039000000000003004b000013660000613d0000006901100039000000000500001900000000064500190000000007510019000000000707043300000000007604350000002005500039000000000035004b0000135c0000413d000013660000a13d00000000014300190000000000010435000000000100041400000be302200197000000040020008c000013d00000c13d0000000003000031000014060000013d0000000001000415001800000001001d00000000010504330000001402100039000000000a02043300000000002504350000001502100039000000000802043300000000002504350000001602100039000000000302043300000000002504350000001702100039000000000402043300000000002504350000002b021000390000000006020433001a00000006001d00000000002504350000003f011000390000000002010433001600000002001d00000000001504350000008000400190000000800100008a000000000601001900000000060060190000008000300190000000000201001900000000020060190000007f0130018f0000000003020019000000000513019f0000007f0140018f000000000116019f00000be30d70019700000c1900d0009c000014160000c13d00000c330110019700000c340060019800000c35020000410000000002006019000000000112019f000000400900043d0000002402900039000000000012043500000c3601000041000000000419043600000c330150019700000c340030019800000c35020000410000000002006019000000000112019f000000040290003900000000001204350000006401900039000000000001043500000044019000390000000000010435000000000100041400000be302a00197000000040020008c000016490000c13d0000000003000031000016780000013d0000003e0110003900000000060104330000000000150435000000000002004b0000189b0000c13d001a00000004001d00000c2b010000410000000000100439001b00000006001d00000be301600197001800000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001a040000290000001b0600002900001d7a0000613d000000400500043d00000c4001000041000000000015043500000000010004140000001802000029000000040020008c000018790000c13d00000000030000310000188e0000013d0000001f0330003900000c22033001970000000003930049000000000343001900000be10030009c00000be103008041000000600330021000000be10090009c00000be10400004100000000040940190000004004400210000000000343019f00000be10010009c00000be101008041000000c001100210000000000113019f001b00000009001d001a00000008001d2f1f2f150000040f0000001a0a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000013f30000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000013ef0000c13d0000001f05500190000014020000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001ff50000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001c830000813d00001d7a0000013d001300000008001d000f00000001001d001000000006001d001100000005001d001200000003001d0000000001000411000000000001004b00150000000d001d000014360000c13d001b0000000a001d000000400200043d000000200120003900000c1d030000410000000000310435000000000100041000000be3011001970000004403200039000000000013043500000064010000390000000000120435000000640120003900000000000104350000002401200039000000000001043500000c1e0020009c00001d7c0000213d000000a001200039000000400010043f00000000010d00192f1f2d7f0000040f000000150d0000290000001b0a000029000000000c000415000000400200043d000000200120003900000c320300004100000000003104350000004403000039000000000032043500000be30ba0019700000024032000390000000000b304350000004403200039000000000003043500000c090020009c00001d7c0000213d0000008003200039000000400030043f000000000302043300000000020004140000000400d0008c001b0000000b001d000016860000c13d000000000100003100000001020000390000169c0000013d001a00000003001d000000400200043d000000200120003900000c1d030000410000000000310435000000000100041000000be3011001970000004403200039000000000013043500000064010000390000000000120435000000640120003900000000000104350000002401200039000000000001043500000c1e0020009c00001d7c0000213d000000a001200039000000400010043f00000be301700197001600000001001d001b00000006001d001800000008001d2f1f2d7f0000040f000000160500002900000018080000290000001b060000290000001a0300002900000be3023001970000000203000039000000000103041a00000be701100197000000000121019f000000000013041b000000400400043d00000020010000390000000001140436000000000051043500000c3c0040009c00001d7c0000213d000000ff00800190000000400a4000390000004000a0043f00000c430300004100000000003a0435000000c403400039000000a005000039000000000053043500000c450300004100000c440300c041000000a40540003900000000003504350000000003000019000000010300c0390000006405400039000000000035043500000be30360019700000044054000390000000000350435000000e4054000390000000003040433000000000035043500000084054000390000000000050435000000000003004b0000149c0000613d0000010404400039000000000500001900000000064500190000000007150019000000000707043300000000007604350000002005500039000000000035004b000014920000413d0000149c0000a13d000000000143001900000000000104350000000001000414000000040020008c000014a10000c13d0000000003000031000014d50000013d0000001f0330003900000c2203300197000000c40330003900000be10030009c00000be103008041000000600330021000000be100a0009c00000be10400004100000000040a40190000004004400210000000000343019f00000be10010009c00000be101008041000000c001100210000000000131019f001b0000000a001d2f1f2f150000040f0000001b0a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000014c30000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000014bf0000c13d0000001f05500190000014d10000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000020040000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000400030008c00001d7a0000413d0000000202000039000000000202041a00000be302200197000000010020008c00001c830000613d00001d930000013d000000400200043d000000200120003900000c1a03000041000000000031043500000024012000390000000000610435000000440100003900000000001204350000004401200039000000000001043500000c090020009c00001d7c0000213d0000008001200039000000400010043f00000be3017001972f1f2d7f0000040f0000001a060000290000001b07000029000000400a00043d00000c480100004100000000041a04360000000001000414000000040060008c000015040000c13d0000000003000031000015370000013d001200000004001d00000be100a0009c00000be10200004100000000020a4019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c41011001c7000000000206001900130000000a001d2f1f2f1a0000040f000000130a0000290000000003010019000000600330027000000be103300197000000600030008c0000006005000039000000000503401900000005045002720000000504400210000015220000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b0000151e0000c13d0000001f05500190000015300000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000020130000613d0000001b070000290000001a0600002900000012040000290000001f0130003900000c22011001970000000009a10019000000000019004b0000000002000019000000010200403900000be40090009c00001d7c0000213d000000010020019000001d7c0000c13d000000400090043f00000c240030009c00001d7a0000213d000000600030008c00001d7a0000413d00000000080a043300000c490080009c00001d7a0000213d000000000204043300000c490020009c00001d7a0000213d0000004004a00039000000000404043300000be10040009c00001d7a0000213d0000000404900039000000000008004b00001f9f0000613d000000000002004b00001f9f0000613d00000c2505000041000000000b59043600000000006404350000001804000029000000ff0540018f000000010050008c000000000a080019000000000a026019000000000802c019000000000400041400000be302700197000000040020008c0000159a0000613d00130000000a001d001100000005001d001800000008001d00000be10090009c00000be1010000410000000001094019000000400110021000000be10040009c00000be104008041000000c003400210000000000113019f00000c1c011001c7001b00000009001d00120000000b001d2f1f2f1a0000040f000000120a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000015810000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b0000157d0000c13d0000001f05500190000015900000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000001808000029000000130a000029000020220000613d0000001f0130003900000be2011001970000001a0600002900000011050000290000000004910019000000000014004b0000000001000019000000010100403900000be40040009c00001d7c0000213d000000010010019000001d7c0000c13d000000400040043f000000200030008c00001d7a0000413d0000000002090433000000000182004b00001f2c0000413d000000160300002900000c4a0330019700000c4b0030009c00001f2c0000213d00000c4b03300099000000000082004b000015b20000613d00000c6302100129000000000032004b00001f2c0000413d00000000013100aa000015b70000613d00000c63021001290000000000a2004b00001f2c0000413d00000c630310016700000c4b028000d1000000000032004b00001f2c0000213d000000000221001a00001d8d0000613d0000000001a100a900000000012100d9000000010050008c00000000020000190000000002016019001600000002001d0000000001006019001800000001001d00000c4c0040009c00001d7c0000213d0000002001400039001300000001001d000000400010043f001b00000004001d000000000004043500000c2b0100004100000000001004390000000400600443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001a060000290000001b0300002900001d7a0000613d000000400700043d000000640170003900000080020000390000000000210435000000150100002900000be3011001970000004402700039000000000012043500000024017000390000001602000029000000000021043500000c4d010000410000000000170435000000040170003900000018020000290000000000210435000000000103043300000084027000390000000000120435000000000001004b000015ff0000613d000000a4027000390000000003000019000000130800002900000000042300190000000005830019000000000505043300000000005404350000002003300039000000000013004b000015f50000413d000015ff0000a13d000000000221001900000000000204350000000002000414000000040060008c000016040000c13d00000000030000310000161e0000013d0000001f0110003900000c2201100197000000a40110003900000be10010009c00000be101008041000000600110021000000be10070009c001b00000007001d00000be10300004100000000030740190000004003300210000000000131019f00000be10020009c00000be102008041000000c002200210000000000112019f00000000020600192f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be10330019700020000000103550000000100200190000020310000613d0000001b070000290000001f0130003900000c22021001970000000001720019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001c830000a13d00001d7a0000013d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000201043b000000400900043d00000c30010000410000000003190436000000000100041000000be307100197000000240190003900000000007104350000001b0100002900000be30610019700000004019000390000000000610435000000000100041400000be305200197000000040050008c000017c70000c13d0000000003000031000017fd0000013d000000400100043d00001a610000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c13011001c7001b00000009001d001500000004001d2f1f2f150000040f000000150a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000016650000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000016610000c13d0000001f05500190000016740000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000204f0000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d00001b2d0000013d00000be10010009c00000be101008041000000400110021000000be10030009c00000be1030080410000006003300210000000000113019f00000be10020009c00000be102008041000000c002200210000000000121019f00000000020d0019000e0000000c001d2f1f2f150000040f000000150d0000290000000e0c0000290000001b0b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b00000080030000390000006004000039000016ca0000613d00000be40010009c00001d7c0000213d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00001d7c0000213d000000010050019000001d7c0000c13d000000400030043f0000000003140436000000020500036700000005061002720000000506600210000016bc0000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b000016b80000c13d0000001f07100190000016ca0000613d000000000565034f00000000066300190000000307700210000000000806043300000000087801cf000000000878022f000000000505043b0000010007700089000000000575022f00000000057501cf000000000585019f0000000000560435000000000002004b000016db0000613d0000000002040433000000000002004b00001aaa0000613d00000c240020009c00001d7a0000213d000000200020008c00001d7a0000413d0000000002030433000000000002004b0000000003000019000000010300c039000000000032004b00001d7a0000c13d000000000002004b00001aaa0000c13d000000400200043d000000200320003900000c3204000041000000000043043500000024042000390000000000b40435000000440400003900000000004204350000004404200039000000000004043500000c090020009c00001d7c0000213d0000008004200039000000400040043f000000000502043300000000040004140000000400d0008c0000000102000039000017040000613d00000be10030009c00000be103008041000000400130021000000be10050009c00000be1050080410000006002500210000000000112019f00000be10040009c00000be104008041000000c002400210000000000121019f00000000020d0019000e0000000c001d2f1f2f150000040f000000150d0000290000000e0c0000290000001b0b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b00000080030000390000006004000039000017300000613d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00001d7c0000213d000000010050019000001d7c0000c13d000000400030043f0000000003140436000000020500036700000005061002720000000506600210000017220000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b0000171e0000c13d0000001f07100190000017300000613d000000000565034f00000000066300190000000307700210000000000806043300000000087801cf000000000878022f000000000505043b0000010007700089000000000575022f00000000057501cf000000000585019f0000000000560435000000000002004b00001aaa0000613d00000000050004150000001e0550008a00000005055002100000000002040433000000000002004b000017470000613d00000c240020009c00001d7a0000213d000000200020008c00001d7a0000413d0000000002030433000000000002004b0000000003000019000000010300c039000000000032004b00001d7a0000c13d00000000050004150000001d0550008a0000000505500210000000000002004b00001aaa0000613d000d00000005001d000000400200043d000000200320003900000c3204000041000000000043043500000024042000390000000000b40435000000440400003900000000004204350000004404200039000000000004043500000c090020009c00001d7c0000213d0000008004200039000000400040043f000000000502043300000000040004140000000400d0008c0000000102000039000017700000613d00000be10030009c00000be103008041000000400130021000000be10050009c00000be1050080410000006002500210000000000112019f00000be10040009c00000be104008041000000c002400210000000000121019f00000000020d0019000e0000000c001d2f1f2f150000040f0000000e0c0000290000001b0b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b000000800300003900000060040000390000179c0000613d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00001d7c0000213d000000010050019000001d7c0000c13d000000400030043f00000000031404360000000205000367000000050610027200000005066002100000178e0000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b0000178a0000c13d0000001f011001900000179c0000613d000000000565034f00000000066300190000000301100210000000000706043300000000071701cf000000000717022f000000000505043b0000010001100089000000000515022f00000000011501cf000000000171019f0000000000160435000000000002004b00001aa60000613d0000000002040433000000000002004b000000010100003900001aa70000613d00000c240020009c00001d7a0000213d000000200020008c00001d7a0000413d0000000001030433000000000001004b0000000002000019000000010200c039000000000021004b00001aa70000613d00001d7a0000013d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400200043d000000200320003900000c1a04000041000000000043043500000be30110019700000024032000390000000000130435000000440100003900000000001204350000004401200039000000000001043500000c090020009c0000001b0300002900001d7c0000213d0000008001200039000018740000013d001300000007001d001500000006001d00000be10090009c00000be1020000410000000002094019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c29011001c7001600000005001d0000000002050019001b00000009001d001800000003001d2f1f2f1a0000040f000000180a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000017e70000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000017e30000c13d0000001f05500190000017f60000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000205e0000613d0000001605000029000000150600002900000013070000290000001f0130003900000c2201100197000000000a91001900000000001a004b0000000002000019000000010200403900000be400a0009c00001d7c0000213d000000010020019000001d7c0000c13d0000004000a0043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d00000000020904330000008404a0003900000000002404350000001a0200002900000be3022001970000004404a0003900000000002404350000002402a00039000000000072043500000c3f0200004100000000002a04350000000402a0003900000000006204350000006402a0003900000000000204350000000002000414000000040050008c0000184f0000613d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c3e011001c70000000002050019001b0000000a001d2f1f2f150000040f0000001b0a0000290000000003010019000000600330027000000be103300197000000400030008c00000040050000390000000005034019000000050450027200000005044002100000183b0000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000018370000c13d0000001f05500190000018490000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000206d0000613d0000001f0130003900000be2011001970000000002a10019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f00001a0b0000013d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400200043d000000200320003900000c1d04000041000000000043043500000be3011001970000004403200039000000000013043500000064010000390000000000120435000000640120003900000000000104350000002401200039000000000001043500000c1e0020009c0000001b0300002900001d7c0000213d000000a001200039000000400010043f00000be3013001972f1f2d7f0000040f001800000000001d000019a90000013d00000be10050009c001600000005001d00000be1030000410000000003054019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c41011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be103300197000200000001035500000001002001900000208b0000613d0000001a040000290000001b0600002900000016050000290000001f0130003900000c22021001970000000001520019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d00000be3014001970000000002000410000000000021004b00001c830000613d000000400200043d000000200320003900000c1a04000041000000000043043500000024032000390000000000130435000000440100003900000000001204350000004401200039000000000001043500000c090020009c00001d7c0000213d0000008001200039000000400010043f00000be3016001972f1f2d7f0000040f00001c830000013d00000be10090009c00000be1020000410000000002094019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c1c011001c70000000002080019001500000009001d001300000003001d2f1f2f1a0000040f000000130a00002900000015090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000018cd0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000018c90000c13d0000001f05500190000018dc0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000000018080000290000209a0000613d00000016060000290000001f0130003900000c2201100197000000000a91001900000000001a004b0000000002000019000000010200403900000be400a0009c00001d7c0000213d000000010020019000001d7c0000c13d0000004000a0043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d000000000709043300000c380200004100000000052a04360000000402a0003900000000008204350000000002000414000000040060008c001500000007001d000019300000613d001200000005001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c7000000000206001900130000000a001d2f1f2f1a0000040f000000130a0000290000000003010019000000600330027000000be103300197000000600030008c0000006005000039000000000503401900000005045002720000000504400210000019180000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000019140000c13d0000001f05500190000019260000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000001808000029000020c70000613d0000001f0130003900000be2011001970000001606000029000000150700002900000012050000290000000002a10019000000000012004b0000000004000019000000010400403900000be40020009c00001d7c0000213d000000010040019000001d7c0000c13d000000400020043f000000600030008c00001d7a0000413d00000c390020009c00001d7c0000213d0000006004200039000000400040043f00000000040a043300000be40040009c00001d7a0000213d0000000004420436000000000505043300000be40050009c00001d7a0000213d00000000005404350000004004a00039000000000404043300000c3a0040009c00001d7a0000213d0000004002200039000000000042043500000c6302400167000000000027004b00001f2c0000213d000000400a00043d00000c3b0200004100000000052a04360000000402a0003900000000008204350000000002000414000000040060008c0000198e0000613d001200000005001d001300000004001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c7000000000206001900180000000a001d2f1f2f1a0000040f000000180a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000019770000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000019730000c13d0000001f05500190000019850000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000020a90000613d0000001f0130003900000be2011001970000001507000029000000130400002900000012050000290000000002a10019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f000000400030008c00001d7a0000413d00000c3c0020009c00001d7c0000213d0000004001200039000000400010043f00000000010a043300000c3a0010009c00001d7a0000213d0000000002120436000000000305043300000c3a0030009c00001d7a0000213d00000000047400190000000000320435000000000114004b00001f2c0000413d001800000001001d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400a00043d0000006402a00039000000180300002900000000003204350000001a0200002900000be3022001970000004403a00039000000000023043500000c3d0200004100000000002a04350000001b0200002900000be3022001970000000403a00039000000000023043500000be3021001970000002401a0003900000000002104350000008401a0003900000000000104350000000001000414000000040020008c000019d00000c13d0000000003000031000019fe0000013d00000be100a0009c00000be10300004100000000030a4019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c3e011001c7001b0000000a001d2f1f2f150000040f0000001b0a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000019ec0000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000019e80000c13d0000001f05500190000019fa0000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000020400000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000400030008c00001c830000813d00001d7a0000013d000000400200043d000000200120003900000c1d030000410000000000310435000000000100041000000be3011001970000004403200039000000000013043500000064010000390000000000120435000000640120003900000000000104350000002401200039000000000001043500000c1e0020009c00001d7c0000213d000000a001200039000000400010043f00000be301700197001b00000001001d2f1f2d7f0000040f0000001b0200002900000c2b010000410000000000100439001b00000002001d0000000400200443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001a0400002900001d7a0000613d000000400500043d00000c420100004100000000001504350000000401500039000000000001043500000000010004140000001b02000029000000040020008c00001a400000c13d000000000300003100001a540000013d00000be10050009c001800000005001d00000be1030000410000000003054019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be10330019700020000000103550000000100200190000020b80000613d0000001a0400002900000018050000290000001f0130003900000c22021001970000000001520019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d0000000002000414000000040040008c00001a670000c13d0000000003000031000000000200001900001a750000013d00000be10010009c00000be101008041000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000000020400192f1f2f150000040f000000010220015f0002000000010355000000600110027000000be10010019d00000be103100197000000000003004b0000008004000039000000600100003900001aa30000613d00000be40030009c00001d7c0000213d0000001f0130003900000c22011001970000003f0110003900000c2204100197000000400100043d0000000004410019000000000014004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000431043600000002050003670000000506300272000000050660021000001a950000613d0000000007640019000000000805034f0000000009040019000000008a08043c0000000009a90436000000000079004b00001a910000c13d0000001f0330019000001aa30000613d000000000565034f00000000066400190000000303300210000000000706043300000000073701cf000000000737022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000373019f0000000000360435000000010020019000001c830000613d00001dd60000013d00000000010000190000000d020000290000000502200270000000000201001f000000000100041500000000011c004900000000010000020000001301000029000000ff0010019000001ac60000613d000000160100002900000be30210019700000c190020009c001500000002001d00001ae40000c13d00000c2601000041000000000010043900000000010004100000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b001300000001001d0000001b0b00002900001b730000013d0000000f0100002900000c3301100197000000100200002900000c340020019800000c35020000410000000002006019000000000112019f000000400900043d0000002402900039000000000012043500000c36010000410000000003190436000000110100002900000c3301100197000000120200002900000c340020019800000c35020000410000000002006019000000000112019f00000004029000390000000000120435000000640190003900000000000104350000004401900039000000000001043500000000010004140000000400b0008c00001af00000c13d000000000300003100001b200000013d000000400900043d00000c25010000410000000004190436000000000100041000000be301100197000000040390003900000000001304350000000001000414000000040020008c00001b320000c13d000000000300003100001b620000013d00000be10090009c00000be1020000410000000002094019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c13011001c700000000020b0019001b00000009001d001500000003001d2f1f2f150000040f000000150a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200001b0d0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00001b090000c13d0000001f0550019000001b1c0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000020d60000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d00000000030904330000001a0400002900001c1f0000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7001300000009001d000e00000004001d2f1f2f1a0000040f0000000e0a00002900000013090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200001b4e0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00001b4a0000c13d0000001f0550019000001b5d0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000001b0b000029000020f70000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d0000000001090433001300000001001d00000c2b0100004100000000001004390000000400b00443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001b03000029000000150500002900001d7a0000613d0000000f0100002900000c3301100197000000100200002900000c340020019800000c35020000410000000002006019000000000112019f000000400400043d0000002402400039000000000012043500000c36010000410000000000140435000000110100002900000c3301100197000000120200002900000c340020019800000c35020000410000000002006019000000000112019f0000000402400039000000000012043500000064014000390000000000010435000000440140003900000000000104350000000001000414000000040030008c00001ba20000c13d000000000300003100001bb70000013d00000be10040009c001200000004001d00000be1020000410000000002044019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c13011001c700000000020300192f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be103300197000200000001035500000001002001900000207c0000613d000000150500002900000012040000290000001f0130003900000c22011001970000000009410019000000000019004b0000000002000019000000010200403900000be40090009c00001d7c0000213d000000010020019000001d7c0000c13d000000400090043f00000c240030009c00001d7a0000213d00000c190050009c00001bd50000c13d00000c2601000041000000000010043900000000010004100000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b00001c1c0000013d00000c25020000410000000006290436000000000200041000000be302200197000000040490003900000000002404350000000002000414000000040050008c00001c100000613d00000be10090009c00000be1010000410000000001094019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c70000000002050019001b00000009001d001500000006001d2f1f2f1a0000040f000000150a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200001bfb0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00001bf70000c13d0000001f0550019000001c0a0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000021060000613d0000001f0130003900000be2011001970000000002910019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f000000200030008c00001d7a0000413d0000000001090433000000130310006c0000001a0400002900001f2c0000413d00000be3074001970000000001000410000000000017004b00001c800000613d000000400200043d000000160100002900000be30110019700000c190010009c00001c2e0000c13d0000000001000414000000040040008c00001c3d0000c13d0000000003000031000000010200003900001c500000013d000000200520003900000c1a06000041000000000065043500000044052000390000000000350435000000240320003900000000007304350000004403000039000000000032043500000c090020009c00001d7c0000213d0000008003200039000000400030043f2f1f2d7f0000040f00001c800000013d00000be10020009c00000be102008041000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f000000000003004b00001c4a0000613d00000be8011001c70000800902000039000000000500001900001c4b0000013d00000000020400192f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be103100197000000000003004b0000008004000039000000600100003900001c7e0000613d00000be40030009c00001d7c0000213d0000001f0130003900000c22011001970000003f0110003900000c2204100197000000400100043d0000000004410019000000000014004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000431043600000002050003670000000506300272000000050660021000001c700000613d0000000007640019000000000805034f0000000009040019000000008a08043c0000000009a90436000000000079004b00001c6c0000c13d0000001f0330019000001c7e0000613d000000000565034f00000000066400190000000303300210000000000706043300000000073701cf000000000737022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000373019f0000000000360435000000010020019000001dd60000613d00000000010004150000001801100069000000000100000200000000010004150000001c011000690000000001000002000012b10000013d0000000a0100002900000c190010009c000b00000003001d00001c990000c13d00000c2601000041000000000010043900000000010004110000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001cf00000c13d00001d820000013d000000400900043d00000c25010000410000000004190436000000000100041100000be301100197000000040290003900000000001204350000000a020000290000000001000414000000040020008c00001ca60000c13d000000000300003100001cd60000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7001c00000009001d001b00000004001d2f1f2f1a0000040f0000001b0a0000290000001c090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000001f0450018f000000050550027200001cc30000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00001cbf0000c13d000000000004004b00001cd20000613d0000000505500210000000000651034f00000000055900190000000304400210000000000705043300000000074701cf000000000747022f000000000606043b0000010004400089000000000646022f00000000044601cf000000000474019f0000000000450435000000000003001f0002000000010355000000010020019000001fd70000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d000000010300008a000000080330014f0000000002090433000000000032004b00001f2c0000213d000000080220002900000c640020009c00001f2c0000213d0000000a02200039000000010020006c00001f8c0000413d000000030200002900000c190020009c00001d020000c13d00000c2601000041000000000010043900000007010000290000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b00001d4e0000013d000000400900043d00000c25010000410000000004190436000000070100002900000be301100197000000040390003900000000001304350000000001000414000000040020008c00001d0e0000c13d000000000300003100001d3e0000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7001c00000009001d001b00000004001d2f1f2f1a0000040f0000001b0a0000290000001c090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000001f0450018f000000050550027200001d2b0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00001d270000c13d000000000004004b00001d3a0000613d0000000505500210000000000651034f00000000055900190000000304400210000000000705043300000000074701cf000000000747022f000000000606043b0000010004400089000000000646022f00000000044601cf000000000474019f0000000000450435000000000003001f0002000000010355000000010020019000001fe60000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d00000000010904330000000403000029000000010400008a000000060240014f000000000023004b00001f2c0000213d00000004030000290000000602300029000000000021004b00001f2a0000413d000000000431004b00001f2c0000413d000000400100043d00000040021000390000000603000029000000000032043500000020021000390000000b0300002900000000003204350000006002100039001c00000004001d0000000000420435000000070200002900000be302200197000000000021043500000be10010009c00000be1010080410000004001100210000000000200041400000be10020009c00000be102008041000000c002200210000000000112019f00000c5d011001c70000800d02000039000000040300003900000c5e040000410000000005000411000000020600002900000005070000292f1f2f150000040f000000010020019000001d7a0000613d0000001c01000029000000000001042d000000000100001900002f210001043000000c1b0100004100000000001004350000004101000039000000040010043f00000c1c0100004100002f2100010430000000000001042f000000400100043d000000640210003900000c58030000410000000000320435000000440210003900000c5903000041000000000032043500000024021000390000002a0300003900001e730000013d00000c1b0100004100000000001004350000001201000039000000040010043f00000c1c0100004100002f2100010430000000640210003900000c46030000410000000000320435000000440210003900000c470300004100001e700000013d00000c0402000041000000000024043500000020020000390000000000210435000000440140003900000c4e02000041000000000021043500000024014000390000001302000039000000000021043500000be10040009c00000be104008041000000400140021000000c20011001c700002f2100010430000000400200043d0000001f0350018f000000050450027200001db40000613d00000005064002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001db00000c13d000000000003004b00001dc30000613d0000000504400210000000000141034f00000000044200190000000303300210000000000604043300000000063601cf000000000636022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000161019f00000000001404350000006001500210000020f20000013d000000400100043d000000440210003900000c5a03000041000000000032043500000024021000390000001d03000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c20011001c700002f210001043000000be10040009c00000be1040080410000004002400210000000000101043300001e810000013d000000000001004b00001de30000613d00000be100a0009c00000be10a0080410000004002a0021000001e810000013d000000000001004b00001e7e0000c13d000000400300043d001c00000003001d00000c040100004100000000001304350000000401300039000000200200003900000000002104350000002402300039000000110100002900001f010000013d000000400200043d0000001f0430018f000000050530027200001df90000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001df50000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001e080000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e040000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0340018f000000050540027200001e170000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e130000c13d000000000003004b00001e260000613d0000000505500210000000000151034f00000000055200190000000303300210000000000605043300000000063601cf000000000636022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000161019f00000000001504350000006001400210000020f20000013d000000400200043d0000001f0430018f000000050530027200001e340000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e300000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001e430000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e3f0000c13d000000000004004b000020f10000613d000020e40000013d000000000001004b00001ef80000613d00000be10090009c00000be109008041000000400290021000001e810000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001e580000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e540000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001e670000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e630000c13d000000000004004b000020f10000613d000020e50000013d000000400100043d000000640210003900000c60030000410000000000320435000000440210003900000c6103000041000000000032043500000024021000390000002403000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c13011001c700002f210001043000000be100c0009c00000be10c0080410000004002c0021000000be10010009c00000be1010080410000006001100210000000000121019f00002f2100010430000000400200043d0000001f0430018f0000000505300272000000050550021000001e920000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e8e0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001ea10000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e9d0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f000000050530027200001eb00000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001eac0000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f04a0018f0000000505a00272000000050550021000001ebf0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001ebb0000c13d000000000004004b00001ecd0000613d000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f00000000001504350000006001a00210000020f20000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001edb0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001ed70000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001eea0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001ee60000c13d000000000004004b000020f10000613d000020e50000013d000000640210003900000c2e030000410000000000320435000000440210003900000c2f0300004100000000003204350000002402100039000000210300003900001e730000013d000000000001004b00001ddd0000c13d000000400300043d001c00000003001d00000c04010000410000000000130435000000040130003900000020020000390000000000210435000000240230003900000013010000292f1f2e940000040f0000001c02000029000000000121004900000be10010009c00000be10100804100000be10020009c00000be10200804100000060011002100000004002200210000000000121019f00002f2100010430000000400200043d0000001f0430018f0000000505300272000000050550021000001f180000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f140000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001f270000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f230000c13d000000000004004b000020f10000613d000020e50000013d000000000131004b00001f950000813d00000c1b0100004100000000001004350000001101000039000000040010043f00000c1c0100004100002f2100010430000000400200043d0000001f0430018f0000000505300272000000050550021000001f3e0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f3a0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001f4d0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f490000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f000000050530027200001f5c0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f580000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001f6b0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f670000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001f7a0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f760000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001f890000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f850000c13d000000000004004b000020f10000613d000020e50000013d000000640210003900000c5b030000410000000000320435000000440210003900000c5c03000041000000000032043500000024021000390000002f0300003900001e730000013d000000400200043d00000c5f0300004100000000003204350000000403200039000000000013043500000be10020009c00000be102008041000000400120021000000c1c011001c700002f210001043000000c0401000041000000000019043500000020010000390000000000140435000000440190003900000c4e02000041000000000021043500000024019000390000001302000039000000000021043500000be10090009c00000be109008041000000400190021000000c20011001c700002f21000104300000008001000039000000600200003900000be10010009c00000be1010080410000004001100210000000000202043300000be10020009c00000be1020080410000006002200210000000000112019f00002f2100010430000000400200043d0000001f0430018f000000050530027200001fc50000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001fc10000c13d000000000004004b000020e40000c13d000020f10000013d000000400200043d0000001f0430018f000000050530027200001fd40000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001fd00000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001fe30000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001fdf0000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001ff20000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001fee0000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f00000005053002720000000505500210000020010000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001ffd0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f00000005053002720000000505500210000020100000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b0000200c0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f000000050530027200000005055002100000201f0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b0000201b0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f000000050530027200000005055002100000202e0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b0000202a0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f000000050530027200000005055002100000203d0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020390000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f00000005053002720000204c0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020480000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f00000005053002720000205b0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020570000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200000005055002100000206a0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020660000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f00000005053002720000000505500210000020790000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020750000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f00000005053002720000000505500210000020880000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020840000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000020970000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020930000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000020a60000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020a20000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000020b50000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020b10000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000020c40000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020c00000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000020d30000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020cf0000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000020e20000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020de0000c13d000000000004004b000020f10000613d0000000505500210000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f0000000000150435000000600130021000000be10020009c00000be1020080410000004002200210000000000112019f00002f2100010430000000400200043d0000001f0430018f00000005053002720000000505500210000021030000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020ff0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f00000005053002720000000505500210000021120000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b0000210e0000c13d000000000004004b000020f10000613d000020e50000013d0014000000000002000000000501043300000001065000390000000005060433000d00000001001d0000000000610435000c00ff0050019400002be30000613d000f0be30030019b000e0be30020019b00000000020000190000212c0000013d000000010020019000002c2b0000613d00000000010004150000000a01100069000000000100000200000012010000290000001004100069000000110200002900000001022000390000000c0020006c00002be30000813d001100000002001d0000000d050000290000000007050433000000020270003900000000010204330000000000250435000000030270003900000000030204330000000000250435000000ff0230018f000000050020008c0000ffff0110a18f000000000941a0a90000ffff0190a11a001200000001a01d001000000004a01d00000bdb0002a13e00002bf30000013d00000017017000390000000002010433000000000015043500000018017000390000000003010433000a00000003001d00000000001504350000002c017000390000000003010433000800000003001d00000000001504350000002f017000390000000003010433000900000003001d000000000015043500000be3062001970000000e010000290000000002000410000000000021004b000b00000006001d000022ba0000c13d000000400200043d000000200120003900000c1a030000410000000000310435000000440120003900000012030000290000000000310435000000240120003900000000006104350000004401000039000000000012043500000c090020009c00002be40000213d0000008001200039000022ce0000013d0000001701700039000000000301043300000000001504350000001801700039000000000801043300000000001504350000002c017000390000000006010433000000000015043500000000020004110000000e0020006b0000218a0000c13d000b00000003001d000000400200043d000000200120003900000c1d030000410000000000310435000000640120003900000012030000290000000000310435000000000100041000000be3011001970000004403200039000000000013043500000024012000390000000e0300002900000000003104350000006401000039000000000012043500000c1e0020009c00002be40000213d000000a001200039000000400010043f0000000f01000029000a00000006001d000900000008001d2f1f2d7f0000040f00000009080000290000000a060000290000000b0300002900000be3023001970000000203000039000000000103041a00000be701100197000000000121019f000000000013041b000000400400043d000000200100003900000000011404360000000f03000029000000000031043500000c3c0040009c00002be40000213d000000ff00800190000000400a4000390000004000a0043f00000c430300004100000000003a0435000000c403400039000000a005000039000000000053043500000c450300004100000c440300c041000000a40540003900000000003504350000008403400039000000120500002900000000005304350000000003000019000000010300c0390000006405400039000000000035043500000be30360019700000044054000390000000000350435000000e40540003900000000030404330000000000350435000000000003004b000021be0000613d0000010404400039000000000500001900000000064500190000000007150019000000000707043300000000007604350000002005500039000000000035004b000021b40000413d000021be0000a13d000000000143001900000000000104350000000001000414000000040020008c000024390000c13d00000000030000310000246d0000013d000000040170003900000000020104330000000000150435000000180170003900000000060104330000000000150435000000020120018f0000000100200190000022da0000c13d000000000001004b0000258e0000c13d000a00000009001d000b00000006001d00000000020004110000000e0020006b000021e90000c13d000000400200043d000000200120003900000c1d030000410000000000310435000000640120003900000012030000290000000000310435000000000100041000000be3011001970000004403200039000000000013043500000024012000390000000e0300002900000000003104350000006401000039000000000012043500000c1e0020009c00002be40000213d000000a001200039000000400010043f0000000f010000292f1f2d7f0000040f00000c2b0100004100000000001004390000000f010000290000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b0000000b060000290000000a0900002900002bea0000613d000000400400043d00000c4201000041000000000014043500000004014000390000001202000029000000000021043500000000010004140000000f02000029000000040020008c0000274d0000c13d0000000003000031000027620000013d00000004017000390000000002010433000000000015043500000018017000390000000003010433000b00000003001d0000000000150435000000ff00200190000024aa0000613d00000c180100004100000000001004390000000001000412000000040010044300000024000004430000000e010000290000000002000410000000000021004b000024e40000c13d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000400200043d000000200320003900000c1a04000041000000000043043500000044032000390000001204000029000000000043043500000be301100197000000240320003900000000001304350000004401000039000000000012043500000c090020009c00002be40000213d0000008001200039000025030000013d00000017017000390000000008010433000000000015043500000037047000390000000001040433000000000141001900000000001504350000000e0000006b000024e20000613d000900000004001d000a00000008001d000b00000007001d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b00000c2b02000041000000000020043900000be301100197000800000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b0000000b070000290000000a08000029000000090400002900002bea0000613d000000400500043d00000064015000390000001202000029000000000021043500000be3018001970000004402500039000000000012043500000024015000390000000e02000029000000000021043500000c5301000041000000000015043500000004015000390000000f02000029000000000021043500000000010004140000000802000029000000040020008c000025080000c13d00000000030000310000251e0000013d0000000001000415000a00000001001d00000000010504330000001402100039000000000c020433000000000025043500000015021000390000000008020433000000000025043500000016021000390000000003020433000000000025043500000017021000390000000006050019000000000502043300000000002604350000002b021000390000000007020433000b00000007001d00000000002604350000003f011000390000000002010433000900000002001d00000000001604350000008000500190000000800100008a000000000601001900000000060060190000008000300190000000000201001900000000020060190000007f0130018f0000000003020019000000000b13019f0000007f0150018f000000000516019f0000000f0100002900000c190010009c000022ff0000c13d000000400a00043d0000004401a000390000001202000029000000000021043500000c330150019700000c340060019800000c35020000410000000002006019000000000112019f0000002402a00039000000000012043500000c360100004100000000061a043600000c3301b0019700000c340030019800000c35020000410000000002006019000000000112019f0000000402a0003900000000001204350000006401a000390000000000010435000000000100041400000be305c00197000000040050008c000025900000c13d00000000030000310000272e0000013d0000000002000411000000000021004b000022d20000c13d000000400200043d000000200120003900000c1d0300004100000000003104350000006401200039000000120300002900000000003104350000004401200039000000000061043500000024012000390000000e0300002900000000003104350000006401000039000000000012043500000c1e0020009c00002be40000213d000000a001200039000000400010043f0000000f010000292f1f2d7f0000040f0000000b06000029000000400a00043d00000c480100004100000000041a04360000000001000414000000040060008c0000233a0000c13d00000000030000310000236c0000013d0000002c0270003900000000070204330000000000250435000000000001004b000029f40000c13d000a00000009001d000b00000006001d00000c2b010000410000000000100439000900000007001d00000be301700197000800000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b0000000b060000290000000a03000029000000090700002900002bea0000613d000000400400043d00000c4001000041000000000014043500000000010004140000000805000029000000040050008c0000273f0000c13d0000000003000031000029e70000013d000600000008001d000300000005001d000400000006001d000500000003001d00000000020004110000000e0020006b00080000000b001d000023200000c13d00070000000c001d000000400200043d000000200120003900000c1d030000410000000000310435000000640120003900000012030000290000000000310435000000000100041000000be3011001970000004403200039000000000013043500000024012000390000000e0300002900000000003104350000006401000039000000000012043500000c650020009c00002be40000813d000000a001200039000000400010043f0000000f010000292f1f2d7f0000040f000000080b000029000000070c000029000000000d000415000000400200043d000000440120003900000012030000290000000000310435000000200120003900000c320300004100000000003104350000004403000039000000000032043500000be30cc0019700000024032000390000000000c3043500000c090020009c00002be40000213d0000008003200039000000400030043f000000000302043300000000040004140000000f02000029000000040020008c00070000000c001d0000259f0000c13d00000000010000310000000102000039000025b40000013d000600000004001d00000be100a0009c00000be10200004100000000020a4019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c41011001c7000000000206001900070000000a001d2f1f2f1a0000040f000000070a0000290000000003010019000000600330027000000be103300197000000600030008c0000006005000039000000000503401900000005045002720000000504400210000023580000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000023540000c13d0000001f05500190000023660000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002c340000613d0000000b0600002900000006040000290000001f0130003900000c22011001970000000009a10019000000000019004b0000000002000019000000010200403900000be40090009c00002be40000213d000000010020019000002be40000c13d000000400090043f00000c240030009c00002bea0000213d000000600030008c00002bea0000413d00000000070a043300000c490070009c00002bea0000213d000000000204043300000c490020009c00002bea0000213d0000004004a00039000000000404043300000be10040009c00002bea0000213d0000000404900039000000000007004b00002c030000613d000000000002004b00002c030000613d00000c2505000041000000000a59043600000000006404350000000a04000029000000ff0540018f000000010050008c00000000080700190000000008026019000000000702c01900000000040004140000000f02000029000000040020008c000023cf0000613d000700000008001d000400000005001d000500000007001d00000be10090009c00000be1010000410000000001094019000000400110021000000be10040009c00000be104008041000000c003400210000000000113019f00000c1c011001c7000a00000009001d00060000000a001d2f1f2f1a0000040f000000060a0000290000000a090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000023b60000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000023b20000c13d0000001f05500190000023c50000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000000070800002900002c430000613d0000001f0130003900000be2011001970000000b06000029000000050700002900000004050000290000000004910019000000000014004b0000000001000019000000010100403900000be40040009c00002be40000213d000000010010019000002be40000c13d000000400040043f000000200030008c00002bea0000413d0000000002090433000000000172004b00002bed0000413d000000090300002900000c4a0330019700000c4b0030009c00002bed0000213d00000c4b03300099000000000072004b000023e70000613d00000c6302100129000000000032004b00002bed0000413d00000000013100aa000023ec0000613d00000c6302100129000000000082004b00002bed0000413d00000c630310016700000c4b027000d1000000000032004b00002bed0000213d000000000221001a00002c120000613d00000000018100a900000000012100d9000000010050008c00000000020000190000000002016019000700000002001d0000000001006019000900000001001d00000c4c0040009c00002be40000213d0000002001400039000600000001001d000000400010043f000a00000004001d000000000004043500000c2b0100004100000000001004390000000400600443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b0000000b060000290000000a0300002900002bea0000613d000000400700043d000000640170003900000080020000390000000000210435000000080100002900000be3011001970000004402700039000000000012043500000024017000390000000702000029000000000021043500000c4d010000410000000000170435000000040170003900000009020000290000000000210435000000000103043300000084027000390000000000120435000000000001004b0000000608000029000024340000613d000000a402700039000000000300001900000000042300190000000005830019000000000505043300000000005404350000002003300039000000000013004b0000242a0000413d000024340000a13d000000000221001900000000000204350000000002000414000000040060008c000024820000c13d00000000030000310000249c0000013d0000001f0330003900000c2203300197000000c40330003900000be10030009c00000be103008041000000600330021000000be100a0009c00000be10400004100000000040a40190000004004400210000000000343019f00000be10010009c00000be101008041000000c001100210000000000131019f000b0000000a001d2f1f2f150000040f0000000b0a0000290000000003010019000000600330027000000be103300197000000400030008c00000040050000390000000005034019000000050450027200000005044002100000245b0000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000024570000c13d0000001f05500190000024690000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002c520000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000400030008c00002bea0000413d0000000202000039000000000202041a00000be302200197000000010020008c000021260000613d00002c180000013d0000001f0110003900000c2201100197000000a40110003900000be10010009c00000be101008041000000600110021000000be10070009c000a00000007001d00000be10300004100000000030740190000004003300210000000000131019f00000be10020009c00000be102008041000000c002200210000000000112019f00000000020600192f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000002c610000613d0000000a070000290000001f0130003900000c22021001970000000001720019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c000021260000a13d00002bea0000013d0000000e0000006b000026e10000613d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b00000c2b02000041000000000020043900000be301100197000900000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b00002bea0000613d000000400500043d00000064015000390000001202000029000000000021043500000024015000390000000e02000029000000000021043500000c5301000041000000000015043500000004015000390000000f020000290000000000210435000000000100041000000be3041001970000004401500039000000000041043500000000010004140000000902000029000000040020008c000027bb0000c13d0000000003000031000027d00000013d000000400900043d0000252b0000013d0000000002000411000000000021004b000026ca0000c13d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000400200043d000000200320003900000c1d04000041000000000043043500000064032000390000001204000029000000000043043500000be3011001970000004403200039000000000013043500000024012000390000000e0300002900000000003104350000006401000039000000000012043500000c1e0020009c00002be40000213d000000a001200039000000400010043f0000000f010000292f1f2d7f0000040f0000001201000029000028d60000013d00000be10050009c000700000005001d00000be1030000410000000003054019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c13011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000002c7f0000613d0000000b070000290000000a08000029000000090400002900000007050000290000001f0130003900000c22011001970000000009510019000000000019004b0000000001000019000000010100403900000be40090009c00002be40000213d000000010010019000002be40000c13d000000400090043f00000c240030009c00002bea0000213d00000c3701000041000000000a1904360000000401900039000000200200003900000000002104350000000001040433000000240290003900000000001204350000004403900039000000000001004b000025420000613d0000005702700039000000000400001900000000053400190000000006420019000000000606043300000000006504350000002004400039000000000014004b000025380000413d000025420000a13d00000000023100190000000000020435000000000400041400000be302800197000000040020008c000025480000c13d00000000030000310000257e0000013d0000001f0110003900000c22011001970000000001910049000000000131001900000be10010009c00000be101008041000000600110021000000be10090009c00000be10300004100000000030940190000004003300210000000000131019f00000be10040009c00000be104008041000000c003400210000000000131019f000b00000009001d000a0000000a001d2f1f2f150000040f0000000a0a0000290000000b090000290000000003010019000000600330027000000be103300197000000200030008c0000002005000039000000000503401900000005045002720000256b0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000025670000c13d0000001f055001900000257a0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002c700000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000200030008c000021260000813d00002bea0000013d000000400100043d0000276f0000013d000700000006001d00000be100a0009c00080000000a001d00000be10200004100000000020a4019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f0000ffff0090008c000027050000813d00000c13011001c700000000020500190000270a0000013d00000be10010009c00000be101008041000000400110021000000be10030009c00000be1030080410000006003300210000000000113019f00000be10040009c00000be104008041000000c003400210000000000131019f00020000000d001d2f1f2f150000040f000000020d000029000000070c000029000000080b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b00000080030000390000006004000039000025e20000613d00000be40010009c00002be40000213d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00002be40000213d000000010050019000002be40000c13d000000400030043f0000000003140436000000020500036700000005061002720000000506600210000025d40000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b000025d00000c13d0000001f07100190000025e20000613d000000000565034f00000000066300190000000307700210000000000806043300000000087801cf000000000878022f000000000505043b0000010007700089000000000575022f00000000057501cf000000000585019f0000000000560435000000000002004b000025f30000613d0000000002040433000000000002004b00002a0d0000613d00000c240020009c00002bea0000213d0000001f0020008c00002bea0000a13d0000000002030433000000000002004b0000000003000019000000010300c039000000000032004b00002bea0000c13d000000000002004b00002a0d0000c13d000000400200043d000000200320003900000c3204000041000000000043043500000024042000390000000000c40435000000440400003900000000004204350000004404200039000000000004043500000c090020009c00002be40000213d0000008004200039000000400040043f000000000502043300000000040004140000000f02000029000000040020008c00000001020000390000261d0000613d00000be10030009c00000be103008041000000400130021000000be10050009c00000be1050080410000006002500210000000000112019f00000be10040009c00000be104008041000000c002400210000000000121019f0000000f0200002900020000000d001d2f1f2f150000040f000000020d000029000000070c000029000000080b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b00000080030000390000006004000039000026490000613d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00002be40000213d000000010050019000002be40000c13d000000400030043f00000000031404360000000205000367000000050610027200000005066002100000263b0000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b000026370000c13d0000001f07100190000026490000613d000000000565034f00000000066300190000000307700210000000000806043300000000087801cf000000000878022f000000000505043b0000010007700089000000000575022f00000000057501cf000000000585019f0000000000560435000000000002004b00002a0d0000613d000000000e000415000000140ee0008a000000050ee002100000000002040433000000000002004b000026600000613d00000c240020009c00002bea0000213d000000200020008c00002bea0000413d0000000002030433000000000002004b0000000003000019000000010300c039000000000032004b00002bea0000c13d000000000e000415000000130ee0008a000000050ee00210000000000002004b00002a0d0000613d000000400200043d000000440320003900000012040000290000000000430435000000200320003900000c3204000041000000000043043500000024042000390000000000c404350000004404000039000000000042043500000c090020009c00002be40000213d0000008004200039000000400040043f000000000502043300000000040004140000000f02000029000000040020008c00000001020000390000268d0000613d00000be10030009c00000be103008041000000400130021000000be10050009c00000be1050080410000006002500210000000000112019f00000be10040009c00000be104008041000000c002400210000000000121019f0000000f0200002900020000000d001d00010000000e001d2f1f2f150000040f000000010e000029000000020d000029000000070c000029000000080b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b00000080030000390000006004000039000026b90000613d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00002be40000213d000000010050019000002be40000c13d000000400030043f0000000003140436000000020500036700000005061002720000000506600210000026ab0000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b000026a70000c13d0000001f01100190000026b90000613d000000000565034f00000000066300190000000301100210000000000706043300000000071701cf000000000717022f000000000505043b0000010001100089000000000515022f00000000011501cf000000000171019f0000000000160435000000000002004b00002a0a0000613d0000000002040433000000000002004b000000010100003900002a0b0000613d00000c240020009c00002bea0000213d000000200020008c00002bea0000413d0000000001030433000000000001004b0000000002000019000000010200c039000000000021004b00002a0b0000613d00002bea0000013d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000400900043d00000c2502000041000000000429043600000be3061001970000000401900039000000000061043500000000010004140000000f02000029000000040020008c000a00000006001d000027df0000c13d00000000030000310000280f0000013d000000400300043d00000c30010000410000000001130436000800000001001d00000004013000390000000f020000290000000000210435000000000100041000000be302100197000900000003001d0000002401300039000a00000002001d000000000021043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000201043b000000000100041400000be302200197000000040020008c000029360000c13d00000000030000310000000a040000290000000909000029000029640000013d00000c50011001c700008009020000390000001203000029000000000405001900000000050000192f1f2f150000040f0000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000000080a00002900000007090000290000271b0000613d000000000601034f00000000070a0019000000006806043c0000000007870436000000000097004b000027170000c13d0000001f055001900000272a0000613d0000000504400210000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002c9d0000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000200030008c00002bea0000413d00000000030a043300002b800000013d00000be10040009c000700000004001d00000be1020000410000000002044019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f0000ffff0030008c000029d70000813d00000c41011001c70000000002050019000029dc0000013d00000be10040009c000900000004001d00000be1030000410000000003044019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000002cca0000613d0000000b060000290000000a0900002900000009040000290000001f0130003900000c22021001970000000001420019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d0000000002000414000000040060008c000027750000c13d000000000300003100000001020000390000278a0000013d00000be10010009c00000be101008041000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f0000ffff0090008c000027800000813d0000000002060019000027850000013d00000be8011001c700008009020000390000001203000029000000000406001900000000050000192f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be103100197000000000003004b00000080040000390000006001000039000027b80000613d00000be40030009c00002be40000213d0000001f0130003900000c22011001970000003f0110003900000c2204100197000000400100043d0000000004410019000000000014004b0000000005000019000000010500403900000be40040009c00002be40000213d000000010050019000002be40000c13d000000400040043f0000000004310436000000020500036700000005063002720000000506600210000027aa0000613d0000000007640019000000000805034f0000000009040019000000008a08043c0000000009a90436000000000079004b000027a60000c13d0000001f03300190000027b80000613d000000000565034f00000000066400190000000303300210000000000706043300000000073701cf000000000737022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000373019f00000000003604350000000100200190000021260000c13d00002c2b0000013d000a00000004001d00000be10050009c000800000005001d00000be1030000410000000003054019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c13011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000002ce80000613d0000000a0400002900000008050000290000001f0130003900000c22011001970000000005510019000000000015004b0000000001000019000000010100403900000be40050009c00002be40000213d000000010010019000002be40000c13d000000400050043f00000c240030009c0000001201000029000029740000a13d00002bea0000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7000900000009001d000800000004001d2f1f2f1a0000040f000000080a00002900000009090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000027fb0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000027f70000c13d0000001f055001900000280a0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002d060000613d0000000a060000290000001f0130003900000c2201100197000000000a91001900000000001a004b0000000002000019000000010200403900000be400a0009c00002be40000213d000000010020019000002be40000c13d0000004000a0043f00000c240030009c00002bea0000213d000000200030008c00002bea0000413d000000000709043300000c380200004100000000052a04360000000402a000390000000f0400002900000000004204350000000002000414000000040060008c000900000007001d0000285d0000613d000700000005001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c7000000000206001900080000000a001d2f1f2f1a0000040f000000080a0000290000000003010019000000600330027000000be103300197000000600030008c0000006005000039000000000503401900000005045002720000000504400210000028460000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000028420000c13d0000001f05500190000028540000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002d150000613d0000001f0130003900000be2011001970000000a06000029000000090700002900000007050000290000000002a10019000000000012004b0000000004000019000000010400403900000be40020009c00002be40000213d000000010040019000002be40000c13d000000400020043f000000600030008c00002bea0000413d00000c390020009c00002be40000213d0000006004200039000000400040043f00000000040a043300000be40040009c00002bea0000213d0000000004420436000000000505043300000be40050009c00002bea0000213d00000000005404350000004004a00039000000000504043300000c3a0050009c00002bea0000213d0000004002200039000000000052043500000c6302500167000000000027004b00002bed0000213d000000400a00043d00000c3b0200004100000000082a04360000000402a000390000000f0400002900000000004204350000000002000414000000040060008c000028bc0000613d000800000008001d000700000005001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c70000000002060019000a0000000a001d2f1f2f1a0000040f0000000a0a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000028a50000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000028a10000c13d0000001f05500190000028b30000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000000080800002900002d240000613d0000001f0130003900000be201100197000000090700002900000007050000290000000002a10019000000000012004b0000000001000019000000010100403900000be40020009c00002be40000213d000000010010019000002be40000c13d000000400020043f000000400030008c00002bea0000413d00000c3c0020009c00002be40000213d0000004001200039000000400010043f00000000010a043300000c3a0010009c00002bea0000213d0000000002120436000000000308043300000c3a0030009c00002bea0000213d00000000047500190000000000320435000000000114004b00002bed0000413d000a00000001001d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000400a00043d0000006402a000390000000a0300002900000000003204350000000b0200002900000be3022001970000004403a00039000000000023043500000c3d0200004100000000002a04350000000402a000390000000f03000029000000000032043500000be3021001970000002401a0003900000000002104350000008401a0003900000000000104350000000001000414000000040020008c000028fd0000c13d00000000030000310000292b0000013d00000be100a0009c00000be10300004100000000030a4019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c3e011001c7000b0000000a001d2f1f2f150000040f0000000b0a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000029190000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000029150000c13d0000001f05500190000029270000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002c8e0000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000029d10000013d000000090300002900000be10030009c00000be103008041000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c29011001c72f1f2f1a0000040f00000009090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000000080a000029000029500000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b0000294c0000c13d0000001f055001900000295f0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002d630000613d0000000a040000290000001f0130003900000c22011001970000000005910019000000000015004b0000000001000019000000010100403900000be40050009c00002be40000213d000000010010019000002be40000c13d000000400050043f00000c240030009c00002bea0000213d000000200030008c00002bea0000413d0000000001090433000000840250003900000000001204350000000b0100002900000be301100197000000440250003900000000001204350000002401500039000000000041043500000c3f01000041000000000015043500000004015000390000000f020000290000000000210435000a00000005001d0000006401500039000000000001043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000201043b000000000100041400000be302200197000000040020008c0000299a0000c13d00000000030000310000000a0a000029000029c70000013d0000000a0300002900000be10030009c00000be103008041000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c3e011001c72f1f2f150000040f0000000a0a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000029b50000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000029b10000c13d0000001f05500190000029c30000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002cac0000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000400030008c000021260000813d00002bea0000013d00000c57011001c700008009020000390000001203000029000000000405001900000000050000192f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be1033001970000000100200190000000090700002900002cd90000613d0000000b0600002900000007040000290000001f0130003900000c22021001970000000001420019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d00000be3016001970000000002000410000000000021004b000021260000613d000000400200043d000000200320003900000c1a040000410000000000430435000000440320003900000012040000290000000000430435000000240320003900000000001304350000004401000039000000000012043500000c090020009c00002be40000213d0000008001200039000000400010043f00000be3017001972f1f2d7f0000040f000021260000013d00000000010000190000000502e00270000000000201001f000000000100041500000000011d004900000000010000020000000601000029000000ff0010019000002a290000613d000000090100002900000be30210019700000c190020009c000600000002001d00002a470000c13d00000c2601000041000000000010043900000000010004100000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000200000001001d000000070c00002900002ad50000013d000000400900043d000000440190003900000012020000290000000000210435000000030100002900000c3301100197000000040200002900000c340020019800000c35020000410000000002006019000000000112019f0000002402900039000000000012043500000c3601000041000000000319043600000c3301b00197000000050200002900000c340020019800000c35020000410000000002006019000000000112019f000000040290003900000000001204350000006401900039000000000001043500000000010004140000000400c0008c00002a530000c13d000000000300003100002a830000013d000000400900043d00000c25010000410000000004190436000000000100041000000be301100197000000040390003900000000001304350000000001000414000000040020008c00002a940000c13d000000000300003100002ac40000013d00000be10090009c00000be1020000410000000002094019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c13011001c700000000020c0019000800000009001d000700000003001d2f1f2f150000040f000000070a00002900000008090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200002a700000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00002a6c0000c13d0000001f0550019000002a7f0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002cf70000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000200030008c00002bea0000413d000000000309043300002b800000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7000200000009001d000100000004001d2f1f2f1a0000040f000000010a00002900000002090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200002ab00000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00002aac0000c13d0000001f0550019000002abf0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000000070c00002900002d330000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000200030008c00002bea0000413d0000000001090433000200000001001d00000c2b0100004100000000001004390000000400c00443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b0000000803000029000000070400002900002bea0000613d000000400500043d000000440150003900000012020000290000000000210435000000030100002900000c3301100197000000040200002900000c340020019800000c35020000410000000002006019000000000112019f0000002402500039000000000012043500000c3601000041000000000015043500000c3301300197000000050200002900000c340020019800000c35020000410000000002006019000000000112019f00000004025000390000000000120435000000640150003900000000000104350000000001000414000000040040008c00002b040000c13d000000000300003100002b180000013d00000be10050009c000800000005001d00000be1020000410000000002054019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c13011001c700000000020400192f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000002cbb0000613d00000008050000290000001f0130003900000c22011001970000000009510019000000000019004b0000000002000019000000010200403900000be40090009c00002be40000213d000000010020019000002be40000c13d000000400090043f00000c240030009c00002bea0000213d000000060200002900000c190020009c00002b370000c13d00000c2601000041000000000010043900000000010004100000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b00002b7e0000013d00000c25020000410000000005290436000000000200041000000be3022001970000000404900039000000000024043500000006020000290000000004000414000000040020008c00002b720000613d00000be10090009c00000be1010000410000000001094019000000400110021000000be10040009c00000be104008041000000c003400210000000000113019f00000c1c011001c7000800000009001d000700000005001d2f1f2f1a0000040f000000070a00002900000008090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200002b5d0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00002b590000c13d0000001f0550019000002b6c0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002d420000613d0000001f0130003900000be2011001970000000002910019000000000012004b0000000001000019000000010100403900000be40020009c00002be40000213d000000010010019000002be40000c13d000000400020043f000000200030008c00002bea0000413d0000000001090433000000020310006c00002bed0000413d0000000b0100002900000be3041001970000000001000410000000000014004b000021230000613d000000400200043d000000090100002900000be30110019700000c190010009c00002b910000c13d00000000010004140000000b04000029000000040040008c00002ba00000c13d0000000003000031000000010200003900002bb40000013d000000200520003900000c1a06000041000000000065043500000044052000390000000000350435000000240320003900000000004304350000004403000039000000000032043500000c090020009c00002be40000213d0000008003200039000000400030043f2f1f2d7f0000040f000021230000013d00000be10020009c00000be102008041000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f000000000003004b00002bae0000613d00000be8011001c700008009020000390000000b04000029000000000500001900002baf0000013d0000000b020000292f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be103100197000000000003004b00000080040000390000006001000039000021210000613d00000be40030009c00002be40000213d0000001f0130003900000c22011001970000003f0110003900000c2204100197000000400100043d0000000004410019000000000014004b0000000005000019000000010500403900000be40040009c00002be40000213d000000010050019000002be40000c13d000000400040043f000000000431043600000002050003670000000506300272000000050660021000002bd40000613d0000000007640019000000000805034f0000000009040019000000008a08043c0000000009a90436000000000079004b00002bd00000c13d0000001f03300190000021210000613d000000000565034f00000000066400190000000303300210000000000706043300000000073701cf000000000737022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000373019f0000000000360435000021210000013d000000000001042d00000c1b0100004100000000001004350000004101000039000000040010043f00000c1c0100004100002f2100010430000000000100001900002f2100010430000000000001042f00000c1b0100004100000000001004350000001101000039000000040010043f00000c1c0100004100002f2100010430000000400200043d001200000002001d00000c0401000041000000000012043500000004012000392f1f2d720000040f0000001202000029000000000121004900000be10010009c00000be101008041000000600110021000000be10020009c00000be1020080410000004002200210000000000121019f00002f210001043000000c0401000041000000000019043500000020010000390000000000140435000000440190003900000c4e02000041000000000021043500000024019000390000001302000039000000000021043500000be10090009c00000be109008041000000400190021000000c20011001c700002f210001043000000c1b0100004100000000001004350000001201000039000000040010043f00000c1c0100004100002f2100010430000000640210003900000c46030000410000000000320435000000440210003900000c4703000041000000000032043500000024021000390000002403000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c13011001c700002f210001043000000be10040009c00000be1040080410000004002400210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f00002f2100010430000000400200043d0000001f0430018f000000050530027200002c400000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c3c0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c4f0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c4b0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c5e0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c5a0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c6d0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c690000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c7c0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c780000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c8b0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c870000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c9a0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c960000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f0000000505300272000000050550021000002ca90000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002ca50000c13d000000000004004b00002d5d0000613d00002d510000013d000000400200043d0000001f0430018f0000000505300272000000050550021000002cb80000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002cb40000c13d000000000004004b00002d5d0000613d00002d510000013d000000400200043d0000001f0430018f000000050530027200002cc70000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002cc30000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f0000000505300272000000050550021000002cd60000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002cd20000c13d000000000004004b00002d5d0000613d00002d510000013d000000400200043d0000001f0430018f0000000505300272000000050550021000002ce50000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002ce10000c13d000000000004004b00002d5d0000613d00002d510000013d000000400200043d0000001f0430018f0000000505300272000000050550021000002cf40000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002cf00000c13d000000000004004b00002d5d0000613d00002d510000013d000000400200043d0000001f0430018f000000050530027200002d030000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002cff0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002d120000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d0e0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002d210000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d1d0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002d300000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d2c0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002d3f0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d3b0000c13d000000000004004b00002d500000c13d00002d5d0000013d000000400200043d0000001f0430018f000000050530027200002d4e0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d4a0000c13d000000000004004b00002d5d0000613d0000000505500210000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f0000000000150435000000600130021000000be10020009c00000be1020080410000004002200210000000000112019f00002f2100010430000000400200043d0000001f0430018f0000000505300272000000050550021000002d6f0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d6b0000c13d000000000004004b00002d5d0000613d00002d510000013d000000600210003900000c66030000410000000000320435000000400210003900000c67030000410000000000320435000000200210003900000021030000390000000000320435000000200200003900000000002104350000008001100039000000000001042d0004000000000002000000400400043d00000c680040009c00002e480000813d00000be3051001970000004001400039000000400010043f000000200140003900000c550300004100000000003104350000002001000039000000000014043500000000230204340000000001000414000000040050008c00002dbd0000c13d000000000100003200002dfb0000613d00000be40010009c00002e480000213d0000001f0210003900000c22022001970000003f0220003900000c2202200197000000400a00043d00000000022a00190000000000a2004b0000000003000019000000010300403900000be40020009c00002e480000213d000000010030019000002e480000c13d000000400020043f0000001f0210018f00000000031a043600000002040003670000000501100272000000050110021000002dae0000613d0000000005130019000000000604034f0000000007030019000000006806043c0000000007870436000000000057004b00002daa0000c13d000000000002004b00002dfc0000613d000000000414034f00000000011300190000000302200210000000000301043300000000032301cf000000000323022f000000000404043b0000010002200089000000000424022f00000000022401cf000000000232019f000000000021043500002dfc0000013d000200000004001d00000be10030009c00000be103008041000000600330021000000be10020009c00000be1020080410000004002200210000000000223019f00000be10010009c00000be101008041000000c001100210000000000112019f000100000005001d00000000020500192f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be10530019800002e130000613d0000001f0350003900000be2033001970000003f0330003900000c5603300197000000400a00043d00000000033a00190000000000a3004b0000000004000019000000010400403900000be40030009c00002e480000213d000000010040019000002e480000c13d000000400030043f0000001f0450018f00000000035a04360000000505500272000000050550021000002dec0000613d0000000006530019000000000701034f0000000008030019000000007907043c0000000008980436000000000068004b00002de80000c13d000000000004004b00002e150000613d000000000151034f00000000055300190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f000000000015043500002e150000013d000000600a0000390000000002000415000000040220008a000000050220021000000000010a0433000000000001004b00002e1d0000c13d00020000000a001d00000c2b01000041000000000010043900000004010000390000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002e7a0000613d0000000002000415000000040220008a00002e300000013d000000600a000039000000800300003900000000010a0433000000010020019000002e640000613d0000000002000415000000030220008a0000000502200210000000000001004b00002e200000613d000000050220027000000000020a001f00002e3a0000013d00020000000a001d00000c2b01000041000000000010043900000001010000290000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002e7a0000613d0000000002000415000000030220008a0000000502200210000000000101043b000000000001004b000000020a00002900002e7b0000613d00000000010a0433000000050220027000000000020a001f000000000001004b00002e470000613d00000c240010009c00002e4e0000213d0000001f0010008c00002e4e0000a13d0000002001a000390000000001010433000000000001004b0000000002000019000000010200c039000000000021004b00002e4e0000c13d000000000001004b00002e500000613d000000000001042d00000c1b0100004100000000001004350000004101000039000000040010043f00000c1c0100004100002f2100010430000000000100001900002f2100010430000000400100043d000000640210003900000c58030000410000000000320435000000440210003900000c5903000041000000000032043500000024021000390000002a03000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c13011001c700002f2100010430000000000001004b00002e8c0000c13d000000400300043d000100000003001d00000c04010000410000000000130435000000040130003900000020020000390000000000210435000000240230003900000002010000292f1f2e940000040f0000000102000029000000000121004900000be10010009c00000be10100804100000be10020009c00000be10200804100000060011002100000004002200210000000000121019f00002f2100010430000000000001042f000000400100043d000000440210003900000c5a03000041000000000032043500000024021000390000001d03000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c20011001c700002f210001043000000be10030009c00000be103008041000000400230021000000be10010009c00000be1010080410000006001100210000000000121019f00002f210001043000000000430104340000000001320436000000000003004b00002ea30000613d000000000200001900000000052100190000000006240019000000000606043300000000006504350000002002200039000000000032004b00002e990000413d00002ea30000a13d000000000231001900000000000204350000001f0230003900000c22022001970000000001210019000000000001042d0000000206000039000000000706041a00000be3057001970000000008000411000000000058004b00002ed70000c13d000000000001004b0000000008000019000000010800603900000c240010009c0000000009000019000000010900203900000000008901a0000000000201601900000c240020009c00002ee10000213d000000000002004b00002ee10000613d00000be70170019700000001011001bf000000000016041b00000c240040009c00002ed50000213d0000001f0040008c00002ed50000a13d0000000101300367000000000101043b00000be30010009c00002ed50000213d000000400300043d000000200430003900000c1a06000041000000000064043500000044043000390000000000240435000000240230003900000000005204350000004402000039000000000023043500000c6b0030009c00002ef50000813d0000008002300039000000400020043f00000000020300192f1f2d7f0000040f000000000001042d000000000100001900002f2100010430000000400100043d000000640210003900000c69030000410000000000320435000000440210003900000c6a03000041000000000032043500000024021000390000003e0300003900002eea0000013d000000400100043d000000640210003900000c6c030000410000000000320435000000440210003900000c6a03000041000000000032043500000024021000390000003903000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c13011001c700002f210001043000000c1b0100004100000000001004350000004101000039000000040010043f00000c1c0100004100002f2100010430000000000001042f00000000050100190000000000200439000000040100003900000005024002700000000002020031000000000121043a0000002004400039000000000031004b00002eff0000413d00000be10030009c00000be1030080410000006001300210000000000200041400000be10020009c00000be102008041000000c002200210000000000112019f00000c6d011001c700000000020500192f1f2f1a0000040f000000010020019000002f140000613d000000000101043b000000000001042d000000000001042f00002f18002104210000000102000039000000000001042d0000000002000019000000000001042d00002f1d002104230000000102000039000000000001042d0000000002000019000000000001042d00002f1f0000043200002f200001042e00002f2100010430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000064f000000000000000000000000000000000000000000000000000000000000067d00000000000000000000000000000000000000000000000000000000000012b6000000000000000000000000000000000000000000000000000000000000065700000000000000000000000000000000000000000000000000000000000010d400000000000000000000000000000000000000000000000000000000000012d200000000000000000000000000000000000000000000000000000000000012fa000000000000000000000000000000000000000000000000000000000000130800000000000000000000000000000000000000000000000000000000000013190000000000000000000000000000000000000000000000000000000000001347000000000000000000000000000000000000000000000000000000000000136c00000000000000000000000000000000000000000000000000000000000006b2000000000000000000000000000000000000000000000000000000000000074000000000000000000000000000000000000000000000000000000000000008ea0000000000000000000000000000000000000000000000000000000000000854000000000000000000000000000000000000000000000000000000000000081000000000000000000000000000000000000000000000000000000000000009b4000000000000000000000000000000000000000000000000000000000000213e000000000000000000000000000000000000000000000000000000000000216200000000000000000000000000000000000000000000000000000000000021c300000000000000000000000000000000000000000000000000000000000022070000000000000000000000000000000000000000000000000000000000002233000000000000000000000000000000000000000000000000000000000000227700000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000ffffffffffffffff80000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0ffffffffffffffffffffffff000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000000000010200000000000000000000000000000000000040000000000000000000000000000000020000000000000000000000000000008000000100000000000000000000000000000000000000000000000000000000000000000000000000715018a5000000000000000000000000000000000000000000000000000000009a1f340500000000000000000000000000000000000000000000000000000000f2fde38a00000000000000000000000000000000000000000000000000000000f2fde38b00000000000000000000000000000000000000000000000000000000fa461e33000000000000000000000000000000000000000000000000000000009a1f340600000000000000000000000000000000000000000000000000000000cd0fb7a7000000000000000000000000000000000000000000000000000000008da5cb5a000000000000000000000000000000000000000000000000000000008da5cb5b0000000000000000000000000000000000000000000000000000000093b3774c00000000000000000000000000000000000000000000000000000000715018a6000000000000000000000000000000000000000000000000000000008456cb59000000000000000000000000000000000000000000000000000000002c8958f5000000000000000000000000000000000000000000000000000000006678ec1e000000000000000000000000000000000000000000000000000000006678ec1f000000000000000000000000000000000000000000000000000000006b2ace87000000000000000000000000000000000000000000000000000000002c8958f60000000000000000000000000000000000000000000000000000000047f8bd4100000000000000000000000000000000000000000000000000000000046f7da20000000000000000000000000000000000000000000000000000000023a69e75000000000000000000000000000000000000000000000000000000002646478b020000000000000000000000000000000000000000000080000000000000000008c379a0000000000000000000000000000000000000000000000000000000004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000840000008000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff7f0000000000000000000000ff0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000ff0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000ffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000200000008000000000000000002070726976696c6567656420757365720000000000000000000000000000000052503a2063616c6c6572206973206e6f7420746865206f776e6572206f7220610000000000000000000000000000000000000084000000000000000000000000ffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff00000000000000000000020000000000000000000000000000000000000000004f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65720000000000000000000000000000000000000064000000800000000000000000310ab089e4439a4c15d089f94afb7896ff553aecb10793d0ab882de59d99a32e000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeea9059cbb000000000000000000000000000000000000000000000000000000004e487b7100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000000000000000000000023b872dd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff5f526f75746550726f636573736f72206973206c6f636b656400000000000000000000000000000000000000000000000000000064000000000000000000000000526f75746550726f636573736f72206973207061757365640000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff70a08231000000000000000000000000000000000000000000000000000000009cc7f708afc65944829bd487b90b72536b1951864fbfc14e125fc972a6507f390200000200000000000000000000000000000024000000000000000000000000dd62ed3e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000440000000000000000000000007ecebe00000000000000000000000000000000000000000000000000000000001806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b83d505accf0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e400000000000000000000000064000000000000000000000000000000000000000000000000000000000000005361666545524332303a207065726d697420646964206e6f7420737563636565f7888aec000000000000000000000000000000000000000000000000000000000200000200000000000000000000000000000044000000000000000000000000095ea7b300000000000000000000000000000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffff0000000000000000000000000000000080000000000000000000000000000000ffffffffffffffffffffffffffffffff800000000000000000000000000000003df0212400000000000000000000000000000000000000000000000000000000627dd56a00000000000000000000000000000000000000000000000000000000df23b45b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff9f00000000000000000000000000000000ffffffffffffffffffffffffffffffff4ffe34db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffbf02b9446c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a400000000000000000000000097da6d3000000000000000000000000000000000000000000000000000000000d0e30db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000002e1a7d4d00000000000000000000000000000000000000000000000000000000128acb080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000276a4000000000000000000000000fffd8963efd1fc6a506488495d951d5263988d256374656400000000000000000000000000000000000000000000000000000000526f75746550726f636573736f722e73776170556e6956333a20756e657870650902f1ac00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000ffffff00000000000000000000000000000000000000000000000000000000000f4240000000000000000000000000000000000000000000000000ffffffffffffffdf022c0d9f0000000000000000000000000000000000000000000000000000000057726f6e6720706f6f6c20726573657276657300000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffff800200000000000000000000000000000000000084000000000000000000000000000000000000000000000000000000000000000000000001ffffffffffffffe0000000000000000000000000000000000000000000000003ffffffffffffffe0f18d03cc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff1f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656400000000000000000000000000000000000000000000000000000003ffffffe002000000000000000000000000000000000000040000000000000000000000006f742073756363656564000000000000000000000000000000000000000000005361666545524332303a204552433230206f7065726174696f6e20646964206e416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006c616e63652076696f6c6174696f6e0000000000000000000000000000000000526f75746550726f636573736f723a204d696e696d616c20696e70757420626102000000000000000000000000000000000000800000000000000000000000002db5ddd0b42bdbca0d69ea16f234a870a485854ae0d91f16643d6f317d8b8994963b34a500000000000000000000000000000000000000000000000000000000636f646500000000000000000000000000000000000000000000000000000000526f75746550726f636573736f723a20556e6b6e6f776e20636f6d6d616e6420ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5000000000000000000000000000000000000000000000000ffffffffffffff606500000000000000000000000000000000000000000000000000000000000000526f75746550726f636573736f723a20556e6b6e6f776e20706f6f6c20747970000000000000000000000000000000000000000000000000ffffffffffffffc06261636b3a2063616c6c2066726f6d20756e6b6e6f776e20736f757263650000526f75746550726f636573736f722e756e697377617056335377617043616c6c000000000000000000000000000000000000000000000000ffffffffffffff806261636b3a206e6f7420706f73697469766520616d6f756e7400000000000000020000020000000000000000000000000000000000000000000000000000000009c586ba00d81b10ac07f3b1dc836f7934cd92433c250f5f778f701c6a8db8f8", + "storageLayout": { + "storage": [ + { + "astId": 7, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "_owner", + "offset": 0, + "slot": "0", + "type": "t_address" + }, + { + "astId": 1146, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "priviledgedUsers", + "offset": 0, + "slot": "1", + "type": "t_mapping(t_address,t_bool)" + }, + { + "astId": 1148, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "lastCalledPool", + "offset": 0, + "slot": "2", + "type": "t_address" + }, + { + "astId": 1151, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "unlocked", + "offset": 20, + "slot": "2", + "type": "t_uint8" + }, + { + "astId": 1154, + "contract": "contracts/RouteProcessor5.sol:RouteProcessor5", + "label": "paused", + "offset": 21, + "slot": "2", + "type": "t_uint8" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_bool)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => bool)", + "numberOfBytes": "32", + "value": "t_bool" + }, + "t_uint8": { + "encoding": "inplace", + "label": "uint8", + "numberOfBytes": "1" + } + } + }, + "factoryDeps": [ + "0x00030000000000020008000000000002000000000701034f0000000001070019000000600110027000000be106100197000200000067035500010000000703550000000100200190000000290000c13d0000008003000039000000400030043f000000040060008c000000690000413d000000000167034f000000000207043b000000e00220027000000bee0020009c0000006d0000a13d00000bef0020009c000000de0000213d00000bf50020009c000001640000213d00000bf80020009c000001f00000613d00000bf90020009c000003890000c13d0000000001000416000000000001004b000003890000c13d000000000100041a00000be3021001970000000001000411000000000021004b000003450000c13d00000080020000390000000201000039000000000301041a00000c140330019700000c15033001c7000002a40000013d000000a001000039000000400010043f0000000002000416000000000002004b000003890000c13d0000001f0260003900000be202200197000000a002200039000000400020043f0000001f0260018f00000005036002720000003c0000613d0000000504300210000000a004400039000000000507034f000000005805043c0000000001810436000000000041004b000000380000c13d000000000002004b0000004b0000613d0000000501300210000000000317034f0000000302200210000000a001100039000000000401043300000000042401cf000000000424022f000000000303043b0000010002200089000000000323022f00000000022301cf000000000242019f0000000000210435000000400060008c000003890000413d000000a00700043d00000be30070009c000003890000213d000000c00100043d00000be40010009c000003890000213d0000001f02100039000000000062004b000000000300001900000be50300804100000be502200197000000000002004b000000000400001900000be50400404100000be50020009c000000000403c019000000000004004b000003890000c13d000000a002100039000000000202043300000be40020009c000002070000a13d00000c1b0100004100000000001004350000004101000039000000040010043f00000c1c0100004100002f2100010430000000000006004b000003890000c13d000000000100001900002f200001042e00000bfa0020009c000001050000a13d00000bfb0020009c000001cf0000213d00000bfe0020009c000001e50000613d00000bff0020009c000003890000c13d000001040060008c000003890000413d0000000402700370000000000402043b00000be30040009c000003890000213d0000002402700370000000000302043b0000004402700370000000000202043b000600000002001d00000be30020009c000003890000213d0000006402700370000000000202043b000500000002001d0000008402700370000000000202043b000400000002001d00000be30020009c000003890000213d000000a402700370000000000202043b000300000002001d000000c402700370000000000202043b000200000002001d00000be30020009c000003890000213d000000e402700370000000000502043b00000be40050009c000003890000213d0000002302500039000000000062004b000003890000813d0000000408500039000000000287034f000000000202043b00000be40020009c000000630000213d0000001f0920003900000c22099001970000003f0990003900000c220990019700000c090090009c000000630000213d0000008009900039000000400090043f000000800020043f00000000052500190000002405500039000000000065004b000003890000213d0000002005800039000000000557034f0000001f0620018f00000005072002720000000507700210000000b80000613d000000a008000039000000a009700039000000000a05034f00000000ab0a043c0000000008b80436000000000098004b000000b40000c13d000000000006004b000000c60000613d000000000575034f0000000306600210000000a007700039000000000807043300000000086801cf000000000868022f000000000505043b0000010006600089000000000565022f00000000056501cf000000000585019f0000000000570435000000a00220003900000000000204350000000202000039000000000202041a00000c0a0520019700000c0b0050009c0000038b0000c13d00000c0c0520019700000c0d0050009c0000038f0000c13d00000c0e0220019700000c0f022001c70000000205000039000000000025041b000000400200043d000000060500002900000c190050009c000003a00000c13d0000000005000414000000040040008c000003e50000c13d00000001020000390000000005000031000004470000013d00000bf00020009c000001e10000213d00000bf30020009c0000026f0000613d00000bf40020009c000003890000c13d000000240060008c000003890000413d0000000001000416000000000001004b000003890000c13d0000000401700370000000000101043b00000be30010009c000003890000213d00000000001004350000000101000039000000200010043f000000000100041400000be10010009c00000be101008041000000c00110021000000bec011001c700008010020000392f1f2f1a0000040f0000000100200190000003890000613d000000000101043b000000000101041a000000ff001001900000000001000019000000010100c039000000400200043d000000000012043500000be10020009c00000be102008041000000400120021000000c08011001c700002f200001042e00000c000020009c000002970000613d00000c010020009c000001e50000613d00000c020020009c000003890000c13d000000c40060008c000003890000413d0000000401700370000000000101043b00000be30010009c000003890000213d0000002402700370000000000202043b0000004403700370000000000303043b00000be30030009c000003890000213d0000006404700370000000000404043b0000008405700370000000000505043b00000be30050009c000003890000213d000000a408700370000000000908043b00000be40090009c000003890000213d0000002308900039000000000068004b000003890000813d000000040a9000390000000008a7034f000000000808043b00000be40080009c000000630000213d0000001f0b80003900000c220bb001970000003f0bb0003900000c220bb0019700000c0900b0009c000000630000213d000000800bb000390000004000b0043f000000800080043f00000000098900190000002409900039000000000069004b000003890000213d0000002006a00039000000000667034f0000001f0780018f0000000509800272000001430000613d000000a00a000039000000050b900210000000a00bb00039000000000c06034f00000000cd0c043c000000000ada04360000000000ba004b0000013f0000c13d000000000007004b000001520000613d0000000509900210000000000696034f0000000307700210000000a009900039000000000a090433000000000a7a01cf000000000a7a022f000000000606043b0000010007700089000000000676022f00000000067601cf0000000006a6019f0000000000690435000000a006800039000000000006043500000002060000390000000008060019000000000606041a00000c0a0760019700000c0b0070009c0000038b0000c13d00000c0c0760019700000c0d0070009c0000038f0000c13d00000c0e0660019700000c0f066001c7000000000068041b00000080060000392f1f05500000040f0000000203000039000004550000013d00000bf60020009c000002a90000613d000600000003001d00000bf70020009c000003890000c13d000001040060008c000003890000413d0000000402700370000000000402043b00000be30040009c000003890000213d0000002402700370000000000302043b0000004402700370000000000202043b000500000002001d00000be30020009c000003890000213d0000006402700370000000000202043b000400000002001d0000008402700370000000000202043b000300000002001d00000be30020009c000003890000213d000000a402700370000000000202043b000200000002001d000000c402700370000000000202043b000100000002001d00000be30020009c000003890000213d000000e402700370000000000502043b00000be40050009c000003890000213d0000002302500039000000000062004b000003890000813d0000000408500039000000000287034f000000000202043b00000be40020009c000000630000213d0000001f0920003900000c22099001970000003f0990003900000c220990019700000c090090009c000000630000213d0000008009900039000000400090043f000000800020043f00000000052500190000002405500039000000000065004b000003890000213d0000002005800039000000000557034f0000001f0620018f00000005072002720000000507700210000001ac0000613d000000a008000039000000a009700039000000000a05034f00000000ab0a043c0000000008b80436000000000098004b000001a80000c13d000000000006004b000001ba0000613d000000000575034f0000000306600210000000a007700039000000000807043300000000086801cf000000000868022f000000000505043b0000010006600089000000000565022f00000000056501cf000000000585019f0000000000570435000000a00220003900000000000204350000000202000039000000000202041a00000c0a0520019700000c0b0050009c0000038b0000c13d00000c0c0520019700000c0d0050009c0000038f0000c13d00000c0e0220019700000c0f022001c70000000205000039000000000025041b000000400500043d0000000002000414000000040040008c000003b40000c13d00000001020000390000000004000031000004040000013d00000bfc0020009c000002b10000613d00000bfd0020009c000003890000c13d0000000001000416000000000001004b000003890000c13d0000000001000412000800000001001d000700000000001d000080050100003900000044030000390000000004000415000000080440008a000000050440021000000c18020000412f1f2efc0000040f000002ad0000013d00000bf10020009c000003200000613d00000bf20020009c000003890000c13d0000000001000416000000000001004b000003890000c13d00000000010600192f1f05330000040f2f1f2ea70000040f000000400100043d00000be10010009c00000be101008041000000400110021000002f200001042e0000000001000416000000000001004b000003890000c13d000000000100041a00000be3021001970000000005000411000000000052004b0000033c0000c13d00000be701100197000000000010041b000000000100041400000be10010009c00000be101008041000000c00110021000000c03011001c70000800d02000039000000030300003900000be90400004100000000060000192f1f2f150000040f0000000100200190000001eb0000c13d000003890000013d00000005032002100000003f0430003900000be604400197000000400500043d0000000004450019000500000005001d000000000054004b0000000005000019000000010500403900000be40040009c000000630000213d0000000100500190000000630000c13d000000a005600039000000400040043f00000005040000290000000004240436000400000004001d000000c0011000390000000003130019000000000053004b000003890000213d000000000002004b000002260000613d0000000402000029000000001401043400000be30040009c000003890000213d0000000002420436000000000031004b000002200000413d000000000100041a00000be7021001970000000006000411000000000262019f000000000020041b000000400200043d00000be10020009c00000be1020080410000004002200210000000000300041400000be10030009c00000be103008041000000c003300210000000000223019f00000be30510019700000be8012001c70000800d02000039000000030300003900000be904000041000600000007001d2f1f2f150000040f00000006010000290000000100200190000003890000613d00000be3011001970000000202000039000000000302041a000000800010043f00000bea0330019700000beb033001c7000000000032041b00000005020000290000000002020433000000000002004b0000000103000039000002680000613d0000000002000019000600000002001d00000005012002100000000401100029000000000101043300000be3011001970000000000100435000000200030043f000000000100041400000be10010009c00000be101008041000000c00110021000000bec011001c700008010020000392f1f2f1a0000040f0000000100200190000003890000613d000000000101043b000000000201041a00000c230220019700000001022001bf000000000021041b0000000602000029000000010220003900000005010000290000000001010433000000000012004b00000001030000390000024b0000413d000000800100043d0000014000000443000001600010044300000020010000390000010000100443000001200030044300000bed0100004100002f200001042e000000440060008c000003890000413d0000000001000416000000000001004b000003890000c13d0000000401700370000000000101043b00000be30010009c000003890000213d0000002402700370000000000302043b000000000003004b0000000002000019000000010200c039000600000003001d000000000023004b000003890000c13d000000000200041a00000be3022001970000000003000411000000000032004b0000033c0000c13d00000000001004350000000101000039000000200010043f000000000100041400000be10010009c00000be101008041000000c00110021000000bec011001c700008010020000392f1f2f1a0000040f0000000100200190000003890000613d000000000101043b000000000201041a00000c230220019700000006022001af000000000021041b000001eb0000013d0000000001000416000000000001004b000003890000c13d000000000100041a00000be3021001970000000001000411000000000021004b000003570000c13d00000080020000390000000201000039000000000301041a00000c140330019700000c0d033001c7000000000031041b00000be10020009c00000be102008041000000400120021000002f200001042e0000000001000416000000000001004b000003890000c13d000000000100041a00000be301100197000000800010043f00000c100100004100002f200001042e000001040060008c000003890000413d0000000401700370000000000101043b000600000001001d00000be30010009c000003890000213d0000002401700370000000000101043b000500000001001d0000004401700370000000000101043b00000be30010009c000003890000213d0000006402700370000000000202043b0000008403700370000000000303043b000400000003001d00000be30030009c000003890000213d000000a403700370000000000403043b000000c403700370000000000303043b000300000003001d00000be30030009c000003890000213d000000e403700370000000000503043b00000be40050009c000003890000213d0000002303500039000000000063004b000003890000813d0000000408500039000000000387034f000000000303043b00000be40030009c000000630000213d0000001f0930003900000c22099001970000003f0990003900000c220990019700000c090090009c000000630000213d0000008009900039000000400090043f000000800030043f00000000053500190000002405500039000000000065004b000003890000213d0000002005800039000000000557034f0000001f0630018f00000005073002720000000507700210000002f30000613d000000a008000039000000a009700039000000000a05034f00000000ab0a043c0000000008b80436000000000098004b000002ef0000c13d000000000006004b000003010000613d000000000575034f0000000306600210000000a007700039000000000807043300000000086801cf000000000868022f000000000505043b0000010006600089000000000565022f00000000056501cf000000000585019f0000000000570435000000a00330003900000000000304350000000203000039000000000303041a00000c0a0530019700000c0b0050009c0000038b0000c13d00000c0c0530019700000c0d0050009c0000038f0000c13d00000c0e0330019700000c0f033001c70000000205000039000000000035041b000000000500041000000080060000390000000403000029000100000006001d2f1f05500000040f000000400200043d000200000001001d000000040100002900000c190010009c000003bf0000c13d00000000010004140000000603000029000000040030008c000003f00000c13d00000001020000390000000001000031000004900000013d000000240060008c000003890000413d0000000001000416000000000001004b000003890000c13d0000000401700370000000000601043b00000be30060009c000003890000213d000000000100041a00000be3021001970000000005000411000000000052004b0000033c0000c13d000000000006004b0000037b0000c13d00000c0401000041000000800010043f0000002001000039000000840010043f0000002601000039000000a40010043f00000c0501000041000000c40010043f00000c0601000041000000e40010043f00000c070100004100002f210001043000000c0401000041000000800010043f0000002001000039000000840010043f000000a40010043f00000c1601000041000000c40010043f00000c170100004100002f210001043000000000001004350000000101000039000000200010043f000000000100041400000be10010009c00000be101008041000000c00110021000000bec011001c700008010020000392f1f2f1a0000040f0000000100200190000003890000613d000000400200043d000000000101043b000000000101041a000000ff00100190000000240000c13d000003680000013d00000000001004350000000101000039000000200010043f000000000100041400000be10010009c00000be101008041000000c00110021000000bec011001c700008010020000392f1f2f1a0000040f0000000100200190000003890000613d000000400200043d000000000101043b000000000101041a000000ff00100190000002a00000c13d000000640120003900000c11030000410000000000310435000000440120003900000c1203000041000000000031043500000024012000390000003003000039000000000031043500000c0401000041000000000012043500000004012000390000002003000039000000000031043500000be10020009c00000be102008041000000400120021000000c13011001c700002f210001043000000be701100197000000000161019f000000000010041b000000000100041400000be10010009c00000be101008041000000c00110021000000c03011001c70000800d02000039000000030300003900000be9040000412f1f2f150000040f0000000100200190000001eb0000c13d000000000100001900002f2100010430000000400100043d000000440210003900000c1f03000041000003920000013d000000400100043d000000440210003900000c2103000041000000000032043500000024021000390000001803000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c20011001c700002f2100010430000000200120003900000c1d0500004100000000005104350000006401200039000000000031043500000044012000390000000000410435000000000100041100000be301100197000000240320003900000000001304350000006401000039000000000012043500000c1e0020009c000000630000213d000000a001200039000000400010043f00000006010000292f1f2d7f0000040f0000044d0000013d00000be10050009c00000be105008041000000400150021000000be10020009c00000be102008041000000c002200210000000000112019f000000000003004b000003fb0000c13d0000000002040019000003fe0000013d000000200120003900000c1a0300004100000000003104350000004401200039000000050300002900000000003104350000002401200039000000060300002900000000003104350000004401000039000000000012043500000c090020009c000000630000213d0000008001200039000000400010043f00000004010000292f1f2d7f0000040f0000000502000029000000020120006b000004980000413d000000400200043d000000200320003900000c1a040000410000000000430435000000440320003900000000001304350000002401200039000000030300002900000000003104350000004401000039000000000012043500000c090020009c000000630000213d0000008001200039000000400010043f00000004010000292f1f2d7f0000040f0000051d0000013d00000be10020009c00000be102008041000000400120021000000be10050009c00000be105008041000000c002500210000000000112019f000000000003004b0000043e0000c13d0000000002040019000004410000013d00000be10020009c00000be102008041000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f000000050000006b000004860000c13d00000006020000290000048b0000013d00000be8011001c7000080090200003900000000050000192f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be104300197000000000004004b000004100000c13d000000600300003900000001002001900000043c0000613d000000800600003900000005010000290000000402000029000000030300002900000002040000290000000105000029000004530000013d00000be40040009c000000630000213d0000001f0340003900000c22033001970000003f0330003900000c2205300197000000400300043d0000000005530019000000000035004b0000000006000019000000010600403900000be40050009c000000630000213d0000000100600190000000630000c13d000000400050043f0000001f0540018f0000000006430436000600000006001d000000050440027200000005044002100000042d0000613d00000006080000290000000006480019000000000701034f000000007907043c0000000008980436000000000068004b000004290000c13d000000000005004b000004070000613d000000000141034f00000006044000290000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f0000000000140435000004070000013d0000000601000029000004cd0000013d00000be8011001c7000080090200003900000000050000192f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be105300197000000000005004b0000045a0000c13d0000006003000039000000800400003900000001002001900000052a0000613d0000008006000039000000060100002900000005020000290000000403000029000000030400002900000002050000292f1f05500000040f0000000203000039000000000203041a00000c0e0220019700000c0b022001c7000000000023041b000000fe0000013d00000be40050009c000000630000213d0000001f0350003900000c22033001970000003f0330003900000c2204300197000000400300043d0000000004430019000000000034004b0000000006000019000000010600403900000be40040009c000000630000213d0000000100600190000000630000c13d000000400040043f0000001f0650018f00000000045304360000000505500272000004760000613d00000005075002100000000007740019000000000801034f0000000009040019000000008a08043c0000000009a90436000000000079004b000004720000c13d000000000006004b0000044b0000613d0000000505500210000000000151034f00000000055400190000000306600210000000000705043300000000076701cf000000000767022f000000000101043b0000010006600089000000000161022f00000000016101cf000000000171019f00000000001504350000044b0000013d00000be8011001c700008009020000390000000503000029000000060400002900000000050000192f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b0000049e0000c13d00000060030000390000000100200190000004cc0000613d0000000503000029000000020330006b000004d10000813d00000c1b0100004100000000001004350000001101000039000000040010043f00000c1c0100004100002f210001043000000be40010009c000000630000213d0000001f0310003900000c22033001970000003f0330003900000c2204300197000000400300043d0000000004430019000000000034004b0000000005000019000000010500403900000be40040009c000000630000213d0000000100500190000000630000c13d000000400040043f0000001f0410018f0000000005130436000100000005001d00000002050003670000000506100272000004bc0000613d000000050760021000000001090000290000000007790019000000000805034f000000008a08043c0000000009a90436000000000079004b000004b80000c13d000000000004004b000004930000613d0000000506600210000000000565034f00000001066000290000000304400210000000000706043300000000074701cf000000000747022f000000000505043b0000010004400089000000000545022f00000000044501cf000000000474019f0000000000460435000004930000013d000000010100002900000be10010009c00000be10100804100000040011002100000052d0000013d000000400400043d00000000020004140000000305000029000000040050008c000004d80000c13d0000000102000039000004ed0000013d00000be10040009c00000be104008041000000400140021000000be10020009c00000be102008041000000c002200210000000000112019f0000000504000029000000020040006b000004e40000c13d0000000302000029000004e80000013d00000be8011001c70000800902000039000000030400002900000000050000192f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b000004f20000c13d000000600300003900000080040000390000051b0000013d0000001f0310003900000c22033001970000003f0330003900000c2204300197000000400300043d0000000004430019000000000034004b0000000005000019000000010500403900000be40040009c000000630000213d0000000100500190000000630000c13d000000400040043f0000001f0510018f00000000041304360000000206000367000000050110027200000005011002100000050d0000613d0000000007140019000000000806034f0000000009040019000000008a08043c0000000009a90436000000000079004b000005090000c13d000000000005004b0000051b0000613d000000000616034f00000000011400190000000305500210000000000701043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f000000000051043500000001002001900000052a0000613d0000000202000039000000000102041a00000c0e0110019700000c0b011001c7000000000012041b000000400100043d0000000202000029000000000021043500000be10010009c00000be101008041000000400110021000000c08011001c700002f200001042e00000be10040009c00000be1040080410000004001400210000000000203043300000be10020009c00000be1020080410000006002200210000000000112019f00002f210001043000000c240010009c0000054e0000213d000000630010008c0000054e0000a13d00000001030003670000002402300370000000000202043b0000000404300370000000000504043b0000004404300370000000000604043b00000be40060009c0000054e0000213d0000002304600039000000000014004b0000054e0000813d0000000404600039000000000343034f000000000403043b00000be40040009c0000054e0000213d00000024036000390000000006430019000000000016004b0000054e0000213d0000000001050019000000000001042d000000000100001900002f2100010430001e000000000002000700000005001d000600000004001d000500000003001d000800000002001d000000000200041100000be30410019700000c190040009c000a00000004001d000200000001001d001c00000006001d0000056b0000c13d00000c260100004100000000001004390000000400200443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000000401043b0000001c06000029000005b90000013d000000400900043d000000000302001900000c2502000041000000000529043600000be303300197000000040290003900000000003204350000000003000414000000040040008c000005770000c13d0000000003000031000005a90000013d00000be10090009c000000000204001900000be1010000410000000001094019000000400410021000000be10030009c00000be103008041000000c001300210000000000141019f00000c1c011001c7001b00000009001d001a00000005001d2f1f2f1a0000040f0000001a0a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000001f0450018f0000000505500272000005950000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000005910000c13d000000000004004b000005a40000613d0000000505500210000000000651034f00000000055900190000000304400210000000000705043300000000074701cf000000000747022f000000000606043b0000010004400089000000000646022f00000000044601cf000000000474019f0000000000450435000000000003001f0002000000010355000000010020019000001fb90000613d0000001c060000290000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d0000001f0030008c00001d7a0000a13d0000000004090433000000050100002900000be30210019700000c190020009c000300000002001d000100000004001d000005d00000c13d00000c2601000041000000000010043900000007010000290000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000400500043d000000000101043b0000001c060000290000061e0000013d000000400900043d00000c25010000410000000005190436000000070100002900000be301100197000000040390003900000000001304350000000001000414000000040020008c000005dc0000c13d00000000030000310000060d0000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7001b00000009001d001a00000005001d2f1f2f1a0000040f0000001a0a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000001f0450018f0000000505500272000005f90000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000005f50000c13d000000000004004b000006080000613d0000000505500210000000000651034f00000000055900190000000304400210000000000705043300000000074701cf000000000747022f000000000606043b0000010004400089000000000646022f00000000044601cf000000000474019f0000000000450435000000000003001f0002000000010355000000010020019000001fc80000613d0000001c060000290000001f0130003900000c22011001970000000002910019000000000012004b00000000010000190000000101004039000000000502001900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400050043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d0000000001090433000400000001001d0000004001500039000000400010043f000000000265043600000000010604330000000001610019000c00000002001d0000000000120435000000000061004b000000080300002900001c870000a13d000000000100041100090be30010019b001700000000001d0000000803000029001900000005001d000006370000013d0000001701000029001700010010003d000000190500002900000000060504330000000c010000290000000001010433000000000016004b00001c870000813d000000010160003900000000020104330000000000150435000000ff0120018f000000010110008a000000050010008c001400000003a01d00000bc90001a13e00001e6a0000013d000000150160003900000000030104330000000000150435000000400900043d00000c25010000410000000004190436000000040190003900000000020004100000000000210435000000000100041400000be302300197000000040020008c000010fd0000c13d000000000a0000310000112e0000013d0000001501600039000000000301043300000000001504350000000001050019000000000200041100000008040000292f1f21150000040f000012b10000013d000000150160003900000000030104330000000000150435000000000100041000000be301100197000000400400043d0000002402400039000000000012043500000c30010000410000000001140436001a00000001001d001b00000003001d00000be301300197001c00000004001d0000000402400039000000000012043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000201043b000000000100041400000be302200197000000040020008c000012010000c13d00000000030000310000001c090000290000122e0000013d00000c2601000041000000000010043900000000010004100000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000b00000001001d00000019050000290000000001050433000000010110003900000000020104330000000000150435001800ff00200194000010f90000613d000000000100041000160be30010019b0000000b040000290000000006000019000006a10000013d000000010020019000001dd60000613d0000001c010000290000001b041000690000001a060000290000000106600039000000180060006c0000001905000029000010f90000813d0000000007050433000000020270003900000000010204330000000000250435000000030270003900000000030204330000000000250435000000ff0230018f000000050020008c0000ffff0110a18f000000000941a0a90000ffff0190a11a001c00000001a01d001b00000004a01d001a00000006a01d00000bd50002a13e000012c20000013d00000017017000390000000002010433000000000015043500000018017000390000000003010433001300000003001d00000000001504350000002c017000390000000003010433001000000003001d00000000001504350000002f017000390000000003010433001200000003001d000000000015043500000be309200197000000000100041000000c0b0010009c001500000009001d000009eb0000813d000000400100043d00000044021000390000001c030000290000000000320435000000200210003900000c1a030000410000000000320435000000240310003900000000009304350000004403000039000000000031043500000c090010009c00001d7c0000213d0000008005100039000000400050043f00000c3c0050009c00001d7c0000213d000000c003100039000000400030043f00000020030000390000000000350435000000a00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c1902000041001100000005001d2f1f2f150000040f000000150900002900020000000103550000000003010019000000600330027000000be10030019d00000be103300198000000800a000039000000600b0000390000071e0000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400b00043d00000000044b00190000000000b4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000a3b043600000005043002720000000504400210000007100000613d00000000054a0019000000000601034f00000000070a0019000000006806043c0000000007870436000000000057004b0000070c0000c13d0000001f033001900000071e0000613d000000000141034f00000000044a00190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010b0433000000010020019000001ddb0000613d000000000001004b0000073b0000c13d00110000000b001d000f0000000a001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000110100002900001dc50000613d0000000001010433000000000001004b00000015090000290000000f0a00002900000a720000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d00000a6a0000013d0000001701700039000000000b01043300000000001504350000001801700039000000000a01043300000000001504350000002c01700039000000000901043300000000001504350000000001000411000000160010006b000007d70000c13d000000400100043d00000064021000390000001c030000290000000000320435000000200210003900000c1d030000410000000000320435000000440310003900000000040004110000000000430435000000240310003900000000004304350000006403000039000000000031043500000c1e0010009c00001d7c0000213d000000a005100039000000400050043f00000c540010009c00001d7c0000213d000000e003100039000000400030043f00000020030000390000000000350435000000c00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c1902000041001500000009001d00130000000a001d00120000000b001d001100000005001d2f1f2f150000040f000000120b000029000000130a000029000000150900002900020000000103550000000003010019000000600330027000000be10030019d00000be103300198000000800c000039000000600d000039000007ac0000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400d00043d00000000044d00190000000000d4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000c3d0436000000050430027200000005044002100000079e0000613d00000000054c0019000000000601034f00000000070c0019000000006806043c0000000007870436000000000057004b0000079a0000c13d0000001f03300190000007ac0000613d000000000141034f00000000044c00190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010d0433000000010020019000001de10000613d000000000001004b000007cb0000c13d00110000000d001d00100000000c001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000110100002900001dc50000613d0000000001010433000000000001004b0000001509000029000000130a000029000000120b000029000000100c000029000007d70000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d00000000010c0433000000000001004b0000000002000019000000010200c039000000000021004b00001d7a0000c13d000000000001004b00001d830000613d00000be302b001970000000203000039000000000103041a00000be701100197000000000121019f000000000013041b000000400400043d0000002001000039000000000114043600000c1903000041000000000031043500000c3c0040009c00001d7c0000213d000000ff00a00190000000400a4000390000004000a0043f00000c430300004100000000003a0435000000c403400039000000a005000039000000000053043500000c450300004100000c440300c041000000a405400039000000000035043500000084034000390000001c0500002900000000005304350000000003000019000000010300c0390000006405400039000000000035043500000be30390019700000044054000390000000000350435000000e40540003900000000030404330000000000350435000000000003004b0000080b0000613d0000010404400039000000000500001900000000064500190000000007150019000000000707043300000000007604350000002005500039000000000035004b000008010000413d0000080b0000a13d000000000143001900000000000104350000000001000414000000040020008c00000aae0000c13d000000000300003100000ae20000013d0000001701700039000000000801043300000000001504350000003704700039000000000104043300000000014100190000000000150435000000160000006b00000c150000613d001200000004001d001300000008001d001500000007001d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b00000c2b02000041000000000020043900000be301100197001100000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b00000015070000290000001308000029000000120400002900001d7a0000613d000000400500043d00000064015000390000001c02000029000000000021043500000be3018001970000004402500039000000000012043500000024015000390000001602000029000000000021043500000c53010000410000000000150435000000040150003900000c1902000041000000000021043500000000010004140000001102000029000000040020008c00000ce10000c13d000000000300003100000cf70000013d000000040170003900000000020104330000000000150435000000180170003900000000030104330000000000150435000000ff00200190001500000003001d00000c170000613d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041000000c0b0010009c00000c4d0000813d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000301043b000000400100043d00000044021000390000001c040000290000000000420435000000200210003900000c1a04000041000000000042043500000be303300197000000240410003900000000003404350000004403000039000000000031043500000c090010009c00001d7c0000213d0000008003100039000000400030043f001300000003001d00000c3c0030009c00001d7c0000213d000000c003100039000000400030043f000000200300003900000013040000290000000000340435000000a00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c19020000412f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be1033001980000008009000039000000600a000039000008c80000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400a00043d00000000044a00190000000000a4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f00000000093a043600000005043002720000000504400210000008ba0000613d0000000005490019000000000601034f0000000007090019000000006806043c0000000007870436000000000057004b000008b60000c13d0000001f03300190000008c80000613d000000000141034f00000000044900190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010a0433000000010020019000001e460000613d000000000001004b000008e50000c13d00130000000a001d001200000009001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000130100002900001dc50000613d0000000001010433000000000001004b0000001c02000029000000120900002900000ed40000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d00000cd70000013d00000004017000390000000002010433000000000015043500000018017000390000000003010433001500000003001d0000000000150435000000020120018f000000010020019000000a7a0000c13d000000000001004b00000d670000c13d0000000001000411000000160010006b001000000009001d0000097d0000c13d000000400100043d00000064021000390000001c030000290000000000320435000000200210003900000c1d030000410000000000320435000000440310003900000000040004110000000000430435000000240310003900000000004304350000006403000039000000000031043500000c1e0010009c00001d7c0000213d000000a003100039001300000003001d000000400030043f00000c540010009c00001d7c0000213d000000e003100039000000400030043f000000200300003900000013040000290000000000340435000000c00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c19020000412f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be103300198000000800a000039000000600b000039000009550000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400b00043d00000000044b00190000000000b4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000a3b043600000005043002720000000504400210000009470000613d00000000054a0019000000000601034f00000000070a0019000000006806043c0000000007870436000000000057004b000009430000c13d0000001f03300190000009550000613d000000000141034f00000000044a00190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010b0433000000010020019000001ef60000613d000000000001004b000009710000c13d00130000000b001d00120000000a001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000130100002900001dc50000613d0000000001010433000000000001004b000000120a0000290000097d0000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d00000000010a0433000000000001004b0000000002000019000000010200c039000000000021004b00001d7a0000c13d000000000001004b00001d830000613d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b00001d7a0000613d000000400300043d00000c4201000041000000000013043500000004013000390000001c02000029000000000021043500000be10030009c001300000003001d00000be10100004100000000010340190000004001100210000000000200041400000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c700000c19020000412f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000001e860000613d0000001f0130003900000be2021001970000001301200029000000000021004b0000000002000019000000010200403900000be40010009c000000100900002900001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000d680000013d00000017017000390000000001010433000000180270003900000000002504350000001902700039000000000302043300000000002504350000001a02700039000000000402043300000000002504350000002e0270003900000000080204330000000000250435000000420270003900000000070204330000000000250435000000400a00043d0000004402a000390000001c050000290000000000520435000000800040019000000c6206000041000000000206001900000000020060190000007f0440018f00000c4f05200197000000000445019f00000c340020019800000c35020000410000000002006019000000000224019f0000002404a00039000000000024043500000080003001900000000002060019000000000200601900000c360400004100000000054a04360000007f0330018f00000c4f04200197000000000334019f00000c340020019800000c35020000410000000002006019000000000223019f0000000403a0003900000000002304350000006402a000390000000000020435000000000200041400000be304100197000000040040008c00000a9d0000c13d000000000400003100000d990000013d0000000001000411000000160010006b00000a720000c13d000000400100043d00000064021000390000001c03000029000000000032043500000044021000390000000000920435000000200210003900000c1d0300004100000000003204350000002403100039000000000400041100000000004304350000006403000039000000000031043500000c1e0010009c00001d7c0000213d000000a005100039000000400050043f00000c540010009c00001d7c0000213d000000e003100039000000400030043f00000020030000390000000000350435000000c00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c1902000041001100000005001d2f1f2f150000040f000000150900002900020000000103550000000003010019000000600330027000000be10030019d00000be103300198000000800a000039000000600b00003900000a490000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400b00043d00000000044b00190000000000b4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000a3b04360000000504300272000000050440021000000a3b0000613d00000000054a0019000000000601034f00000000070a0019000000006806043c0000000007870436000000000057004b00000a370000c13d0000001f0330019000000a490000613d000000000141034f00000000044a00190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010b0433000000010020019000001ddb0000613d000000000001004b00000a660000c13d00110000000b001d000f0000000a001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000110100002900001dc50000613d0000000001010433000000000001004b00000015090000290000000f0a00002900000a720000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d00000000010a0433000000000001004b0000000002000019000000010200c039000000000021004b00001d7a0000c13d000000000001004b00001d830000613d000000400a00043d00000c480100004100000000051a04360000000001000414000000040090008c00000af70000c13d000000000300003100000b290000013d0000002c0270003900000000060204330000000000250435000000000001004b000010870000c13d001000000009001d00000c2b010000410000000000100439001300000006001d00000be301600197001200000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001003000029000000130600002900001d7a0000613d000000400400043d00000c4001000041000000000014043500000000010004140000001205000029000000040050008c00000f540000c13d00000000030000310000107a0000013d001200000005001d001100000007001d001500000008001d00000be100a0009c00130000000a001d00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f0000ffff0090008c00000d6f0000813d00000c13011001c7000000000204001900000d730000013d0000001f0330003900000c2203300197000000c40330003900000be10030009c00000be103008041000000600330021000000be100a0009c00000be10400004100000000040a40190000004004400210000000000343019f00000be10010009c00000be101008041000000c001100210000000000131019f00150000000a001d2f1f2f150000040f000000150a0000290000000003010019000000600330027000000be103300197000000400030008c000000400500003900000000050340190000000504500272000000050440021000000ad00000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b00000acc0000c13d0000001f0550019000000ade0000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001e280000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000400030008c00001d7a0000413d0000000202000039000000000202041a00000be302200197000000010020008c0000069a0000613d00001d930000013d000f00000005001d00000be100a0009c00000be10200004100000000020a4019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c41011001c7000000000209001900110000000a001d2f1f2f1a0000040f000000110a0000290000000003010019000000600330027000000be103300197000000600030008c000000600500003900000000050340190000000504500272000000050440021000000b150000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b00000b110000c13d0000001f0550019000000b230000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000000150900002900001ded0000613d0000000f050000290000001f0130003900000c22011001970000000004a10019000000000014004b0000000001000019000000010100403900000be40040009c00001d7c0000213d000000010010019000001d7c0000c13d000000400040043f00000c240030009c00001d7a0000213d000000600030008c00001d7a0000413d00000000020a043300000c490020009c00001d7a0000213d000000000305043300000c490030009c00001d7a0000213d0000004001a00039000000000101043300000be10010009c00001d7a0000213d0000000401400039001100000002001d000000000002004b00001d990000613d000000000003004b00001d990000613d00000c25020000410000000002240436000e00000002001d000000000091043500000be10040009c00000be10100004100000000010440190000004001100210000000000200041400000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c700000c1902000041000f00000004001d000d00000003001d2f1f2f1a0000040f0000000e0d0000290000000f0b0000290000001303000029000000ff0330018f000000010030008c0000000d0500002900000011040000290000000004056019000000000c050019000000110c0060290000000005010019000000600550027000000be105500197000000200050008c00000020070000390000000007054019000000050670027200000b720000613d000000000801034f00000000090b0019000000008a08043c0000000009a904360000000000d9004b00000b6e0000c13d0000001f0770019000000b810000613d0000000506600210000000000861034f00000000066b00190000000307700210000000000906043300000000097901cf000000000979022f000000000808043b0000010007700089000000000878022f00000000077801cf000000000797019f0000000000760435000000000005001f0002000000010355000000010020019000001da80000613d0000001f0150003900000be2011001970000000007b1001900000be40070009c000000150600002900001d7c0000213d000000400070043f000000200050008c00001d7a0000413d00000000020b04330000000001c2004b00001f2c0000413d000000120500002900000c4a0550019700000c4b0050009c00001f2c0000213d00000c4b055000990000000000c2004b00000b9b0000613d00000c6302100129000000000052004b00001f2c0000413d00000000015100aa00000ba00000613d00000c6302100129000000000042004b00001f2c0000413d00000c630510016700000c4b02c000d1000000000052004b00001f2c0000213d000000000221001a00001d8d0000613d00000000014100a900000000012100d9000000010030008c00000000020000190000000002016019001100000002001d0000000001006019001200000001001d00000c4c0070009c00001d7c0000213d0000002001700039000f00000001001d000000400010043f001300000007001d000000000007043500000c2b0100004100000000001004390000000400600443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001506000029000000130300002900001d7a0000613d000000400700043d000000640170003900000080020000390000000000210435000000100100002900000be3011001970000004402700039000000000012043500000024017000390000001102000029000000000021043500000c4d010000410000000000170435000000040170003900000012020000290000000000210435000000000103043300000084027000390000000000120435000000000001004b00000be80000613d000000a40270003900000000030000190000000f0800002900000000042300190000000005830019000000000505043300000000005404350000002003300039000000000013004b00000bde0000413d00000be80000a13d000000000221001900000000000204350000000002000414000000040060008c00000bed0000c13d000000000300003100000c070000013d0000001f0110003900000c2201100197000000a40110003900000be10010009c00000be101008041000000600110021000000be10070009c001300000007001d00000be10300004100000000030740190000004003300210000000000131019f00000be10020009c00000be102008041000000c002200210000000000112019f00000000020600192f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000001e370000613d00000013070000290000001f0130003900000c22021001970000000001720019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c0000069a0000a13d00001d7a0000013d000000400900043d00000d040000013d000000160000006b00000f340000613d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b00000c2b02000041000000000020043900000be301100197001300000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b00001d7a0000613d000000400400043d00000064014000390000001c0200002900000000002104350000004401400039000000160200002900000000002104350000002401400039000000000021043500000c53010000410000000000140435000000040140003900000c1902000041000000000021043500000000010004140000001302000029000000040020008c00000fa80000c13d000000000300003100000fbb0000013d0000000001000411000000160010006b00000dd10000c13d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000201043b000000400100043d00000064031000390000001c04000029000000000043043500000be30220019700000044031000390000000000230435000000200210003900000c1d0300004100000000003204350000002403100039000000000400041100000000004304350000006403000039000000000031043500000c1e0010009c00001d7c0000213d000000a003100039001300000003001d000000400030043f00000c540010009c00001d7c0000213d000000e003100039000000400030043f000000200300003900000013040000290000000000340435000000c00310003900000c5504000041000000000043043500000be10020009c00000be1020080410000004002200210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f000000000200041400000be10020009c00000be102008041000000c002200210000000000121019f00000c19020000412f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be1033001980000008009000039000000600a00003900000cb60000613d0000001f0430003900000be2044001970000003f0440003900000c5604400197000000400a00043d00000000044a00190000000000a4004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f00000000093a04360000000504300272000000050440021000000ca80000613d0000000005490019000000000601034f0000000007090019000000006806043c0000000007870436000000000057004b00000ca40000c13d0000001f0330019000000cb60000613d000000000141034f00000000044900190000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000000010a0433000000010020019000001e460000613d000000000001004b00000cd30000c13d00130000000a001d001200000009001d00000c2b01000041000000000010043900000c19010000410000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b000000130100002900001dc50000613d0000000001010433000000000001004b0000001c02000029000000120900002900000ed40000613d00000c240010009c00001d7a0000213d000000200010008c00001d7a0000413d0000000001090433000000000001004b0000000002000019000000010200c039000000000021004b00001d7a0000c13d000000000001004b0000001c0200002900000ed40000c13d00001d830000013d00000be10050009c001000000005001d00000be1030000410000000003054019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c13011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000001e4c0000613d00000015070000290000001308000029000000120400002900000010050000290000001f0130003900000c22011001970000000009510019000000000019004b0000000001000019000000010100403900000be40090009c00001d7c0000213d000000010010019000001d7c0000c13d000000400090043f00000c240030009c00001d7a0000213d00000c3701000041000000000a1904360000000401900039000000200200003900000000002104350000000001040433000000240290003900000000001204350000004403900039000000000001004b00000d1b0000613d0000005702700039000000000400001900000000053400190000000006420019000000000606043300000000006504350000002004400039000000000014004b00000d110000413d00000d1b0000a13d00000000023100190000000000020435000000000400041400000be302800197000000040020008c00000d210000c13d000000000300003100000d570000013d0000001f0110003900000c22011001970000000001910049000000000131001900000be10010009c00000be101008041000000600110021000000be10090009c00000be10300004100000000030940190000004003300210000000000131019f00000be10040009c00000be104008041000000c003400210000000000131019f001500000009001d00130000000a001d2f1f2f150000040f000000130a00002900000015090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200000d440000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00000d400000c13d0000001f0550019000000d530000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001dfc0000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c0000069a0000813d00001d7a0000013d000000400100043d00000000020004140000001504000029000000040040008c00000dc60000c13d0000000003000031000000010200003900000f790000013d00000c50011001c700008009020000390000001c0300002900000000050000192f1f2f150000040f0000000003010019000000600330027000000be104300197000000200040008c000000200500003900000000050440190000000503500272000000130a000029000000120900002900000d840000613d000000000601034f00000000070a0019000000006806043c0000000007870436000000000097004b00000d800000c13d0000001f0550019000000d930000613d0000000503300210000000000631034f00000000033a00190000000305500210000000000703043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000530435000000000004001f00020000000103550000000100200190000000150800002900001e0b0000613d00000011070000290000001f0540003900000c22015001970000000002a10019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f00000c240040009c00001d7a0000213d000000200040008c00001d7a0000413d00000be3068001970000000001000410000000000016004b0000069a0000613d00000000030a043300000be30170019700000c190010009c00000db70000c13d0000000001000414000000040080008c00000f620000c13d00000be40040009c0000000103000039000010a80000a13d00001d7c0000013d000000200420003900000c1a05000041000000000054043500000044042000390000000000340435000000240320003900000000006304350000004403000039000000000032043500000c090020009c00001d7c0000213d0000008003200039000000400030043f2f1f2d7f0000040f0000069a0000013d00000be10010009c00000be101008041000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f0000ffff0090008c00000f700000813d000000000204001900000f740000013d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400300043d001100000003001d00000c25020000410000000002230436001200000002001d00000be3021001970000000401300039001300000002001d000000000021043500000be10030009c00000be10100004100000000010340190000004001100210000000000200041400000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c700000c19020000412f1f2f1a0000040f000000120a00002900000011090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200000e000000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00000dfc0000c13d0000001f0550019000000e0f0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001ea40000613d0000001f0130003900000be202100197000000000a92001900000000002a004b0000000002000019000000010200403900000be400a0009c000000130700002900001d7c0000213d000000010020019000001d7c0000c13d0000004000a0043f000000200030008c00001d7a0000413d000000000609043300000c380200004100000000052a04360000000402a0003900000c190400004100000000004204350000000002000414000000040070008c001200000006001d00000e5f0000613d001000000005001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c7000000000207001900110000000a001d2f1f2f1a0000040f000000110a0000290000000003010019000000600330027000000be103300197000000600030008c000000600500003900000000050340190000000504500272000000050440021000000e490000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b00000e450000c13d0000001f0550019000000e570000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001f320000613d0000001f0130003900000012060000290000001307000029000000100500002900000be2011001970000000002a1001900000be40020009c00001d7c0000213d000000400020043f000000600030008c00001d7a0000413d00000c390020009c00001d7c0000213d0000006004200039000000400040043f00000000040a043300000be40040009c00001d7a0000213d0000000004420436000000000505043300000be40050009c00001d7a0000213d00000000005404350000004004a00039000000000504043300000c3a0050009c00001d7a0000213d0000004002200039000000000052043500000c6302500167000000000026004b00001f2c0000213d000000400a00043d00000c3b0200004100000000082a04360000000402a0003900000c190400004100000000004204350000000002000414000000040070008c00000eba0000613d001300000008001d001000000005001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c7000000000207001900110000000a001d2f1f2f1a0000040f000000110a0000290000000003010019000000600330027000000be103300197000000400030008c000000400500003900000000050340190000000504500272000000050440021000000ea30000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b00000e9f0000c13d0000001f0550019000000eb10000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000000130800002900001f410000613d0000001f0130003900000be201100197000000120600002900000010050000290000000002a10019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f000000400030008c00001d7a0000413d00000c3c0020009c00001d7c0000213d0000004001200039000000400010043f00000000010a043300000c3a0010009c00001d7a0000213d0000000002120436000000000308043300000c3a0030009c00001d7a0000213d00000000046500190000000000320435000000000214004b00001f2c0000413d001300000002001d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400a00043d0000006402a0003900000013030000290000000000320435000000150200002900000be3022001970000004403a00039000000000023043500000c3d0200004100000000002a04350000000402a0003900000c1903000041000000000032043500000be3021001970000002401a0003900000000002104350000008401a0003900000000000104350000000001000414000000040020008c00000efb0000c13d000000000300003100000f290000013d00000be100a0009c00000be10300004100000000030a4019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c3e011001c700150000000a001d2f1f2f150000040f000000150a0000290000000003010019000000600330027000000be103300197000000400030008c000000400500003900000000050340190000000504500272000000050440021000000f170000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b00000f130000c13d0000001f0550019000000f250000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001e5b0000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000010650000013d000000400300043d00000c30010000410000000001130436001200000001001d000000040130003900000c19020000410000000000210435001300000003001d0000002401300039000000000001043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000201043b000000000100041400000be302200197000000040020008c00000fca0000c13d0000000003000031000000130900002900000ff70000013d00000be10040009c001100000004001d00000be1020000410000000002044019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f0000ffff0030008c0000106b0000813d00000c41011001c70000000002050019000010700000013d00000be10020009c00000be102008041000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f000000000003004b0000109e0000613d00000be8011001c70000800902000039000000000408001900000000050000190000109f0000013d00000be8011001c700008009020000390000001c0300002900000000050000192f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be103100197000000000003004b00000080040000390000006001000039000006980000613d00000be40030009c00001d7c0000213d0000001f0130003900000c22011001970000003f0110003900000c2204100197000000400100043d0000000004410019000000000014004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000431043600000002050003670000000506300272000000050660021000000f990000613d0000000007640019000000000805034f0000000009040019000000008a08043c0000000009a90436000000000079004b00000f950000c13d0000001f03300190000006980000613d000000000565034f00000000066400190000000303300210000000000706043300000000073701cf000000000737022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000373019f0000000000360435000006980000013d00000be10040009c001200000004001d00000be1030000410000000003044019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c13011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000001f1b0000613d00000012040000290000001f0130003900000c22011001970000000004410019000000000014004b0000000001000019000000010100403900000be40040009c00001d7c0000213d000000010010019000001d7c0000c13d000000400040043f00000c240030009c0000001c01000029000010070000a13d00001d7a0000013d000000130300002900000be10030009c00000be103008041000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c29011001c72f1f2f1a0000040f00000013090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000000120a00002900000fe40000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00000fe00000c13d0000001f0550019000000ff30000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001f7d0000613d0000001f0130003900000c22011001970000000004910019000000000014004b0000000001000019000000010100403900000be40040009c00001d7c0000213d000000010010019000001d7c0000c13d000000400040043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d000000000109043300000084024000390000000000120435000000150100002900000be3011001970000004402400039000000000012043500000024014000390000001602000029000000000021043500000c3f010000410000000000140435000000040140003900000c19020000410000000000210435001300000004001d0000006401400039000000000001043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000201043b000000000100041400000be302200197000000040020008c0000102e0000c13d0000000003000031000000130a0000290000105b0000013d000000130300002900000be10030009c00000be103008041000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c3e011001c72f1f2f150000040f000000130a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000010490000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000010450000c13d0000001f05500190000010570000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001e950000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000400030008c0000069a0000813d00001d7a0000013d00000c57011001c700008009020000390000001c03000029000000000405001900000000050000192f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be1033001970000000100200190000000130600002900001f0c0000613d00000011040000290000001f0130003900000c22021001970000000001420019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000150100002900000be3011001970000000002000410000000000021004b0000069a0000613d000000400200043d000000200320003900000c1a04000041000000000043043500000044032000390000001c040000290000000000430435000000240320003900000000001304350000004401000039000000000012043500000c090020009c00001d7c0000213d0000008001200039000000400010043f00000be3016001972f1f2d7f0000040f0000069a0000013d00000000020800192f1f2f150000040f00000000030200190002000000010355000000600110027000000be10010019d00000be104100198000010d10000613d000000400200043d0000001f0540003900000c51015001970000003f0110003900000c52051001970000000001250019000000000051004b0000000005000019000000010500403900000be40010009c00001d7c0000213d000000010050019000001d7c0000c13d000000400010043f0000000001420436000000020500036700000005064002720000000506600210000010c00000613d0000000007610019000000000805034f0000000009010019000000008a08043c0000000009a90436000000000079004b000010bc0000c13d0000001f04400190000010ce0000613d000000000565034f00000000066100190000000304400210000000000706043300000000074701cf000000000747022f000000000505043b0000010004400089000000000545022f00000000044501cf000000000474019f000000000046043500000001003001900000069a0000c13d00001fb00000013d00000001003001900000069a0000c13d00001fae0000013d00000021016000390000000007010433000000000015043500000041016000390000000002010433001b00000002001d000000000015043500000042016000390000000002010433001a00000002001d000000000015043500000062016000390000000002010433001800000002001d000000000015043500000082016000390000000002010433001500000002001d0000000000150435000000400a00043d00000c280100004100000000041a04360000000401a0003900000009020000290000000000210435000000000100041000000be3021001970000002401a00039001600000002001d000000000021043500000000010004140000000a02000029000000040020008c001c00000007001d000011480000c13d0000000003000031000011780000013d000000170000006b0000000b03000029000012b10000c13d0000062f0000013d001a00000003001d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7001c00000009001d001b00000004001d2f1f2f1a0000040f0000001b0b0000290000001c090000290000000003010019000000600330027000000be10a3001970000002000a0008c000000200500003900000000050a401900000005045002720000111a0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000b7004b000011160000c13d0000001f05500190000011290000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f000000000054043500000000000a001f0002000000010355000000010020019000001eb30000613d0000001a030000290000001f01a0003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c2400a0009c00001d7a0000213d0000002000a0008c00001d7a0000413d0000000001090433000000010410008c0000000004004019000b00000004001d000000190100002900000000020004102f1f21150000040f0000000b03000029000000170000006b000012b10000c13d0000062f0000013d00000be100a0009c00000be10300004100000000030a4019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c29011001c700130000000a001d001200000004001d2f1f2f1a0000040f0000001209000029000000130a0000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000011640000613d000000000601034f00000000070a0019000000006806043c0000000007870436000000000097004b000011600000c13d0000001f05500190000011730000613d0000000504400210000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001ecf0000613d0000001c070000290000001f0130003900000c22011001970000000009a10019000000000019004b0000000002000019000000010200403900000be40090009c00001d7c0000213d000000010020019000001d7c0000c13d000000400090043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d00000000020a0433000000000072004b000012b10000813d00000c2a02000041000000000529043600000004029000390000000904000029000000000042043500000000020004140000000a04000029000000040040008c000011c50000613d00000be10090009c00000be1010000410000000001094019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c70000000a02000029001300000009001d001200000005001d2f1f2f1a0000040f000000120a00002900000013090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000011b00000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000011ac0000c13d0000001f05500190000011bf0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001f500000613d0000001f0130003900000be2011001970000000002910019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f000000200030008c00001d7a0000413d0000000001090433001300000001001d00000c2b0100004100000000001004390000000a010000290000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001c0300002900001d7a0000613d000000400400043d000000c40140003900000015020000290000000000210435000000a401400039000000180200002900000000002104350000001a01000029000000ff0110018f0000008402400039000000000012043500000064014000390000001b0200002900000000002104350000004401400039000000000031043500000024014000390000001602000029000000000021043500000c2c01000041000000000014043500000004014000390000000902000029000000000021043500000000010004140000000a02000029000000040020008c000012450000c13d0000000003000031000012580000013d0000001c0300002900000be10030009c00000be103008041000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c29011001c72f1f2f1a0000040f0000001c090000290000000003010019000000600330027000000be103300197000000200030008c0000002005000039000000000503401900000005045002720000001a0a0000290000121b0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000012170000c13d0000001f055001900000122a0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001ede0000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d0000000001090433000000010410008c0000000004004019000000190100002900000000020004100000001b030000292f1f21150000040f000012b10000013d00000be10040009c001c00000004001d00000be1030000410000000003044019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c2d011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000001f5f0000613d0000001c040000290000001f0130003900000c22021001970000000009420019000000000029004b0000000001000019000000010100403900000be40090009c00001d7c0000213d000000010010019000001d7c0000c13d000000400090043f00000c240030009c00001d7a0000213d00000c2a01000041000000000519043600000004019000390000000904000029000000000041043500000000010004140000000a04000029000000040040008c000012a00000613d00000be10090009c00000be1020000410000000002094019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c1c011001c70000000a02000029001c00000009001d001b00000005001d2f1f2f1a0000040f0000001b0a0000290000001c090000290000000003010019000000600330027000000be103300197000000200030008c0000002005000039000000000503401900000005045002720000128b0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000012870000c13d0000001f055001900000129a0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001f6e0000613d0000001f0130003900000be2021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f000000200030008c00001d7a0000413d0000001302000029000000010220003a00001f2c0000613d0000000003090433000000000023004b00001eed0000c13d000000010100008a000000170010006b00001f2c0000613d00000014030000290000062f0000013d00000000040004150000000001050433000000140210003900000000070204330000000000250435000000150210003900000000030204330000000000250435000000ff0230018f000000050020008c001c00000004a01d00000bcf0002a13e000000400200043d001c00000002001d00000c0401000041000000000012043500000004012000392f1f2d720000040f0000001c02000029000000000121004900000be10010009c00000be101008041000000600110021000000be10020009c00000be1020080410000004002200210000000000121019f00002f21000104300000002902100039000000000302043300000000002504350000002a021000390000000004020433001800000004001d00000000002504350000003e021000390000000004020433001500000004001d000000000025043500000041011000390000000002010433001600000002001d000000000015043500000be3063001970000000001000410000000000001004b001a00000006001d001b00000007001d000014ea0000613d0000000001000411000000000001004b000014fc0000c13d000000400200043d000000200120003900000c1d0300004100000000003104350000004401200039000000000061043500000064010000390000000000120435000000640120003900000000000104350000002401200039000000000001043500000c1e0020009c00001d7c0000213d000000a001200039000014f70000013d0000002902100039000000000302043300000000002504350000002a02100039000000000802043300000000002504350000003e01100039000000000601043300000000001504350000000001000411000000000001004b0000144e0000613d00000be3057001970000146a0000013d0000001602100039000000000302043300000000002504350000002a0210003900000000040204330000000000250435000000020230018f0000000100300190000013ad0000c13d000000000002004b000016470000c13d0000000001000411000000000001004b001a00000004001d00001a0e0000613d00000be30270019700001a240000013d0000001602100039000000000302043300000000002504350000002a011000390000000002010433000000000015043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000ff00300190001b00000007001d001a00000002001d0000162c0000613d0000000001000410000000000001004b000017ad0000613d0000000001000411000000000001004b000018590000613d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400900043d00000c2502000041000000000329043600000be3061001970000000401900039000000000061043500000000010004140000001b0200002900000be308200197000000040080008c001600000006001d001800000008001d000018b00000c13d0000000003000031000018e20000013d0000002903100039000000000203043300000000003504350000004903100039000000000403043300000000043400190000000000450435000000400900043d00000c370400004100000000084904360000000404900039000000200500003900000000005404350000000003030433000000240490003900000000003404350000004404900039000000000003004b000013660000613d0000006901100039000000000500001900000000064500190000000007510019000000000707043300000000007604350000002005500039000000000035004b0000135c0000413d000013660000a13d00000000014300190000000000010435000000000100041400000be302200197000000040020008c000013d00000c13d0000000003000031000014060000013d0000000001000415001800000001001d00000000010504330000001402100039000000000a02043300000000002504350000001502100039000000000802043300000000002504350000001602100039000000000302043300000000002504350000001702100039000000000402043300000000002504350000002b021000390000000006020433001a00000006001d00000000002504350000003f011000390000000002010433001600000002001d00000000001504350000008000400190000000800100008a000000000601001900000000060060190000008000300190000000000201001900000000020060190000007f0130018f0000000003020019000000000513019f0000007f0140018f000000000116019f00000be30d70019700000c1900d0009c000014160000c13d00000c330110019700000c340060019800000c35020000410000000002006019000000000112019f000000400900043d0000002402900039000000000012043500000c3601000041000000000419043600000c330150019700000c340030019800000c35020000410000000002006019000000000112019f000000040290003900000000001204350000006401900039000000000001043500000044019000390000000000010435000000000100041400000be302a00197000000040020008c000016490000c13d0000000003000031000016780000013d0000003e0110003900000000060104330000000000150435000000000002004b0000189b0000c13d001a00000004001d00000c2b010000410000000000100439001b00000006001d00000be301600197001800000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001a040000290000001b0600002900001d7a0000613d000000400500043d00000c4001000041000000000015043500000000010004140000001802000029000000040020008c000018790000c13d00000000030000310000188e0000013d0000001f0330003900000c22033001970000000003930049000000000343001900000be10030009c00000be103008041000000600330021000000be10090009c00000be10400004100000000040940190000004004400210000000000343019f00000be10010009c00000be101008041000000c001100210000000000113019f001b00000009001d001a00000008001d2f1f2f150000040f0000001a0a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000013f30000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000013ef0000c13d0000001f05500190000014020000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000001ff50000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001c830000813d00001d7a0000013d001300000008001d000f00000001001d001000000006001d001100000005001d001200000003001d0000000001000411000000000001004b00150000000d001d000014360000c13d001b0000000a001d000000400200043d000000200120003900000c1d030000410000000000310435000000000100041000000be3011001970000004403200039000000000013043500000064010000390000000000120435000000640120003900000000000104350000002401200039000000000001043500000c1e0020009c00001d7c0000213d000000a001200039000000400010043f00000000010d00192f1f2d7f0000040f000000150d0000290000001b0a000029000000000c000415000000400200043d000000200120003900000c320300004100000000003104350000004403000039000000000032043500000be30ba0019700000024032000390000000000b304350000004403200039000000000003043500000c090020009c00001d7c0000213d0000008003200039000000400030043f000000000302043300000000020004140000000400d0008c001b0000000b001d000016860000c13d000000000100003100000001020000390000169c0000013d001a00000003001d000000400200043d000000200120003900000c1d030000410000000000310435000000000100041000000be3011001970000004403200039000000000013043500000064010000390000000000120435000000640120003900000000000104350000002401200039000000000001043500000c1e0020009c00001d7c0000213d000000a001200039000000400010043f00000be301700197001600000001001d001b00000006001d001800000008001d2f1f2d7f0000040f000000160500002900000018080000290000001b060000290000001a0300002900000be3023001970000000203000039000000000103041a00000be701100197000000000121019f000000000013041b000000400400043d00000020010000390000000001140436000000000051043500000c3c0040009c00001d7c0000213d000000ff00800190000000400a4000390000004000a0043f00000c430300004100000000003a0435000000c403400039000000a005000039000000000053043500000c450300004100000c440300c041000000a40540003900000000003504350000000003000019000000010300c0390000006405400039000000000035043500000be30360019700000044054000390000000000350435000000e4054000390000000003040433000000000035043500000084054000390000000000050435000000000003004b0000149c0000613d0000010404400039000000000500001900000000064500190000000007150019000000000707043300000000007604350000002005500039000000000035004b000014920000413d0000149c0000a13d000000000143001900000000000104350000000001000414000000040020008c000014a10000c13d0000000003000031000014d50000013d0000001f0330003900000c2203300197000000c40330003900000be10030009c00000be103008041000000600330021000000be100a0009c00000be10400004100000000040a40190000004004400210000000000343019f00000be10010009c00000be101008041000000c001100210000000000131019f001b0000000a001d2f1f2f150000040f0000001b0a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000014c30000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000014bf0000c13d0000001f05500190000014d10000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000020040000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000400030008c00001d7a0000413d0000000202000039000000000202041a00000be302200197000000010020008c00001c830000613d00001d930000013d000000400200043d000000200120003900000c1a03000041000000000031043500000024012000390000000000610435000000440100003900000000001204350000004401200039000000000001043500000c090020009c00001d7c0000213d0000008001200039000000400010043f00000be3017001972f1f2d7f0000040f0000001a060000290000001b07000029000000400a00043d00000c480100004100000000041a04360000000001000414000000040060008c000015040000c13d0000000003000031000015370000013d001200000004001d00000be100a0009c00000be10200004100000000020a4019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c41011001c7000000000206001900130000000a001d2f1f2f1a0000040f000000130a0000290000000003010019000000600330027000000be103300197000000600030008c0000006005000039000000000503401900000005045002720000000504400210000015220000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b0000151e0000c13d0000001f05500190000015300000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000020130000613d0000001b070000290000001a0600002900000012040000290000001f0130003900000c22011001970000000009a10019000000000019004b0000000002000019000000010200403900000be40090009c00001d7c0000213d000000010020019000001d7c0000c13d000000400090043f00000c240030009c00001d7a0000213d000000600030008c00001d7a0000413d00000000080a043300000c490080009c00001d7a0000213d000000000204043300000c490020009c00001d7a0000213d0000004004a00039000000000404043300000be10040009c00001d7a0000213d0000000404900039000000000008004b00001f9f0000613d000000000002004b00001f9f0000613d00000c2505000041000000000b59043600000000006404350000001804000029000000ff0540018f000000010050008c000000000a080019000000000a026019000000000802c019000000000400041400000be302700197000000040020008c0000159a0000613d00130000000a001d001100000005001d001800000008001d00000be10090009c00000be1010000410000000001094019000000400110021000000be10040009c00000be104008041000000c003400210000000000113019f00000c1c011001c7001b00000009001d00120000000b001d2f1f2f1a0000040f000000120a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000015810000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b0000157d0000c13d0000001f05500190000015900000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000001808000029000000130a000029000020220000613d0000001f0130003900000be2011001970000001a0600002900000011050000290000000004910019000000000014004b0000000001000019000000010100403900000be40040009c00001d7c0000213d000000010010019000001d7c0000c13d000000400040043f000000200030008c00001d7a0000413d0000000002090433000000000182004b00001f2c0000413d000000160300002900000c4a0330019700000c4b0030009c00001f2c0000213d00000c4b03300099000000000082004b000015b20000613d00000c6302100129000000000032004b00001f2c0000413d00000000013100aa000015b70000613d00000c63021001290000000000a2004b00001f2c0000413d00000c630310016700000c4b028000d1000000000032004b00001f2c0000213d000000000221001a00001d8d0000613d0000000001a100a900000000012100d9000000010050008c00000000020000190000000002016019001600000002001d0000000001006019001800000001001d00000c4c0040009c00001d7c0000213d0000002001400039001300000001001d000000400010043f001b00000004001d000000000004043500000c2b0100004100000000001004390000000400600443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001a060000290000001b0300002900001d7a0000613d000000400700043d000000640170003900000080020000390000000000210435000000150100002900000be3011001970000004402700039000000000012043500000024017000390000001602000029000000000021043500000c4d010000410000000000170435000000040170003900000018020000290000000000210435000000000103043300000084027000390000000000120435000000000001004b000015ff0000613d000000a4027000390000000003000019000000130800002900000000042300190000000005830019000000000505043300000000005404350000002003300039000000000013004b000015f50000413d000015ff0000a13d000000000221001900000000000204350000000002000414000000040060008c000016040000c13d00000000030000310000161e0000013d0000001f0110003900000c2201100197000000a40110003900000be10010009c00000be101008041000000600110021000000be10070009c001b00000007001d00000be10300004100000000030740190000004003300210000000000131019f00000be10020009c00000be102008041000000c002200210000000000112019f00000000020600192f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be10330019700020000000103550000000100200190000020310000613d0000001b070000290000001f0130003900000c22021001970000000001720019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001c830000a13d00001d7a0000013d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000201043b000000400900043d00000c30010000410000000003190436000000000100041000000be307100197000000240190003900000000007104350000001b0100002900000be30610019700000004019000390000000000610435000000000100041400000be305200197000000040050008c000017c70000c13d0000000003000031000017fd0000013d000000400100043d00001a610000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c13011001c7001b00000009001d001500000004001d2f1f2f150000040f000000150a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000016650000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000016610000c13d0000001f05500190000016740000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000204f0000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d00001b2d0000013d00000be10010009c00000be101008041000000400110021000000be10030009c00000be1030080410000006003300210000000000113019f00000be10020009c00000be102008041000000c002200210000000000121019f00000000020d0019000e0000000c001d2f1f2f150000040f000000150d0000290000000e0c0000290000001b0b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b00000080030000390000006004000039000016ca0000613d00000be40010009c00001d7c0000213d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00001d7c0000213d000000010050019000001d7c0000c13d000000400030043f0000000003140436000000020500036700000005061002720000000506600210000016bc0000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b000016b80000c13d0000001f07100190000016ca0000613d000000000565034f00000000066300190000000307700210000000000806043300000000087801cf000000000878022f000000000505043b0000010007700089000000000575022f00000000057501cf000000000585019f0000000000560435000000000002004b000016db0000613d0000000002040433000000000002004b00001aaa0000613d00000c240020009c00001d7a0000213d000000200020008c00001d7a0000413d0000000002030433000000000002004b0000000003000019000000010300c039000000000032004b00001d7a0000c13d000000000002004b00001aaa0000c13d000000400200043d000000200320003900000c3204000041000000000043043500000024042000390000000000b40435000000440400003900000000004204350000004404200039000000000004043500000c090020009c00001d7c0000213d0000008004200039000000400040043f000000000502043300000000040004140000000400d0008c0000000102000039000017040000613d00000be10030009c00000be103008041000000400130021000000be10050009c00000be1050080410000006002500210000000000112019f00000be10040009c00000be104008041000000c002400210000000000121019f00000000020d0019000e0000000c001d2f1f2f150000040f000000150d0000290000000e0c0000290000001b0b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b00000080030000390000006004000039000017300000613d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00001d7c0000213d000000010050019000001d7c0000c13d000000400030043f0000000003140436000000020500036700000005061002720000000506600210000017220000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b0000171e0000c13d0000001f07100190000017300000613d000000000565034f00000000066300190000000307700210000000000806043300000000087801cf000000000878022f000000000505043b0000010007700089000000000575022f00000000057501cf000000000585019f0000000000560435000000000002004b00001aaa0000613d00000000050004150000001e0550008a00000005055002100000000002040433000000000002004b000017470000613d00000c240020009c00001d7a0000213d000000200020008c00001d7a0000413d0000000002030433000000000002004b0000000003000019000000010300c039000000000032004b00001d7a0000c13d00000000050004150000001d0550008a0000000505500210000000000002004b00001aaa0000613d000d00000005001d000000400200043d000000200320003900000c3204000041000000000043043500000024042000390000000000b40435000000440400003900000000004204350000004404200039000000000004043500000c090020009c00001d7c0000213d0000008004200039000000400040043f000000000502043300000000040004140000000400d0008c0000000102000039000017700000613d00000be10030009c00000be103008041000000400130021000000be10050009c00000be1050080410000006002500210000000000112019f00000be10040009c00000be104008041000000c002400210000000000121019f00000000020d0019000e0000000c001d2f1f2f150000040f0000000e0c0000290000001b0b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b000000800300003900000060040000390000179c0000613d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00001d7c0000213d000000010050019000001d7c0000c13d000000400030043f00000000031404360000000205000367000000050610027200000005066002100000178e0000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b0000178a0000c13d0000001f011001900000179c0000613d000000000565034f00000000066300190000000301100210000000000706043300000000071701cf000000000717022f000000000505043b0000010001100089000000000515022f00000000011501cf000000000171019f0000000000160435000000000002004b00001aa60000613d0000000002040433000000000002004b000000010100003900001aa70000613d00000c240020009c00001d7a0000213d000000200020008c00001d7a0000413d0000000001030433000000000001004b0000000002000019000000010200c039000000000021004b00001aa70000613d00001d7a0000013d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400200043d000000200320003900000c1a04000041000000000043043500000be30110019700000024032000390000000000130435000000440100003900000000001204350000004401200039000000000001043500000c090020009c0000001b0300002900001d7c0000213d0000008001200039000018740000013d001300000007001d001500000006001d00000be10090009c00000be1020000410000000002094019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c29011001c7001600000005001d0000000002050019001b00000009001d001800000003001d2f1f2f1a0000040f000000180a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000017e70000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000017e30000c13d0000001f05500190000017f60000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000205e0000613d0000001605000029000000150600002900000013070000290000001f0130003900000c2201100197000000000a91001900000000001a004b0000000002000019000000010200403900000be400a0009c00001d7c0000213d000000010020019000001d7c0000c13d0000004000a0043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d00000000020904330000008404a0003900000000002404350000001a0200002900000be3022001970000004404a0003900000000002404350000002402a00039000000000072043500000c3f0200004100000000002a04350000000402a0003900000000006204350000006402a0003900000000000204350000000002000414000000040050008c0000184f0000613d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c3e011001c70000000002050019001b0000000a001d2f1f2f150000040f0000001b0a0000290000000003010019000000600330027000000be103300197000000400030008c00000040050000390000000005034019000000050450027200000005044002100000183b0000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000018370000c13d0000001f05500190000018490000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000206d0000613d0000001f0130003900000be2011001970000000002a10019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f00001a0b0000013d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400200043d000000200320003900000c1d04000041000000000043043500000be3011001970000004403200039000000000013043500000064010000390000000000120435000000640120003900000000000104350000002401200039000000000001043500000c1e0020009c0000001b0300002900001d7c0000213d000000a001200039000000400010043f00000be3013001972f1f2d7f0000040f001800000000001d000019a90000013d00000be10050009c001600000005001d00000be1030000410000000003054019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c41011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be103300197000200000001035500000001002001900000208b0000613d0000001a040000290000001b0600002900000016050000290000001f0130003900000c22021001970000000001520019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d00000be3014001970000000002000410000000000021004b00001c830000613d000000400200043d000000200320003900000c1a04000041000000000043043500000024032000390000000000130435000000440100003900000000001204350000004401200039000000000001043500000c090020009c00001d7c0000213d0000008001200039000000400010043f00000be3016001972f1f2d7f0000040f00001c830000013d00000be10090009c00000be1020000410000000002094019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c1c011001c70000000002080019001500000009001d001300000003001d2f1f2f1a0000040f000000130a00002900000015090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000018cd0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000018c90000c13d0000001f05500190000018dc0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000000018080000290000209a0000613d00000016060000290000001f0130003900000c2201100197000000000a91001900000000001a004b0000000002000019000000010200403900000be400a0009c00001d7c0000213d000000010020019000001d7c0000c13d0000004000a0043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d000000000709043300000c380200004100000000052a04360000000402a0003900000000008204350000000002000414000000040060008c001500000007001d000019300000613d001200000005001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c7000000000206001900130000000a001d2f1f2f1a0000040f000000130a0000290000000003010019000000600330027000000be103300197000000600030008c0000006005000039000000000503401900000005045002720000000504400210000019180000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000019140000c13d0000001f05500190000019260000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000001808000029000020c70000613d0000001f0130003900000be2011001970000001606000029000000150700002900000012050000290000000002a10019000000000012004b0000000004000019000000010400403900000be40020009c00001d7c0000213d000000010040019000001d7c0000c13d000000400020043f000000600030008c00001d7a0000413d00000c390020009c00001d7c0000213d0000006004200039000000400040043f00000000040a043300000be40040009c00001d7a0000213d0000000004420436000000000505043300000be40050009c00001d7a0000213d00000000005404350000004004a00039000000000404043300000c3a0040009c00001d7a0000213d0000004002200039000000000042043500000c6302400167000000000027004b00001f2c0000213d000000400a00043d00000c3b0200004100000000052a04360000000402a0003900000000008204350000000002000414000000040060008c0000198e0000613d001200000005001d001300000004001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c7000000000206001900180000000a001d2f1f2f1a0000040f000000180a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000019770000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000019730000c13d0000001f05500190000019850000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000020a90000613d0000001f0130003900000be2011001970000001507000029000000130400002900000012050000290000000002a10019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f000000400030008c00001d7a0000413d00000c3c0020009c00001d7c0000213d0000004001200039000000400010043f00000000010a043300000c3a0010009c00001d7a0000213d0000000002120436000000000305043300000c3a0030009c00001d7a0000213d00000000047400190000000000320435000000000114004b00001f2c0000413d001800000001001d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000400a00043d0000006402a00039000000180300002900000000003204350000001a0200002900000be3022001970000004403a00039000000000023043500000c3d0200004100000000002a04350000001b0200002900000be3022001970000000403a00039000000000023043500000be3021001970000002401a0003900000000002104350000008401a0003900000000000104350000000001000414000000040020008c000019d00000c13d0000000003000031000019fe0000013d00000be100a0009c00000be10300004100000000030a4019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c3e011001c7001b0000000a001d2f1f2f150000040f0000001b0a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000019ec0000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000019e80000c13d0000001f05500190000019fa0000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000020400000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000400030008c00001c830000813d00001d7a0000013d000000400200043d000000200120003900000c1d030000410000000000310435000000000100041000000be3011001970000004403200039000000000013043500000064010000390000000000120435000000640120003900000000000104350000002401200039000000000001043500000c1e0020009c00001d7c0000213d000000a001200039000000400010043f00000be301700197001b00000001001d2f1f2d7f0000040f0000001b0200002900000c2b010000410000000000100439001b00000002001d0000000400200443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001a0400002900001d7a0000613d000000400500043d00000c420100004100000000001504350000000401500039000000000001043500000000010004140000001b02000029000000040020008c00001a400000c13d000000000300003100001a540000013d00000be10050009c001800000005001d00000be1030000410000000003054019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be10330019700020000000103550000000100200190000020b80000613d0000001a0400002900000018050000290000001f0130003900000c22021001970000000001520019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d0000000002000414000000040040008c00001a670000c13d0000000003000031000000000200001900001a750000013d00000be10010009c00000be101008041000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000000020400192f1f2f150000040f000000010220015f0002000000010355000000600110027000000be10010019d00000be103100197000000000003004b0000008004000039000000600100003900001aa30000613d00000be40030009c00001d7c0000213d0000001f0130003900000c22011001970000003f0110003900000c2204100197000000400100043d0000000004410019000000000014004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000431043600000002050003670000000506300272000000050660021000001a950000613d0000000007640019000000000805034f0000000009040019000000008a08043c0000000009a90436000000000079004b00001a910000c13d0000001f0330019000001aa30000613d000000000565034f00000000066400190000000303300210000000000706043300000000073701cf000000000737022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000373019f0000000000360435000000010020019000001c830000613d00001dd60000013d00000000010000190000000d020000290000000502200270000000000201001f000000000100041500000000011c004900000000010000020000001301000029000000ff0010019000001ac60000613d000000160100002900000be30210019700000c190020009c001500000002001d00001ae40000c13d00000c2601000041000000000010043900000000010004100000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b001300000001001d0000001b0b00002900001b730000013d0000000f0100002900000c3301100197000000100200002900000c340020019800000c35020000410000000002006019000000000112019f000000400900043d0000002402900039000000000012043500000c36010000410000000003190436000000110100002900000c3301100197000000120200002900000c340020019800000c35020000410000000002006019000000000112019f00000004029000390000000000120435000000640190003900000000000104350000004401900039000000000001043500000000010004140000000400b0008c00001af00000c13d000000000300003100001b200000013d000000400900043d00000c25010000410000000004190436000000000100041000000be301100197000000040390003900000000001304350000000001000414000000040020008c00001b320000c13d000000000300003100001b620000013d00000be10090009c00000be1020000410000000002094019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c13011001c700000000020b0019001b00000009001d001500000003001d2f1f2f150000040f000000150a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200001b0d0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00001b090000c13d0000001f0550019000001b1c0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000020d60000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d00000000030904330000001a0400002900001c1f0000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7001300000009001d000e00000004001d2f1f2f1a0000040f0000000e0a00002900000013090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200001b4e0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00001b4a0000c13d0000001f0550019000001b5d0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f000200000001035500000001002001900000001b0b000029000020f70000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d0000000001090433001300000001001d00000c2b0100004100000000001004390000000400b00443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b000000000001004b0000001b03000029000000150500002900001d7a0000613d0000000f0100002900000c3301100197000000100200002900000c340020019800000c35020000410000000002006019000000000112019f000000400400043d0000002402400039000000000012043500000c36010000410000000000140435000000110100002900000c3301100197000000120200002900000c340020019800000c35020000410000000002006019000000000112019f0000000402400039000000000012043500000064014000390000000000010435000000440140003900000000000104350000000001000414000000040030008c00001ba20000c13d000000000300003100001bb70000013d00000be10040009c001200000004001d00000be1020000410000000002044019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c13011001c700000000020300192f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be103300197000200000001035500000001002001900000207c0000613d000000150500002900000012040000290000001f0130003900000c22011001970000000009410019000000000019004b0000000002000019000000010200403900000be40090009c00001d7c0000213d000000010020019000001d7c0000c13d000000400090043f00000c240030009c00001d7a0000213d00000c190050009c00001bd50000c13d00000c2601000041000000000010043900000000010004100000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b00001c1c0000013d00000c25020000410000000006290436000000000200041000000be302200197000000040490003900000000002404350000000002000414000000040050008c00001c100000613d00000be10090009c00000be1010000410000000001094019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c70000000002050019001b00000009001d001500000006001d2f1f2f1a0000040f000000150a0000290000001b090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200001bfb0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00001bf70000c13d0000001f0550019000001c0a0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000021060000613d0000001f0130003900000be2011001970000000002910019000000000012004b0000000001000019000000010100403900000be40020009c00001d7c0000213d000000010010019000001d7c0000c13d000000400020043f000000200030008c00001d7a0000413d0000000001090433000000130310006c0000001a0400002900001f2c0000413d00000be3074001970000000001000410000000000017004b00001c800000613d000000400200043d000000160100002900000be30110019700000c190010009c00001c2e0000c13d0000000001000414000000040040008c00001c3d0000c13d0000000003000031000000010200003900001c500000013d000000200520003900000c1a06000041000000000065043500000044052000390000000000350435000000240320003900000000007304350000004403000039000000000032043500000c090020009c00001d7c0000213d0000008003200039000000400030043f2f1f2d7f0000040f00001c800000013d00000be10020009c00000be102008041000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f000000000003004b00001c4a0000613d00000be8011001c70000800902000039000000000500001900001c4b0000013d00000000020400192f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be103100197000000000003004b0000008004000039000000600100003900001c7e0000613d00000be40030009c00001d7c0000213d0000001f0130003900000c22011001970000003f0110003900000c2204100197000000400100043d0000000004410019000000000014004b0000000005000019000000010500403900000be40040009c00001d7c0000213d000000010050019000001d7c0000c13d000000400040043f000000000431043600000002050003670000000506300272000000050660021000001c700000613d0000000007640019000000000805034f0000000009040019000000008a08043c0000000009a90436000000000079004b00001c6c0000c13d0000001f0330019000001c7e0000613d000000000565034f00000000066400190000000303300210000000000706043300000000073701cf000000000737022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000373019f0000000000360435000000010020019000001dd60000613d00000000010004150000001801100069000000000100000200000000010004150000001c011000690000000001000002000012b10000013d0000000a0100002900000c190010009c000b00000003001d00001c990000c13d00000c2601000041000000000010043900000000010004110000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001cf00000c13d00001d820000013d000000400900043d00000c25010000410000000004190436000000000100041100000be301100197000000040290003900000000001204350000000a020000290000000001000414000000040020008c00001ca60000c13d000000000300003100001cd60000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7001c00000009001d001b00000004001d2f1f2f1a0000040f0000001b0a0000290000001c090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000001f0450018f000000050550027200001cc30000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00001cbf0000c13d000000000004004b00001cd20000613d0000000505500210000000000651034f00000000055900190000000304400210000000000705043300000000074701cf000000000747022f000000000606043b0000010004400089000000000646022f00000000044601cf000000000474019f0000000000450435000000000003001f0002000000010355000000010020019000001fd70000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d000000010300008a000000080330014f0000000002090433000000000032004b00001f2c0000213d000000080220002900000c640020009c00001f2c0000213d0000000a02200039000000010020006c00001f8c0000413d000000030200002900000c190020009c00001d020000c13d00000c2601000041000000000010043900000007010000290000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000001d820000613d000000000101043b00001d4e0000013d000000400900043d00000c25010000410000000004190436000000070100002900000be301100197000000040390003900000000001304350000000001000414000000040020008c00001d0e0000c13d000000000300003100001d3e0000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7001c00000009001d001b00000004001d2f1f2f1a0000040f0000001b0a0000290000001c090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000001f0450018f000000050550027200001d2b0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00001d270000c13d000000000004004b00001d3a0000613d0000000505500210000000000651034f00000000055900190000000304400210000000000705043300000000074701cf000000000747022f000000000606043b0000010004400089000000000646022f00000000044601cf000000000474019f0000000000450435000000000003001f0002000000010355000000010020019000001fe60000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00001d7c0000213d000000010020019000001d7c0000c13d000000400010043f00000c240030009c00001d7a0000213d000000200030008c00001d7a0000413d00000000010904330000000403000029000000010400008a000000060240014f000000000023004b00001f2c0000213d00000004030000290000000602300029000000000021004b00001f2a0000413d000000000431004b00001f2c0000413d000000400100043d00000040021000390000000603000029000000000032043500000020021000390000000b0300002900000000003204350000006002100039001c00000004001d0000000000420435000000070200002900000be302200197000000000021043500000be10010009c00000be1010080410000004001100210000000000200041400000be10020009c00000be102008041000000c002200210000000000112019f00000c5d011001c70000800d02000039000000040300003900000c5e040000410000000005000411000000020600002900000005070000292f1f2f150000040f000000010020019000001d7a0000613d0000001c01000029000000000001042d000000000100001900002f210001043000000c1b0100004100000000001004350000004101000039000000040010043f00000c1c0100004100002f2100010430000000000001042f000000400100043d000000640210003900000c58030000410000000000320435000000440210003900000c5903000041000000000032043500000024021000390000002a0300003900001e730000013d00000c1b0100004100000000001004350000001201000039000000040010043f00000c1c0100004100002f2100010430000000640210003900000c46030000410000000000320435000000440210003900000c470300004100001e700000013d00000c0402000041000000000024043500000020020000390000000000210435000000440140003900000c4e02000041000000000021043500000024014000390000001302000039000000000021043500000be10040009c00000be104008041000000400140021000000c20011001c700002f2100010430000000400200043d0000001f0350018f000000050450027200001db40000613d00000005064002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001db00000c13d000000000003004b00001dc30000613d0000000504400210000000000141034f00000000044200190000000303300210000000000604043300000000063601cf000000000636022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000161019f00000000001404350000006001500210000020f20000013d000000400100043d000000440210003900000c5a03000041000000000032043500000024021000390000001d03000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c20011001c700002f210001043000000be10040009c00000be1040080410000004002400210000000000101043300001e810000013d000000000001004b00001de30000613d00000be100a0009c00000be10a0080410000004002a0021000001e810000013d000000000001004b00001e7e0000c13d000000400300043d001c00000003001d00000c040100004100000000001304350000000401300039000000200200003900000000002104350000002402300039000000110100002900001f010000013d000000400200043d0000001f0430018f000000050530027200001df90000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001df50000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001e080000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e040000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0340018f000000050540027200001e170000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e130000c13d000000000003004b00001e260000613d0000000505500210000000000151034f00000000055200190000000303300210000000000605043300000000063601cf000000000636022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000161019f00000000001504350000006001400210000020f20000013d000000400200043d0000001f0430018f000000050530027200001e340000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e300000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001e430000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e3f0000c13d000000000004004b000020f10000613d000020e40000013d000000000001004b00001ef80000613d00000be10090009c00000be109008041000000400290021000001e810000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001e580000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e540000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001e670000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e630000c13d000000000004004b000020f10000613d000020e50000013d000000400100043d000000640210003900000c60030000410000000000320435000000440210003900000c6103000041000000000032043500000024021000390000002403000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c13011001c700002f210001043000000be100c0009c00000be10c0080410000004002c0021000000be10010009c00000be1010080410000006001100210000000000121019f00002f2100010430000000400200043d0000001f0430018f0000000505300272000000050550021000001e920000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e8e0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001ea10000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001e9d0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f000000050530027200001eb00000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001eac0000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f04a0018f0000000505a00272000000050550021000001ebf0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001ebb0000c13d000000000004004b00001ecd0000613d000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f00000000001504350000006001a00210000020f20000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001edb0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001ed70000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001eea0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001ee60000c13d000000000004004b000020f10000613d000020e50000013d000000640210003900000c2e030000410000000000320435000000440210003900000c2f0300004100000000003204350000002402100039000000210300003900001e730000013d000000000001004b00001ddd0000c13d000000400300043d001c00000003001d00000c04010000410000000000130435000000040130003900000020020000390000000000210435000000240230003900000013010000292f1f2e940000040f0000001c02000029000000000121004900000be10010009c00000be10100804100000be10020009c00000be10200804100000060011002100000004002200210000000000121019f00002f2100010430000000400200043d0000001f0430018f0000000505300272000000050550021000001f180000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f140000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001f270000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f230000c13d000000000004004b000020f10000613d000020e50000013d000000000131004b00001f950000813d00000c1b0100004100000000001004350000001101000039000000040010043f00000c1c0100004100002f2100010430000000400200043d0000001f0430018f0000000505300272000000050550021000001f3e0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f3a0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001f4d0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f490000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f000000050530027200001f5c0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f580000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001f6b0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f670000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001f7a0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f760000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000000050550021000001f890000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001f850000c13d000000000004004b000020f10000613d000020e50000013d000000640210003900000c5b030000410000000000320435000000440210003900000c5c03000041000000000032043500000024021000390000002f0300003900001e730000013d000000400200043d00000c5f0300004100000000003204350000000403200039000000000013043500000be10020009c00000be102008041000000400120021000000c1c011001c700002f210001043000000c0401000041000000000019043500000020010000390000000000140435000000440190003900000c4e02000041000000000021043500000024019000390000001302000039000000000021043500000be10090009c00000be109008041000000400190021000000c20011001c700002f21000104300000008001000039000000600200003900000be10010009c00000be1010080410000004001100210000000000202043300000be10020009c00000be1020080410000006002200210000000000112019f00002f2100010430000000400200043d0000001f0430018f000000050530027200001fc50000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001fc10000c13d000000000004004b000020e40000c13d000020f10000013d000000400200043d0000001f0430018f000000050530027200001fd40000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001fd00000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001fe30000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001fdf0000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200001ff20000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001fee0000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f00000005053002720000000505500210000020010000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00001ffd0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f00000005053002720000000505500210000020100000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b0000200c0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f000000050530027200000005055002100000201f0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b0000201b0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f000000050530027200000005055002100000202e0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b0000202a0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f000000050530027200000005055002100000203d0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020390000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f00000005053002720000204c0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020480000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f00000005053002720000205b0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020570000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f000000050530027200000005055002100000206a0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020660000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f00000005053002720000000505500210000020790000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020750000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f00000005053002720000000505500210000020880000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020840000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f0000000505300272000020970000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020930000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000020a60000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020a20000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000020b50000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020b10000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000020c40000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020c00000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000020d30000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020cf0000c13d000000000004004b000020f10000613d000020e40000013d000000400200043d0000001f0430018f0000000505300272000020e20000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020de0000c13d000000000004004b000020f10000613d0000000505500210000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f0000000000150435000000600130021000000be10020009c00000be1020080410000004002200210000000000112019f00002f2100010430000000400200043d0000001f0430018f00000005053002720000000505500210000021030000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b000020ff0000c13d000000000004004b000020f10000613d000020e50000013d000000400200043d0000001f0430018f00000005053002720000000505500210000021120000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b0000210e0000c13d000000000004004b000020f10000613d000020e50000013d0014000000000002000000000501043300000001065000390000000005060433000d00000001001d0000000000610435000c00ff0050019400002be30000613d000f0be30030019b000e0be30020019b00000000020000190000212c0000013d000000010020019000002c2b0000613d00000000010004150000000a01100069000000000100000200000012010000290000001004100069000000110200002900000001022000390000000c0020006c00002be30000813d001100000002001d0000000d050000290000000007050433000000020270003900000000010204330000000000250435000000030270003900000000030204330000000000250435000000ff0230018f000000050020008c0000ffff0110a18f000000000941a0a90000ffff0190a11a001200000001a01d001000000004a01d00000bdb0002a13e00002bf30000013d00000017017000390000000002010433000000000015043500000018017000390000000003010433000a00000003001d00000000001504350000002c017000390000000003010433000800000003001d00000000001504350000002f017000390000000003010433000900000003001d000000000015043500000be3062001970000000e010000290000000002000410000000000021004b000b00000006001d000022ba0000c13d000000400200043d000000200120003900000c1a030000410000000000310435000000440120003900000012030000290000000000310435000000240120003900000000006104350000004401000039000000000012043500000c090020009c00002be40000213d0000008001200039000022ce0000013d0000001701700039000000000301043300000000001504350000001801700039000000000801043300000000001504350000002c017000390000000006010433000000000015043500000000020004110000000e0020006b0000218a0000c13d000b00000003001d000000400200043d000000200120003900000c1d030000410000000000310435000000640120003900000012030000290000000000310435000000000100041000000be3011001970000004403200039000000000013043500000024012000390000000e0300002900000000003104350000006401000039000000000012043500000c1e0020009c00002be40000213d000000a001200039000000400010043f0000000f01000029000a00000006001d000900000008001d2f1f2d7f0000040f00000009080000290000000a060000290000000b0300002900000be3023001970000000203000039000000000103041a00000be701100197000000000121019f000000000013041b000000400400043d000000200100003900000000011404360000000f03000029000000000031043500000c3c0040009c00002be40000213d000000ff00800190000000400a4000390000004000a0043f00000c430300004100000000003a0435000000c403400039000000a005000039000000000053043500000c450300004100000c440300c041000000a40540003900000000003504350000008403400039000000120500002900000000005304350000000003000019000000010300c0390000006405400039000000000035043500000be30360019700000044054000390000000000350435000000e40540003900000000030404330000000000350435000000000003004b000021be0000613d0000010404400039000000000500001900000000064500190000000007150019000000000707043300000000007604350000002005500039000000000035004b000021b40000413d000021be0000a13d000000000143001900000000000104350000000001000414000000040020008c000024390000c13d00000000030000310000246d0000013d000000040170003900000000020104330000000000150435000000180170003900000000060104330000000000150435000000020120018f0000000100200190000022da0000c13d000000000001004b0000258e0000c13d000a00000009001d000b00000006001d00000000020004110000000e0020006b000021e90000c13d000000400200043d000000200120003900000c1d030000410000000000310435000000640120003900000012030000290000000000310435000000000100041000000be3011001970000004403200039000000000013043500000024012000390000000e0300002900000000003104350000006401000039000000000012043500000c1e0020009c00002be40000213d000000a001200039000000400010043f0000000f010000292f1f2d7f0000040f00000c2b0100004100000000001004390000000f010000290000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b0000000b060000290000000a0900002900002bea0000613d000000400400043d00000c4201000041000000000014043500000004014000390000001202000029000000000021043500000000010004140000000f02000029000000040020008c0000274d0000c13d0000000003000031000027620000013d00000004017000390000000002010433000000000015043500000018017000390000000003010433000b00000003001d0000000000150435000000ff00200190000024aa0000613d00000c180100004100000000001004390000000001000412000000040010044300000024000004430000000e010000290000000002000410000000000021004b000024e40000c13d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000400200043d000000200320003900000c1a04000041000000000043043500000044032000390000001204000029000000000043043500000be301100197000000240320003900000000001304350000004401000039000000000012043500000c090020009c00002be40000213d0000008001200039000025030000013d00000017017000390000000008010433000000000015043500000037047000390000000001040433000000000141001900000000001504350000000e0000006b000024e20000613d000900000004001d000a00000008001d000b00000007001d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b00000c2b02000041000000000020043900000be301100197000800000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b0000000b070000290000000a08000029000000090400002900002bea0000613d000000400500043d00000064015000390000001202000029000000000021043500000be3018001970000004402500039000000000012043500000024015000390000000e02000029000000000021043500000c5301000041000000000015043500000004015000390000000f02000029000000000021043500000000010004140000000802000029000000040020008c000025080000c13d00000000030000310000251e0000013d0000000001000415000a00000001001d00000000010504330000001402100039000000000c020433000000000025043500000015021000390000000008020433000000000025043500000016021000390000000003020433000000000025043500000017021000390000000006050019000000000502043300000000002604350000002b021000390000000007020433000b00000007001d00000000002604350000003f011000390000000002010433000900000002001d00000000001604350000008000500190000000800100008a000000000601001900000000060060190000008000300190000000000201001900000000020060190000007f0130018f0000000003020019000000000b13019f0000007f0150018f000000000516019f0000000f0100002900000c190010009c000022ff0000c13d000000400a00043d0000004401a000390000001202000029000000000021043500000c330150019700000c340060019800000c35020000410000000002006019000000000112019f0000002402a00039000000000012043500000c360100004100000000061a043600000c3301b0019700000c340030019800000c35020000410000000002006019000000000112019f0000000402a0003900000000001204350000006401a000390000000000010435000000000100041400000be305c00197000000040050008c000025900000c13d00000000030000310000272e0000013d0000000002000411000000000021004b000022d20000c13d000000400200043d000000200120003900000c1d0300004100000000003104350000006401200039000000120300002900000000003104350000004401200039000000000061043500000024012000390000000e0300002900000000003104350000006401000039000000000012043500000c1e0020009c00002be40000213d000000a001200039000000400010043f0000000f010000292f1f2d7f0000040f0000000b06000029000000400a00043d00000c480100004100000000041a04360000000001000414000000040060008c0000233a0000c13d00000000030000310000236c0000013d0000002c0270003900000000070204330000000000250435000000000001004b000029f40000c13d000a00000009001d000b00000006001d00000c2b010000410000000000100439000900000007001d00000be301700197000800000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b0000000b060000290000000a03000029000000090700002900002bea0000613d000000400400043d00000c4001000041000000000014043500000000010004140000000805000029000000040050008c0000273f0000c13d0000000003000031000029e70000013d000600000008001d000300000005001d000400000006001d000500000003001d00000000020004110000000e0020006b00080000000b001d000023200000c13d00070000000c001d000000400200043d000000200120003900000c1d030000410000000000310435000000640120003900000012030000290000000000310435000000000100041000000be3011001970000004403200039000000000013043500000024012000390000000e0300002900000000003104350000006401000039000000000012043500000c650020009c00002be40000813d000000a001200039000000400010043f0000000f010000292f1f2d7f0000040f000000080b000029000000070c000029000000000d000415000000400200043d000000440120003900000012030000290000000000310435000000200120003900000c320300004100000000003104350000004403000039000000000032043500000be30cc0019700000024032000390000000000c3043500000c090020009c00002be40000213d0000008003200039000000400030043f000000000302043300000000040004140000000f02000029000000040020008c00070000000c001d0000259f0000c13d00000000010000310000000102000039000025b40000013d000600000004001d00000be100a0009c00000be10200004100000000020a4019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c41011001c7000000000206001900070000000a001d2f1f2f1a0000040f000000070a0000290000000003010019000000600330027000000be103300197000000600030008c0000006005000039000000000503401900000005045002720000000504400210000023580000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000023540000c13d0000001f05500190000023660000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002c340000613d0000000b0600002900000006040000290000001f0130003900000c22011001970000000009a10019000000000019004b0000000002000019000000010200403900000be40090009c00002be40000213d000000010020019000002be40000c13d000000400090043f00000c240030009c00002bea0000213d000000600030008c00002bea0000413d00000000070a043300000c490070009c00002bea0000213d000000000204043300000c490020009c00002bea0000213d0000004004a00039000000000404043300000be10040009c00002bea0000213d0000000404900039000000000007004b00002c030000613d000000000002004b00002c030000613d00000c2505000041000000000a59043600000000006404350000000a04000029000000ff0540018f000000010050008c00000000080700190000000008026019000000000702c01900000000040004140000000f02000029000000040020008c000023cf0000613d000700000008001d000400000005001d000500000007001d00000be10090009c00000be1010000410000000001094019000000400110021000000be10040009c00000be104008041000000c003400210000000000113019f00000c1c011001c7000a00000009001d00060000000a001d2f1f2f1a0000040f000000060a0000290000000a090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000023b60000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000023b20000c13d0000001f05500190000023c50000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000000070800002900002c430000613d0000001f0130003900000be2011001970000000b06000029000000050700002900000004050000290000000004910019000000000014004b0000000001000019000000010100403900000be40040009c00002be40000213d000000010010019000002be40000c13d000000400040043f000000200030008c00002bea0000413d0000000002090433000000000172004b00002bed0000413d000000090300002900000c4a0330019700000c4b0030009c00002bed0000213d00000c4b03300099000000000072004b000023e70000613d00000c6302100129000000000032004b00002bed0000413d00000000013100aa000023ec0000613d00000c6302100129000000000082004b00002bed0000413d00000c630310016700000c4b027000d1000000000032004b00002bed0000213d000000000221001a00002c120000613d00000000018100a900000000012100d9000000010050008c00000000020000190000000002016019000700000002001d0000000001006019000900000001001d00000c4c0040009c00002be40000213d0000002001400039000600000001001d000000400010043f000a00000004001d000000000004043500000c2b0100004100000000001004390000000400600443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b0000000b060000290000000a0300002900002bea0000613d000000400700043d000000640170003900000080020000390000000000210435000000080100002900000be3011001970000004402700039000000000012043500000024017000390000000702000029000000000021043500000c4d010000410000000000170435000000040170003900000009020000290000000000210435000000000103043300000084027000390000000000120435000000000001004b0000000608000029000024340000613d000000a402700039000000000300001900000000042300190000000005830019000000000505043300000000005404350000002003300039000000000013004b0000242a0000413d000024340000a13d000000000221001900000000000204350000000002000414000000040060008c000024820000c13d00000000030000310000249c0000013d0000001f0330003900000c2203300197000000c40330003900000be10030009c00000be103008041000000600330021000000be100a0009c00000be10400004100000000040a40190000004004400210000000000343019f00000be10010009c00000be101008041000000c001100210000000000131019f000b0000000a001d2f1f2f150000040f0000000b0a0000290000000003010019000000600330027000000be103300197000000400030008c00000040050000390000000005034019000000050450027200000005044002100000245b0000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000024570000c13d0000001f05500190000024690000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002c520000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000400030008c00002bea0000413d0000000202000039000000000202041a00000be302200197000000010020008c000021260000613d00002c180000013d0000001f0110003900000c2201100197000000a40110003900000be10010009c00000be101008041000000600110021000000be10070009c000a00000007001d00000be10300004100000000030740190000004003300210000000000131019f00000be10020009c00000be102008041000000c002200210000000000112019f00000000020600192f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000002c610000613d0000000a070000290000001f0130003900000c22021001970000000001720019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c000021260000a13d00002bea0000013d0000000e0000006b000026e10000613d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b00000c2b02000041000000000020043900000be301100197000900000001001d0000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b00002bea0000613d000000400500043d00000064015000390000001202000029000000000021043500000024015000390000000e02000029000000000021043500000c5301000041000000000015043500000004015000390000000f020000290000000000210435000000000100041000000be3041001970000004401500039000000000041043500000000010004140000000902000029000000040020008c000027bb0000c13d0000000003000031000027d00000013d000000400900043d0000252b0000013d0000000002000411000000000021004b000026ca0000c13d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000400200043d000000200320003900000c1d04000041000000000043043500000064032000390000001204000029000000000043043500000be3011001970000004403200039000000000013043500000024012000390000000e0300002900000000003104350000006401000039000000000012043500000c1e0020009c00002be40000213d000000a001200039000000400010043f0000000f010000292f1f2d7f0000040f0000001201000029000028d60000013d00000be10050009c000700000005001d00000be1030000410000000003054019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c13011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000002c7f0000613d0000000b070000290000000a08000029000000090400002900000007050000290000001f0130003900000c22011001970000000009510019000000000019004b0000000001000019000000010100403900000be40090009c00002be40000213d000000010010019000002be40000c13d000000400090043f00000c240030009c00002bea0000213d00000c3701000041000000000a1904360000000401900039000000200200003900000000002104350000000001040433000000240290003900000000001204350000004403900039000000000001004b000025420000613d0000005702700039000000000400001900000000053400190000000006420019000000000606043300000000006504350000002004400039000000000014004b000025380000413d000025420000a13d00000000023100190000000000020435000000000400041400000be302800197000000040020008c000025480000c13d00000000030000310000257e0000013d0000001f0110003900000c22011001970000000001910049000000000131001900000be10010009c00000be101008041000000600110021000000be10090009c00000be10300004100000000030940190000004003300210000000000131019f00000be10040009c00000be104008041000000c003400210000000000131019f000b00000009001d000a0000000a001d2f1f2f150000040f0000000a0a0000290000000b090000290000000003010019000000600330027000000be103300197000000200030008c0000002005000039000000000503401900000005045002720000256b0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000025670000c13d0000001f055001900000257a0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002c700000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000200030008c000021260000813d00002bea0000013d000000400100043d0000276f0000013d000700000006001d00000be100a0009c00080000000a001d00000be10200004100000000020a4019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f0000ffff0090008c000027050000813d00000c13011001c700000000020500190000270a0000013d00000be10010009c00000be101008041000000400110021000000be10030009c00000be1030080410000006003300210000000000113019f00000be10040009c00000be104008041000000c003400210000000000131019f00020000000d001d2f1f2f150000040f000000020d000029000000070c000029000000080b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b00000080030000390000006004000039000025e20000613d00000be40010009c00002be40000213d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00002be40000213d000000010050019000002be40000c13d000000400030043f0000000003140436000000020500036700000005061002720000000506600210000025d40000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b000025d00000c13d0000001f07100190000025e20000613d000000000565034f00000000066300190000000307700210000000000806043300000000087801cf000000000878022f000000000505043b0000010007700089000000000575022f00000000057501cf000000000585019f0000000000560435000000000002004b000025f30000613d0000000002040433000000000002004b00002a0d0000613d00000c240020009c00002bea0000213d0000001f0020008c00002bea0000a13d0000000002030433000000000002004b0000000003000019000000010300c039000000000032004b00002bea0000c13d000000000002004b00002a0d0000c13d000000400200043d000000200320003900000c3204000041000000000043043500000024042000390000000000c40435000000440400003900000000004204350000004404200039000000000004043500000c090020009c00002be40000213d0000008004200039000000400040043f000000000502043300000000040004140000000f02000029000000040020008c00000001020000390000261d0000613d00000be10030009c00000be103008041000000400130021000000be10050009c00000be1050080410000006002500210000000000112019f00000be10040009c00000be104008041000000c002400210000000000121019f0000000f0200002900020000000d001d2f1f2f150000040f000000020d000029000000070c000029000000080b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b00000080030000390000006004000039000026490000613d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00002be40000213d000000010050019000002be40000c13d000000400030043f00000000031404360000000205000367000000050610027200000005066002100000263b0000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b000026370000c13d0000001f07100190000026490000613d000000000565034f00000000066300190000000307700210000000000806043300000000087801cf000000000878022f000000000505043b0000010007700089000000000575022f00000000057501cf000000000585019f0000000000560435000000000002004b00002a0d0000613d000000000e000415000000140ee0008a000000050ee002100000000002040433000000000002004b000026600000613d00000c240020009c00002bea0000213d000000200020008c00002bea0000413d0000000002030433000000000002004b0000000003000019000000010300c039000000000032004b00002bea0000c13d000000000e000415000000130ee0008a000000050ee00210000000000002004b00002a0d0000613d000000400200043d000000440320003900000012040000290000000000430435000000200320003900000c3204000041000000000043043500000024042000390000000000c404350000004404000039000000000042043500000c090020009c00002be40000213d0000008004200039000000400040043f000000000502043300000000040004140000000f02000029000000040020008c00000001020000390000268d0000613d00000be10030009c00000be103008041000000400130021000000be10050009c00000be1050080410000006002500210000000000112019f00000be10040009c00000be104008041000000c002400210000000000121019f0000000f0200002900020000000d001d00010000000e001d2f1f2f150000040f000000010e000029000000020d000029000000070c000029000000080b000029000000010220018f0002000000010355000000600110027000000be10010019d00000be101100197000000000001004b00000080030000390000006004000039000026b90000613d0000001f0310003900000c22033001970000003f0330003900000c2203300197000000400400043d0000000003340019000000000043004b0000000005000019000000010500403900000be40030009c00002be40000213d000000010050019000002be40000c13d000000400030043f0000000003140436000000020500036700000005061002720000000506600210000026ab0000613d0000000007630019000000000805034f0000000009030019000000008a08043c0000000009a90436000000000079004b000026a70000c13d0000001f01100190000026b90000613d000000000565034f00000000066300190000000301100210000000000706043300000000071701cf000000000717022f000000000505043b0000010001100089000000000515022f00000000011501cf000000000171019f0000000000160435000000000002004b00002a0a0000613d0000000002040433000000000002004b000000010100003900002a0b0000613d00000c240020009c00002bea0000213d000000200020008c00002bea0000413d0000000001030433000000000001004b0000000002000019000000010200c039000000000021004b00002a0b0000613d00002bea0000013d000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000400900043d00000c2502000041000000000429043600000be3061001970000000401900039000000000061043500000000010004140000000f02000029000000040020008c000a00000006001d000027df0000c13d00000000030000310000280f0000013d000000400300043d00000c30010000410000000001130436000800000001001d00000004013000390000000f020000290000000000210435000000000100041000000be302100197000900000003001d0000002401300039000a00000002001d000000000021043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000201043b000000000100041400000be302200197000000040020008c000029360000c13d00000000030000310000000a040000290000000909000029000029640000013d00000c50011001c700008009020000390000001203000029000000000405001900000000050000192f1f2f150000040f0000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000000080a00002900000007090000290000271b0000613d000000000601034f00000000070a0019000000006806043c0000000007870436000000000097004b000027170000c13d0000001f055001900000272a0000613d0000000504400210000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002c9d0000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000200030008c00002bea0000413d00000000030a043300002b800000013d00000be10040009c000700000004001d00000be1020000410000000002044019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f0000ffff0030008c000029d70000813d00000c41011001c70000000002050019000029dc0000013d00000be10040009c000900000004001d00000be1030000410000000003044019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000002cca0000613d0000000b060000290000000a0900002900000009040000290000001f0130003900000c22021001970000000001420019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d0000000002000414000000040060008c000027750000c13d000000000300003100000001020000390000278a0000013d00000be10010009c00000be101008041000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f0000ffff0090008c000027800000813d0000000002060019000027850000013d00000be8011001c700008009020000390000001203000029000000000406001900000000050000192f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be103100197000000000003004b00000080040000390000006001000039000027b80000613d00000be40030009c00002be40000213d0000001f0130003900000c22011001970000003f0110003900000c2204100197000000400100043d0000000004410019000000000014004b0000000005000019000000010500403900000be40040009c00002be40000213d000000010050019000002be40000c13d000000400040043f0000000004310436000000020500036700000005063002720000000506600210000027aa0000613d0000000007640019000000000805034f0000000009040019000000008a08043c0000000009a90436000000000079004b000027a60000c13d0000001f03300190000027b80000613d000000000565034f00000000066400190000000303300210000000000706043300000000073701cf000000000737022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000373019f00000000003604350000000100200190000021260000c13d00002c2b0000013d000a00000004001d00000be10050009c000800000005001d00000be1030000410000000003054019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c13011001c72f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000002ce80000613d0000000a0400002900000008050000290000001f0130003900000c22011001970000000005510019000000000015004b0000000001000019000000010100403900000be40050009c00002be40000213d000000010010019000002be40000c13d000000400050043f00000c240030009c0000001201000029000029740000a13d00002bea0000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7000900000009001d000800000004001d2f1f2f1a0000040f000000080a00002900000009090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000027fb0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b000027f70000c13d0000001f055001900000280a0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002d060000613d0000000a060000290000001f0130003900000c2201100197000000000a91001900000000001a004b0000000002000019000000010200403900000be400a0009c00002be40000213d000000010020019000002be40000c13d0000004000a0043f00000c240030009c00002bea0000213d000000200030008c00002bea0000413d000000000709043300000c380200004100000000052a04360000000402a000390000000f0400002900000000004204350000000002000414000000040060008c000900000007001d0000285d0000613d000700000005001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c7000000000206001900080000000a001d2f1f2f1a0000040f000000080a0000290000000003010019000000600330027000000be103300197000000600030008c0000006005000039000000000503401900000005045002720000000504400210000028460000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000028420000c13d0000001f05500190000028540000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002d150000613d0000001f0130003900000be2011001970000000a06000029000000090700002900000007050000290000000002a10019000000000012004b0000000004000019000000010400403900000be40020009c00002be40000213d000000010040019000002be40000c13d000000400020043f000000600030008c00002bea0000413d00000c390020009c00002be40000213d0000006004200039000000400040043f00000000040a043300000be40040009c00002bea0000213d0000000004420436000000000505043300000be40050009c00002bea0000213d00000000005404350000004004a00039000000000504043300000c3a0050009c00002bea0000213d0000004002200039000000000052043500000c6302500167000000000027004b00002bed0000213d000000400a00043d00000c3b0200004100000000082a04360000000402a000390000000f0400002900000000004204350000000002000414000000040060008c000028bc0000613d000800000008001d000700000005001d00000be100a0009c00000be10100004100000000010a4019000000400110021000000be10020009c00000be102008041000000c002200210000000000112019f00000c1c011001c70000000002060019000a0000000a001d2f1f2f1a0000040f0000000a0a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000028a50000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000028a10000c13d0000001f05500190000028b30000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000000080800002900002d240000613d0000001f0130003900000be201100197000000090700002900000007050000290000000002a10019000000000012004b0000000001000019000000010100403900000be40020009c00002be40000213d000000010010019000002be40000c13d000000400020043f000000400030008c00002bea0000413d00000c3c0020009c00002be40000213d0000004001200039000000400010043f00000000010a043300000c3a0010009c00002bea0000213d0000000002120436000000000308043300000c3a0030009c00002bea0000213d00000000047500190000000000320435000000000114004b00002bed0000413d000a00000001001d00000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000400a00043d0000006402a000390000000a0300002900000000003204350000000b0200002900000be3022001970000004403a00039000000000023043500000c3d0200004100000000002a04350000000402a000390000000f03000029000000000032043500000be3021001970000002401a0003900000000002104350000008401a0003900000000000104350000000001000414000000040020008c000028fd0000c13d00000000030000310000292b0000013d00000be100a0009c00000be10300004100000000030a4019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c3e011001c7000b0000000a001d2f1f2f150000040f0000000b0a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000029190000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000029150000c13d0000001f05500190000029270000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002c8e0000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000029d10000013d000000090300002900000be10030009c00000be103008041000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c29011001c72f1f2f1a0000040f00000009090000290000000003010019000000600330027000000be103300197000000200030008c000000200500003900000000050340190000000504500272000000080a000029000029500000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b0000294c0000c13d0000001f055001900000295f0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002d630000613d0000000a040000290000001f0130003900000c22011001970000000005910019000000000015004b0000000001000019000000010100403900000be40050009c00002be40000213d000000010010019000002be40000c13d000000400050043f00000c240030009c00002bea0000213d000000200030008c00002bea0000413d0000000001090433000000840250003900000000001204350000000b0100002900000be301100197000000440250003900000000001204350000002401500039000000000041043500000c3f01000041000000000015043500000004015000390000000f020000290000000000210435000a00000005001d0000006401500039000000000001043500000c18010000410000000000100439000000000100041200000004001004430000002400000443000000000100041400000be10010009c00000be101008041000000c00110021000000c31011001c700008005020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000201043b000000000100041400000be302200197000000040020008c0000299a0000c13d00000000030000310000000a0a000029000029c70000013d0000000a0300002900000be10030009c00000be103008041000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c3e011001c72f1f2f150000040f0000000a0a0000290000000003010019000000600330027000000be103300197000000400030008c0000004005000039000000000503401900000005045002720000000504400210000029b50000613d00000000064a0019000000000701034f00000000080a0019000000007907043c0000000008980436000000000068004b000029b10000c13d0000001f05500190000029c30000613d000000000641034f00000000044a00190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002cac0000613d0000001f0130003900000c22021001970000000001a20019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000400030008c000021260000813d00002bea0000013d00000c57011001c700008009020000390000001203000029000000000405001900000000050000192f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be1033001970000000100200190000000090700002900002cd90000613d0000000b0600002900000007040000290000001f0130003900000c22021001970000000001420019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d00000be3016001970000000002000410000000000021004b000021260000613d000000400200043d000000200320003900000c1a040000410000000000430435000000440320003900000012040000290000000000430435000000240320003900000000001304350000004401000039000000000012043500000c090020009c00002be40000213d0000008001200039000000400010043f00000be3017001972f1f2d7f0000040f000021260000013d00000000010000190000000502e00270000000000201001f000000000100041500000000011d004900000000010000020000000601000029000000ff0010019000002a290000613d000000090100002900000be30210019700000c190020009c000600000002001d00002a470000c13d00000c2601000041000000000010043900000000010004100000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000200000001001d000000070c00002900002ad50000013d000000400900043d000000440190003900000012020000290000000000210435000000030100002900000c3301100197000000040200002900000c340020019800000c35020000410000000002006019000000000112019f0000002402900039000000000012043500000c3601000041000000000319043600000c3301b00197000000050200002900000c340020019800000c35020000410000000002006019000000000112019f000000040290003900000000001204350000006401900039000000000001043500000000010004140000000400c0008c00002a530000c13d000000000300003100002a830000013d000000400900043d00000c25010000410000000004190436000000000100041000000be301100197000000040390003900000000001304350000000001000414000000040020008c00002a940000c13d000000000300003100002ac40000013d00000be10090009c00000be1020000410000000002094019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c13011001c700000000020c0019000800000009001d000700000003001d2f1f2f150000040f000000070a00002900000008090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200002a700000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00002a6c0000c13d0000001f0550019000002a7f0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002cf70000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000200030008c00002bea0000413d000000000309043300002b800000013d00000be10090009c00000be1030000410000000003094019000000400330021000000be10010009c00000be101008041000000c001100210000000000131019f00000c1c011001c7000200000009001d000100000004001d2f1f2f1a0000040f000000010a00002900000002090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200002ab00000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00002aac0000c13d0000001f0550019000002abf0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f00020000000103550000000100200190000000070c00002900002d330000613d0000001f0130003900000c22021001970000000001920019000000000021004b0000000002000019000000010200403900000be40010009c00002be40000213d000000010020019000002be40000c13d000000400010043f00000c240030009c00002bea0000213d000000200030008c00002bea0000413d0000000001090433000200000001001d00000c2b0100004100000000001004390000000400c00443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b000000000001004b0000000803000029000000070400002900002bea0000613d000000400500043d000000440150003900000012020000290000000000210435000000030100002900000c3301100197000000040200002900000c340020019800000c35020000410000000002006019000000000112019f0000002402500039000000000012043500000c3601000041000000000015043500000c3301300197000000050200002900000c340020019800000c35020000410000000002006019000000000112019f00000004025000390000000000120435000000640150003900000000000104350000000001000414000000040040008c00002b040000c13d000000000300003100002b180000013d00000be10050009c000800000005001d00000be1020000410000000002054019000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f00000c13011001c700000000020400192f1f2f150000040f0000000003010019000000600330027000000be10030019d00000be1033001970002000000010355000000010020019000002cbb0000613d00000008050000290000001f0130003900000c22011001970000000009510019000000000019004b0000000002000019000000010200403900000be40090009c00002be40000213d000000010020019000002be40000c13d000000400090043f00000c240030009c00002bea0000213d000000060200002900000c190020009c00002b370000c13d00000c2601000041000000000010043900000000010004100000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c70000800a020000392f1f2f1a0000040f000000010020019000002bec0000613d000000000101043b00002b7e0000013d00000c25020000410000000005290436000000000200041000000be3022001970000000404900039000000000024043500000006020000290000000004000414000000040020008c00002b720000613d00000be10090009c00000be1010000410000000001094019000000400110021000000be10040009c00000be104008041000000c003400210000000000113019f00000c1c011001c7000800000009001d000700000005001d2f1f2f1a0000040f000000070a00002900000008090000290000000003010019000000600330027000000be103300197000000200030008c00000020050000390000000005034019000000050450027200002b5d0000613d000000000601034f0000000007090019000000006806043c00000000078704360000000000a7004b00002b590000c13d0000001f0550019000002b6c0000613d0000000504400210000000000641034f00000000044900190000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000000003001f0002000000010355000000010020019000002d420000613d0000001f0130003900000be2011001970000000002910019000000000012004b0000000001000019000000010100403900000be40020009c00002be40000213d000000010010019000002be40000c13d000000400020043f000000200030008c00002bea0000413d0000000001090433000000020310006c00002bed0000413d0000000b0100002900000be3041001970000000001000410000000000014004b000021230000613d000000400200043d000000090100002900000be30110019700000c190010009c00002b910000c13d00000000010004140000000b04000029000000040040008c00002ba00000c13d0000000003000031000000010200003900002bb40000013d000000200520003900000c1a06000041000000000065043500000044052000390000000000350435000000240320003900000000004304350000004403000039000000000032043500000c090020009c00002be40000213d0000008003200039000000400030043f2f1f2d7f0000040f000021230000013d00000be10020009c00000be102008041000000400220021000000be10010009c00000be101008041000000c001100210000000000121019f000000000003004b00002bae0000613d00000be8011001c700008009020000390000000b04000029000000000500001900002baf0000013d0000000b020000292f1f2f150000040f0002000000010355000000600110027000000be10010019d00000be103100197000000000003004b00000080040000390000006001000039000021210000613d00000be40030009c00002be40000213d0000001f0130003900000c22011001970000003f0110003900000c2204100197000000400100043d0000000004410019000000000014004b0000000005000019000000010500403900000be40040009c00002be40000213d000000010050019000002be40000c13d000000400040043f000000000431043600000002050003670000000506300272000000050660021000002bd40000613d0000000007640019000000000805034f0000000009040019000000008a08043c0000000009a90436000000000079004b00002bd00000c13d0000001f03300190000021210000613d000000000565034f00000000066400190000000303300210000000000706043300000000073701cf000000000737022f000000000505043b0000010003300089000000000535022f00000000033501cf000000000373019f0000000000360435000021210000013d000000000001042d00000c1b0100004100000000001004350000004101000039000000040010043f00000c1c0100004100002f2100010430000000000100001900002f2100010430000000000001042f00000c1b0100004100000000001004350000001101000039000000040010043f00000c1c0100004100002f2100010430000000400200043d001200000002001d00000c0401000041000000000012043500000004012000392f1f2d720000040f0000001202000029000000000121004900000be10010009c00000be101008041000000600110021000000be10020009c00000be1020080410000004002200210000000000121019f00002f210001043000000c0401000041000000000019043500000020010000390000000000140435000000440190003900000c4e02000041000000000021043500000024019000390000001302000039000000000021043500000be10090009c00000be109008041000000400190021000000c20011001c700002f210001043000000c1b0100004100000000001004350000001201000039000000040010043f00000c1c0100004100002f2100010430000000640210003900000c46030000410000000000320435000000440210003900000c4703000041000000000032043500000024021000390000002403000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c13011001c700002f210001043000000be10040009c00000be1040080410000004002400210000000000101043300000be10010009c00000be1010080410000006001100210000000000121019f00002f2100010430000000400200043d0000001f0430018f000000050530027200002c400000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c3c0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c4f0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c4b0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c5e0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c5a0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c6d0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c690000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c7c0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c780000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c8b0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c870000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002c9a0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002c960000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f0000000505300272000000050550021000002ca90000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002ca50000c13d000000000004004b00002d5d0000613d00002d510000013d000000400200043d0000001f0430018f0000000505300272000000050550021000002cb80000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002cb40000c13d000000000004004b00002d5d0000613d00002d510000013d000000400200043d0000001f0430018f000000050530027200002cc70000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002cc30000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f0000000505300272000000050550021000002cd60000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002cd20000c13d000000000004004b00002d5d0000613d00002d510000013d000000400200043d0000001f0430018f0000000505300272000000050550021000002ce50000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002ce10000c13d000000000004004b00002d5d0000613d00002d510000013d000000400200043d0000001f0430018f0000000505300272000000050550021000002cf40000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002cf00000c13d000000000004004b00002d5d0000613d00002d510000013d000000400200043d0000001f0430018f000000050530027200002d030000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002cff0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002d120000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d0e0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002d210000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d1d0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002d300000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d2c0000c13d000000000004004b00002d5d0000613d00002d500000013d000000400200043d0000001f0430018f000000050530027200002d3f0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d3b0000c13d000000000004004b00002d500000c13d00002d5d0000013d000000400200043d0000001f0430018f000000050530027200002d4e0000613d00000005065002100000000006620019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d4a0000c13d000000000004004b00002d5d0000613d0000000505500210000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f0000000000150435000000600130021000000be10020009c00000be1020080410000004002200210000000000112019f00002f2100010430000000400200043d0000001f0430018f0000000505300272000000050550021000002d6f0000613d0000000006520019000000000701034f0000000008020019000000007907043c0000000008980436000000000068004b00002d6b0000c13d000000000004004b00002d5d0000613d00002d510000013d000000600210003900000c66030000410000000000320435000000400210003900000c67030000410000000000320435000000200210003900000021030000390000000000320435000000200200003900000000002104350000008001100039000000000001042d0004000000000002000000400400043d00000c680040009c00002e480000813d00000be3051001970000004001400039000000400010043f000000200140003900000c550300004100000000003104350000002001000039000000000014043500000000230204340000000001000414000000040050008c00002dbd0000c13d000000000100003200002dfb0000613d00000be40010009c00002e480000213d0000001f0210003900000c22022001970000003f0220003900000c2202200197000000400a00043d00000000022a00190000000000a2004b0000000003000019000000010300403900000be40020009c00002e480000213d000000010030019000002e480000c13d000000400020043f0000001f0210018f00000000031a043600000002040003670000000501100272000000050110021000002dae0000613d0000000005130019000000000604034f0000000007030019000000006806043c0000000007870436000000000057004b00002daa0000c13d000000000002004b00002dfc0000613d000000000414034f00000000011300190000000302200210000000000301043300000000032301cf000000000323022f000000000404043b0000010002200089000000000424022f00000000022401cf000000000232019f000000000021043500002dfc0000013d000200000004001d00000be10030009c00000be103008041000000600330021000000be10020009c00000be1020080410000004002200210000000000223019f00000be10010009c00000be101008041000000c001100210000000000112019f000100000005001d00000000020500192f1f2f150000040f00020000000103550000000003010019000000600330027000000be10030019d00000be10530019800002e130000613d0000001f0350003900000be2033001970000003f0330003900000c5603300197000000400a00043d00000000033a00190000000000a3004b0000000004000019000000010400403900000be40030009c00002e480000213d000000010040019000002e480000c13d000000400030043f0000001f0450018f00000000035a04360000000505500272000000050550021000002dec0000613d0000000006530019000000000701034f0000000008030019000000007907043c0000000008980436000000000068004b00002de80000c13d000000000004004b00002e150000613d000000000151034f00000000055300190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f000000000015043500002e150000013d000000600a0000390000000002000415000000040220008a000000050220021000000000010a0433000000000001004b00002e1d0000c13d00020000000a001d00000c2b01000041000000000010043900000004010000390000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002e7a0000613d0000000002000415000000040220008a00002e300000013d000000600a000039000000800300003900000000010a0433000000010020019000002e640000613d0000000002000415000000030220008a0000000502200210000000000001004b00002e200000613d000000050220027000000000020a001f00002e3a0000013d00020000000a001d00000c2b01000041000000000010043900000001010000290000000400100443000000000100041400000be10010009c00000be101008041000000c00110021000000c27011001c700008002020000392f1f2f1a0000040f000000010020019000002e7a0000613d0000000002000415000000030220008a0000000502200210000000000101043b000000000001004b000000020a00002900002e7b0000613d00000000010a0433000000050220027000000000020a001f000000000001004b00002e470000613d00000c240010009c00002e4e0000213d0000001f0010008c00002e4e0000a13d0000002001a000390000000001010433000000000001004b0000000002000019000000010200c039000000000021004b00002e4e0000c13d000000000001004b00002e500000613d000000000001042d00000c1b0100004100000000001004350000004101000039000000040010043f00000c1c0100004100002f2100010430000000000100001900002f2100010430000000400100043d000000640210003900000c58030000410000000000320435000000440210003900000c5903000041000000000032043500000024021000390000002a03000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c13011001c700002f2100010430000000000001004b00002e8c0000c13d000000400300043d000100000003001d00000c04010000410000000000130435000000040130003900000020020000390000000000210435000000240230003900000002010000292f1f2e940000040f0000000102000029000000000121004900000be10010009c00000be10100804100000be10020009c00000be10200804100000060011002100000004002200210000000000121019f00002f2100010430000000000001042f000000400100043d000000440210003900000c5a03000041000000000032043500000024021000390000001d03000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c20011001c700002f210001043000000be10030009c00000be103008041000000400230021000000be10010009c00000be1010080410000006001100210000000000121019f00002f210001043000000000430104340000000001320436000000000003004b00002ea30000613d000000000200001900000000052100190000000006240019000000000606043300000000006504350000002002200039000000000032004b00002e990000413d00002ea30000a13d000000000231001900000000000204350000001f0230003900000c22022001970000000001210019000000000001042d0000000206000039000000000706041a00000be3057001970000000008000411000000000058004b00002ed70000c13d000000000001004b0000000008000019000000010800603900000c240010009c0000000009000019000000010900203900000000008901a0000000000201601900000c240020009c00002ee10000213d000000000002004b00002ee10000613d00000be70170019700000001011001bf000000000016041b00000c240040009c00002ed50000213d0000001f0040008c00002ed50000a13d0000000101300367000000000101043b00000be30010009c00002ed50000213d000000400300043d000000200430003900000c1a06000041000000000064043500000044043000390000000000240435000000240230003900000000005204350000004402000039000000000023043500000c6b0030009c00002ef50000813d0000008002300039000000400020043f00000000020300192f1f2d7f0000040f000000000001042d000000000100001900002f2100010430000000400100043d000000640210003900000c69030000410000000000320435000000440210003900000c6a03000041000000000032043500000024021000390000003e0300003900002eea0000013d000000400100043d000000640210003900000c6c030000410000000000320435000000440210003900000c6a03000041000000000032043500000024021000390000003903000039000000000032043500000c0402000041000000000021043500000004021000390000002003000039000000000032043500000be10010009c00000be101008041000000400110021000000c13011001c700002f210001043000000c1b0100004100000000001004350000004101000039000000040010043f00000c1c0100004100002f2100010430000000000001042f00000000050100190000000000200439000000040100003900000005024002700000000002020031000000000121043a0000002004400039000000000031004b00002eff0000413d00000be10030009c00000be1030080410000006001300210000000000200041400000be10020009c00000be102008041000000c002200210000000000112019f00000c6d011001c700000000020500192f1f2f1a0000040f000000010020019000002f140000613d000000000101043b000000000001042d000000000001042f00002f18002104210000000102000039000000000001042d0000000002000019000000000001042d00002f1d002104230000000102000039000000000001042d0000000002000019000000000001042d00002f1f0000043200002f200001042e00002f2100010430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000064f000000000000000000000000000000000000000000000000000000000000067d00000000000000000000000000000000000000000000000000000000000012b6000000000000000000000000000000000000000000000000000000000000065700000000000000000000000000000000000000000000000000000000000010d400000000000000000000000000000000000000000000000000000000000012d200000000000000000000000000000000000000000000000000000000000012fa000000000000000000000000000000000000000000000000000000000000130800000000000000000000000000000000000000000000000000000000000013190000000000000000000000000000000000000000000000000000000000001347000000000000000000000000000000000000000000000000000000000000136c00000000000000000000000000000000000000000000000000000000000006b2000000000000000000000000000000000000000000000000000000000000074000000000000000000000000000000000000000000000000000000000000008ea0000000000000000000000000000000000000000000000000000000000000854000000000000000000000000000000000000000000000000000000000000081000000000000000000000000000000000000000000000000000000000000009b4000000000000000000000000000000000000000000000000000000000000213e000000000000000000000000000000000000000000000000000000000000216200000000000000000000000000000000000000000000000000000000000021c300000000000000000000000000000000000000000000000000000000000022070000000000000000000000000000000000000000000000000000000000002233000000000000000000000000000000000000000000000000000000000000227700000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000ffffffffffffffff80000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0ffffffffffffffffffffffff000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000000000010200000000000000000000000000000000000040000000000000000000000000000000020000000000000000000000000000008000000100000000000000000000000000000000000000000000000000000000000000000000000000715018a5000000000000000000000000000000000000000000000000000000009a1f340500000000000000000000000000000000000000000000000000000000f2fde38a00000000000000000000000000000000000000000000000000000000f2fde38b00000000000000000000000000000000000000000000000000000000fa461e33000000000000000000000000000000000000000000000000000000009a1f340600000000000000000000000000000000000000000000000000000000cd0fb7a7000000000000000000000000000000000000000000000000000000008da5cb5a000000000000000000000000000000000000000000000000000000008da5cb5b0000000000000000000000000000000000000000000000000000000093b3774c00000000000000000000000000000000000000000000000000000000715018a6000000000000000000000000000000000000000000000000000000008456cb59000000000000000000000000000000000000000000000000000000002c8958f5000000000000000000000000000000000000000000000000000000006678ec1e000000000000000000000000000000000000000000000000000000006678ec1f000000000000000000000000000000000000000000000000000000006b2ace87000000000000000000000000000000000000000000000000000000002c8958f60000000000000000000000000000000000000000000000000000000047f8bd4100000000000000000000000000000000000000000000000000000000046f7da20000000000000000000000000000000000000000000000000000000023a69e75000000000000000000000000000000000000000000000000000000002646478b020000000000000000000000000000000000000000000080000000000000000008c379a0000000000000000000000000000000000000000000000000000000004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000840000008000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff7f0000000000000000000000ff0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000ff0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000ffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000200000008000000000000000002070726976696c6567656420757365720000000000000000000000000000000052503a2063616c6c6572206973206e6f7420746865206f776e6572206f7220610000000000000000000000000000000000000084000000000000000000000000ffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff00000000000000000000020000000000000000000000000000000000000000004f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65720000000000000000000000000000000000000064000000800000000000000000310ab089e4439a4c15d089f94afb7896ff553aecb10793d0ab882de59d99a32e000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeea9059cbb000000000000000000000000000000000000000000000000000000004e487b7100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000000000000000000000023b872dd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff5f526f75746550726f636573736f72206973206c6f636b656400000000000000000000000000000000000000000000000000000064000000000000000000000000526f75746550726f636573736f72206973207061757365640000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff70a08231000000000000000000000000000000000000000000000000000000009cc7f708afc65944829bd487b90b72536b1951864fbfc14e125fc972a6507f390200000200000000000000000000000000000024000000000000000000000000dd62ed3e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000440000000000000000000000007ecebe00000000000000000000000000000000000000000000000000000000001806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b83d505accf0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e400000000000000000000000064000000000000000000000000000000000000000000000000000000000000005361666545524332303a207065726d697420646964206e6f7420737563636565f7888aec000000000000000000000000000000000000000000000000000000000200000200000000000000000000000000000044000000000000000000000000095ea7b300000000000000000000000000000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffff0000000000000000000000000000000080000000000000000000000000000000ffffffffffffffffffffffffffffffff800000000000000000000000000000003df0212400000000000000000000000000000000000000000000000000000000627dd56a00000000000000000000000000000000000000000000000000000000df23b45b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff9f00000000000000000000000000000000ffffffffffffffffffffffffffffffff4ffe34db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffbf02b9446c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a400000000000000000000000097da6d3000000000000000000000000000000000000000000000000000000000d0e30db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000002e1a7d4d00000000000000000000000000000000000000000000000000000000128acb080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000276a4000000000000000000000000fffd8963efd1fc6a506488495d951d5263988d256374656400000000000000000000000000000000000000000000000000000000526f75746550726f636573736f722e73776170556e6956333a20756e657870650902f1ac00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000ffffff00000000000000000000000000000000000000000000000000000000000f4240000000000000000000000000000000000000000000000000ffffffffffffffdf022c0d9f0000000000000000000000000000000000000000000000000000000057726f6e6720706f6f6c20726573657276657300000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffff800200000000000000000000000000000000000084000000000000000000000000000000000000000000000000000000000000000000000001ffffffffffffffe0000000000000000000000000000000000000000000000003ffffffffffffffe0f18d03cc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff1f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656400000000000000000000000000000000000000000000000000000003ffffffe002000000000000000000000000000000000000040000000000000000000000006f742073756363656564000000000000000000000000000000000000000000005361666545524332303a204552433230206f7065726174696f6e20646964206e416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006c616e63652076696f6c6174696f6e0000000000000000000000000000000000526f75746550726f636573736f723a204d696e696d616c20696e70757420626102000000000000000000000000000000000000800000000000000000000000002db5ddd0b42bdbca0d69ea16f234a870a485854ae0d91f16643d6f317d8b8994963b34a500000000000000000000000000000000000000000000000000000000636f646500000000000000000000000000000000000000000000000000000000526f75746550726f636573736f723a20556e6b6e6f776e20636f6d6d616e6420ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5000000000000000000000000000000000000000000000000ffffffffffffff606500000000000000000000000000000000000000000000000000000000000000526f75746550726f636573736f723a20556e6b6e6f776e20706f6f6c20747970000000000000000000000000000000000000000000000000ffffffffffffffc06261636b3a2063616c6c2066726f6d20756e6b6e6f776e20736f757263650000526f75746550726f636573736f722e756e697377617056335377617043616c6c000000000000000000000000000000000000000000000000ffffffffffffff806261636b3a206e6f7420706f73697469766520616d6f756e7400000000000000020000020000000000000000000000000000000000000000000000000000000009c586ba00d81b10ac07f3b1dc836f7934cd92433c250f5f778f701c6a8db8f8" + ] +} \ No newline at end of file diff --git a/protocols/route-processor/deployments/zklink-nova/solcInputs/5e48b44fb0b1f9a4a45f36e515a4fccf.json b/protocols/route-processor/deployments/zklink-nova/solcInputs/5e48b44fb0b1f9a4a45f36e515a4fccf.json new file mode 100644 index 0000000000..8037e1d750 --- /dev/null +++ b/protocols/route-processor/deployments/zklink-nova/solcInputs/5e48b44fb0b1f9a4a45f36e515a4fccf.json @@ -0,0 +1,76 @@ +{ + "language": "Solidity", + "sources": { + "@openzeppelin/contracts/access/Ownable.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n address private _owner;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the deployer as the initial owner.\n */\n constructor() {\n _transferOwnership(_msgSender());\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions anymore. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby removing any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n _transferOwnership(address(0));\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n _transferOwnership(newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual {\n address oldOwner = _owner;\n _owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n" + }, + "@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n */\ninterface IERC20Permit {\n /**\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n * given ``owner``'s signed approval.\n *\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n * ordering also apply here.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `deadline` must be a timestamp in the future.\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n * over the EIP712-formatted function arguments.\n * - the signature must use ``owner``'s current nonce (see {nonces}).\n *\n * For more information on the signature format, see the\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n * section].\n */\n function permit(\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n /**\n * @dev Returns the current nonce for `owner`. This value must be\n * included whenever a signature is generated for {permit}.\n *\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\n * prevents a signature from being used multiple times.\n */\n function nonces(address owner) external view returns (uint256);\n\n /**\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n */\n // solhint-disable-next-line func-name-mixedcase\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n" + }, + "@openzeppelin/contracts/token/ERC20/IERC20.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the amount of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the amount of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 amount) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 amount) external returns (bool);\n\n /**\n * @dev Moves `amount` tokens from `from` to `to` using the\n * allowance mechanism. `amount` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) external returns (bool);\n}\n" + }, + "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\nimport \"../extensions/draft-IERC20Permit.sol\";\nimport \"../../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n using Address for address;\n\n function safeTransfer(\n IERC20 token,\n address to,\n uint256 value\n ) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n }\n\n function safeTransferFrom(\n IERC20 token,\n address from,\n address to,\n uint256 value\n ) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n }\n\n /**\n * @dev Deprecated. This function has issues similar to the ones found in\n * {IERC20-approve}, and its usage is discouraged.\n *\n * Whenever possible, use {safeIncreaseAllowance} and\n * {safeDecreaseAllowance} instead.\n */\n function safeApprove(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n // safeApprove should only be called when setting an initial allowance,\n // or when resetting it to zero. To increase and decrease it, use\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n require(\n (value == 0) || (token.allowance(address(this), spender) == 0),\n \"SafeERC20: approve from non-zero to non-zero allowance\"\n );\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n }\n\n function safeIncreaseAllowance(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n uint256 newAllowance = token.allowance(address(this), spender) + value;\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\n }\n\n function safeDecreaseAllowance(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n unchecked {\n uint256 oldAllowance = token.allowance(address(this), spender);\n require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n uint256 newAllowance = oldAllowance - value;\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\n }\n }\n\n function safePermit(\n IERC20Permit token,\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n uint256 nonceBefore = token.nonces(owner);\n token.permit(owner, spender, value, deadline, v, r, s);\n uint256 nonceAfter = token.nonces(owner);\n require(nonceAfter == nonceBefore + 1, \"SafeERC20: permit did not succeed\");\n }\n\n /**\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n * on the return value: the return value is optional (but if data is returned, it must not be false).\n * @param token The token targeted by the call.\n * @param data The call data (encoded using abi.encode or one of its variants).\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n // the target address contains contract code and also asserts for success in the low-level call.\n\n bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n if (returndata.length > 0) {\n // Return data is optional\n require(abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n }\n }\n}\n" + }, + "@openzeppelin/contracts/utils/Address.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n" + }, + "@openzeppelin/contracts/utils/Context.sol": { + "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n}\n" + }, + "contracts/Approve.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\n\nlibrary Approve {\n\n /**\n * @dev ERC20 approve that correct works with token.approve which returns bool or nothing (USDT for example)\n * @param token The token targeted by the call.\n * @param spender token spender\n * @param amount token amount\n */\n function approveStable(IERC20 token, address spender, uint256 amount) internal returns (bool) {\n (bool success, bytes memory data) = address(token).call(\n abi.encodeWithSelector(token.approve.selector, spender, amount)\n );\n return success && (data.length == 0 || abi.decode(data, (bool)));\n }\n\n /**\n * @dev ERC20 approve that correct works with token.approve which reverts if amount and \n * current allowance are not zero simultaniously (USDT for example). \n * In second case it tries to set allowance to 0, and then back to amount.\n * @param token The token targeted by the call.\n * @param spender token spender\n * @param amount token amount\n */\n function approveSafe(IERC20 token, address spender, uint256 amount) internal returns (bool) {\n return approveStable(token, spender, amount) \n || (approveStable(token, spender, 0) && approveStable(token, spender, amount));\n }\n}\n" + }, + "contracts/InputStream.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\n/** @notice Simple read stream */\nlibrary InputStream {\n\n /** @notice Creates stream from data\n * @param data data\n */\n function createStream(bytes memory data) internal pure returns (uint256 stream) {\n assembly {\n stream := mload(0x40)\n mstore(0x40, add(stream, 64))\n mstore(stream, data)\n let length := mload(data)\n mstore(add(stream, 32), add(data, length))\n }\n }\n\n /** @notice Checks if stream is not empty\n * @param stream stream\n */\n function isNotEmpty(uint256 stream) internal pure returns (bool) {\n uint256 pos;\n uint256 finish;\n assembly {\n pos := mload(stream)\n finish := mload(add(stream, 32))\n }\n return pos < finish;\n }\n\n /** @notice Reads uint8 from the stream\n * @param stream stream\n */\n function readUint8(uint256 stream) internal pure returns (uint8 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 1)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads uint16 from the stream\n * @param stream stream\n */\n function readUint16(uint256 stream) internal pure returns (uint16 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 2)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads uint24 from the stream\n * @param stream stream\n */\n function readUint24(uint256 stream) internal pure returns (uint24 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 3)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads uint32 from the stream\n * @param stream stream\n */\n function readUint32(uint256 stream) internal pure returns (uint32 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 4)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads uint256 from the stream\n * @param stream stream\n */\n function readUint(uint256 stream) internal pure returns (uint256 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 32)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads bytes32 from the stream\n * @param stream stream\n */\n function readBytes32(uint256 stream) internal pure returns (bytes32 res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 32)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads address from the stream\n * @param stream stream\n */\n function readAddress(uint256 stream) internal pure returns (address res) {\n assembly {\n let pos := mload(stream)\n pos := add(pos, 20)\n res := mload(pos)\n mstore(stream, pos)\n }\n }\n\n /** @notice Reads bytes from the stream\n * @param stream stream\n */\n function readBytes(uint256 stream) internal pure returns (bytes memory res) {\n assembly {\n let pos := mload(stream)\n res := add(pos, 32)\n let length := mload(res)\n mstore(stream, add(res, length))\n }\n }\n}\n" + }, + "contracts/RouteProcessor5.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '../interfaces/IUniswapV2Pair.sol';\nimport '../interfaces/IUniswapV3Pool.sol';\nimport '../interfaces/ITridentCLPool.sol';\nimport '../interfaces/IBentoBoxMinimal.sol';\nimport '../interfaces/IPool.sol';\nimport '../interfaces/IWETH.sol';\nimport '../interfaces/ICurve.sol';\nimport './InputStream.sol';\nimport './Utils.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\naddress constant IMPOSSIBLE_POOL_ADDRESS = 0x0000000000000000000000000000000000000001;\naddress constant INTERNAL_INPUT_SOURCE = 0x0000000000000000000000000000000000000000;\n\nuint8 constant LOCKED = 2;\nuint8 constant NOT_LOCKED = 1;\nuint8 constant PAUSED = 2;\nuint8 constant NOT_PAUSED = 1;\n\n/// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\nuint160 constant MIN_SQRT_RATIO = 4295128739;\n/// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\nuint160 constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;\n\n/// @title A route processor for the Sushi Aggregator\n/// @author Ilya Lyalin\ncontract RouteProcessor5 is Ownable {\n using SafeERC20 for IERC20;\n using Utils for IERC20;\n using Utils for address;\n using SafeERC20 for IERC20Permit;\n using InputStream for uint256;\n\n event Route(\n address indexed from, \n address to, \n address indexed tokenIn, \n address indexed tokenOut, \n uint256 amountIn, \n uint256 amountOutMin,\n uint256 amountOut\n );\n\n error MinimalOutputBalanceViolation(uint256 amountOut);\n\n IBentoBoxMinimal public immutable bentoBox;\n mapping (address => bool) public priviledgedUsers;\n address private lastCalledPool;\n\n uint8 private unlocked = NOT_LOCKED;\n uint8 private paused = NOT_PAUSED;\n modifier lock() {\n require(unlocked == NOT_LOCKED, 'RouteProcessor is locked');\n require(paused == NOT_PAUSED, 'RouteProcessor is paused');\n unlocked = LOCKED;\n _;\n unlocked = NOT_LOCKED;\n }\n\n modifier onlyOwnerOrPriviledgedUser() {\n require(msg.sender == owner() || priviledgedUsers[msg.sender], \"RP: caller is not the owner or a privileged user\");\n _;\n }\n\n constructor(address _bentoBox, address[] memory priviledgedUserList) {\n bentoBox = IBentoBoxMinimal(_bentoBox);\n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n\n for (uint256 i = 0; i < priviledgedUserList.length; i++) {\n priviledgedUsers[priviledgedUserList[i]] = true;\n }\n }\n\n function setPriviledge(address user, bool priviledge) external onlyOwner {\n priviledgedUsers[user] = priviledge;\n }\n\n function pause() external onlyOwnerOrPriviledgedUser {\n paused = PAUSED;\n }\n\n function resume() external onlyOwnerOrPriviledgedUser {\n paused = NOT_PAUSED;\n }\n\n /// @notice For native unwrapping\n receive() external payable {}\n\n /// @notice Processes the route generated off-chain. Has a lock\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @param to Where to transfer output tokens\n /// @param route Route to process\n /// @return amountOut Actual amount of the output token\n function processRoute(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function transferValueAndprocessRoute(\n address transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n transferValueTo.transferNative(amountValueTransfer);\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n\n /// @notice Transfers some value of input tokens to and then processes the route\n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteWithTransferValueInput(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n tokenIn.transferAnyFromSender(transferValueTo, amountValueTransfer);\n return processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, to, route);\n }\n \n /// @notice processes the route and sends amount of output token to \n /// @param transferValueTo Address where the value should be transferred\n /// @param amountValueTransfer How much value to transfer\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteWithTransferValueOutput(\n address payable transferValueTo,\n uint256 amountValueTransfer,\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) external payable lock returns (uint256 amountOut) {\n amountOut = processRouteInternal(tokenIn, amountIn, tokenOut, amountOutMin, address(this), route);\n tokenOut.transferAny(transferValueTo, amountValueTransfer);\n tokenOut.transferAny(to, amountOut - amountValueTransfer);\n }\n\n /// @notice Processes the route generated off-chain\n /// @param tokenIn Address of the input token\n /// @param amountIn Amount of the input token\n /// @param tokenOut Address of the output token\n /// @param amountOutMin Minimum amount of the output token\n /// @return amountOut Actual amount of the output token\n function processRouteInternal(\n address tokenIn,\n uint256 amountIn,\n address tokenOut,\n uint256 amountOutMin,\n address to,\n bytes memory route\n ) private returns (uint256 amountOut) {\n uint256 balanceInInitial = tokenIn.anyBalanceOf(msg.sender);\n uint256 balanceOutInitial = tokenOut.anyBalanceOf(to);\n\n uint256 realAmountIn = amountIn;\n {\n uint256 step = 0;\n uint256 stream = InputStream.createStream(route);\n while (stream.isNotEmpty()) {\n uint8 commandCode = stream.readUint8();\n if (commandCode == 1) {\n uint256 usedAmount = processMyERC20(stream); \n if (step == 0) realAmountIn = usedAmount;\n } \n else if (commandCode == 2) processUserERC20(stream, amountIn);\n else if (commandCode == 3) {\n uint256 usedAmount = processNative(stream); \n if (step == 0) realAmountIn = usedAmount;\n } \n else if (commandCode == 4) processOnePool(stream);\n else if (commandCode == 5) processInsideBento(stream);\n else if (commandCode == 6) applyPermit(tokenIn, stream);\n else revert('RouteProcessor: Unknown command code');\n ++step;\n }\n }\n\n uint256 balanceInFinal = tokenIn.anyBalanceOf(msg.sender);\n if (tokenIn != Utils.NATIVE_ADDRESS)\n require(balanceInFinal + amountIn + 10 >= balanceInInitial, 'RouteProcessor: Minimal input balance violation');\n \n uint256 balanceOutFinal = tokenOut.anyBalanceOf(to);\n if (balanceOutFinal < balanceOutInitial + amountOutMin)\n revert MinimalOutputBalanceViolation(balanceOutFinal - balanceOutInitial);\n\n amountOut = balanceOutFinal - balanceOutInitial;\n\n emit Route(msg.sender, to, tokenIn, tokenOut, realAmountIn, amountOutMin, amountOut);\n }\n\n /// @notice Applies ERC-2612 permit\n /// @param tokenIn permitted token\n /// @param stream Streamed program\n function applyPermit(address tokenIn, uint256 stream) private {\n uint256 value = stream.readUint();\n uint256 deadline = stream.readUint();\n uint8 v = stream.readUint8();\n bytes32 r = stream.readBytes32();\n bytes32 s = stream.readBytes32();\n if (IERC20(tokenIn).allowance(msg.sender, address(this)) < value) {\n IERC20Permit(tokenIn).safePermit(msg.sender, address(this), value, deadline, v, r, s);\n }\n }\n\n /// @notice Processes native coin: call swap for all pools that swap from native coin\n /// @param stream Streamed program\n function processNative(uint256 stream) private returns (uint256 amountTotal) {\n amountTotal = address(this).balance;\n distributeAndSwap(stream, address(this), Utils.NATIVE_ADDRESS, amountTotal);\n }\n\n /// @notice Processes ERC20 token from this contract balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processMyERC20(uint256 stream) private returns (uint256 amountTotal) {\n address token = stream.readAddress();\n amountTotal = IERC20(token).balanceOf(address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n \n /// @notice Processes ERC20 token from msg.sender balance:\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n /// @param amountTotal Amount of tokens to take from msg.sender\n function processUserERC20(uint256 stream, uint256 amountTotal) private {\n address token = stream.readAddress();\n distributeAndSwap(stream, msg.sender, token, amountTotal);\n }\n\n /// @notice Processes ERC20 token for cases when the token has only one output pool\n /// @notice In this case liquidity is already at pool balance. This is an optimization\n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processOnePool(uint256 stream) private {\n address token = stream.readAddress();\n swap(stream, INTERNAL_INPUT_SOURCE, token, 0);\n }\n\n /// @notice Processes Bento tokens \n /// @notice Call swap for all pools that swap from this token\n /// @param stream Streamed program\n function processInsideBento(uint256 stream) private {\n address token = stream.readAddress();\n uint256 amountTotal = bentoBox.balanceOf(token, address(this));\n unchecked {\n if (amountTotal > 0) amountTotal -= 1; // slot undrain protection\n }\n distributeAndSwap(stream, address(this), token, amountTotal);\n }\n\n /// @notice Distributes amountTotal to several pools according to their shares and calls swap for each pool\n /// @param stream Streamed program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountTotal Total amount of tokenIn for swaps \n function distributeAndSwap(uint256 stream, address from, address tokenIn, uint256 amountTotal) private {\n uint8 num = stream.readUint8();\n unchecked {\n for (uint256 i = 0; i < num; ++i) {\n uint16 share = stream.readUint16();\n uint256 amount = (amountTotal * share) / type(uint16).max /*65535*/;\n amountTotal -= amount;\n swap(stream, from, tokenIn, amount);\n }\n }\n }\n\n /// @notice Makes swap\n /// @param stream Streamed program\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swap(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 poolType = stream.readUint8();\n if (poolType == 0) swapUniV2(stream, from, tokenIn, amountIn);\n else if (poolType == 1) swapUniV3(stream, from, tokenIn, amountIn);\n else if (poolType == 2) wrapNative(stream, from, tokenIn, amountIn);\n else if (poolType == 3) bentoBridge(stream, from, tokenIn, amountIn);\n else if (poolType == 4) swapTrident(stream, from, tokenIn, amountIn);\n else if (poolType == 5) swapCurve(stream, from, tokenIn, amountIn);\n else revert('RouteProcessor: Unknown pool type');\n }\n\n /// @notice Wraps/unwraps native token\n /// @param stream [direction & fake, recipient, wrapToken?]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function wrapNative(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 directionAndFake = stream.readUint8();\n address to = stream.readAddress();\n\n if (directionAndFake & 1 == 1) { // wrap native\n address wrapToken = stream.readAddress();\n if (directionAndFake & 2 == 0) IWETH(wrapToken).deposit{value: amountIn}();\n if (to != address(this)) IERC20(wrapToken).safeTransfer(to, amountIn);\n } else { // unwrap native\n if (directionAndFake & 2 == 0) {\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\n IWETH(tokenIn).withdraw(amountIn);\n }\n to.transferNative(amountIn);\n }\n }\n\n /// @notice Bridge/unbridge tokens to/from Bento\n /// @param stream [direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function bentoBridge(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n\n if (direction > 0) { // outside to Bento\n // deposit to arbitrary recipient is possible only from address(bentoBox)\n if (from == address(this)) IERC20(tokenIn).safeTransfer(address(bentoBox), amountIn);\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(bentoBox), amountIn);\n else {\n // tokens already are at address(bentoBox)\n amountIn = IERC20(tokenIn).balanceOf(address(bentoBox)) +\n bentoBox.strategyData(tokenIn).balance -\n bentoBox.totals(tokenIn).elastic;\n }\n bentoBox.deposit(tokenIn, address(bentoBox), to, amountIn, 0);\n } else { // Bento to outside\n if (from != INTERNAL_INPUT_SOURCE) {\n bentoBox.transfer(tokenIn, from, address(this), amountIn);\n } else amountIn = bentoBox.balanceOf(tokenIn, address(this));\n bentoBox.withdraw(tokenIn, address(this), to, 0, amountIn);\n }\n }\n\n /// @notice UniswapV2 pool swap\n /// @param stream [pool, direction, recipient, fee]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV2(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 direction = stream.readUint8();\n address to = stream.readAddress();\n uint24 fee = stream.readUint24(); // pool fee in 1/1_000_000\n\n if (from == address(this)) IERC20(tokenIn).safeTransfer(pool, amountIn);\n else if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, pool, amountIn);\n\n (uint256 r0, uint256 r1, ) = IUniswapV2Pair(pool).getReserves();\n require(r0 > 0 && r1 > 0, 'Wrong pool reserves');\n (uint256 reserveIn, uint256 reserveOut) = direction == 1 ? (r0, r1) : (r1, r0);\n amountIn = IERC20(tokenIn).balanceOf(pool) - reserveIn; // tokens already were transferred\n\n uint256 amountInWithFee = amountIn * (1_000_000 - fee);\n uint256 amountOut = (amountInWithFee * reserveOut) / (reserveIn * 1_000_000 + amountInWithFee);\n (uint256 amount0Out, uint256 amount1Out) = direction == 1 ? (uint256(0), amountOut) : (amountOut, uint256(0));\n IUniswapV2Pair(pool).swap(amount0Out, amount1Out, to, new bytes(0));\n }\n\n /// @notice Trident pool swap\n /// @param stream [pool, swapData]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapTrident(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bytes memory swapData = stream.readBytes();\n\n if (from != INTERNAL_INPUT_SOURCE) {\n bentoBox.transfer(tokenIn, from, pool, amountIn);\n }\n \n IPool(pool).swap(swapData);\n }\n\n /// @notice UniswapV3 pool swap\n /// @param stream [pool, direction, recipient]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapUniV3(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n bool zeroForOne = stream.readUint8() > 0;\n address recipient = stream.readAddress();\n\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), uint256(amountIn));\n\n lastCalledPool = pool;\n IUniswapV3Pool(pool).swap(\n recipient,\n zeroForOne,\n int256(amountIn),\n zeroForOne ? MIN_SQRT_RATIO + 1 : MAX_SQRT_RATIO - 1,\n abi.encode(tokenIn)\n );\n require(lastCalledPool == IMPOSSIBLE_POOL_ADDRESS, 'RouteProcessor.swapUniV3: unexpected'); // Just to be sure\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call\n function uniswapV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) public {\n require(msg.sender == lastCalledPool, 'RouteProcessor.uniswapV3SwapCallback: call from unknown source');\n int256 amount = amount0Delta > 0 ? amount0Delta : amount1Delta;\n require(amount > 0, 'RouteProcessor.uniswapV3SwapCallback: not positive amount');\n \n lastCalledPool = IMPOSSIBLE_POOL_ADDRESS;\n (address tokenIn) = abi.decode(data, (address));\n IERC20(tokenIn).safeTransfer(msg.sender, uint256(amount));\n }\n\n /// @notice Called to `msg.sender` after executing a swap via IAlgebraPool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory.\n /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the IAlgebraPoolActions#swap call\n function algebraSwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\n }\n\n /// @notice Called to `msg.sender` after executing a swap via PancakeV3Pool#swap.\n /// @dev In the implementation you must pay the pool tokens owed for the swap.\n /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.\n /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by\n /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.\n /// @param data Any data passed through by the caller via the PancakeV3Pool#swap call\n function pancakeV3SwapCallback(\n int256 amount0Delta,\n int256 amount1Delta,\n bytes calldata data\n ) external {\n uniswapV3SwapCallback(amount0Delta, amount1Delta, data);\n }\n\n /// @notice Curve pool swap. Legacy pools that don't return amountOut and have native coins are not supported\n /// @param stream [pool, poolType, fromIndex, toIndex, recipient, output token]\n /// @param from Where to take liquidity for swap\n /// @param tokenIn Input token\n /// @param amountIn Amount of tokenIn to take for swap\n function swapCurve(uint256 stream, address from, address tokenIn, uint256 amountIn) private {\n address pool = stream.readAddress();\n uint8 poolType = stream.readUint8();\n int128 fromIndex = int8(stream.readUint8());\n int128 toIndex = int8(stream.readUint8());\n address to = stream.readAddress();\n address tokenOut = stream.readAddress();\n\n uint256 amountOut;\n if (tokenIn == Utils.NATIVE_ADDRESS) {\n amountOut = ICurve(pool).exchange{value: amountIn}(fromIndex, toIndex, amountIn, 0);\n } else {\n if (from == msg.sender) IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\n IERC20(tokenIn).approveSafe(pool, amountIn);\n if (poolType == 0) amountOut = ICurve(pool).exchange(fromIndex, toIndex, amountIn, 0);\n else {\n uint256 balanceBefore = tokenOut.anyBalanceOf(address(this));\n ICurveLegacy(pool).exchange(fromIndex, toIndex, amountIn, 0);\n uint256 balanceAfter = tokenOut.anyBalanceOf(address(this));\n amountOut = balanceAfter - balanceBefore;\n }\n }\n\n if (to != address(this)) tokenOut.transferAny(to, amountOut);\n }\n}\n" + }, + "contracts/Utils.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity 0.8.10;\n\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\n\nlibrary Utils {\n using SafeERC20 for IERC20;\n\n address constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n /**\n * @dev returns user's balance of token (or native)\n */\n function anyBalanceOf(address token, address user) internal view returns (uint256) {\n if (token == NATIVE_ADDRESS) return address(user).balance;\n else return IERC20(token).balanceOf(user);\n }\n\n /**\n * @dev transfers native with correct revert bubble up\n */\n function transferNative(address to, uint256 amount) internal {\n (bool success, bytes memory returnBytes) = to.call{value: amount}('');\n if (!success) {\n assembly {\n revert(add(32, returnBytes), mload(returnBytes))\n }\n }\n }\n\n /**\n * @dev transfers ERC20 or native\n */\n function transferAny(address token, address to, uint256 amount) internal {\n if (token == NATIVE_ADDRESS) transferNative(to, amount);\n else IERC20(token).safeTransfer(to, amount);\n }\n\n /**\n * @dev transfers from ERC20 or transfers native\n */\n function transferAnyFromSender(address token, address to, uint256 amount) internal {\n if (token == NATIVE_ADDRESS) transferNative(to, amount); // native liquidity is already on this contract\n else IERC20(token).safeTransferFrom(msg.sender, to, amount);\n }\n\n /**\n * @dev ERC20 approve that correct works with token.approve which returns bool or nothing (USDT for example)\n * @param token The token targeted by the call.\n * @param spender token spender\n * @param amount token amount\n */\n function approveStable(IERC20 token, address spender, uint256 amount) internal returns (bool) {\n (bool success, bytes memory data) = address(token).call(\n abi.encodeWithSelector(token.approve.selector, spender, amount)\n );\n return success && (data.length == 0 || abi.decode(data, (bool)));\n }\n\n /**\n * @dev ERC20 approve that correct works with token.approve which reverts if amount and \n * current allowance are not zero simultaniously (USDT for example). \n * In second case it tries to set allowance to 0, and then back to amount.\n * @param token The token targeted by the call.\n * @param spender token spender\n * @param amount token amount\n */\n function approveSafe(IERC20 token, address spender, uint256 amount) internal returns (bool) {\n return approveStable(token, spender, amount) \n || (approveStable(token, spender, 0) && approveStable(token, spender, amount));\n }\n}\n" + }, + "interfaces/IBentoBoxMinimal.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity >=0.8.0;\n\nstruct Rebase {\n uint128 elastic;\n uint128 base;\n}\n\nstruct StrategyData {\n uint64 strategyStartDate;\n uint64 targetPercentage;\n uint128 balance; // the balance of the strategy that BentoBox thinks is in there\n}\n\n/// @notice A rebasing library\nlibrary RebaseLibrary {\n /// @notice Calculates the base value in relationship to `elastic` and `total`.\n function toBase(Rebase memory total, uint256 elastic) internal pure returns (uint256 base) {\n if (total.elastic == 0) {\n base = elastic;\n } else {\n base = (elastic * total.base) / total.elastic;\n }\n }\n\n /// @notice Calculates the elastic value in relationship to `base` and `total`.\n function toElastic(Rebase memory total, uint256 base) internal pure returns (uint256 elastic) {\n if (total.base == 0) {\n elastic = base;\n } else {\n elastic = (base * total.elastic) / total.base;\n }\n }\n}\n\n/// @notice Minimal BentoBox vault interface.\n/// @dev `token` is aliased as `address` from `IERC20` for simplicity.\ninterface IBentoBoxMinimal {\n /// @notice Balance per ERC-20 token per account in shares.\n function balanceOf(address, address) external view returns (uint256);\n\n /// @dev Helper function to represent an `amount` of `token` in shares.\n /// @param token The ERC-20 token.\n /// @param amount The `token` amount.\n /// @param roundUp If the result `share` should be rounded up.\n /// @return share The token amount represented in shares.\n function toShare(\n address token,\n uint256 amount,\n bool roundUp\n ) external view returns (uint256 share);\n\n /// @dev Helper function to represent shares back into the `token` amount.\n /// @param token The ERC-20 token.\n /// @param share The amount of shares.\n /// @param roundUp If the result should be rounded up.\n /// @return amount The share amount back into native representation.\n function toAmount(\n address token,\n uint256 share,\n bool roundUp\n ) external view returns (uint256 amount);\n\n /// @notice Registers this contract so that users can approve it for BentoBox.\n function registerProtocol() external;\n\n /// @notice Deposit an amount of `token` represented in either `amount` or `share`.\n /// @param token The ERC-20 token to deposit.\n /// @param from which account to pull the tokens.\n /// @param to which account to push the tokens.\n /// @param amount Token amount in native representation to deposit.\n /// @param share Token amount represented in shares to deposit. Takes precedence over `amount`.\n /// @return amountOut The amount deposited.\n /// @return shareOut The deposited amount represented in shares.\n function deposit(\n address token,\n address from,\n address to,\n uint256 amount,\n uint256 share\n ) external payable returns (uint256 amountOut, uint256 shareOut);\n\n /// @notice Withdraws an amount of `token` from a user account.\n /// @param token_ The ERC-20 token to withdraw.\n /// @param from which user to pull the tokens.\n /// @param to which user to push the tokens.\n /// @param amount of tokens. Either one of `amount` or `share` needs to be supplied.\n /// @param share Like above, but `share` takes precedence over `amount`.\n function withdraw(\n address token_,\n address from,\n address to,\n uint256 amount,\n uint256 share\n ) external returns (uint256 amountOut, uint256 shareOut);\n\n /// @notice Transfer shares from a user account to another one.\n /// @param token The ERC-20 token to transfer.\n /// @param from which user to pull the tokens.\n /// @param to which user to push the tokens.\n /// @param share The amount of `token` in shares.\n function transfer(\n address token,\n address from,\n address to,\n uint256 share\n ) external;\n\n /// @dev Reads the Rebase `totals`from storage for a given token\n function totals(address token) external view returns (Rebase memory total);\n\n function strategyData(address token) external view returns (StrategyData memory total);\n\n /// @dev Approves users' BentoBox assets to a \"master\" contract.\n function setMasterContractApproval(\n address user,\n address masterContract,\n bool approved,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n function harvest(\n address token,\n bool balance,\n uint256 maxChangeAmount\n ) external;\n}\n" + }, + "interfaces/ICurve.sol": { + "content": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity >=0.8.0;\n\ninterface ICurve {\n function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) payable external returns (uint256);\n}\n\ninterface ICurveLegacy {\n function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) payable external;\n}\n\n" + }, + "interfaces/IPool.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity >=0.5.0;\npragma experimental ABIEncoderV2;\n\n/// @notice Trident pool interface.\ninterface IPool {\n /// @notice Executes a swap from one token to another.\n /// @dev The input tokens must've already been sent to the pool.\n /// @param data ABI-encoded params that the pool requires.\n /// @return finalAmountOut The amount of output tokens that were sent to the user.\n function swap(bytes calldata data) external returns (uint256 finalAmountOut);\n\n /// @notice Executes a swap from one token to another with a callback.\n /// @dev This function allows borrowing the output tokens and sending the input tokens in the callback.\n /// @param data ABI-encoded params that the pool requires.\n /// @return finalAmountOut The amount of output tokens that were sent to the user.\n function flashSwap(bytes calldata data) external returns (uint256 finalAmountOut);\n\n /// @notice Mints liquidity tokens.\n /// @param data ABI-encoded params that the pool requires.\n /// @return liquidity The amount of liquidity tokens that were minted for the user.\n function mint(bytes calldata data) external returns (uint256 liquidity);\n\n /// @notice Burns liquidity tokens.\n /// @dev The input LP tokens must've already been sent to the pool.\n /// @param data ABI-encoded params that the pool requires.\n /// @return withdrawnAmounts The amount of various output tokens that were sent to the user.\n function burn(bytes calldata data) external returns (TokenAmount[] memory withdrawnAmounts);\n\n /// @notice Burns liquidity tokens for a single output token.\n /// @dev The input LP tokens must've already been sent to the pool.\n /// @param data ABI-encoded params that the pool requires.\n /// @return amountOut The amount of output tokens that were sent to the user.\n function burnSingle(bytes calldata data) external returns (uint256 amountOut);\n\n /// @return A unique identifier for the pool type.\n function poolIdentifier() external pure returns (bytes32);\n\n /// @return An array of tokens supported by the pool.\n function getAssets() external view returns (address[] memory);\n\n /// @notice Simulates a trade and returns the expected output.\n /// @dev The pool does not need to include a trade simulator directly in itself - it can use a library.\n /// @param data ABI-encoded params that the pool requires.\n /// @return finalAmountOut The amount of output tokens that will be sent to the user if the trade is executed.\n function getAmountOut(bytes calldata data) external view returns (uint256 finalAmountOut);\n\n /// @notice Simulates a trade and returns the expected output.\n /// @dev The pool does not need to include a trade simulator directly in itself - it can use a library.\n /// @param data ABI-encoded params that the pool requires.\n /// @return finalAmountIn The amount of input tokens that are required from the user if the trade is executed.\n function getAmountIn(bytes calldata data) external view returns (uint256 finalAmountIn);\n\n /// @dev This event must be emitted on all swaps.\n event Swap(address indexed recipient, address indexed tokenIn, address indexed tokenOut, uint256 amountIn, uint256 amountOut);\n\n /// @dev This struct frames output tokens for burns.\n struct TokenAmount {\n address token;\n uint256 amount;\n }\n}\n" + }, + "interfaces/ITridentCLPool.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity 0.8.10;\n\ninterface ITridentCLPool {\n function token0() external returns (address);\n function token1() external returns (address);\n\n function swap(\n address recipient,\n bool zeroForOne,\n int256 amountSpecified,\n uint160 sqrtPriceLimitX96,\n bool unwrapBento,\n bytes calldata data\n ) external returns (int256 amount0, int256 amount1);\n}\n" + }, + "interfaces/IUniswapV2Pair.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity >=0.5.0;\n\ninterface IUniswapV2Pair {\n event Approval(address indexed owner, address indexed spender, uint value);\n event Transfer(address indexed from, address indexed to, uint value);\n\n function name() external pure returns (string memory);\n function symbol() external pure returns (string memory);\n function decimals() external pure returns (uint8);\n function totalSupply() external view returns (uint);\n function balanceOf(address owner) external view returns (uint);\n function allowance(address owner, address spender) external view returns (uint);\n\n function approve(address spender, uint value) external returns (bool);\n function transfer(address to, uint value) external returns (bool);\n function transferFrom(address from, address to, uint value) external returns (bool);\n\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n function PERMIT_TYPEHASH() external pure returns (bytes32);\n function nonces(address owner) external view returns (uint);\n\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\n\n event Mint(address indexed sender, uint amount0, uint amount1);\n event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);\n event Swap(\n address indexed sender,\n uint amount0In,\n uint amount1In,\n uint amount0Out,\n uint amount1Out,\n address indexed to\n );\n event Sync(uint112 reserve0, uint112 reserve1);\n\n function MINIMUM_LIQUIDITY() external pure returns (uint);\n function factory() external view returns (address);\n function token0() external view returns (address);\n function token1() external view returns (address);\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\n function price0CumulativeLast() external view returns (uint);\n function price1CumulativeLast() external view returns (uint);\n function kLast() external view returns (uint);\n\n function mint(address to) external returns (uint liquidity);\n function burn(address to) external returns (uint amount0, uint amount1);\n function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;\n function skim(address to) external;\n function sync() external;\n\n function initialize(address, address) external;\n}" + }, + "interfaces/IUniswapV3Pool.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity 0.8.10;\n\ninterface IUniswapV3Pool {\n function token0() external returns (address);\n function token1() external returns (address);\n\n function swap(\n address recipient,\n bool zeroForOne,\n int256 amountSpecified,\n uint160 sqrtPriceLimitX96,\n bytes calldata data\n ) external returns (int256 amount0, int256 amount1);\n}\n" + }, + "interfaces/IWETH.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity 0.8.10;\n\ninterface IWETH {\n function deposit() external payable;\n\n function transfer(address to, uint256 value) external returns (bool);\n\n function withdraw(uint256) external;\n}\n" + } + }, + "settings": { + "optimizer": { + "enabled": true + }, + "outputSelection": { + "*": { + "*": [ + "abi", + "evm.methodIdentifiers", + "storageLayout" + ], + "": [ + "ast" + ] + } + }, + "metadata": { + "useLiteralContent": true + } + } +} \ No newline at end of file diff --git a/protocols/route-processor/package.json b/protocols/route-processor/package.json index 8199e4ffb1..917ef07aa0 100644 --- a/protocols/route-processor/package.json +++ b/protocols/route-processor/package.json @@ -51,7 +51,7 @@ "ethers": "5.7.2", "hardhat": "2.20.1", "hardhat-contract-sizer": "2.10.0", - "hardhat-deploy": "0.11.22", + "hardhat-deploy": "0.12.4", "hardhat-gas-reporter": "1.0.9", "hardhat-log-remover": "2.0.2", "hardhat-preprocessor": "0.1.5", diff --git a/protocols/tines-sandbox/package.json b/protocols/tines-sandbox/package.json index 7e98f8b613..837419d930 100644 --- a/protocols/tines-sandbox/package.json +++ b/protocols/tines-sandbox/package.json @@ -59,7 +59,7 @@ "ethers": "5.7.2", "hardhat": "2.20.1", "hardhat-contract-sizer": "2.6.1", - "hardhat-deploy": "0.11.22", + "hardhat-deploy": "0.12.4", "hardhat-gas-reporter": "1.0.9", "hardhat-log-remover": "2.0.2", "hardhat-preprocessor": "0.1.5", diff --git a/skaffold.yaml b/skaffold.yaml index 4fe2437e20..b3573b3b71 100644 --- a/skaffold.yaml +++ b/skaffold.yaml @@ -52,10 +52,10 @@ profiles: valuesFiles: [k8s/charts/values.yaml, k8s/charts/staging-values.yaml] - name: sushi-router chartPath: k8s/charts/router - valuesFiles: [k8s/charts/values.yaml] + valuesFiles: [k8s/charts/values.yaml, k8s/charts/staging-values.yaml] - name: sushi-nginx chartPath: k8s/charts/nginx - valuesFiles: [k8s/charts/values.yaml] + valuesFiles: [k8s/charts/values.yaml, k8s/charts/staging-values.yaml] manifests: rawYaml: - k8s/ingress-staging.yaml @@ -72,10 +72,10 @@ profiles: valuesFiles: [k8s/charts/values.yaml, k8s/charts/production-values.yaml] - name: sushi-router chartPath: k8s/charts/router - valuesFiles: [k8s/charts/values.yaml] + valuesFiles: [k8s/charts/values.yaml, k8s/charts/production-values.yaml] - name: sushi-nginx chartPath: k8s/charts/nginx - valuesFiles: [k8s/charts/values.yaml] + valuesFiles: [k8s/charts/values.yaml, k8s/charts/production-values.yaml] manifests: rawYaml: - k8s/ingress-production.yaml