diff --git a/deployments/.arbitrum-sepolia-allowlists-v0.3.json b/deployments/.arbitrum-sepolia-allowlists-v0.3.json deleted file mode 100644 index 464f0add..00000000 --- a/deployments/.arbitrum-sepolia-allowlists-v0.3.json +++ /dev/null @@ -1,7 +0,0 @@ -{ -"axis.BatchCappedMerkleAllowlist": "0x98Bc9615c54fA03C7E31cD0e6599938f1a418d1b", -"axis.BatchMerkleAllowlist": "0x98Cd72f2271BC8485474E6277eAadA28c8Da4C59", -"axis.BatchTokenAllowlist": "0x98d7b3E03DEAA5039ff06D977EdE2EF2b6cD3169", -"axis.BatchAllocatedMerkleAllowlist": "0x98Dd423FD18cfbf34c78E24B8E923dadE7bcFCC0" -} - \ No newline at end of file diff --git a/deployments/.arbitrum-sepolia-dtl-v0.3.json b/deployments/.arbitrum-sepolia-dtl-v0.3.json deleted file mode 100644 index cb0f5104..00000000 --- a/deployments/.arbitrum-sepolia-dtl-v0.3.json +++ /dev/null @@ -1,4 +0,0 @@ -{ -"axis.BatchUniswapV2DirectToLiquidity": "0xE681311Ec0Aff9E6aCD03208f366eF4CD06e8215", -"axis.BatchUniswapV3DirectToLiquidity": "0xE6B7D1ba64c03A9e716358D0AfE34A087E3d26B1" -} diff --git a/deployments/.arbitrum-sepolia-fpb-v0.3.json b/deployments/.arbitrum-sepolia-fpb-v0.3.json deleted file mode 100644 index c543754b..00000000 --- a/deployments/.arbitrum-sepolia-fpb-v0.3.json +++ /dev/null @@ -1,3 +0,0 @@ -{ -"axis.FixedPriceBatch": "0xB24D0b6ae015DC6fd279E330db101bB890d8060c" -} diff --git a/deployments/.arbitrum-sepolia-v0.3.json b/deployments/.arbitrum-sepolia-v0.3.json index b62b08c8..b36d6d98 100644 --- a/deployments/.arbitrum-sepolia-v0.3.json +++ b/deployments/.arbitrum-sepolia-v0.3.json @@ -6,5 +6,12 @@ "axis.EncryptedMarginalPrice": "0x87F2a19FBbf9e557a68bD35D85FAd20dEec40494", "axis.FixedPriceSale": "0x0A0BA689D2D72D3f376293c534AF299B3C6Dac85", "axis.AtomicLinearVesting": "0xA7413717C633175Bc5B669E94625a4d3FE009870", -"axis.BatchLinearVesting": "0xC818f1f000f9C24D014BCe2c5334e14B1360d9CD" +"axis.BatchLinearVesting": "0xC818f1f000f9C24D014BCe2c5334e14B1360d9CD", +"axis.FixedPriceBatch": "0xB24D0b6ae015DC6fd279E330db101bB890d8060c", +"axis.BatchUniswapV2DirectToLiquidity": "0xE681311Ec0Aff9E6aCD03208f366eF4CD06e8215", +"axis.BatchUniswapV3DirectToLiquidity": "0xE6B7D1ba64c03A9e716358D0AfE34A087E3d26B1", +"axis.BatchCappedMerkleAllowlist": "0x98Bc9615c54fA03C7E31cD0e6599938f1a418d1b", +"axis.BatchMerkleAllowlist": "0x98Cd72f2271BC8485474E6277eAadA28c8Da4C59", +"axis.BatchTokenAllowlist": "0x98d7b3E03DEAA5039ff06D977EdE2EF2b6cD3169", +"axis.BatchAllocatedMerkleAllowlist": "0x98Dd423FD18cfbf34c78E24B8E923dadE7bcFCC0" } diff --git a/deployments/.arbitrum-sepolia-v0.4.json b/deployments/.arbitrum-sepolia-v0.4.json new file mode 100644 index 00000000..8abb16e5 --- /dev/null +++ b/deployments/.arbitrum-sepolia-v0.4.json @@ -0,0 +1,13 @@ +{ +"axis.BatchAuctionHouse": "0xBA00002999aBfa63cA25B3A7aD4c8F3a578aBe28", +"axis.BatchCatalogue": "0x664268B82971D0c9A4F000a7329a057e85361E83", +"axis.EncryptedMarginalPrice": "0x2Ca8954B468E2FbfE55240B69db937861c12F0d0", +"axis.FixedPriceBatch": "0x8b47F82a58d8AFBE5167feBf0D3F3Bb509aaf2bd", +"axis.BatchLinearVesting": "0xFB1113E170CA6d95f3a91121BDD2370a822598E9", +"axis.BatchCappedMerkleAllowlist": "0x9888DbABd5981763697A4433Cb57E3F9DABEcB6a", +"axis.BatchMerkleAllowlist": "0x9837cA34C444cEbd07C699036D1D174C6392D9fa", +"axis.BatchTokenAllowlist": "0x988c61b36F7898e464a0Bf477d2dc06aC4E95F95", +"axis.BatchAllocatedMerkleAllowlist": "0x98B59b4BF62b0316D9B0f89D28A28d5D75BB8B46", +"axis.BatchUniswapV2DirectToLiquidity": "0xE64E0807E5a0d789dB2fABB3345aB763f879521C", +"axis.BatchUniswapV3DirectToLiquidity": "0xE6ECF0f655E642834c79F30323e7ae941883ac00" +} diff --git a/deployments/.base-sepolia-allowlists-v0.3.json b/deployments/.base-sepolia-allowlists-v0.3.json deleted file mode 100644 index 23b60910..00000000 --- a/deployments/.base-sepolia-allowlists-v0.3.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "axis.BatchCappedMerkleAllowlist": "0x98CcB00c5F9854517DA6ED466b3B391fEF501542", - "axis.BatchMerkleAllowlist": "0x98408652D32571BEd7e357D1402A1A8c27B879e7", - "axis.BatchTokenAllowlist": "0x980110C58Ace1FD0422E5c27c7d4e248a547Ec7D", - "axis.BatchAllocatedMerkleAllowlist": "0x98469eF36DDD7bEAF28EDbd3fE2F57bD18A4BF2c" -} - \ No newline at end of file diff --git a/deployments/.base-sepolia-dtl-v0.3.json b/deployments/.base-sepolia-dtl-v0.3.json deleted file mode 100644 index 071e2655..00000000 --- a/deployments/.base-sepolia-dtl-v0.3.json +++ /dev/null @@ -1,4 +0,0 @@ -{ -"axis.BatchUniswapV2DirectToLiquidity": "0xE629a36159C7C6F827DA480DD541009031d50637", -"axis.BatchUniswapV3DirectToLiquidity": "0xE694614675d7b99d53Af80c98E02AAD46cd27183" -} diff --git a/deployments/.base-sepolia-v0.3.json b/deployments/.base-sepolia-v0.3.json index 67432c67..713f6ab5 100644 --- a/deployments/.base-sepolia-v0.3.json +++ b/deployments/.base-sepolia-v0.3.json @@ -3,5 +3,11 @@ "axis.BatchCatalogue": "0xD55227c0C37C97Fa2619a9C7F658C173883C1E2a", "axis.EncryptedMarginalPrice": "0x0599DA010907835037A0beC4525Dc5D600e790EB", "axis.FixedPriceBatch": "0x71a2946A761FC6ecE1b16cb4517a3E3D7E30Cc92", -"axis.BatchLinearVesting": "0xc20918b09dE9708d2A7997dfFc3c5ACB34d4a15b" +"axis.BatchLinearVesting": "0xc20918b09dE9708d2A7997dfFc3c5ACB34d4a15b", +"axis.BatchUniswapV2DirectToLiquidity": "0xE629a36159C7C6F827DA480DD541009031d50637", +"axis.BatchUniswapV3DirectToLiquidity": "0xE694614675d7b99d53Af80c98E02AAD46cd27183", +"axis.BatchCappedMerkleAllowlist": "0x98CcB00c5F9854517DA6ED466b3B391fEF501542", +"axis.BatchMerkleAllowlist": "0x98408652D32571BEd7e357D1402A1A8c27B879e7", +"axis.BatchTokenAllowlist": "0x980110C58Ace1FD0422E5c27c7d4e248a547Ec7D", +"axis.BatchAllocatedMerkleAllowlist": "0x98469eF36DDD7bEAF28EDbd3fE2F57bD18A4BF2c" } diff --git a/deployments/.base-sepolia-v0.4.json b/deployments/.base-sepolia-v0.4.json new file mode 100644 index 00000000..ac8b732e --- /dev/null +++ b/deployments/.base-sepolia-v0.4.json @@ -0,0 +1,13 @@ +{ +"axis.BatchAuctionHouse": "0xBA00002999aBfa63cA25B3A7aD4c8F3a578aBe28", +"axis.BatchCatalogue": "0x408fB738592232372069B592022F03BF3a241613", +"axis.EncryptedMarginalPrice": "0x02c63F8aE0a8e9D0F7267AA4d0Af0567858188C2", +"axis.FixedPriceBatch": "0x188Ad428c60eADFB0749B2E3A4836D63489304E3", +"axis.BatchLinearVesting": "0x392C629741a0c7350c7181addD5870dE178eeD94", +"axis.BatchCappedMerkleAllowlist": "0x9888DbABd5981763697A4433Cb57E3F9DABEcB6a", +"axis.BatchMerkleAllowlist": "0x9837cA34C444cEbd07C699036D1D174C6392D9fa", +"axis.BatchTokenAllowlist": "0x988c61b36F7898e464a0Bf477d2dc06aC4E95F95", +"axis.BatchAllocatedMerkleAllowlist": "0x98B59b4BF62b0316D9B0f89D28A28d5D75BB8B46", +"axis.BatchUniswapV2DirectToLiquidity": "0xE650A43485b89F26FB98ad16811BF45BD52ad014", +"axis.BatchUniswapV3DirectToLiquidity": "0xE661c46d94c53584095A8240958695bAD6d6fC2F" +} diff --git a/deployments/.blast-sepolia-allowlists-v0.3.json b/deployments/.blast-sepolia-allowlists-v0.3.json deleted file mode 100644 index fabea348..00000000 --- a/deployments/.blast-sepolia-allowlists-v0.3.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "axis.BatchCappedMerkleAllowlist": "0x987727BD02CBf92B2E2d8e23B69E6FE627c2968e", - "axis.BatchMerkleAllowlist": "0x98d1E5d8961BAfBE848337c723DD3dC590923454", - "axis.BatchTokenAllowlist": "0x98062088FAE9D96C83B3efEbdE473A7C5B18C95F", - "axis.BatchAllocatedMerkleAllowlist": "0x98381a5D00a0B6c9Cdd94206F4b2B383457C312e" -} - \ No newline at end of file diff --git a/deployments/.blast-sepolia-dtl-v0.3.json b/deployments/.blast-sepolia-dtl-v0.3.json deleted file mode 100644 index e7057c61..00000000 --- a/deployments/.blast-sepolia-dtl-v0.3.json +++ /dev/null @@ -1,4 +0,0 @@ -{ -"axis.BatchUniswapV2DirectToLiquidity": "0xE6093314BD7496437002B06bd0Cc3B245Adc32aE", -"axis.BatchUniswapV3DirectToLiquidity": "0xE64057e0BbDF8DFaA4cEa25E64391B22e4b55607" -} diff --git a/deployments/.blast-sepolia-fpb-v0.3.json b/deployments/.blast-sepolia-fpb-v0.3.json deleted file mode 100644 index fd620feb..00000000 --- a/deployments/.blast-sepolia-fpb-v0.3.json +++ /dev/null @@ -1,3 +0,0 @@ -{ -"axis.FixedPriceBatch": "0xEDa0cC0bbb45D8cd6354755856053d6Ea646E201" -} diff --git a/deployments/.blast-sepolia-v0.3.json b/deployments/.blast-sepolia-v0.3.json index 3b1aada6..b4c299f4 100644 --- a/deployments/.blast-sepolia-v0.3.json +++ b/deployments/.blast-sepolia-v0.3.json @@ -6,5 +6,12 @@ "axis.EncryptedMarginalPrice": "0x96B52Ab3e5CAc0BbF49Be5039F2f9ef5d53bD322", "axis.FixedPriceSale": "0x3661B7704F7032103B3122C7796B5E03fAC715b5", "axis.AtomicLinearVesting": "0x8270f3e8D874De8b974A0Bf928abDFf92171B1b2", -"axis.BatchLinearVesting": "0xFb1B55504E6f996D192f1F1B8fDfD4E987355552" +"axis.BatchLinearVesting": "0xFb1B55504E6f996D192f1F1B8fDfD4E987355552", +"axis.FixedPriceBatch": "0xEDa0cC0bbb45D8cd6354755856053d6Ea646E201", +"axis.BatchUniswapV2DirectToLiquidity": "0xE6093314BD7496437002B06bd0Cc3B245Adc32aE", +"axis.BatchUniswapV3DirectToLiquidity": "0xE64057e0BbDF8DFaA4cEa25E64391B22e4b55607", +"axis.BatchCappedMerkleAllowlist": "0x987727BD02CBf92B2E2d8e23B69E6FE627c2968e", +"axis.BatchMerkleAllowlist": "0x98d1E5d8961BAfBE848337c723DD3dC590923454", +"axis.BatchTokenAllowlist": "0x98062088FAE9D96C83B3efEbdE473A7C5B18C95F", +"axis.BatchAllocatedMerkleAllowlist": "0x98381a5D00a0B6c9Cdd94206F4b2B383457C312e" } diff --git a/deployments/.blast-sepolia-v0.4.json b/deployments/.blast-sepolia-v0.4.json new file mode 100644 index 00000000..98b4781a --- /dev/null +++ b/deployments/.blast-sepolia-v0.4.json @@ -0,0 +1,13 @@ +{ +"axis.BatchAuctionHouse": "0xBA00007A1868f4AEFdd39041327CbC4Ba5bF1632", +"axis.BatchCatalogue": "0xC6D5E3A1823304D28cdc6dc23b4117b6cA34C98E", +"axis.EncryptedMarginalPrice": "0x8F34bBB3edd28017f826FE7a73eb9297384BF0d8", +"axis.FixedPriceBatch": "0x87ED152099949F870725bD9517A1697d428ddF74", +"axis.BatchLinearVesting": "0xBD0474b8e7b65f3dF35d2817BA09aC864a199e31", +"axis.BatchCappedMerkleAllowlist": "0x981d6a6997B23C06f4E95862f72B7C06c039a647", +"axis.BatchMerkleAllowlist": "0x9859c6FA2594e93149bd76415cE3982f39888CCb", +"axis.BatchTokenAllowlist": "0x984B6165fC87c682441E81B4aa23A017cdbFba18", +"axis.BatchAllocatedMerkleAllowlist": "0x986455Ab4f64303E8F51e72F6BF1789182563F65", +"axis.BatchUniswapV2DirectToLiquidity": "0xE6282DDB61f81F4d769FE511676dC21E570AF815", +"axis.BatchUniswapV3DirectToLiquidity": "0xE6b1113d108f86Fb7eF662ecF235dB6dB8978Cc3" +} diff --git a/deployments/.mode-sepolia-allowlists-v0.3.json b/deployments/.mode-sepolia-allowlists-v0.3.json deleted file mode 100644 index 0f64b095..00000000 --- a/deployments/.mode-sepolia-allowlists-v0.3.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "axis.BatchCappedMerkleAllowlist": "0x98565d59C0E85cB2922822B941342b24e0B36710", - "axis.BatchMerkleAllowlist": "0x98281879DF6b77eBfc3c7B584325cFE3cf3a499D", - "axis.BatchTokenAllowlist": "0x98Db66f6F636D6e863229c32662AFF11bE8Ab53F", - "axis.BatchAllocatedMerkleAllowlist": "0x98aAA09Fba83eD888Fa57eBb42c2e54fA6BF3611" - } - \ No newline at end of file diff --git a/deployments/.mode-sepolia-dtl-v0.3.json b/deployments/.mode-sepolia-dtl-v0.3.json deleted file mode 100644 index 1d87d6ab..00000000 --- a/deployments/.mode-sepolia-dtl-v0.3.json +++ /dev/null @@ -1,4 +0,0 @@ -{ -"axis.BatchUniswapV2DirectToLiquidity": "0xE688Ee9d0527B4D4e9440619a99F0dADF68B4b26", -"axis.BatchUniswapV3DirectToLiquidity": "0xE68806DB45E015E9476339a3e54c8F2B4D4F7ecA" -} diff --git a/deployments/.mode-sepolia-fpb-v0.3.json b/deployments/.mode-sepolia-fpb-v0.3.json deleted file mode 100644 index d75cf37e..00000000 --- a/deployments/.mode-sepolia-fpb-v0.3.json +++ /dev/null @@ -1,3 +0,0 @@ -{ -"axis.FixedPriceBatch": "0xC818f1f000f9C24D014BCe2c5334e14B1360d9CD" -} diff --git a/deployments/.mode-sepolia-v0.3.json b/deployments/.mode-sepolia-v0.3.json index 99ef46c5..63cacd85 100644 --- a/deployments/.mode-sepolia-v0.3.json +++ b/deployments/.mode-sepolia-v0.3.json @@ -6,5 +6,12 @@ "axis.EncryptedMarginalPrice": "0x4e519eEf63b9e127cFCeCA31C8E5485CdA65D355", "axis.FixedPriceSale": "0xacD10C2B4aA625dd00cba40E4466c8Ff07288a16", "axis.AtomicLinearVesting": "0x408fB738592232372069B592022F03BF3a241613", -"axis.BatchLinearVesting": "0x6CC5b76C2c98cB347F07C07a74a88134265312FF" +"axis.BatchLinearVesting": "0x6CC5b76C2c98cB347F07C07a74a88134265312FF", +"axis.FixedPriceBatch": "0xC818f1f000f9C24D014BCe2c5334e14B1360d9CD", +"axis.BatchUniswapV2DirectToLiquidity": "0xE688Ee9d0527B4D4e9440619a99F0dADF68B4b26", +"axis.BatchUniswapV3DirectToLiquidity": "0xE68806DB45E015E9476339a3e54c8F2B4D4F7ecA", +"axis.BatchCappedMerkleAllowlist": "0x98565d59C0E85cB2922822B941342b24e0B36710", +"axis.BatchMerkleAllowlist": "0x98281879DF6b77eBfc3c7B584325cFE3cf3a499D", +"axis.BatchTokenAllowlist": "0x98Db66f6F636D6e863229c32662AFF11bE8Ab53F", +"axis.BatchAllocatedMerkleAllowlist": "0x98aAA09Fba83eD888Fa57eBb42c2e54fA6BF3611" } diff --git a/deployments/.mode-sepolia-v0.4.json b/deployments/.mode-sepolia-v0.4.json new file mode 100644 index 00000000..0be602e5 --- /dev/null +++ b/deployments/.mode-sepolia-v0.4.json @@ -0,0 +1,13 @@ +{ +"axis.BatchAuctionHouse": "0xBA00002999aBfa63cA25B3A7aD4c8F3a578aBe28", +"axis.BatchCatalogue": "0x40Efc944A9bDe7Aea4853b435D5517433D02FfF8", +"axis.EncryptedMarginalPrice": "0x1A6Ba70B8e5957bCd03C20f9CF42D9e6D3d9b514", +"axis.FixedPriceBatch": "0x75DA61536510BA0bCa0C9Af21311A1Fc035DCf4e", +"axis.BatchLinearVesting": "0x90608F57161aC771b28fb0adCd2434cfa1463201", +"axis.BatchCappedMerkleAllowlist": "0x9888DbABd5981763697A4433Cb57E3F9DABEcB6a", +"axis.BatchMerkleAllowlist": "0x9837cA34C444cEbd07C699036D1D174C6392D9fa", +"axis.BatchTokenAllowlist": "0x988c61b36F7898e464a0Bf477d2dc06aC4E95F95", +"axis.BatchAllocatedMerkleAllowlist": "0x98B59b4BF62b0316D9B0f89D28A28d5D75BB8B46", +"axis.BatchUniswapV2DirectToLiquidity": "0xE60f928d399782836540752Eb3fCfE46b0Cb4E24", +"axis.BatchUniswapV3DirectToLiquidity": "0xE6ce65C413a5Fc10Fa77B26032B33DCD68F8474a" +} diff --git a/lib/g-uni-v1-core/deploy/GUniPool.deploy.ts b/lib/g-uni-v1-core/deploy/GUniPool.deploy.ts new file mode 100644 index 00000000..86329c39 --- /dev/null +++ b/lib/g-uni-v1-core/deploy/GUniPool.deploy.ts @@ -0,0 +1,39 @@ +import { deployments, getNamedAccounts } from "hardhat"; +import { HardhatRuntimeEnvironment } from "hardhat/types"; +import { DeployFunction } from "hardhat-deploy/types"; +import { getAddresses } from "../src/addresses"; + +const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => { + if ( + hre.network.name === "mainnet" || + hre.network.name === "optimism" || + hre.network.name === "polygon" + ) { + console.log( + `!! Deploying GUniPool to ${hre.network.name}. Hit ctrl + c to abort` + ); + await new Promise((r) => setTimeout(r, 20000)); + } + + const { deploy } = deployments; + const { deployer } = await getNamedAccounts(); + const addresses = getAddresses(hre.network.name); + + await deploy("GUniPool", { + from: deployer, + args: [addresses.Gelato], + }); +}; + +func.skip = async (hre: HardhatRuntimeEnvironment) => { + const shouldSkip = + hre.network.name === "mainnet" || + hre.network.name === "polygon" || + hre.network.name === "optimism" || + hre.network.name === "goerli"; + return shouldSkip ? true : false; +}; + +func.tags = ["GUniPool"]; + +export default func; \ No newline at end of file diff --git a/lib/g-uni-v1-core/deployments/arbitrumSepolia/GUniPool.json b/lib/g-uni-v1-core/deployments/arbitrumSepolia/GUniPool.json new file mode 100644 index 00000000..be35676c --- /dev/null +++ b/lib/g-uni-v1-core/deployments/arbitrumSepolia/GUniPool.json @@ -0,0 +1,1649 @@ +{ + "address": "0xF3e2578C66071a637F06cc02b1c11DeC0784C1A6", + "abi": [ + { + "inputs": [ + { + "internalType": "address payable", + "name": "_gelato", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "receiver", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "burnAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount0Out", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount1Out", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidityBurned", + "type": "uint128" + } + ], + "name": "Burned", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "feesEarned0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "feesEarned1", + "type": "uint256" + } + ], + "name": "FeesEarned", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "receiver", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "mintAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount0In", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount1In", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidityMinted", + "type": "uint128" + } + ], + "name": "Minted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousManager", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newManager", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "int24", + "name": "lowerTick_", + "type": "int24" + }, + { + "indexed": false, + "internalType": "int24", + "name": "upperTick_", + "type": "int24" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidityBefore", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidityAfter", + "type": "uint128" + } + ], + "name": "Rebalance", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint16", + "name": "managerFee", + "type": "uint16" + } + ], + "name": "SetManagerFee", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oldAdminTreasury", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdminTreasury", + "type": "address" + } + ], + "name": "UpdateAdminTreasury", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint16", + "name": "gelatoRebalanceBPS", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "gelatoWithdrawBPS", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "gelatoSlippageBPS", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "gelatoSlippageInterval", + "type": "uint32" + } + ], + "name": "UpdateGelatoParams", + "type": "event" + }, + { + "inputs": [], + "name": "GELATO", + "outputs": [ + { + "internalType": "address payable", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "spender", + "type": "address" + } + ], + "name": "allowance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "burnAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "receiver", + "type": "address" + } + ], + "name": "burn", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + }, + { + "internalType": "uint128", + "name": "liquidityBurned", + "type": "uint128" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "decimals", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "subtractedValue", + "type": "uint256" + } + ], + "name": "decreaseAllowance", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int24", + "name": "newLowerTick", + "type": "int24" + }, + { + "internalType": "int24", + "name": "newUpperTick", + "type": "int24" + }, + { + "internalType": "uint160", + "name": "swapThresholdPrice", + "type": "uint160" + }, + { + "internalType": "uint256", + "name": "swapAmountBPS", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "zeroForOne", + "type": "bool" + } + ], + "name": "executiveRebalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoBalance0", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoBalance1", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoFeeBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoRebalanceBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoSlippageBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoSlippageInterval", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoWithdrawBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount0Max", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1Max", + "type": "uint256" + } + ], + "name": "getMintAmounts", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "mintAmount", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getPositionID", + "outputs": [ + { + "internalType": "bytes32", + "name": "positionID", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getUnderlyingBalances", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0Current", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1Current", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint160", + "name": "sqrtRatioX96", + "type": "uint160" + } + ], + "name": "getUnderlyingBalancesAtPrice", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0Current", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1Current", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "addedValue", + "type": "uint256" + } + ], + "name": "increaseAllowance", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "_name", + "type": "string" + }, + { + "internalType": "string", + "name": "_symbol", + "type": "string" + }, + { + "internalType": "address", + "name": "_pool", + "type": "address" + }, + { + "internalType": "uint16", + "name": "_managerFeeBPS", + "type": "uint16" + }, + { + "internalType": "int24", + "name": "_lowerTick", + "type": "int24" + }, + { + "internalType": "int24", + "name": "_upperTick", + "type": "int24" + }, + { + "internalType": "address", + "name": "_manager_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint16", + "name": "_managerFeeBPS", + "type": "uint16" + } + ], + "name": "initializeManagerFee", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "lowerTick", + "outputs": [ + { + "internalType": "int24", + "name": "", + "type": "int24" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "manager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "managerBalance0", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "managerBalance1", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "managerFeeBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "managerTreasury", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "mintAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "receiver", + "type": "address" + } + ], + "name": "mint", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + }, + { + "internalType": "uint128", + "name": "liquidityMinted", + "type": "uint128" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pool", + "outputs": [ + { + "internalType": "contract IUniswapV3Pool", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint160", + "name": "swapThresholdPrice", + "type": "uint160" + }, + { + "internalType": "uint256", + "name": "swapAmountBPS", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "zeroForOne", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "paymentToken", + "type": "address" + } + ], + "name": "rebalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "token0", + "outputs": [ + { + "internalType": "contract IERC20", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "token1", + "outputs": [ + { + "internalType": "contract IERC20", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transfer", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount0Owed", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1Owed", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "uniswapV3MintCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int256", + "name": "amount0Delta", + "type": "int256" + }, + { + "internalType": "int256", + "name": "amount1Delta", + "type": "int256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "uniswapV3SwapCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint16", + "name": "newRebalanceBPS", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "newWithdrawBPS", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "newSlippageBPS", + "type": "uint16" + }, + { + "internalType": "uint32", + "name": "newSlippageInterval", + "type": "uint32" + }, + { + "internalType": "address", + "name": "newTreasury", + "type": "address" + } + ], + "name": "updateGelatoParams", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "upperTick", + "outputs": [ + { + "internalType": "int24", + "name": "", + "type": "int24" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "feeToken", + "type": "address" + } + ], + "name": "withdrawGelatoBalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "feeToken", + "type": "address" + } + ], + "name": "withdrawManagerBalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "transactionHash": "0x8ca1d397f287c7ac87d7677c74656480c141f7242e78f3b9ad4612cf77a39fbe", + "receipt": { + "to": null, + "from": "0xB47C8e4bEb28af80eDe5E5bF474927b110Ef2c0e", + "contractAddress": "0xF3e2578C66071a637F06cc02b1c11DeC0784C1A6", + "transactionIndex": 4, + "gasUsed": "5709523", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xde2678056ddc18fe88264d249865e9cc47de73569a4988671c34dc0cf897d472", + "transactionHash": "0x8ca1d397f287c7ac87d7677c74656480c141f7242e78f3b9ad4612cf77a39fbe", + "logs": [], + "blockNumber": 54644356, + "cumulativeGasUsed": "6328188", + "status": 1, + "byzantium": true + }, + "args": [ + "0xB47C8e4bEb28af80eDe5E5bF474927b110Ef2c0e" + ], + "solcInputHash": "f1f932b5297d788fce5c0abb03e1e395", + "metadata": "{\"compiler\":{\"version\":\"0.8.19+commit.7dd6d404\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"_gelato\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"burnAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0Out\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1Out\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityBurned\",\"type\":\"uint128\"}],\"name\":\"Burned\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feesEarned0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feesEarned1\",\"type\":\"uint256\"}],\"name\":\"FeesEarned\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"mintAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityMinted\",\"type\":\"uint128\"}],\"name\":\"Minted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousManager\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newManager\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"lowerTick_\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"upperTick_\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityBefore\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityAfter\",\"type\":\"uint128\"}],\"name\":\"Rebalance\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"managerFee\",\"type\":\"uint16\"}],\"name\":\"SetManagerFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldAdminTreasury\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdminTreasury\",\"type\":\"address\"}],\"name\":\"UpdateAdminTreasury\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"gelatoRebalanceBPS\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"gelatoWithdrawBPS\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"gelatoSlippageBPS\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"gelatoSlippageInterval\",\"type\":\"uint32\"}],\"name\":\"UpdateGelatoParams\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"GELATO\",\"outputs\":[{\"internalType\":\"address payable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"burnAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"liquidityBurned\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"newLowerTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"newUpperTick\",\"type\":\"int24\"},{\"internalType\":\"uint160\",\"name\":\"swapThresholdPrice\",\"type\":\"uint160\"},{\"internalType\":\"uint256\",\"name\":\"swapAmountBPS\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"zeroForOne\",\"type\":\"bool\"}],\"name\":\"executiveRebalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoBalance0\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoBalance1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoFeeBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoRebalanceBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoSlippageBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoSlippageInterval\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoWithdrawBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Max\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Max\",\"type\":\"uint256\"}],\"name\":\"getMintAmounts\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"mintAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPositionID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"positionID\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getUnderlyingBalances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Current\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Current\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"sqrtRatioX96\",\"type\":\"uint160\"}],\"name\":\"getUnderlyingBalancesAtPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Current\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Current\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_pool\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_managerFeeBPS\",\"type\":\"uint16\"},{\"internalType\":\"int24\",\"name\":\"_lowerTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"_upperTick\",\"type\":\"int24\"},{\"internalType\":\"address\",\"name\":\"_manager_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_managerFeeBPS\",\"type\":\"uint16\"}],\"name\":\"initializeManagerFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lowerTick\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"managerBalance0\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"managerBalance1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"managerFeeBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"managerTreasury\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"mintAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"liquidityMinted\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pool\",\"outputs\":[{\"internalType\":\"contract IUniswapV3Pool\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"swapThresholdPrice\",\"type\":\"uint160\"},{\"internalType\":\"uint256\",\"name\":\"swapAmountBPS\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"zeroForOne\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"paymentToken\",\"type\":\"address\"}],\"name\":\"rebalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Owed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Owed\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"uniswapV3MintCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"uniswapV3SwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newRebalanceBPS\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"newWithdrawBPS\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"newSlippageBPS\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"newSlippageInterval\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"newTreasury\",\"type\":\"address\"}],\"name\":\"updateGelatoParams\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"upperTick\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"feeToken\",\"type\":\"address\"}],\"name\":\"withdrawGelatoBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"feeToken\",\"type\":\"address\"}],\"name\":\"withdrawManagerBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"burn(uint256,address)\":{\"params\":{\"burnAmount\":\"The number of G-UNI tokens to burn\",\"receiver\":\"The account to receive the underlying amounts of token0 and token1\"},\"returns\":{\"amount0\":\"amount of token0 transferred to receiver for burning `burnAmount`\",\"amount1\":\"amount of token1 transferred to receiver for burning `burnAmount`\",\"liquidityBurned\":\"amount of liquidity removed from the underlying Uniswap V3 position\"}},\"decimals()\":{\"details\":\"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.\"},\"executiveRebalance(int24,int24,uint160,uint256,bool)\":{\"details\":\"When changing the range the inventory of token0 and token1 may be rebalanced with a swap to deposit as much liquidity as possible into the new position. Swap parameters can be computed by simulating the whole operation: remove all liquidity, deposit as much as possible into new position, then observe how much of token0 or token1 is leftover. Swap a proportion of this leftover to deposit more liquidity into the position, since any leftover will be unused and sit idle until the next rebalance.\",\"params\":{\"newLowerTick\":\"The new lower bound of the position's range\",\"newUpperTick\":\"The new upper bound of the position's range\",\"swapAmountBPS\":\"amount of token to swap as proportion of total. Pass 0 to ignore swap.\",\"swapThresholdPrice\":\"slippage parameter on the swap as a max or min sqrtPriceX96\",\"zeroForOne\":\"Which token to input into the swap (true = token0, false = token1)\"}},\"getMintAmounts(uint256,uint256)\":{\"params\":{\"amount0Max\":\"The maximum amount of token1 to forward on mint\"},\"returns\":{\"amount0\":\"actual amount of token0 to forward when minting `mintAmount`\",\"amount1\":\"actual amount of token1 to forward when minting `mintAmount`\",\"mintAmount\":\"maximum number of G-UNI tokens to mint\"}},\"getUnderlyingBalances()\":{\"returns\":{\"amount0Current\":\"current total underlying balance of token0\",\"amount1Current\":\"current total underlying balance of token1\"}},\"increaseAllowance(address,uint256)\":{\"details\":\"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address.\"},\"initialize(string,string,address,uint16,int24,int24,address)\":{\"params\":{\"_lowerTick\":\"initial upperTick (only changeable with executiveRebalance)\",\"_managerFeeBPS\":\"proportion of fees earned that go to manager treasury note that the 4 above params are NOT UPDATEABLE AFTER INILIALIZATION\",\"_manager_\":\"address of manager (ownership can be transferred)\",\"_name\":\"name of G-UNI token\",\"_pool\":\"address of Uniswap V3 pool\",\"_symbol\":\"symbol of G-UNI token\"}},\"initializeManagerFee(uint16)\":{\"params\":{\"_managerFeeBPS\":\"proportion of fees earned that are credited to manager in Basis Points\"}},\"manager()\":{\"details\":\"Returns the address of the current manager.\"},\"mint(uint256,address)\":{\"details\":\"to compute the amouint of tokens necessary to mint `mintAmount` see getMintAmounts\",\"params\":{\"mintAmount\":\"The number of G-UNI tokens to mint\",\"receiver\":\"The account to receive the minted tokens\"},\"returns\":{\"amount0\":\"amount of token0 transferred from msg.sender to mint `mintAmount`\",\"amount1\":\"amount of token1 transferred from msg.sender to mint `mintAmount`\",\"liquidityMinted\":\"amount of liquidity added to the underlying Uniswap V3 position\"}},\"name()\":{\"details\":\"Returns the name of the token.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without manager. It will not be possible to call `onlyManager` functions anymore. Can only be called by the current manager. NOTE: Renouncing ownership will leave the contract without an manager, thereby removing any functionality that is only available to the manager.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}.\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current manager.\"},\"updateGelatoParams(uint16,uint16,uint16,uint32,address)\":{\"params\":{\"newRebalanceBPS\":\"controls frequency of gelato rebalances: gas fee to execute rebalance can be gelatoRebalanceBPS proportion of fees earned since last rebalance\",\"newSlippageBPS\":\"maximum slippage on swaps during gelato rebalance\",\"newSlippageInterval\":\"length of time for TWAP used in computing slippage on swaps\",\"newTreasury\":\"address where managerFee withdrawals are sent\",\"newWithdrawBPS\":\"controls frequency of gelato withdrawals: gas fee to execute withdrawal can be gelatoWithdrawBPS proportion of fees accrued since last withdraw\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"burn(uint256,address)\":{\"notice\":\"burn G-UNI tokens (fractional shares of a Uniswap V3 position) and receive tokens\"},\"executiveRebalance(int24,int24,uint160,uint256,bool)\":{\"notice\":\"Change the range of underlying UniswapV3 position, only manager can call\"},\"getMintAmounts(uint256,uint256)\":{\"notice\":\"compute maximum G-UNI tokens that can be minted from `amount0Max` and `amount1Max`\"},\"getUnderlyingBalances()\":{\"notice\":\"compute total underlying holdings of the G-UNI token supply includes current liquidity invested in uniswap position, current fees earned and any uninvested leftover (but does not include manager or gelato fees accrued)\"},\"initialize(string,string,address,uint16,int24,int24,address)\":{\"notice\":\"initialize storage variables on a new G-UNI pool, only called once\"},\"initializeManagerFee(uint16)\":{\"notice\":\"initializeManagerFee sets a managerFee, only manager can call. If a manager fee was not set in the initialize function it can be set here but ONLY ONCE- after it is set to a non-zero value, managerFee can never be set again.\"},\"mint(uint256,address)\":{\"notice\":\"mint fungible G-UNI tokens, fractional shares of a Uniswap V3 position\"},\"rebalance(uint160,uint256,bool,uint256,address)\":{\"notice\":\"Reinvest fees earned into underlying position, only gelato executors can call Position bounds CANNOT be altered by gelato, only manager may via executiveRebalance. Frequency of rebalance configured with gelatoRebalanceBPS, alterable by manager.\"},\"uniswapV3MintCallback(uint256,uint256,bytes)\":{\"notice\":\"Uniswap V3 callback fn, called back on pool.mint\"},\"uniswapV3SwapCallback(int256,int256,bytes)\":{\"notice\":\"Uniswap v3 callback fn, called back on pool.swap\"},\"updateGelatoParams(uint16,uint16,uint16,uint32,address)\":{\"notice\":\"change configurable parameters, only manager can call\"},\"withdrawGelatoBalance(uint256,address)\":{\"notice\":\"withdraw gelato fees accrued, only gelato executors can call. Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager.\"},\"withdrawManagerBalance(uint256,address)\":{\"notice\":\"withdraw manager fees accrued, only gelato executors can call. Target account to receive fees is managerTreasury, alterable by manager. Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/GUniPool.sol\":\"GUniPool\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\n// solhint-disable-next-line compiler-version\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n */\\nabstract contract Initializable {\\n\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n bool private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Modifier to protect an initializer function from being invoked twice.\\n */\\n modifier initializer() {\\n require(_initializing || !_initialized, \\\"Initializable: contract is already initialized\\\");\\n\\n bool isTopLevelCall = !_initializing;\\n if (isTopLevelCall) {\\n _initializing = true;\\n _initialized = true;\\n }\\n\\n _;\\n\\n if (isTopLevelCall) {\\n _initializing = false;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67d2f282a9678e58e878a0b774041ba7a01e2740a262aea97a3f681339914713\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuardUpgradeable is Initializable {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n function __ReentrancyGuard_init() internal initializer {\\n __ReentrancyGuard_init_unchained();\\n }\\n\\n function __ReentrancyGuard_init_unchained() internal initializer {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and make it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n // On the first call to nonReentrant, _notEntered will be true\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n\\n _;\\n\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x89fa60d14355f7ae06af11e28fce2bb90c5c6186645d681a30e1b36234a4c210\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC20Upgradeable.sol\\\";\\nimport \\\"./extensions/IERC20MetadataUpgradeable.sol\\\";\\nimport \\\"../../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * We have followed general OpenZeppelin guidelines: functions revert instead\\n * of returning `false` on failure. This behavior is nonetheless conventional\\n * and does not conflict with the expectations of ERC20 applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {\\n mapping (address => uint256) private _balances;\\n\\n mapping (address => mapping (address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}.\\n *\\n * The defaut value of {decimals} is 18. To select a different value for\\n * {decimals} you should overload it.\\n *\\n * All two of these values are immutable: they can only be set once during\\n * construction.\\n */\\n function __ERC20_init(string memory name_, string memory symbol_) internal initializer {\\n __Context_init_unchained();\\n __ERC20_init_unchained(name_, symbol_);\\n }\\n\\n function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {\\n _name = name_;\\n _symbol = symbol_;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual override returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual override returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5,05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the value {ERC20} uses, unless this function is\\n * overridden;\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual override returns (uint8) {\\n return 18;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `recipient` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\\n _transfer(_msgSender(), recipient, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n _approve(_msgSender(), spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * Requirements:\\n *\\n * - `sender` and `recipient` cannot be the zero address.\\n * - `sender` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``sender``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {\\n _transfer(sender, recipient, amount);\\n\\n uint256 currentAllowance = _allowances[sender][_msgSender()];\\n require(currentAllowance >= amount, \\\"ERC20: transfer amount exceeds allowance\\\");\\n _approve(sender, _msgSender(), currentAllowance - amount);\\n\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n uint256 currentAllowance = _allowances[_msgSender()][spender];\\n require(currentAllowance >= subtractedValue, \\\"ERC20: decreased allowance below zero\\\");\\n _approve(_msgSender(), spender, currentAllowance - subtractedValue);\\n\\n return true;\\n }\\n\\n /**\\n * @dev Moves tokens `amount` from `sender` to `recipient`.\\n *\\n * This is internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `sender` cannot be the zero address.\\n * - `recipient` cannot be the zero address.\\n * - `sender` must have a balance of at least `amount`.\\n */\\n function _transfer(address sender, address recipient, uint256 amount) internal virtual {\\n require(sender != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(recipient != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(sender, recipient, amount);\\n\\n uint256 senderBalance = _balances[sender];\\n require(senderBalance >= amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n _balances[sender] = senderBalance - amount;\\n _balances[recipient] += amount;\\n\\n emit Transfer(sender, recipient, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply += amount;\\n _balances[account] += amount;\\n emit Transfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n uint256 accountBalance = _balances[account];\\n require(accountBalance >= amount, \\\"ERC20: burn amount exceeds balance\\\");\\n _balances[account] = accountBalance - amount;\\n _totalSupply -= amount;\\n\\n emit Transfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(address owner, address spender, uint256 amount) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be to transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }\\n uint256[45] private __gap;\\n}\\n\",\"keccak256\":\"0x9c2d7425f3343ea340d6ea67e9d90109d4d846bb013c2572096ec88c9e74946b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\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 `recipient`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address recipient, 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 `sender` to `recipient` 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(address sender, address recipient, uint256 amount) external returns (bool);\\n\\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\",\"keccak256\":\"0x8d4a0f2b5b760b5e2c19ed3c108d83897a4dfd5bfed97a93867918df19191e5e\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20Upgradeable.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20MetadataUpgradeable is IERC20Upgradeable {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x6795c369a4eefa78468e38966f7851fbc2dda5e5b9ccd3fa2b45970e2e4d3abd\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\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 ContextUpgradeable is Initializable {\\n function __Context_init() internal initializer {\\n __Context_init_unchained();\\n }\\n\\n function __Context_init_unchained() internal initializer {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\\n return msg.data;\\n }\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x8e9eb503de1189f50c5f16fef327da310b11898d6b9ab3ca937df07c35233b9e\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\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 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 `recipient`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address recipient, 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 `sender` to `recipient` 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(address sender, address recipient, uint256 amount) external returns (bool);\\n\\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\",\"keccak256\":\"0xf8e8d118a7a8b2e134181f7da655f6266aa3a0f9134b2605747139fcb0c5d835\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.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(IERC20 token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) 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(IERC20 token, address spender, uint256 value) 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 // solhint-disable-next-line max-line-length\\n require((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(IERC20 token, address spender, uint256 value) 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(IERC20 token, address spender, uint256 value) 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 /**\\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) { // Return data is optional\\n // solhint-disable-next-line max-line-length\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0x99f5c21018d796db7833a2100bb0e7411999e248a3c950fb526eee5d2bf47cb7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\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 function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize, which returns 0 for contracts in\\n // construction, since the code is only stored at the end of the\\n // constructor execution.\\n\\n uint256 size;\\n // solhint-disable-next-line no-inline-assembly\\n assembly { size := extcodesize(account) }\\n return size > 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 // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\\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 functionCall(target, data, \\\"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(address target, bytes memory data, string memory errorMessage) 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(address target, bytes memory data, uint256 value) 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(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.call{ value: value }(data);\\n return _verifyCallResult(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(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return _verifyCallResult(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(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\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\\n // solhint-disable-next-line no-inline-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}\\n\",\"keccak256\":\"0x069b2631bb5b5193a58ccf7a06266c7361bd2c20095667af4402817605627f45\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n *\\n * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\\n * all math on `uint256` and `int256` and then downcasting.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n require(value < 2**128, \\\"SafeCast: value doesn\\\\'t fit in 128 bits\\\");\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n require(value < 2**64, \\\"SafeCast: value doesn\\\\'t fit in 64 bits\\\");\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n require(value < 2**32, \\\"SafeCast: value doesn\\\\'t fit in 32 bits\\\");\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n require(value < 2**16, \\\"SafeCast: value doesn\\\\'t fit in 16 bits\\\");\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits.\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n require(value < 2**8, \\\"SafeCast: value doesn\\\\'t fit in 8 bits\\\");\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n require(value >= 0, \\\"SafeCast: value must be positive\\\");\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt128(int256 value) internal pure returns (int128) {\\n require(value >= -2**127 && value < 2**127, \\\"SafeCast: value doesn\\\\'t fit in 128 bits\\\");\\n return int128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt64(int256 value) internal pure returns (int64) {\\n require(value >= -2**63 && value < 2**63, \\\"SafeCast: value doesn\\\\'t fit in 64 bits\\\");\\n return int64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt32(int256 value) internal pure returns (int32) {\\n require(value >= -2**31 && value < 2**31, \\\"SafeCast: value doesn\\\\'t fit in 32 bits\\\");\\n return int32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt16(int256 value) internal pure returns (int16) {\\n require(value >= -2**15 && value < 2**15, \\\"SafeCast: value doesn\\\\'t fit in 16 bits\\\");\\n return int16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits.\\n *\\n * _Available since v3.1._\\n */\\n function toInt8(int256 value) internal pure returns (int8) {\\n require(value >= -2**7 && value < 2**7, \\\"SafeCast: value doesn\\\\'t fit in 8 bits\\\");\\n return int8(value);\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n require(value < 2**255, \\\"SafeCast: value doesn't fit in an int256\\\");\\n return int256(value);\\n }\\n}\\n\",\"keccak256\":\"0xc37d85b96c2a8d7bc09f25958e0a81394bf5780286444147ddf875fa628d53ce\",\"license\":\"MIT\"},\"@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\nimport './pool/IUniswapV3PoolImmutables.sol';\\nimport './pool/IUniswapV3PoolState.sol';\\nimport './pool/IUniswapV3PoolDerivedState.sol';\\nimport './pool/IUniswapV3PoolActions.sol';\\nimport './pool/IUniswapV3PoolOwnerActions.sol';\\nimport './pool/IUniswapV3PoolEvents.sol';\\n\\n/// @title The interface for a Uniswap V3 Pool\\n/// @notice A Uniswap pool facilitates swapping and automated market making between any two assets that strictly conform\\n/// to the ERC20 specification\\n/// @dev The pool interface is broken up into many smaller pieces\\ninterface IUniswapV3Pool is\\n IUniswapV3PoolImmutables,\\n IUniswapV3PoolState,\\n IUniswapV3PoolDerivedState,\\n IUniswapV3PoolActions,\\n IUniswapV3PoolOwnerActions,\\n IUniswapV3PoolEvents\\n{\\n\\n}\\n\",\"keccak256\":\"0xfe6113d518466cd6652c85b111e01f33eb62157f49ae5ed7d5a3947a2044adb1\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3MintCallback.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Callback for IUniswapV3PoolActions#mint\\n/// @notice Any contract that calls IUniswapV3PoolActions#mint must implement this interface\\ninterface IUniswapV3MintCallback {\\n /// @notice Called to `msg.sender` after minting liquidity to a position from IUniswapV3Pool#mint.\\n /// @dev In the implementation you must pay the pool tokens owed for the minted liquidity.\\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\\n /// @param amount0Owed The amount of token0 due to the pool for the minted liquidity\\n /// @param amount1Owed The amount of token1 due to the pool for the minted liquidity\\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#mint call\\n function uniswapV3MintCallback(\\n uint256 amount0Owed,\\n uint256 amount1Owed,\\n bytes calldata data\\n ) external;\\n}\\n\",\"keccak256\":\"0x27a9725b8f831a92d16380860c3d348a0b926a7f01b34a54ea6eea78cbdbcd6a\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Callback for IUniswapV3PoolActions#swap\\n/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface\\ninterface IUniswapV3SwapCallback {\\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}\\n\",\"keccak256\":\"0x3f485fb1a44e8fbeadefb5da07d66edab3cfe809f0ac4074b1e54e3eb3c4cf69\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Permissionless pool actions\\n/// @notice Contains pool methods that can be called by anyone\\ninterface IUniswapV3PoolActions {\\n /// @notice Sets the initial price for the pool\\n /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value\\n /// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96\\n function initialize(uint160 sqrtPriceX96) external;\\n\\n /// @notice Adds liquidity for the given recipient/tickLower/tickUpper position\\n /// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback\\n /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends\\n /// on tickLower, tickUpper, the amount of liquidity, and the current price.\\n /// @param recipient The address for which the liquidity will be created\\n /// @param tickLower The lower tick of the position in which to add liquidity\\n /// @param tickUpper The upper tick of the position in which to add liquidity\\n /// @param amount The amount of liquidity to mint\\n /// @param data Any data that should be passed through to the callback\\n /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback\\n /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback\\n function mint(\\n address recipient,\\n int24 tickLower,\\n int24 tickUpper,\\n uint128 amount,\\n bytes calldata data\\n ) external returns (uint256 amount0, uint256 amount1);\\n\\n /// @notice Collects tokens owed to a position\\n /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity.\\n /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or\\n /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the\\n /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.\\n /// @param recipient The address which should receive the fees collected\\n /// @param tickLower The lower tick of the position for which to collect fees\\n /// @param tickUpper The upper tick of the position for which to collect fees\\n /// @param amount0Requested How much token0 should be withdrawn from the fees owed\\n /// @param amount1Requested How much token1 should be withdrawn from the fees owed\\n /// @return amount0 The amount of fees collected in token0\\n /// @return amount1 The amount of fees collected in token1\\n function collect(\\n address recipient,\\n int24 tickLower,\\n int24 tickUpper,\\n uint128 amount0Requested,\\n uint128 amount1Requested\\n ) external returns (uint128 amount0, uint128 amount1);\\n\\n /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position\\n /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0\\n /// @dev Fees must be collected separately via a call to #collect\\n /// @param tickLower The lower tick of the position for which to burn liquidity\\n /// @param tickUpper The upper tick of the position for which to burn liquidity\\n /// @param amount How much liquidity to burn\\n /// @return amount0 The amount of token0 sent to the recipient\\n /// @return amount1 The amount of token1 sent to the recipient\\n function burn(\\n int24 tickLower,\\n int24 tickUpper,\\n uint128 amount\\n ) external returns (uint256 amount0, uint256 amount1);\\n\\n /// @notice Swap token0 for token1, or token1 for token0\\n /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback\\n /// @param recipient The address to receive the output of the swap\\n /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0\\n /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\\n /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\\n /// value after the swap. If one for zero, the price cannot be greater than this value after the swap\\n /// @param data Any data to be passed through to the callback\\n /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive\\n /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive\\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 /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback\\n /// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback\\n /// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling\\n /// with 0 amount{0,1} and sending the donation amount(s) from the callback\\n /// @param recipient The address which will receive the token0 and token1 amounts\\n /// @param amount0 The amount of token0 to send\\n /// @param amount1 The amount of token1 to send\\n /// @param data Any data to be passed through to the callback\\n function flash(\\n address recipient,\\n uint256 amount0,\\n uint256 amount1,\\n bytes calldata data\\n ) external;\\n\\n /// @notice Increase the maximum number of price and liquidity observations that this pool will store\\n /// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to\\n /// the input observationCardinalityNext.\\n /// @param observationCardinalityNext The desired minimum number of observations for the pool to store\\n function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external;\\n}\\n\",\"keccak256\":\"0x9453dd0e7442188667d01d9b65de3f1e14e9511ff3e303179a15f6fc267f7634\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Pool state that is not stored\\n/// @notice Contains view functions to provide information about the pool that is computed rather than stored on the\\n/// blockchain. The functions here may have variable gas costs.\\ninterface IUniswapV3PoolDerivedState {\\n /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp\\n /// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing\\n /// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick,\\n /// you must call it with secondsAgos = [3600, 0].\\n /// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in\\n /// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio.\\n /// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned\\n /// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp\\n /// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block\\n /// timestamp\\n function observe(uint32[] calldata secondsAgos)\\n external\\n view\\n returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s);\\n\\n /// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range\\n /// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed.\\n /// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first\\n /// snapshot is taken and the second snapshot is taken.\\n /// @param tickLower The lower tick of the range\\n /// @param tickUpper The upper tick of the range\\n /// @return tickCumulativeInside The snapshot of the tick accumulator for the range\\n /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range\\n /// @return secondsInside The snapshot of seconds per liquidity for the range\\n function snapshotCumulativesInside(int24 tickLower, int24 tickUpper)\\n external\\n view\\n returns (\\n int56 tickCumulativeInside,\\n uint160 secondsPerLiquidityInsideX128,\\n uint32 secondsInside\\n );\\n}\\n\",\"keccak256\":\"0xe603ac5b17ecdee73ba2b27efdf386c257a19c14206e87eee77e2017b742d9e5\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Events emitted by a pool\\n/// @notice Contains all events emitted by the pool\\ninterface IUniswapV3PoolEvents {\\n /// @notice Emitted exactly once by a pool when #initialize is first called on the pool\\n /// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize\\n /// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96\\n /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool\\n event Initialize(uint160 sqrtPriceX96, int24 tick);\\n\\n /// @notice Emitted when liquidity is minted for a given position\\n /// @param sender The address that minted the liquidity\\n /// @param owner The owner of the position and recipient of any minted liquidity\\n /// @param tickLower The lower tick of the position\\n /// @param tickUpper The upper tick of the position\\n /// @param amount The amount of liquidity minted to the position range\\n /// @param amount0 How much token0 was required for the minted liquidity\\n /// @param amount1 How much token1 was required for the minted liquidity\\n event Mint(\\n address sender,\\n address indexed owner,\\n int24 indexed tickLower,\\n int24 indexed tickUpper,\\n uint128 amount,\\n uint256 amount0,\\n uint256 amount1\\n );\\n\\n /// @notice Emitted when fees are collected by the owner of a position\\n /// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees\\n /// @param owner The owner of the position for which fees are collected\\n /// @param tickLower The lower tick of the position\\n /// @param tickUpper The upper tick of the position\\n /// @param amount0 The amount of token0 fees collected\\n /// @param amount1 The amount of token1 fees collected\\n event Collect(\\n address indexed owner,\\n address recipient,\\n int24 indexed tickLower,\\n int24 indexed tickUpper,\\n uint128 amount0,\\n uint128 amount1\\n );\\n\\n /// @notice Emitted when a position's liquidity is removed\\n /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect\\n /// @param owner The owner of the position for which liquidity is removed\\n /// @param tickLower The lower tick of the position\\n /// @param tickUpper The upper tick of the position\\n /// @param amount The amount of liquidity to remove\\n /// @param amount0 The amount of token0 withdrawn\\n /// @param amount1 The amount of token1 withdrawn\\n event Burn(\\n address indexed owner,\\n int24 indexed tickLower,\\n int24 indexed tickUpper,\\n uint128 amount,\\n uint256 amount0,\\n uint256 amount1\\n );\\n\\n /// @notice Emitted by the pool for any swaps between token0 and token1\\n /// @param sender The address that initiated the swap call, and that received the callback\\n /// @param recipient The address that received the output of the swap\\n /// @param amount0 The delta of the token0 balance of the pool\\n /// @param amount1 The delta of the token1 balance of the pool\\n /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96\\n /// @param liquidity The liquidity of the pool after the swap\\n /// @param tick The log base 1.0001 of price of the pool after the swap\\n event Swap(\\n address indexed sender,\\n address indexed recipient,\\n int256 amount0,\\n int256 amount1,\\n uint160 sqrtPriceX96,\\n uint128 liquidity,\\n int24 tick\\n );\\n\\n /// @notice Emitted by the pool for any flashes of token0/token1\\n /// @param sender The address that initiated the swap call, and that received the callback\\n /// @param recipient The address that received the tokens from flash\\n /// @param amount0 The amount of token0 that was flashed\\n /// @param amount1 The amount of token1 that was flashed\\n /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee\\n /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee\\n event Flash(\\n address indexed sender,\\n address indexed recipient,\\n uint256 amount0,\\n uint256 amount1,\\n uint256 paid0,\\n uint256 paid1\\n );\\n\\n /// @notice Emitted by the pool for increases to the number of observations that can be stored\\n /// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index\\n /// just before a mint/swap/burn.\\n /// @param observationCardinalityNextOld The previous value of the next observation cardinality\\n /// @param observationCardinalityNextNew The updated value of the next observation cardinality\\n event IncreaseObservationCardinalityNext(\\n uint16 observationCardinalityNextOld,\\n uint16 observationCardinalityNextNew\\n );\\n\\n /// @notice Emitted when the protocol fee is changed by the pool\\n /// @param feeProtocol0Old The previous value of the token0 protocol fee\\n /// @param feeProtocol1Old The previous value of the token1 protocol fee\\n /// @param feeProtocol0New The updated value of the token0 protocol fee\\n /// @param feeProtocol1New The updated value of the token1 protocol fee\\n event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New);\\n\\n /// @notice Emitted when the collected protocol fees are withdrawn by the factory owner\\n /// @param sender The address that collects the protocol fees\\n /// @param recipient The address that receives the collected protocol fees\\n /// @param amount0 The amount of token0 protocol fees that is withdrawn\\n /// @param amount0 The amount of token1 protocol fees that is withdrawn\\n event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1);\\n}\\n\",\"keccak256\":\"0x8071514d0fe5d17d6fbd31c191cdfb703031c24e0ece3621d88ab10e871375cd\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Pool state that never changes\\n/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values\\ninterface IUniswapV3PoolImmutables {\\n /// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface\\n /// @return The contract address\\n function factory() external view returns (address);\\n\\n /// @notice The first of the two tokens of the pool, sorted by address\\n /// @return The token contract address\\n function token0() external view returns (address);\\n\\n /// @notice The second of the two tokens of the pool, sorted by address\\n /// @return The token contract address\\n function token1() external view returns (address);\\n\\n /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6\\n /// @return The fee\\n function fee() external view returns (uint24);\\n\\n /// @notice The pool tick spacing\\n /// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive\\n /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ...\\n /// This value is an int24 to avoid casting even though it is always positive.\\n /// @return The tick spacing\\n function tickSpacing() external view returns (int24);\\n\\n /// @notice The maximum amount of position liquidity that can use any tick in the range\\n /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and\\n /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool\\n /// @return The max amount of liquidity per tick\\n function maxLiquidityPerTick() external view returns (uint128);\\n}\\n\",\"keccak256\":\"0xf6e5d2cd1139c4c276bdbc8e1d2b256e456c866a91f1b868da265c6d2685c3f7\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Permissioned pool actions\\n/// @notice Contains pool methods that may only be called by the factory owner\\ninterface IUniswapV3PoolOwnerActions {\\n /// @notice Set the denominator of the protocol's % share of the fees\\n /// @param feeProtocol0 new protocol fee for token0 of the pool\\n /// @param feeProtocol1 new protocol fee for token1 of the pool\\n function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external;\\n\\n /// @notice Collect the protocol fee accrued to the pool\\n /// @param recipient The address to which collected protocol fees should be sent\\n /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1\\n /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0\\n /// @return amount0 The protocol fee collected in token0\\n /// @return amount1 The protocol fee collected in token1\\n function collectProtocol(\\n address recipient,\\n uint128 amount0Requested,\\n uint128 amount1Requested\\n ) external returns (uint128 amount0, uint128 amount1);\\n}\\n\",\"keccak256\":\"0x759b78a2918af9e99e246dc3af084f654e48ef32bb4e4cb8a966aa3dcaece235\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Pool state that can change\\n/// @notice These methods compose the pool's state, and can change with any frequency including multiple times\\n/// per transaction\\ninterface IUniswapV3PoolState {\\n /// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas\\n /// when accessed externally.\\n /// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value\\n /// tick The current tick of the pool, i.e. according to the last tick transition that was run.\\n /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick\\n /// boundary.\\n /// observationIndex The index of the last oracle observation that was written,\\n /// observationCardinality The current maximum number of observations stored in the pool,\\n /// observationCardinalityNext The next maximum number of observations, to be updated when the observation.\\n /// feeProtocol The protocol fee for both tokens of the pool.\\n /// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0\\n /// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee.\\n /// unlocked Whether the pool is currently locked to reentrancy\\n function slot0()\\n external\\n view\\n returns (\\n uint160 sqrtPriceX96,\\n int24 tick,\\n uint16 observationIndex,\\n uint16 observationCardinality,\\n uint16 observationCardinalityNext,\\n uint8 feeProtocol,\\n bool unlocked\\n );\\n\\n /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool\\n /// @dev This value can overflow the uint256\\n function feeGrowthGlobal0X128() external view returns (uint256);\\n\\n /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool\\n /// @dev This value can overflow the uint256\\n function feeGrowthGlobal1X128() external view returns (uint256);\\n\\n /// @notice The amounts of token0 and token1 that are owed to the protocol\\n /// @dev Protocol fees will never exceed uint128 max in either token\\n function protocolFees() external view returns (uint128 token0, uint128 token1);\\n\\n /// @notice The currently in range liquidity available to the pool\\n /// @dev This value has no relationship to the total liquidity across all ticks\\n function liquidity() external view returns (uint128);\\n\\n /// @notice Look up information about a specific tick in the pool\\n /// @param tick The tick to look up\\n /// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or\\n /// tick upper,\\n /// liquidityNet how much liquidity changes when the pool price crosses the tick,\\n /// feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0,\\n /// feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1,\\n /// tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick\\n /// secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick,\\n /// secondsOutside the seconds spent on the other side of the tick from the current tick,\\n /// initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false.\\n /// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0.\\n /// In addition, these values are only relative and must be used only in comparison to previous snapshots for\\n /// a specific position.\\n function ticks(int24 tick)\\n external\\n view\\n returns (\\n uint128 liquidityGross,\\n int128 liquidityNet,\\n uint256 feeGrowthOutside0X128,\\n uint256 feeGrowthOutside1X128,\\n int56 tickCumulativeOutside,\\n uint160 secondsPerLiquidityOutsideX128,\\n uint32 secondsOutside,\\n bool initialized\\n );\\n\\n /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information\\n function tickBitmap(int16 wordPosition) external view returns (uint256);\\n\\n /// @notice Returns the information about a position by the position's key\\n /// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper\\n /// @return _liquidity The amount of liquidity in the position,\\n /// Returns feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke,\\n /// Returns feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke,\\n /// Returns tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke,\\n /// Returns tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke\\n function positions(bytes32 key)\\n external\\n view\\n returns (\\n uint128 _liquidity,\\n uint256 feeGrowthInside0LastX128,\\n uint256 feeGrowthInside1LastX128,\\n uint128 tokensOwed0,\\n uint128 tokensOwed1\\n );\\n\\n /// @notice Returns data about a specific observation index\\n /// @param index The element of the observations array to fetch\\n /// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time\\n /// ago, rather than at a specific index in the array.\\n /// @return blockTimestamp The timestamp of the observation,\\n /// Returns tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp,\\n /// Returns secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp,\\n /// Returns initialized whether the observation has been initialized and the values are safe to use\\n function observations(uint256 index)\\n external\\n view\\n returns (\\n uint32 blockTimestamp,\\n int56 tickCumulative,\\n uint160 secondsPerLiquidityCumulativeX128,\\n bool initialized\\n );\\n}\\n\",\"keccak256\":\"0x852dc1f5df7dcf7f11e7bb3eed79f0cea72ad4b25f6a9d2c35aafb48925fd49f\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/libraries/FixedPoint96.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.4.0;\\n\\n/// @title FixedPoint96\\n/// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)\\n/// @dev Used in SqrtPriceMath.sol\\nlibrary FixedPoint96 {\\n uint8 internal constant RESOLUTION = 96;\\n uint256 internal constant Q96 = 0x1000000000000000000000000;\\n}\\n\",\"keccak256\":\"0x0ba8a9b95a956a4050749c0158e928398c447c91469682ca8a7cc7e77a7fe032\",\"license\":\"GPL-2.0-or-later\"},\"contracts/GUniPool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\nimport {\\n IUniswapV3MintCallback\\n} from \\\"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3MintCallback.sol\\\";\\nimport {\\n IUniswapV3SwapCallback\\n} from \\\"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol\\\";\\nimport {GUniPoolStorage} from \\\"./abstract/GUniPoolStorage.sol\\\";\\nimport {\\n IUniswapV3Pool\\n} from \\\"@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol\\\";\\nimport {TickMath} from \\\"./vendor/uniswap/TickMath.sol\\\";\\nimport {\\n IERC20,\\n SafeERC20\\n} from \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\nimport {SafeCast} from \\\"@openzeppelin/contracts/utils/math/SafeCast.sol\\\";\\nimport {\\n FullMath,\\n LiquidityAmounts\\n} from \\\"./vendor/uniswap/LiquidityAmounts.sol\\\";\\n\\ncontract GUniPool is\\n IUniswapV3MintCallback,\\n IUniswapV3SwapCallback,\\n GUniPoolStorage\\n{\\n using SafeERC20 for IERC20;\\n using TickMath for int24;\\n\\n event Minted(\\n address receiver,\\n uint256 mintAmount,\\n uint256 amount0In,\\n uint256 amount1In,\\n uint128 liquidityMinted\\n );\\n\\n event Burned(\\n address receiver,\\n uint256 burnAmount,\\n uint256 amount0Out,\\n uint256 amount1Out,\\n uint128 liquidityBurned\\n );\\n\\n event Rebalance(\\n int24 lowerTick_,\\n int24 upperTick_,\\n uint128 liquidityBefore,\\n uint128 liquidityAfter\\n );\\n\\n event FeesEarned(uint256 feesEarned0, uint256 feesEarned1);\\n\\n // solhint-disable-next-line max-line-length\\n constructor(address payable _gelato) GUniPoolStorage(_gelato) {} // solhint-disable-line no-empty-blocks\\n\\n /// @notice Uniswap V3 callback fn, called back on pool.mint\\n function uniswapV3MintCallback(\\n uint256 amount0Owed,\\n uint256 amount1Owed,\\n bytes calldata /*_data*/\\n ) external override {\\n require(msg.sender == address(pool), \\\"callback caller\\\");\\n\\n if (amount0Owed > 0) token0.safeTransfer(msg.sender, amount0Owed);\\n if (amount1Owed > 0) token1.safeTransfer(msg.sender, amount1Owed);\\n }\\n\\n /// @notice Uniswap v3 callback fn, called back on pool.swap\\n function uniswapV3SwapCallback(\\n int256 amount0Delta,\\n int256 amount1Delta,\\n bytes calldata /*data*/\\n ) external override {\\n require(msg.sender == address(pool), \\\"callback caller\\\");\\n\\n if (amount0Delta > 0)\\n token0.safeTransfer(msg.sender, uint256(amount0Delta));\\n else if (amount1Delta > 0)\\n token1.safeTransfer(msg.sender, uint256(amount1Delta));\\n }\\n\\n // User functions => Should be called via a Router\\n\\n /// @notice mint fungible G-UNI tokens, fractional shares of a Uniswap V3 position\\n /// @dev to compute the amouint of tokens necessary to mint `mintAmount` see getMintAmounts\\n /// @param mintAmount The number of G-UNI tokens to mint\\n /// @param receiver The account to receive the minted tokens\\n /// @return amount0 amount of token0 transferred from msg.sender to mint `mintAmount`\\n /// @return amount1 amount of token1 transferred from msg.sender to mint `mintAmount`\\n /// @return liquidityMinted amount of liquidity added to the underlying Uniswap V3 position\\n // solhint-disable-next-line function-max-lines, code-complexity\\n function mint(uint256 mintAmount, address receiver)\\n external\\n nonReentrant\\n returns (\\n uint256 amount0,\\n uint256 amount1,\\n uint128 liquidityMinted\\n )\\n {\\n require(mintAmount > 0, \\\"mint 0\\\");\\n\\n uint256 totalSupply = totalSupply();\\n\\n (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();\\n\\n if (totalSupply > 0) {\\n (uint256 amount0Current, uint256 amount1Current) =\\n getUnderlyingBalances();\\n\\n amount0 = FullMath.mulDivRoundingUp(\\n amount0Current,\\n mintAmount,\\n totalSupply\\n );\\n amount1 = FullMath.mulDivRoundingUp(\\n amount1Current,\\n mintAmount,\\n totalSupply\\n );\\n } else {\\n // if supply is 0 mintAmount == liquidity to deposit\\n (amount0, amount1) = LiquidityAmounts.getAmountsForLiquidity(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n SafeCast.toUint128(mintAmount)\\n );\\n }\\n\\n // transfer amounts owed to contract\\n if (amount0 > 0) {\\n token0.safeTransferFrom(msg.sender, address(this), amount0);\\n }\\n if (amount1 > 0) {\\n token1.safeTransferFrom(msg.sender, address(this), amount1);\\n }\\n\\n // deposit as much new liquidity as possible\\n liquidityMinted = LiquidityAmounts.getLiquidityForAmounts(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n amount0,\\n amount1\\n );\\n\\n pool.mint(address(this), lowerTick, upperTick, liquidityMinted, \\\"\\\");\\n\\n _mint(receiver, mintAmount);\\n emit Minted(receiver, mintAmount, amount0, amount1, liquidityMinted);\\n }\\n\\n /// @notice burn G-UNI tokens (fractional shares of a Uniswap V3 position) and receive tokens\\n /// @param burnAmount The number of G-UNI tokens to burn\\n /// @param receiver The account to receive the underlying amounts of token0 and token1\\n /// @return amount0 amount of token0 transferred to receiver for burning `burnAmount`\\n /// @return amount1 amount of token1 transferred to receiver for burning `burnAmount`\\n /// @return liquidityBurned amount of liquidity removed from the underlying Uniswap V3 position\\n // solhint-disable-next-line function-max-lines\\n function burn(uint256 burnAmount, address receiver)\\n external\\n nonReentrant\\n returns (\\n uint256 amount0,\\n uint256 amount1,\\n uint128 liquidityBurned\\n )\\n {\\n require(burnAmount > 0, \\\"burn 0\\\");\\n\\n uint256 totalSupply = totalSupply();\\n\\n (uint128 liquidity, , , , ) = pool.positions(_getPositionID());\\n\\n _burn(msg.sender, burnAmount);\\n\\n uint256 liquidityBurned_ =\\n FullMath.mulDiv(burnAmount, liquidity, totalSupply);\\n liquidityBurned = SafeCast.toUint128(liquidityBurned_);\\n (uint256 burn0, uint256 burn1, uint256 fee0, uint256 fee1) =\\n _withdraw(lowerTick, upperTick, liquidityBurned);\\n _applyFees(fee0, fee1);\\n (fee0, fee1) = _subtractAdminFees(fee0, fee1);\\n emit FeesEarned(fee0, fee1);\\n\\n amount0 =\\n burn0 +\\n FullMath.mulDiv(\\n token0.balanceOf(address(this)) -\\n burn0 -\\n managerBalance0 -\\n gelatoBalance0,\\n burnAmount,\\n totalSupply\\n );\\n amount1 =\\n burn1 +\\n FullMath.mulDiv(\\n token1.balanceOf(address(this)) -\\n burn1 -\\n managerBalance1 -\\n gelatoBalance1,\\n burnAmount,\\n totalSupply\\n );\\n\\n if (amount0 > 0) {\\n token0.safeTransfer(receiver, amount0);\\n }\\n\\n if (amount1 > 0) {\\n token1.safeTransfer(receiver, amount1);\\n }\\n\\n emit Burned(receiver, burnAmount, amount0, amount1, liquidityBurned);\\n }\\n\\n // Manager Functions => Called by Pool Manager\\n\\n /// @notice Change the range of underlying UniswapV3 position, only manager can call\\n /// @dev When changing the range the inventory of token0 and token1 may be rebalanced\\n /// with a swap to deposit as much liquidity as possible into the new position. Swap parameters\\n /// can be computed by simulating the whole operation: remove all liquidity, deposit as much\\n /// as possible into new position, then observe how much of token0 or token1 is leftover.\\n /// Swap a proportion of this leftover to deposit more liquidity into the position, since\\n /// any leftover will be unused and sit idle until the next rebalance.\\n /// @param newLowerTick The new lower bound of the position's range\\n /// @param newUpperTick The new upper bound of the position's range\\n /// @param swapThresholdPrice slippage parameter on the swap as a max or min sqrtPriceX96\\n /// @param swapAmountBPS amount of token to swap as proportion of total. Pass 0 to ignore swap.\\n /// @param zeroForOne Which token to input into the swap (true = token0, false = token1)\\n // solhint-disable-next-line function-max-lines\\n function executiveRebalance(\\n int24 newLowerTick,\\n int24 newUpperTick,\\n uint160 swapThresholdPrice,\\n uint256 swapAmountBPS,\\n bool zeroForOne\\n ) external onlyManager {\\n uint128 liquidity;\\n uint128 newLiquidity;\\n if (totalSupply() > 0) {\\n (liquidity, , , , ) = pool.positions(_getPositionID());\\n if (liquidity > 0) {\\n (, , uint256 fee0, uint256 fee1) =\\n _withdraw(lowerTick, upperTick, liquidity);\\n\\n _applyFees(fee0, fee1);\\n (fee0, fee1) = _subtractAdminFees(fee0, fee1);\\n emit FeesEarned(fee0, fee1);\\n }\\n\\n lowerTick = newLowerTick;\\n upperTick = newUpperTick;\\n\\n uint256 reinvest0 =\\n token0.balanceOf(address(this)) -\\n managerBalance0 -\\n gelatoBalance0;\\n uint256 reinvest1 =\\n token1.balanceOf(address(this)) -\\n managerBalance1 -\\n gelatoBalance1;\\n\\n _deposit(\\n newLowerTick,\\n newUpperTick,\\n reinvest0,\\n reinvest1,\\n swapThresholdPrice,\\n swapAmountBPS,\\n zeroForOne\\n );\\n\\n (newLiquidity, , , , ) = pool.positions(_getPositionID());\\n require(newLiquidity > 0, \\\"new position 0\\\");\\n } else {\\n lowerTick = newLowerTick;\\n upperTick = newUpperTick;\\n }\\n\\n emit Rebalance(newLowerTick, newUpperTick, liquidity, newLiquidity);\\n }\\n\\n // Gelatofied functions => Automatically called by Gelato\\n\\n /// @notice Reinvest fees earned into underlying position, only gelato executors can call\\n /// Position bounds CANNOT be altered by gelato, only manager may via executiveRebalance.\\n /// Frequency of rebalance configured with gelatoRebalanceBPS, alterable by manager.\\n function rebalance(\\n uint160 swapThresholdPrice,\\n uint256 swapAmountBPS,\\n bool zeroForOne,\\n uint256 feeAmount,\\n address paymentToken\\n ) external gelatofy(feeAmount, paymentToken) {\\n if (swapAmountBPS > 0) {\\n _checkSlippage(swapThresholdPrice, zeroForOne);\\n }\\n (uint128 liquidity, , , , ) = pool.positions(_getPositionID());\\n _rebalance(\\n liquidity,\\n swapThresholdPrice,\\n swapAmountBPS,\\n zeroForOne,\\n feeAmount,\\n paymentToken\\n );\\n\\n (uint128 newLiquidity, , , , ) = pool.positions(_getPositionID());\\n require(newLiquidity > liquidity, \\\"liquidity must increase\\\");\\n\\n emit Rebalance(lowerTick, upperTick, liquidity, newLiquidity);\\n }\\n\\n /// @notice withdraw manager fees accrued, only gelato executors can call.\\n /// Target account to receive fees is managerTreasury, alterable by manager.\\n /// Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager.\\n function withdrawManagerBalance(uint256 feeAmount, address feeToken)\\n external\\n gelatofy(feeAmount, feeToken)\\n {\\n (uint256 amount0, uint256 amount1) =\\n _balancesToWithdraw(\\n managerBalance0,\\n managerBalance1,\\n feeAmount,\\n feeToken\\n );\\n\\n managerBalance0 = 0;\\n managerBalance1 = 0;\\n\\n if (amount0 > 0) {\\n token0.safeTransfer(managerTreasury, amount0);\\n }\\n\\n if (amount1 > 0) {\\n token1.safeTransfer(managerTreasury, amount1);\\n }\\n }\\n\\n /// @notice withdraw gelato fees accrued, only gelato executors can call.\\n /// Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager.\\n function withdrawGelatoBalance(uint256 feeAmount, address feeToken)\\n external\\n gelatofy(feeAmount, feeToken)\\n {\\n (uint256 amount0, uint256 amount1) =\\n _balancesToWithdraw(\\n gelatoBalance0,\\n gelatoBalance1,\\n feeAmount,\\n feeToken\\n );\\n\\n gelatoBalance0 = 0;\\n gelatoBalance1 = 0;\\n\\n if (amount0 > 0) {\\n token0.safeTransfer(GELATO, amount0);\\n }\\n\\n if (amount1 > 0) {\\n token1.safeTransfer(GELATO, amount1);\\n }\\n }\\n\\n function _balancesToWithdraw(\\n uint256 balance0,\\n uint256 balance1,\\n uint256 feeAmount,\\n address feeToken\\n ) internal view returns (uint256 amount0, uint256 amount1) {\\n if (feeToken == address(token0)) {\\n require(\\n (balance0 * gelatoWithdrawBPS) / 10000 >= feeAmount,\\n \\\"high fee\\\"\\n );\\n amount0 = balance0 - feeAmount;\\n amount1 = balance1;\\n } else if (feeToken == address(token1)) {\\n require(\\n (balance1 * gelatoWithdrawBPS) / 10000 >= feeAmount,\\n \\\"high fee\\\"\\n );\\n amount1 = balance1 - feeAmount;\\n amount0 = balance0;\\n } else {\\n revert(\\\"wrong token\\\");\\n }\\n }\\n\\n // View functions\\n\\n /// @notice compute maximum G-UNI tokens that can be minted from `amount0Max` and `amount1Max`\\n /// @param amount0Max The maximum amount of token0 to forward on mint\\n /// @param amount0Max The maximum amount of token1 to forward on mint\\n /// @return amount0 actual amount of token0 to forward when minting `mintAmount`\\n /// @return amount1 actual amount of token1 to forward when minting `mintAmount`\\n /// @return mintAmount maximum number of G-UNI tokens to mint\\n function getMintAmounts(uint256 amount0Max, uint256 amount1Max)\\n external\\n view\\n returns (\\n uint256 amount0,\\n uint256 amount1,\\n uint256 mintAmount\\n )\\n {\\n uint256 totalSupply = totalSupply();\\n if (totalSupply > 0) {\\n (amount0, amount1, mintAmount) = _computeMintAmounts(\\n totalSupply,\\n amount0Max,\\n amount1Max\\n );\\n } else {\\n (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();\\n uint128 newLiquidity =\\n LiquidityAmounts.getLiquidityForAmounts(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n amount0Max,\\n amount1Max\\n );\\n mintAmount = uint256(newLiquidity);\\n (amount0, amount1) = LiquidityAmounts.getAmountsForLiquidity(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n newLiquidity\\n );\\n }\\n }\\n\\n /// @notice compute total underlying holdings of the G-UNI token supply\\n /// includes current liquidity invested in uniswap position, current fees earned\\n /// and any uninvested leftover (but does not include manager or gelato fees accrued)\\n /// @return amount0Current current total underlying balance of token0\\n /// @return amount1Current current total underlying balance of token1\\n function getUnderlyingBalances()\\n public\\n view\\n returns (uint256 amount0Current, uint256 amount1Current)\\n {\\n (uint160 sqrtRatioX96, int24 tick, , , , , ) = pool.slot0();\\n return _getUnderlyingBalances(sqrtRatioX96, tick);\\n }\\n\\n function getUnderlyingBalancesAtPrice(uint160 sqrtRatioX96)\\n external\\n view\\n returns (uint256 amount0Current, uint256 amount1Current)\\n {\\n (, int24 tick, , , , , ) = pool.slot0();\\n return _getUnderlyingBalances(sqrtRatioX96, tick);\\n }\\n\\n // solhint-disable-next-line function-max-lines\\n function _getUnderlyingBalances(uint160 sqrtRatioX96, int24 tick)\\n internal\\n view\\n returns (uint256 amount0Current, uint256 amount1Current)\\n {\\n (\\n uint128 liquidity,\\n uint256 feeGrowthInside0Last,\\n uint256 feeGrowthInside1Last,\\n uint128 tokensOwed0,\\n uint128 tokensOwed1\\n ) = pool.positions(_getPositionID());\\n\\n // compute current holdings from liquidity\\n (amount0Current, amount1Current) = LiquidityAmounts\\n .getAmountsForLiquidity(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n liquidity\\n );\\n\\n // compute current fees earned\\n uint256 fee0 =\\n _computeFeesEarned(true, feeGrowthInside0Last, tick, liquidity) +\\n uint256(tokensOwed0);\\n uint256 fee1 =\\n _computeFeesEarned(false, feeGrowthInside1Last, tick, liquidity) +\\n uint256(tokensOwed1);\\n\\n (fee0, fee1) = _subtractAdminFees(fee0, fee1);\\n\\n // add any leftover in contract to current holdings\\n amount0Current +=\\n fee0 +\\n token0.balanceOf(address(this)) -\\n managerBalance0 -\\n gelatoBalance0;\\n amount1Current +=\\n fee1 +\\n token1.balanceOf(address(this)) -\\n managerBalance1 -\\n gelatoBalance1;\\n }\\n\\n // Private functions\\n\\n // solhint-disable-next-line function-max-lines\\n function _rebalance(\\n uint128 liquidity,\\n uint160 swapThresholdPrice,\\n uint256 swapAmountBPS,\\n bool zeroForOne,\\n uint256 feeAmount,\\n address paymentToken\\n ) private {\\n uint256 leftover0 =\\n token0.balanceOf(address(this)) - managerBalance0 - gelatoBalance0;\\n uint256 leftover1 =\\n token1.balanceOf(address(this)) - managerBalance1 - gelatoBalance1;\\n\\n (, , uint256 feesEarned0, uint256 feesEarned1) =\\n _withdraw(lowerTick, upperTick, liquidity);\\n _applyFees(feesEarned0, feesEarned1);\\n (feesEarned0, feesEarned1) = _subtractAdminFees(\\n feesEarned0,\\n feesEarned1\\n );\\n emit FeesEarned(feesEarned0, feesEarned1);\\n feesEarned0 += leftover0;\\n feesEarned1 += leftover1;\\n\\n if (paymentToken == address(token0)) {\\n require(\\n (feesEarned0 * gelatoRebalanceBPS) / 10000 >= feeAmount,\\n \\\"high fee\\\"\\n );\\n leftover0 =\\n token0.balanceOf(address(this)) -\\n managerBalance0 -\\n gelatoBalance0 -\\n feeAmount;\\n leftover1 =\\n token1.balanceOf(address(this)) -\\n managerBalance1 -\\n gelatoBalance1;\\n } else if (paymentToken == address(token1)) {\\n require(\\n (feesEarned1 * gelatoRebalanceBPS) / 10000 >= feeAmount,\\n \\\"high fee\\\"\\n );\\n leftover0 =\\n token0.balanceOf(address(this)) -\\n managerBalance0 -\\n gelatoBalance0;\\n leftover1 =\\n token1.balanceOf(address(this)) -\\n managerBalance1 -\\n gelatoBalance1 -\\n feeAmount;\\n } else {\\n revert(\\\"wrong token\\\");\\n }\\n\\n _deposit(\\n lowerTick,\\n upperTick,\\n leftover0,\\n leftover1,\\n swapThresholdPrice,\\n swapAmountBPS,\\n zeroForOne\\n );\\n }\\n\\n // solhint-disable-next-line function-max-lines\\n function _withdraw(\\n int24 lowerTick_,\\n int24 upperTick_,\\n uint128 liquidity\\n )\\n private\\n returns (\\n uint256 burn0,\\n uint256 burn1,\\n uint256 fee0,\\n uint256 fee1\\n )\\n {\\n uint256 preBalance0 = token0.balanceOf(address(this));\\n uint256 preBalance1 = token1.balanceOf(address(this));\\n\\n (burn0, burn1) = pool.burn(lowerTick_, upperTick_, liquidity);\\n\\n pool.collect(\\n address(this),\\n lowerTick_,\\n upperTick_,\\n type(uint128).max,\\n type(uint128).max\\n );\\n\\n fee0 = token0.balanceOf(address(this)) - preBalance0 - burn0;\\n fee1 = token1.balanceOf(address(this)) - preBalance1 - burn1;\\n }\\n\\n // solhint-disable-next-line function-max-lines\\n function _deposit(\\n int24 lowerTick_,\\n int24 upperTick_,\\n uint256 amount0,\\n uint256 amount1,\\n uint160 swapThresholdPrice,\\n uint256 swapAmountBPS,\\n bool zeroForOne\\n ) private {\\n (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();\\n // First, deposit as much as we can\\n uint128 baseLiquidity =\\n LiquidityAmounts.getLiquidityForAmounts(\\n sqrtRatioX96,\\n lowerTick_.getSqrtRatioAtTick(),\\n upperTick_.getSqrtRatioAtTick(),\\n amount0,\\n amount1\\n );\\n if (baseLiquidity > 0) {\\n (uint256 amountDeposited0, uint256 amountDeposited1) =\\n pool.mint(\\n address(this),\\n lowerTick_,\\n upperTick_,\\n baseLiquidity,\\n \\\"\\\"\\n );\\n\\n amount0 -= amountDeposited0;\\n amount1 -= amountDeposited1;\\n }\\n int256 swapAmount =\\n SafeCast.toInt256(\\n ((zeroForOne ? amount0 : amount1) * swapAmountBPS) / 10000\\n );\\n if (swapAmount > 0) {\\n _swapAndDeposit(\\n lowerTick_,\\n upperTick_,\\n amount0,\\n amount1,\\n swapAmount,\\n swapThresholdPrice,\\n zeroForOne\\n );\\n }\\n }\\n\\n function _swapAndDeposit(\\n int24 lowerTick_,\\n int24 upperTick_,\\n uint256 amount0,\\n uint256 amount1,\\n int256 swapAmount,\\n uint160 swapThresholdPrice,\\n bool zeroForOne\\n ) private returns (uint256 finalAmount0, uint256 finalAmount1) {\\n (int256 amount0Delta, int256 amount1Delta) =\\n pool.swap(\\n address(this),\\n zeroForOne,\\n swapAmount,\\n swapThresholdPrice,\\n \\\"\\\"\\n );\\n finalAmount0 = uint256(SafeCast.toInt256(amount0) - amount0Delta);\\n finalAmount1 = uint256(SafeCast.toInt256(amount1) - amount1Delta);\\n\\n // Add liquidity a second time\\n (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();\\n uint128 liquidityAfterSwap =\\n LiquidityAmounts.getLiquidityForAmounts(\\n sqrtRatioX96,\\n lowerTick_.getSqrtRatioAtTick(),\\n upperTick_.getSqrtRatioAtTick(),\\n finalAmount0,\\n finalAmount1\\n );\\n if (liquidityAfterSwap > 0) {\\n pool.mint(\\n address(this),\\n lowerTick_,\\n upperTick_,\\n liquidityAfterSwap,\\n \\\"\\\"\\n );\\n }\\n }\\n\\n // solhint-disable-next-line function-max-lines, code-complexity\\n function _computeMintAmounts(\\n uint256 totalSupply,\\n uint256 amount0Max,\\n uint256 amount1Max\\n )\\n private\\n view\\n returns (\\n uint256 amount0,\\n uint256 amount1,\\n uint256 mintAmount\\n )\\n {\\n (uint256 amount0Current, uint256 amount1Current) =\\n getUnderlyingBalances();\\n\\n // compute proportional amount of tokens to mint\\n if (amount0Current == 0 && amount1Current > 0) {\\n mintAmount = FullMath.mulDiv(\\n amount1Max,\\n totalSupply,\\n amount1Current\\n );\\n } else if (amount1Current == 0 && amount0Current > 0) {\\n mintAmount = FullMath.mulDiv(\\n amount0Max,\\n totalSupply,\\n amount0Current\\n );\\n } else if (amount0Current == 0 && amount1Current == 0) {\\n revert(\\\"\\\");\\n } else {\\n // only if both are non-zero\\n uint256 amount0Mint =\\n FullMath.mulDiv(amount0Max, totalSupply, amount0Current);\\n uint256 amount1Mint =\\n FullMath.mulDiv(amount1Max, totalSupply, amount1Current);\\n require(amount0Mint > 0 && amount1Mint > 0, \\\"mint 0\\\");\\n\\n mintAmount = amount0Mint < amount1Mint ? amount0Mint : amount1Mint;\\n }\\n\\n // compute amounts owed to contract\\n amount0 = FullMath.mulDivRoundingUp(\\n mintAmount,\\n amount0Current,\\n totalSupply\\n );\\n amount1 = FullMath.mulDivRoundingUp(\\n mintAmount,\\n amount1Current,\\n totalSupply\\n );\\n }\\n\\n // solhint-disable-next-line function-max-lines\\n function _computeFeesEarned(\\n bool isZero,\\n uint256 feeGrowthInsideLast,\\n int24 tick,\\n uint128 liquidity\\n ) private view returns (uint256 fee) {\\n uint256 feeGrowthOutsideLower;\\n uint256 feeGrowthOutsideUpper;\\n uint256 feeGrowthGlobal;\\n if (isZero) {\\n feeGrowthGlobal = pool.feeGrowthGlobal0X128();\\n (, , feeGrowthOutsideLower, , , , , ) = pool.ticks(lowerTick);\\n (, , feeGrowthOutsideUpper, , , , , ) = pool.ticks(upperTick);\\n } else {\\n feeGrowthGlobal = pool.feeGrowthGlobal1X128();\\n (, , , feeGrowthOutsideLower, , , , ) = pool.ticks(lowerTick);\\n (, , , feeGrowthOutsideUpper, , , , ) = pool.ticks(upperTick);\\n }\\n\\n unchecked {\\n // calculate fee growth below\\n uint256 feeGrowthBelow;\\n if (tick >= lowerTick) {\\n feeGrowthBelow = feeGrowthOutsideLower;\\n } else {\\n feeGrowthBelow = feeGrowthGlobal - feeGrowthOutsideLower;\\n }\\n\\n // calculate fee growth above\\n uint256 feeGrowthAbove;\\n if (tick < upperTick) {\\n feeGrowthAbove = feeGrowthOutsideUpper;\\n } else {\\n feeGrowthAbove = feeGrowthGlobal - feeGrowthOutsideUpper;\\n }\\n\\n uint256 feeGrowthInside =\\n feeGrowthGlobal - feeGrowthBelow - feeGrowthAbove;\\n fee = FullMath.mulDiv(\\n liquidity,\\n feeGrowthInside - feeGrowthInsideLast,\\n 0x100000000000000000000000000000000\\n );\\n }\\n }\\n\\n function _applyFees(uint256 _fee0, uint256 _fee1) private {\\n gelatoBalance0 += (_fee0 * gelatoFeeBPS) / 10000;\\n gelatoBalance1 += (_fee1 * gelatoFeeBPS) / 10000;\\n managerBalance0 += (_fee0 * managerFeeBPS) / 10000;\\n managerBalance1 += (_fee1 * managerFeeBPS) / 10000;\\n }\\n\\n function _subtractAdminFees(uint256 rawFee0, uint256 rawFee1)\\n private\\n view\\n returns (uint256 fee0, uint256 fee1)\\n {\\n uint256 deduct0 = (rawFee0 * (gelatoFeeBPS + managerFeeBPS)) / 10000;\\n uint256 deduct1 = (rawFee1 * (gelatoFeeBPS + managerFeeBPS)) / 10000;\\n fee0 = rawFee0 - deduct0;\\n fee1 = rawFee1 - deduct1;\\n }\\n\\n function _checkSlippage(uint160 swapThresholdPrice, bool zeroForOne)\\n private\\n view\\n {\\n uint32[] memory secondsAgo = new uint32[](2);\\n secondsAgo[0] = gelatoSlippageInterval;\\n secondsAgo[1] = 0;\\n\\n (int56[] memory tickCumulatives, ) = pool.observe(secondsAgo);\\n\\n require(tickCumulatives.length == 2, \\\"array len\\\");\\n uint160 avgSqrtRatioX96;\\n unchecked {\\n int24 avgTick =\\n int24(\\n (tickCumulatives[1] - tickCumulatives[0]) /\\n int56(uint56(gelatoSlippageInterval))\\n );\\n avgSqrtRatioX96 = avgTick.getSqrtRatioAtTick();\\n }\\n\\n uint160 maxSlippage = (avgSqrtRatioX96 * gelatoSlippageBPS) / 10000;\\n if (zeroForOne) {\\n require(\\n swapThresholdPrice >= avgSqrtRatioX96 - maxSlippage,\\n \\\"high slippage\\\"\\n );\\n } else {\\n require(\\n swapThresholdPrice <= avgSqrtRatioX96 + maxSlippage,\\n \\\"high slippage\\\"\\n );\\n }\\n }\\n}\\n\",\"keccak256\":\"0xdd382818c81f34c434bb3d4235ac9ff39034cb68e1b87244837d9250878d9fa0\",\"license\":\"GPL-3.0\"},\"contracts/abstract/GUniPoolStorage.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\nimport {Gelatofied} from \\\"./Gelatofied.sol\\\";\\nimport {OwnableUninitialized} from \\\"./OwnableUninitialized.sol\\\";\\nimport {\\n IUniswapV3Pool\\n} from \\\"@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol\\\";\\nimport {IERC20} from \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport {\\n ReentrancyGuardUpgradeable\\n} from \\\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\\\";\\nimport {\\n ERC20Upgradeable\\n} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol\\\";\\n\\n/// @dev Single Global upgradeable state var storage base: APPEND ONLY\\n/// @dev Add all inherited contracts with state vars here: APPEND ONLY\\n/// @dev ERC20Upgradable Includes Initialize\\n// solhint-disable-next-line max-states-count\\n/// @dev Modified to support 0.8.19\\n/// @dev Modified to set the gelatoFeeBPS to 0\\nabstract contract GUniPoolStorage is\\n ERC20Upgradeable, /* XXXX DONT MODIFY ORDERING XXXX */\\n ReentrancyGuardUpgradeable,\\n OwnableUninitialized,\\n Gelatofied\\n // APPEND ADDITIONAL BASE WITH STATE VARS BELOW:\\n // XXXX DONT MODIFY ORDERING XXXX\\n{\\n // solhint-disable-next-line const-name-snakecase\\n string public constant version = \\\"1.0.0\\\";\\n // solhint-disable-next-line const-name-snakecase\\n uint16 public constant gelatoFeeBPS = 0;\\n\\n // XXXXXXXX DO NOT MODIFY ORDERING XXXXXXXX\\n int24 public lowerTick;\\n int24 public upperTick;\\n\\n uint16 public gelatoRebalanceBPS;\\n uint16 public gelatoWithdrawBPS;\\n uint16 public gelatoSlippageBPS;\\n uint32 public gelatoSlippageInterval;\\n\\n uint16 public managerFeeBPS;\\n address public managerTreasury;\\n\\n uint256 public managerBalance0;\\n uint256 public managerBalance1;\\n uint256 public gelatoBalance0;\\n uint256 public gelatoBalance1;\\n\\n IUniswapV3Pool public pool;\\n IERC20 public token0;\\n IERC20 public token1;\\n // APPPEND ADDITIONAL STATE VARS BELOW:\\n // XXXXXXXX DO NOT MODIFY ORDERING XXXXXXXX\\n\\n event UpdateAdminTreasury(\\n address oldAdminTreasury,\\n address newAdminTreasury\\n );\\n\\n event UpdateGelatoParams(\\n uint16 gelatoRebalanceBPS,\\n uint16 gelatoWithdrawBPS,\\n uint16 gelatoSlippageBPS,\\n uint32 gelatoSlippageInterval\\n );\\n\\n event SetManagerFee(uint16 managerFee);\\n\\n // solhint-disable-next-line max-line-length\\n constructor(address payable _gelato) Gelatofied(_gelato) {} // solhint-disable-line no-empty-blocks\\n\\n /// @notice initialize storage variables on a new G-UNI pool, only called once\\n /// @param _name name of G-UNI token\\n /// @param _symbol symbol of G-UNI token\\n /// @param _pool address of Uniswap V3 pool\\n /// @param _managerFeeBPS proportion of fees earned that go to manager treasury\\n /// note that the 4 above params are NOT UPDATEABLE AFTER INILIALIZATION\\n /// @param _lowerTick initial lowerTick (only changeable with executiveRebalance)\\n /// @param _lowerTick initial upperTick (only changeable with executiveRebalance)\\n /// @param _manager_ address of manager (ownership can be transferred)\\n function initialize(\\n string memory _name,\\n string memory _symbol,\\n address _pool,\\n uint16 _managerFeeBPS,\\n int24 _lowerTick,\\n int24 _upperTick,\\n address _manager_\\n ) external initializer {\\n require(_managerFeeBPS <= 10000 - gelatoFeeBPS, \\\"mBPS\\\");\\n\\n // these variables are immutable after initialization\\n pool = IUniswapV3Pool(_pool);\\n token0 = IERC20(pool.token0());\\n token1 = IERC20(pool.token1());\\n managerFeeBPS = _managerFeeBPS; // if set to 0 here manager can still initialize later\\n\\n // these variables can be udpated by the manager\\n gelatoSlippageInterval = 5 minutes; // default: last five minutes;\\n gelatoSlippageBPS = 500; // default: 5% slippage\\n gelatoWithdrawBPS = 100; // default: only auto withdraw if tx fee is lt 1% withdrawn\\n gelatoRebalanceBPS = 200; // default: only rebalance if tx fee is lt 2% reinvested\\n managerTreasury = _manager_; // default: treasury is admin\\n lowerTick = _lowerTick;\\n upperTick = _upperTick;\\n _manager = _manager_;\\n\\n // e.g. \\\"Gelato Uniswap V3 USDC/DAI LP\\\" and \\\"G-UNI\\\"\\n __ERC20_init(_name, _symbol);\\n __ReentrancyGuard_init();\\n }\\n\\n /// @notice change configurable parameters, only manager can call\\n /// @param newRebalanceBPS controls frequency of gelato rebalances: gas fee to execute\\n /// rebalance can be gelatoRebalanceBPS proportion of fees earned since last rebalance\\n /// @param newWithdrawBPS controls frequency of gelato withdrawals: gas fee to execute\\n /// withdrawal can be gelatoWithdrawBPS proportion of fees accrued since last withdraw\\n /// @param newSlippageBPS maximum slippage on swaps during gelato rebalance\\n /// @param newSlippageInterval length of time for TWAP used in computing slippage on swaps\\n /// @param newTreasury address where managerFee withdrawals are sent\\n // solhint-disable-next-line code-complexity\\n function updateGelatoParams(\\n uint16 newRebalanceBPS,\\n uint16 newWithdrawBPS,\\n uint16 newSlippageBPS,\\n uint32 newSlippageInterval,\\n address newTreasury\\n ) external onlyManager {\\n require(newWithdrawBPS <= 10000, \\\"BPS\\\");\\n require(newRebalanceBPS <= 10000, \\\"BPS\\\");\\n require(newSlippageBPS <= 10000, \\\"BPS\\\");\\n emit UpdateGelatoParams(\\n newRebalanceBPS,\\n newWithdrawBPS,\\n newSlippageBPS,\\n newSlippageInterval\\n );\\n if (newRebalanceBPS != 0) gelatoRebalanceBPS = newRebalanceBPS;\\n if (newWithdrawBPS != 0) gelatoWithdrawBPS = newWithdrawBPS;\\n if (newSlippageBPS != 0) gelatoSlippageBPS = newSlippageBPS;\\n if (newSlippageInterval != 0)\\n gelatoSlippageInterval = newSlippageInterval;\\n if (newTreasury != address(0)) managerTreasury = newTreasury;\\n }\\n\\n /// @notice initializeManagerFee sets a managerFee, only manager can call.\\n /// If a manager fee was not set in the initialize function it can be set here\\n /// but ONLY ONCE- after it is set to a non-zero value, managerFee can never be set again.\\n /// @param _managerFeeBPS proportion of fees earned that are credited to manager in Basis Points\\n function initializeManagerFee(uint16 _managerFeeBPS) external onlyManager {\\n require(managerFeeBPS == 0, \\\"fee\\\");\\n require(\\n _managerFeeBPS > 0 && _managerFeeBPS <= 10000 - gelatoFeeBPS,\\n \\\"mBPS\\\"\\n );\\n emit SetManagerFee(_managerFeeBPS);\\n managerFeeBPS = _managerFeeBPS;\\n }\\n\\n function renounceOwnership() public virtual override onlyManager {\\n managerTreasury = address(0);\\n managerFeeBPS = 0;\\n managerBalance0 = 0;\\n managerBalance1 = 0;\\n super.renounceOwnership();\\n }\\n\\n function getPositionID() external view returns (bytes32 positionID) {\\n return _getPositionID();\\n }\\n\\n function _getPositionID() internal view returns (bytes32 positionID) {\\n return keccak256(abi.encodePacked(address(this), lowerTick, upperTick));\\n }\\n}\\n\",\"keccak256\":\"0xd1ad805a13c7cd73554b1e3cc3735f3f369d759f8e0b9188977b85295456d033\",\"license\":\"GPL-3.0\"},\"contracts/abstract/Gelatofied.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\nimport {Address} from \\\"@openzeppelin/contracts/utils/Address.sol\\\";\\nimport {\\n IERC20,\\n SafeERC20\\n} from \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\n\\n/// @dev DO NOT ADD STATE VARIABLES - APPEND THEM TO GelatoUniV3PoolStorage\\n/// @dev DO NOT ADD BASE CONTRACTS WITH STATE VARS - APPEND THEM TO GelatoUniV3PoolStorage\\nabstract contract Gelatofied {\\n using Address for address payable;\\n using SafeERC20 for IERC20;\\n\\n // solhint-disable-next-line var-name-mixedcase\\n address payable public immutable GELATO;\\n\\n address private constant _ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\\n\\n constructor(address payable _gelato) {\\n GELATO = _gelato;\\n }\\n\\n modifier gelatofy(uint256 _amount, address _paymentToken) {\\n require(msg.sender == GELATO, \\\"Gelatofied: Only gelato\\\");\\n _;\\n if (_paymentToken == _ETH) GELATO.sendValue(_amount);\\n else IERC20(_paymentToken).safeTransfer(GELATO, _amount);\\n }\\n}\\n\",\"keccak256\":\"0x264bc07e6e1b80c454c311ecf4b56afe245ddde31151ed9bcc4cb9ad25bec46a\",\"license\":\"GPL-3.0\"},\"contracts/abstract/OwnableUninitialized.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an manager) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the manager 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 * `onlyManager`, which can be applied to your functions to restrict their use to\\n * the manager.\\n */\\n/// @dev DO NOT ADD STATE VARIABLES - APPEND THEM TO GelatoUniV3PoolStorage\\n/// @dev DO NOT ADD BASE CONTRACTS WITH STATE VARS - APPEND THEM TO GelatoUniV3PoolStorage\\nabstract contract OwnableUninitialized {\\n address internal _manager;\\n\\n event OwnershipTransferred(\\n address indexed previousManager,\\n address indexed newManager\\n );\\n\\n /// @dev Initializes the contract setting the deployer as the initial manager.\\n /// CONSTRUCTOR EMPTY - USE INITIALIZIABLE INSTEAD\\n // solhint-disable-next-line no-empty-blocks\\n constructor() {}\\n\\n /**\\n * @dev Returns the address of the current manager.\\n */\\n function manager() public view virtual returns (address) {\\n return _manager;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the manager.\\n */\\n modifier onlyManager() {\\n require(manager() == msg.sender, \\\"Ownable: caller is not the manager\\\");\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without manager. It will not be possible to call\\n * `onlyManager` functions anymore. Can only be called by the current manager.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an manager,\\n * thereby removing any functionality that is only available to the manager.\\n */\\n function renounceOwnership() public virtual onlyManager {\\n emit OwnershipTransferred(_manager, address(0));\\n _manager = 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 manager.\\n */\\n function transferOwnership(address newOwner) public virtual onlyManager {\\n require(\\n newOwner != address(0),\\n \\\"Ownable: new manager is the zero address\\\"\\n );\\n emit OwnershipTransferred(_manager, newOwner);\\n _manager = newOwner;\\n }\\n}\\n\",\"keccak256\":\"0xb6016d5611f38fbd516a84ea2e56794cb76a8d61c40f6716d5f0133f195759bd\",\"license\":\"GPL-3.0\"},\"contracts/vendor/uniswap/FullMath.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity ^0.8.4;\\n\\n/// @title Contains 512-bit math functions\\n/// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision\\n/// @dev Handles \\\"phantom overflow\\\" i.e., allows multiplication and division where an intermediate value overflows 256 bits\\nlibrary FullMath {\\n /// @notice Calculates floor(a\\u00d7b\\u00f7denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n /// @param a The multiplicand\\n /// @param b The multiplier\\n /// @param denominator The divisor\\n /// @return result The 256-bit result\\n /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv\\n function mulDiv(\\n uint256 a,\\n uint256 b,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = a * b\\n // Compute the product mod 2**256 and mod 2**256 - 1\\n // then use the Chinese Remainder Theorem to reconstruct\\n // the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2**256 + prod0\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(a, b, not(0))\\n prod0 := mul(a, b)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division\\n if (prod1 == 0) {\\n require(denominator > 0);\\n assembly {\\n result := div(prod0, denominator)\\n }\\n return result;\\n }\\n\\n // Make sure the result is less than 2**256.\\n // Also prevents denominator == 0\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0]\\n // Compute remainder using mulmod\\n uint256 remainder;\\n assembly {\\n remainder := mulmod(a, b, denominator)\\n }\\n // Subtract 256 bit number from 512 bit number\\n assembly {\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator\\n // Compute largest power of two divisor of denominator.\\n // Always >= 1.\\n // EDIT for 0.8 compatibility:\\n // see: https://ethereum.stackexchange.com/questions/96642/unary-operator-cannot-be-applied-to-type-uint256\\n uint256 twos = denominator & (~denominator + 1);\\n\\n // Divide denominator by power of two\\n assembly {\\n denominator := div(denominator, twos)\\n }\\n\\n // Divide [prod1 prod0] by the factors of two\\n assembly {\\n prod0 := div(prod0, twos)\\n }\\n // Shift in bits from prod1 into prod0. For this we need\\n // to flip `twos` such that it is 2**256 / twos.\\n // If twos is zero, then it becomes one\\n assembly {\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2**256\\n // Now that denominator is an odd number, it has an inverse\\n // modulo 2**256 such that denominator * inv = 1 mod 2**256.\\n // Compute the inverse by starting with a seed that is correct\\n // correct for four bits. That is, denominator * inv = 1 mod 2**4\\n uint256 inv = (3 * denominator) ^ 2;\\n // Now use Newton-Raphson iteration to improve the precision.\\n // Thanks to Hensel's lifting lemma, this also works in modular\\n // arithmetic, doubling the correct bits in each step.\\n inv *= 2 - denominator * inv; // inverse mod 2**8\\n inv *= 2 - denominator * inv; // inverse mod 2**16\\n inv *= 2 - denominator * inv; // inverse mod 2**32\\n inv *= 2 - denominator * inv; // inverse mod 2**64\\n inv *= 2 - denominator * inv; // inverse mod 2**128\\n inv *= 2 - denominator * inv; // inverse mod 2**256\\n\\n // Because the division is now exact we can divide by multiplying\\n // with the modular inverse of denominator. This will give us the\\n // correct result modulo 2**256. Since the precoditions guarantee\\n // that the outcome is less than 2**256, this is the final result.\\n // We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inv;\\n return result;\\n }\\n }\\n\\n /// @notice Calculates ceil(a\\u00d7b\\u00f7denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n /// @param a The multiplicand\\n /// @param b The multiplier\\n /// @param denominator The divisor\\n /// @return result The 256-bit result\\n function mulDivRoundingUp(\\n uint256 a,\\n uint256 b,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n result = mulDiv(a, b, denominator);\\n if (mulmod(a, b, denominator) > 0) {\\n require(result < type(uint256).max);\\n result++;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3fa0efa3eea2a84bd6ab7e55badd61f97069a6c50780059b036c810427a9740c\",\"license\":\"GPL-3.0\"},\"contracts/vendor/uniswap/LiquidityAmounts.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity >=0.5.0;\\n\\nimport {FullMath} from \\\"./FullMath.sol\\\";\\nimport \\\"@uniswap/v3-core/contracts/libraries/FixedPoint96.sol\\\";\\n\\n/// @title Liquidity amount functions\\n/// @notice Provides functions for computing liquidity amounts from token amounts and prices\\nlibrary LiquidityAmounts {\\n function toUint128(uint256 x) private pure returns (uint128 y) {\\n require((y = uint128(x)) == x);\\n }\\n\\n /// @notice Computes the amount of liquidity received for a given amount of token0 and price range\\n /// @dev Calculates amount0 * (sqrt(upper) * sqrt(lower)) / (sqrt(upper) - sqrt(lower)).\\n /// @param sqrtRatioAX96 A sqrt price\\n /// @param sqrtRatioBX96 Another sqrt price\\n /// @param amount0 The amount0 being sent in\\n /// @return liquidity The amount of returned liquidity\\n function getLiquidityForAmount0(\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint256 amount0\\n ) internal pure returns (uint128 liquidity) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n uint256 intermediate =\\n FullMath.mulDiv(sqrtRatioAX96, sqrtRatioBX96, FixedPoint96.Q96);\\n return\\n toUint128(\\n FullMath.mulDiv(\\n amount0,\\n intermediate,\\n sqrtRatioBX96 - sqrtRatioAX96\\n )\\n );\\n }\\n\\n /// @notice Computes the amount of liquidity received for a given amount of token1 and price range\\n /// @dev Calculates amount1 / (sqrt(upper) - sqrt(lower)).\\n /// @param sqrtRatioAX96 A sqrt price\\n /// @param sqrtRatioBX96 Another sqrt price\\n /// @param amount1 The amount1 being sent in\\n /// @return liquidity The amount of returned liquidity\\n function getLiquidityForAmount1(\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint256 amount1\\n ) internal pure returns (uint128 liquidity) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n return\\n toUint128(\\n FullMath.mulDiv(\\n amount1,\\n FixedPoint96.Q96,\\n sqrtRatioBX96 - sqrtRatioAX96\\n )\\n );\\n }\\n\\n /// @notice Computes the maximum amount of liquidity received for a given amount of token0, token1, the current\\n /// pool prices and the prices at the tick boundaries\\n function getLiquidityForAmounts(\\n uint160 sqrtRatioX96,\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint256 amount0,\\n uint256 amount1\\n ) internal pure returns (uint128 liquidity) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n\\n if (sqrtRatioX96 <= sqrtRatioAX96) {\\n liquidity = getLiquidityForAmount0(\\n sqrtRatioAX96,\\n sqrtRatioBX96,\\n amount0\\n );\\n } else if (sqrtRatioX96 < sqrtRatioBX96) {\\n uint128 liquidity0 =\\n getLiquidityForAmount0(sqrtRatioX96, sqrtRatioBX96, amount0);\\n uint128 liquidity1 =\\n getLiquidityForAmount1(sqrtRatioAX96, sqrtRatioX96, amount1);\\n\\n liquidity = liquidity0 < liquidity1 ? liquidity0 : liquidity1;\\n } else {\\n liquidity = getLiquidityForAmount1(\\n sqrtRatioAX96,\\n sqrtRatioBX96,\\n amount1\\n );\\n }\\n }\\n\\n /// @notice Computes the amount of token0 for a given amount of liquidity and a price range\\n /// @param sqrtRatioAX96 A sqrt price\\n /// @param sqrtRatioBX96 Another sqrt price\\n /// @param liquidity The liquidity being valued\\n /// @return amount0 The amount0\\n function getAmount0ForLiquidity(\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint128 liquidity\\n ) internal pure returns (uint256 amount0) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n\\n return\\n FullMath.mulDiv(\\n uint256(liquidity) << FixedPoint96.RESOLUTION,\\n sqrtRatioBX96 - sqrtRatioAX96,\\n sqrtRatioBX96\\n ) / sqrtRatioAX96;\\n }\\n\\n /// @notice Computes the amount of token1 for a given amount of liquidity and a price range\\n /// @param sqrtRatioAX96 A sqrt price\\n /// @param sqrtRatioBX96 Another sqrt price\\n /// @param liquidity The liquidity being valued\\n /// @return amount1 The amount1\\n function getAmount1ForLiquidity(\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint128 liquidity\\n ) internal pure returns (uint256 amount1) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n\\n return\\n FullMath.mulDiv(\\n liquidity,\\n sqrtRatioBX96 - sqrtRatioAX96,\\n FixedPoint96.Q96\\n );\\n }\\n\\n /// @notice Computes the token0 and token1 value for a given amount of liquidity, the current\\n /// pool prices and the prices at the tick boundaries\\n function getAmountsForLiquidity(\\n uint160 sqrtRatioX96,\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint128 liquidity\\n ) internal pure returns (uint256 amount0, uint256 amount1) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n\\n if (sqrtRatioX96 <= sqrtRatioAX96) {\\n amount0 = getAmount0ForLiquidity(\\n sqrtRatioAX96,\\n sqrtRatioBX96,\\n liquidity\\n );\\n } else if (sqrtRatioX96 < sqrtRatioBX96) {\\n amount0 = getAmount0ForLiquidity(\\n sqrtRatioX96,\\n sqrtRatioBX96,\\n liquidity\\n );\\n amount1 = getAmount1ForLiquidity(\\n sqrtRatioAX96,\\n sqrtRatioX96,\\n liquidity\\n );\\n } else {\\n amount1 = getAmount1ForLiquidity(\\n sqrtRatioAX96,\\n sqrtRatioBX96,\\n liquidity\\n );\\n }\\n }\\n}\\n\",\"keccak256\":\"0x6205f6409d42fc9565530d2a69819bf8c4e4c66b7a4c61d0827e81c084df6832\",\"license\":\"GPL-3.0\"},\"contracts/vendor/uniswap/TickMath.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\n/// @title Math library for computing sqrt prices from ticks and vice versa\\n/// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports\\n/// prices between 2**-128 and 2**128\\nlibrary TickMath {\\n /// @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128\\n int24 internal constant MIN_TICK = -887272;\\n /// @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128\\n int24 internal constant MAX_TICK = -MIN_TICK;\\n\\n /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\\n uint160 internal constant MIN_SQRT_RATIO = 4295128739;\\n /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\\n uint160 internal constant MAX_SQRT_RATIO =\\n 1461446703485210103287273052203988822378723970342;\\n\\n /// @notice Calculates sqrt(1.0001^tick) * 2^96\\n /// @dev Throws if |tick| > max tick\\n /// @param tick The input tick for the above formula\\n /// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0)\\n /// at the given tick\\n function getSqrtRatioAtTick(int24 tick)\\n internal\\n pure\\n returns (uint160 sqrtPriceX96)\\n {\\n uint256 absTick =\\n tick < 0 ? uint256(-int256(tick)) : uint256(int256(tick));\\n\\n // EDIT: 0.8 compatibility\\n require(absTick <= uint256(int256(MAX_TICK)), \\\"T\\\");\\n\\n uint256 ratio =\\n absTick & 0x1 != 0\\n ? 0xfffcb933bd6fad37aa2d162d1a594001\\n : 0x100000000000000000000000000000000;\\n if (absTick & 0x2 != 0)\\n ratio = (ratio * 0xfff97272373d413259a46990580e213a) >> 128;\\n if (absTick & 0x4 != 0)\\n ratio = (ratio * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128;\\n if (absTick & 0x8 != 0)\\n ratio = (ratio * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128;\\n if (absTick & 0x10 != 0)\\n ratio = (ratio * 0xffcb9843d60f6159c9db58835c926644) >> 128;\\n if (absTick & 0x20 != 0)\\n ratio = (ratio * 0xff973b41fa98c081472e6896dfb254c0) >> 128;\\n if (absTick & 0x40 != 0)\\n ratio = (ratio * 0xff2ea16466c96a3843ec78b326b52861) >> 128;\\n if (absTick & 0x80 != 0)\\n ratio = (ratio * 0xfe5dee046a99a2a811c461f1969c3053) >> 128;\\n if (absTick & 0x100 != 0)\\n ratio = (ratio * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128;\\n if (absTick & 0x200 != 0)\\n ratio = (ratio * 0xf987a7253ac413176f2b074cf7815e54) >> 128;\\n if (absTick & 0x400 != 0)\\n ratio = (ratio * 0xf3392b0822b70005940c7a398e4b70f3) >> 128;\\n if (absTick & 0x800 != 0)\\n ratio = (ratio * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128;\\n if (absTick & 0x1000 != 0)\\n ratio = (ratio * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128;\\n if (absTick & 0x2000 != 0)\\n ratio = (ratio * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128;\\n if (absTick & 0x4000 != 0)\\n ratio = (ratio * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128;\\n if (absTick & 0x8000 != 0)\\n ratio = (ratio * 0x31be135f97d08fd981231505542fcfa6) >> 128;\\n if (absTick & 0x10000 != 0)\\n ratio = (ratio * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128;\\n if (absTick & 0x20000 != 0)\\n ratio = (ratio * 0x5d6af8dedb81196699c329225ee604) >> 128;\\n if (absTick & 0x40000 != 0)\\n ratio = (ratio * 0x2216e584f5fa1ea926041bedfe98) >> 128;\\n if (absTick & 0x80000 != 0)\\n ratio = (ratio * 0x48a170391f7dc42444e8fa2) >> 128;\\n\\n if (tick > 0) ratio = type(uint256).max / ratio;\\n\\n // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96.\\n // we then downcast because we know the result always fits within 160 bits due to our tick input constraint\\n // we round up in the division so getTickAtSqrtRatio of the output price is always consistent\\n sqrtPriceX96 = uint160(\\n (ratio >> 32) + (ratio % (1 << 32) == 0 ? 0 : 1)\\n );\\n }\\n\\n /// @notice Calculates the greatest tick value such that getRatioAtTick(tick) <= ratio\\n /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_RATIO, as MIN_SQRT_RATIO is the lowest value getRatioAtTick may\\n /// ever return.\\n /// @param sqrtPriceX96 The sqrt ratio for which to compute the tick as a Q64.96\\n /// @return tick The greatest tick for which the ratio is less than or equal to the input ratio\\n function getTickAtSqrtRatio(uint160 sqrtPriceX96)\\n internal\\n pure\\n returns (int24 tick)\\n {\\n // second inequality must be < because the price can never reach the price at the max tick\\n require(\\n sqrtPriceX96 >= MIN_SQRT_RATIO && sqrtPriceX96 < MAX_SQRT_RATIO,\\n \\\"R\\\"\\n );\\n uint256 ratio = uint256(sqrtPriceX96) << 32;\\n\\n uint256 r = ratio;\\n uint256 msb = 0;\\n\\n assembly {\\n let f := shl(7, gt(r, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(6, gt(r, 0xFFFFFFFFFFFFFFFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(5, gt(r, 0xFFFFFFFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(4, gt(r, 0xFFFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(3, gt(r, 0xFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(2, gt(r, 0xF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(1, gt(r, 0x3))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := gt(r, 0x1)\\n msb := or(msb, f)\\n }\\n\\n if (msb >= 128) r = ratio >> (msb - 127);\\n else r = ratio << (127 - msb);\\n\\n int256 log_2 = (int256(msb) - 128) << 64;\\n\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(63, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(62, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(61, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(60, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(59, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(58, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(57, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(56, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(55, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(54, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(53, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(52, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(51, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(50, f))\\n }\\n\\n int256 log_sqrt10001 = log_2 * 255738958999603826347141; // 128.128 number\\n\\n int24 tickLow =\\n int24(\\n (log_sqrt10001 - 3402992956809132418596140100660247210) >> 128\\n );\\n int24 tickHi =\\n int24(\\n (log_sqrt10001 + 291339464771989622907027621153398088495) >> 128\\n );\\n\\n tick = tickLow == tickHi\\n ? tickLow\\n : getSqrtRatioAtTick(tickHi) <= sqrtPriceX96\\n ? tickHi\\n : tickLow;\\n }\\n}\\n\",\"keccak256\":\"0x589b6104fd07d2e56e5b52edcfa53e6e47e2c38cace38025c16278ca73413f2d\",\"license\":\"GPL-3.0\"}},\"version\":1}", + "bytecode": "0x60a06040523480156200001157600080fd5b5060405162005e0e38038062005e0e833981016040819052620000349162000046565b6001600160a01b031660805262000078565b6000602082840312156200005957600080fd5b81516001600160a01b03811681146200007157600080fd5b9392505050565b608051615d3b620000d3600039600081816105f801528181610ce301528181610dcc01528181610e06015281816114a7015281816116d50152818161170f015281816117e20152818161185901526118960152615d3b6000f3fe608060405234801561001057600080fd5b50600436106102255760003560e01c8063065756db1461022a57806306fdde0314610246578063095ea7b31461025b5780630dfe16811461027e5780631322d9541461029e57806316f0115b146102b457806318160ddd146102c757806323b872dd146102cf57806324b8fd1b146102e257806331366be4146102f7578063313ce5671461031257806339509351146103215780633d8b30e11461033457806342fb9d4414610349578063481c6a751461035257806354fd4d501461035a578063672152bd1461037e57806370a08231146103a3578063715018a6146103cc578063727dd228146103d457806378ac6357146103f557806394bf804d1461040857806395d89b411461043f5780639894f21a1461044757806399fd808c146104755780639b1344ac14610488578063a457c2d71461049c578063a50b1fe7146104af578063a9059cbb146104c4578063b135c99f146104d7578063b536bd12146104ea578063b670ed7d146104f3578063be93dd5f14610506578063c345445914610519578063cc95353e14610522578063ccdf7a021461053c578063d21220a714610551578063d348799714610564578063d6e7ff3914610577578063dd62ed3e1461058c578063df28408a146105c5578063e25e15e3146105cd578063e4077894146105e0578063eff557a7146105f3578063f2fde38b1461061a578063fa461e331461062d578063fcd3533c14610640575b600080fd5b61023360995481565b6040519081526020015b60405180910390f35b61024e610653565b60405161023d9190614dc5565b61026e610269366004614e0d565b6106e5565b604051901515815260200161023d565b609e54610291906001600160a01b031681565b60405161023d9190614e39565b6102a66106fc565b60405161023d929190614e4d565b609d54610291906001600160a01b031681565b603554610233565b61026e6102dd366004614e5b565b610796565b6102f56102f0366004614eb9565b61084e565b005b6102ff600081565b60405161ffff909116815260200161023d565b6040516012815260200161023d565b61026e61032f366004614e0d565b610c3a565b6097546102ff90600160e01b900461ffff1681565b610233609a5481565b610291610c71565b61024e604051806040016040528060058152602001640312e302e360dc1b81525081565b60985461038e9063ffffffff1681565b60405163ffffffff909116815260200161023d565b6102336103b1366004614f21565b6001600160a01b031660009081526033602052604090205490565b6102f5610c80565b6097546103e890600160b81b900460020b81565b60405161023d9190614f3e565b6102f5610403366004614f4c565b610cd6565b61041b610416366004614f4c565b610e31565b6040805193845260208401929092526001600160801b03169082015260600161023d565b61024e6110ea565b61045a610455366004614f7c565b6110f9565b6040805193845260208401929092529082015260600161023d565b6102f5610483366004614fc0565b611232565b6097546103e890600160a01b900460020b81565b61026e6104aa366004614e0d565b6113f2565b6097546102ff90600160d01b900461ffff1681565b61026e6104d2366004614e0d565b61148d565b6102f56104e5366004615023565b61149a565b610233609b5481565b6102a6610501366004614f21565b61173d565b6102f5610514366004614f4c565b6117d5565b610233609c5481565b60985461029190600160301b90046001600160a01b031681565b6098546102ff90600160201b900461ffff1681565b609f54610291906001600160a01b031681565b6102f56105723660046150bc565b6118bb565b6097546102ff90600160f01b900461ffff1681565b61023361059a36600461510e565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b61023361191f565b6102f56105db3660046151f1565b61192e565b6102f56105ee3660046152b3565b611ba3565b6102917f000000000000000000000000000000000000000000000000000000000000000081565b6102f5610628366004614f21565b611cb0565b6102f561063b3660046150bc565b611d90565b61041b61064e366004614f4c565b611dfa565b606060368054610662906152d0565b80601f016020809104026020016040519081016040528092919081815260200182805461068e906152d0565b80156106db5780601f106106b0576101008083540402835291602001916106db565b820191906000526020600020905b8154815290600101906020018083116106be57829003601f168201915b5050505050905090565b60006106f2338484612114565b5060015b92915050565b600080600080609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610755573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610779919061530a565b50505050509150915061078c8282612239565b9350935050509091565b60006107a38484846124b9565b6001600160a01b03841660009081526034602090815260408083203384529091529020548281101561082d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610841853361083c86856153b2565b612114565b60019150505b9392505050565b33610857610c71565b6001600160a01b03161461087d5760405162461bcd60e51b8152600401610824906153c5565b600080600061088b60355490565b1115610bca57609d546001600160a01b031663514ea4bf6108aa61267f565b6040518263ffffffff1660e01b81526004016108c891815260200190565b60a060405180830381865afa1580156108e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610909919061541e565b5092945050506001600160801b03831615905061099257609754600090819061094890600160a01b8104600290810b91600160b81b9004900b866126da565b9350935050506109588282612a0d565b6109628282612ae6565b6040519193509150600080516020615ce6833981519152906109879084908490614e4d565b60405180910390a150505b6097805462ffffff888116600160b81b0262ffffff60b81b19918b16600160a01b029190911665ffffffffffff60a01b1990921691909117179055609b54609954609e546040516370a0823160e01b815260009392916001600160a01b0316906370a0823190610a06903090600401614e39565b602060405180830381865afa158015610a23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a479190615475565b610a5191906153b2565b610a5b91906153b2565b609c54609a54609f546040516370a0823160e01b81529394506000936001600160a01b03909116906370a0823190610a97903090600401614e39565b602060405180830381865afa158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad89190615475565b610ae291906153b2565b610aec91906153b2565b9050610afd898984848b8b8b612b80565b609d546001600160a01b031663514ea4bf610b1661267f565b6040518263ffffffff1660e01b8152600401610b3491815260200190565b60a060405180830381865afa158015610b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b75919061541e565b509295505050506001600160801b038316610bc35760405162461bcd60e51b815260206004820152600e60248201526d06e657720706f736974696f6e20360941b6044820152606401610824565b5050610c06565b6097805462ffffff888116600160b81b0262ffffff60b81b19918b16600160a01b029190911665ffffffffffff60a01b19909216919091171790555b600080516020615c8683398151915287878484604051610c29949392919061548e565b60405180910390a150505050505050565b3360008181526034602090815260408083206001600160a01b038716845290915281205490916106f291859061083c9086906154bc565b6097546001600160a01b031690565b33610c89610c71565b6001600160a01b031614610caf5760405162461bcd60e51b8152600401610824906153c5565b60988054600160201b600160d01b031916905560006099819055609a55610cd4612d21565b565b8181336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610d205760405162461bcd60e51b8152600401610824906154cf565b600080610d33609954609a548888612d88565b60006099819055609a5590925090508115610d6d57609854609e54610d6d916001600160a01b0391821691600160301b9091041684612eac565b8015610d9857609854609f54610d98916001600160a01b0391821691600160301b9091041683612eac565b505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601610df757610df26001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683612f14565b610e2b565b610e2b6001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612eac565b50505050565b6000806000600260655403610e585760405162461bcd60e51b815260040161082490615500565b600260655584610e7a5760405162461bcd60e51b815260040161082490615537565b6000610e8560355490565b90506000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610edc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f00919061530a565b50505050505090506000821115610f4157600080610f1c6106fc565b91509150610f2b828a8661302a565b9650610f38818a8661302a565b95505050610f87565b609754610f81908290610f5d90600160a01b900460020b613073565b609754610f7390600160b81b900460020b613073565b610f7c8b613488565b6134f1565b90955093505b8415610fa557609e54610fa5906001600160a01b031633308861358c565b8315610fc357609f54610fc3906001600160a01b031633308761358c565b609754610ffc908290610fdf90600160a01b900460020b613073565b609754610ff590600160b81b900460020b613073565b88886135c4565b609d54609754604051633c8a7d8d60e01b81529295506001600160a01b0390911691633c8a7d8d9161104c913091600160a01b8104600290810b92600160b81b909204900b908990600401615557565b60408051808303816000875af115801561106a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108e9190615599565b505061109a8688613686565b7f55801cfe493000b734571da1694b21e7f66b11e8ce9fdaa0524ecb59105e73e786888787876040516110d19594939291906155bd565b60405180910390a1505060016065819055509250925092565b606060378054610662906152d0565b60008060008061110860355490565b905080156111275761111b818787613753565b9195509350915061122a565b609d5460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e09291908290030181865afa158015611171573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611195919061530a565b505050505050905060006111db826111be609760149054906101000a900460020b60020b613073565b6097546111d490600160b81b900460020b613073565b8b8b6135c4565b6097546001600160801b038216955090915061122290839061120690600160a01b900460020b613073565b60975461121c90600160b81b900460020b613073565b846134f1565b909650945050505b509250925092565b3361123b610c71565b6001600160a01b0316146112615760405162461bcd60e51b8152600401610824906153c5565b6127108461ffff1611156112875760405162461bcd60e51b8152600401610824906155f4565b6127108561ffff1611156112ad5760405162461bcd60e51b8152600401610824906155f4565b6127108361ffff1611156112d35760405162461bcd60e51b8152600401610824906155f4565b6040805161ffff8781168252868116602083015285168183015263ffffffff8416606082015290517f0b7615006627cf7664941bc288d4641731f895e102f95cb8690583ad7508faa89181900360800190a161ffff85161561134a576097805461ffff60d01b1916600160d01b61ffff8816021790555b61ffff84161561136f576097805461ffff60e01b1916600160e01b61ffff8716021790555b61ffff83161561139557609780546001600160f01b0316600160f01b61ffff8616021790555b63ffffffff8216156113b7576098805463ffffffff191663ffffffff84161790555b6001600160a01b038116156113eb5760988054600160301b600160d01b031916600160301b6001600160a01b038416021790555b5050505050565b3360009081526034602090815260408083206001600160a01b0386168452909152812054828110156114745760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610824565b611483338561083c86856153b2565b5060019392505050565b60006106f23384846124b9565b8181336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114e45760405162461bcd60e51b8152600401610824906154cf565b85156114f4576114f48786613862565b609d546000906001600160a01b031663514ea4bf61151061267f565b6040518263ffffffff1660e01b815260040161152e91815260200190565b60a060405180830381865afa15801561154b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156f919061541e565b505050509050611583818989898989613abb565b609d546000906001600160a01b031663514ea4bf61159f61267f565b6040518263ffffffff1660e01b81526004016115bd91815260200190565b60a060405180830381865afa1580156115da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fe919061541e565b505050509050816001600160801b0316816001600160801b03161161165f5760405162461bcd60e51b81526020600482015260176024820152766c6971756964697479206d75737420696e63726561736560481b6044820152606401610824565b609754604051600080516020615c868339815191529161169991600160a01b8204600290810b92600160b81b9004900b908690869061548e565b60405180910390a1505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601611700576116fb6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683612f14565b611734565b6117346001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612eac565b50505050505050565b6000806000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015611795573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b9919061530a565b50505050509150506117cb8482612239565b9250925050915091565b8181336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461181f5760405162461bcd60e51b8152600401610824906154cf565b600080611832609b54609c548888612d88565b6000609b819055609c559092509050811561187e57609e5461187e906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000084612eac565b8015610d9857609f54610d98906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000083612eac565b609d546001600160a01b031633146118e55760405162461bcd60e51b815260040161082490615611565b831561190257609e54611902906001600160a01b03163386612eac565b8215610e2b57609f54610e2b906001600160a01b03163385612eac565b600061192961267f565b905090565b600054610100900460ff1680611947575060005460ff16155b6119635760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015611985576000805461ffff19166101011790555b6119926000612710615688565b61ffff168561ffff1611156119b95760405162461bcd60e51b8152600401610824906156aa565b609d80546001600160a01b0319166001600160a01b03881690811790915560408051630dfe168160e01b81529051630dfe1681916004808201926020929091908290030181865afa158015611a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a3691906156c8565b609e80546001600160a01b0319166001600160a01b03928316179055609d546040805163d21220a760e01b81529051919092169163d21220a79160048083019260209291908290030181865afa158015611a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab891906156c8565b609f80546001600160a01b039283166001600160a01b0319918216179091556098805460978054948716600160301b8102600160301b600160d01b031963ffffffff1961ffff8e16600160201b021665ffffffffffff199095169490941761012c17939093169290921790925562ffffff878116600160b81b02909316600165ffffff00000160a01b0319938916600160a01b02600165ffffff00000160a01b0390951694909417643e800c801960d31b179290921692909217179055611b7f8888613f83565b611b87614002565b8015611b99576000805461ff00191690555b5050505050505050565b33611bac610c71565b6001600160a01b031614611bd25760405162461bcd60e51b8152600401610824906153c5565b609854600160201b900461ffff1615611c135760405162461bcd60e51b815260206004820152600360248201526266656560e81b6044820152606401610824565b60008161ffff16118015611c3b5750611c2f6000612710615688565b61ffff168161ffff1611155b611c575760405162461bcd60e51b8152600401610824906156aa565b60405161ffff821681527f8a1ffb520c943072e654fc414750dbefad5b6d6311339d041901c4752782fad39060200160405180910390a16098805461ffff909216600160201b0261ffff60201b19909216919091179055565b33611cb9610c71565b6001600160a01b031614611cdf5760405162461bcd60e51b8152600401610824906153c5565b6001600160a01b038116611d465760405162461bcd60e51b815260206004820152602860248201527f4f776e61626c653a206e6577206d616e6167657220697320746865207a65726f604482015267206164647265737360c01b6064820152608401610824565b6097546040516001600160a01b03808416921690600080516020615ca683398151915290600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b609d546001600160a01b03163314611dba5760405162461bcd60e51b815260040161082490615611565b6000841315611dda57609e54610df2906001600160a01b03163386612eac565b6000831315610e2b57609f54610e2b906001600160a01b03163385612eac565b6000806000600260655403611e215760405162461bcd60e51b815260040161082490615500565b600260655584611e5c5760405162461bcd60e51b815260206004820152600660248201526506275726e20360d41b6044820152606401610824565b6000611e6760355490565b609d549091506000906001600160a01b031663514ea4bf611e8661267f565b6040518263ffffffff1660e01b8152600401611ea491815260200190565b60a060405180830381865afa158015611ec1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee5919061541e565b505050509050611ef53388614076565b6000611f0b88836001600160801b0316856141b3565b9050611f1681613488565b609754909450600090819081908190611f4590600160a01b8104600290810b91600160b81b9004900b8a6126da565b9350935093509350611f578282612a0d565b611f618282612ae6565b6040519193509150600080516020615ce683398151915290611f869084908490614e4d565b60405180910390a1609b54609954609e546040516370a0823160e01b815261203293929188916001600160a01b03909116906370a0823190611fcc903090600401614e39565b602060405180830381865afa158015611fe9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200d9190615475565b61201791906153b2565b61202191906153b2565b61202b91906153b2565b8d896141b3565b61203c90856154bc565b609c54609a54609f546040516370a0823160e01b8152939d506120799387916001600160a01b0316906370a0823190611fcc903090600401614e39565b61208390846154bc565b985089156120a257609e546120a2906001600160a01b03168c8c612eac565b88156120bf57609f546120bf906001600160a01b03168c8b612eac565b7f7239dff1718b550db7f36cbf69c665cfeb56d0e96b4fb76a5cba712961b655098b8d8c8c8c6040516120f69594939291906155bd565b60405180910390a15050505050505060016065819055509250925092565b6001600160a01b0383166121765760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610824565b6001600160a01b0382166121d75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610824565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b609d546000908190819081908190819081906001600160a01b031663514ea4bf61226161267f565b6040518263ffffffff1660e01b815260040161227f91815260200190565b60a060405180830381865afa15801561229c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c0919061541e565b94509450945094509450612305896122e9609760149054906101000a900460020b60020b613073565b6097546122ff90600160b81b900460020b613073565b886134f1565b909750955060006001600160801b0383166123236001878c8a614261565b61232d91906154bc565b90506000826001600160801b03166123486000878d8b614261565b61235291906154bc565b905061235e8282612ae6565b609b54609954609e546040516370a0823160e01b8152949650929450909290916001600160a01b0316906370a082319061239c903090600401614e39565b602060405180830381865afa1580156123b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123dd9190615475565b6123e790856154bc565b6123f191906153b2565b6123fb91906153b2565b612405908a6154bc565b609c54609a54609f546040516370a0823160e01b8152939c50919290916001600160a01b0316906370a0823190612440903090600401614e39565b602060405180830381865afa15801561245d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124819190615475565b61248b90846154bc565b61249591906153b2565b61249f91906153b2565b6124a990896154bc565b9750505050505050509250929050565b6001600160a01b03831661251d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610824565b6001600160a01b03821661257f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610824565b6001600160a01b038316600090815260336020526040902054818110156125f75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610824565b61260182826153b2565b6001600160a01b0380861660009081526033602052604080822093909355908516815290812080548492906126379084906154bc565b92505081905550826001600160a01b0316846001600160a01b0316600080516020615cc68339815191528460405161267191815260200190565b60405180910390a350505050565b6097546040516001600160601b03193060601b166020820152600160a01b820460e890811b6034830152600160b81b90920490911b6037820152600090603a0160405160208183030381529060405280519060200120905090565b609e546040516370a0823160e01b815260009182918291829182916001600160a01b0316906370a0823190612713903090600401614e39565b602060405180830381865afa158015612730573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127549190615475565b609f546040516370a0823160e01b81529192506000916001600160a01b03909116906370a082319061278a903090600401614e39565b602060405180830381865afa1580156127a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127cb9190615475565b609d5460405163a34123a760e01b815260028c810b60048301528b900b60248201526001600160801b038a1660448201529192506001600160a01b03169063a34123a79060640160408051808303816000875af1158015612830573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128549190615599565b609d546040516309e3d67b60e31b815230600482015260028d810b60248301528c900b60448201526001600160801b036064820181905260848201529298509096506001600160a01b031690634f1eb3d89060a40160408051808303816000875af11580156128c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128eb91906156e5565b5050609e546040516370a0823160e01b8152879184916001600160a01b03909116906370a0823190612921903090600401614e39565b602060405180830381865afa15801561293e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129629190615475565b61296c91906153b2565b61297691906153b2565b609f546040516370a0823160e01b8152919550869183916001600160a01b0316906370a08231906129ab903090600401614e39565b602060405180830381865afa1580156129c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ec9190615475565b6129f691906153b2565b612a0091906153b2565b9250505093509350935093565b612710612a1b600084615718565b612a259190615745565b609b6000828254612a3691906154bc565b909155506127109050612a4a600083615718565b612a549190615745565b609c6000828254612a6591906154bc565b909155505060985461271090612a8690600160201b900461ffff1684615718565b612a909190615745565b60996000828254612aa191906154bc565b909155505060985461271090612ac290600160201b900461ffff1683615718565b612acc9190615745565b609a6000828254612add91906154bc565b90915550505050565b6000806000612710609860049054906101000a900461ffff166000612b0b9190615759565b612b199061ffff1687615718565b612b239190615745565b60985490915060009061271090612b4590600160201b900461ffff1683615759565b612b539061ffff1687615718565b612b5d9190615745565b9050612b6982876153b2565b9350612b7581866153b2565b925050509250929050565b609d5460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e09291908290030181865afa158015612bca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bee919061530a565b50505050505090506000612c1b82612c088b60020b613073565b612c148b60020b613073565b8a8a6135c4565b90506001600160801b03811615612cc957609d54604051633c8a7d8d60e01b815260009182916001600160a01b0390911690633c8a7d8d90612c679030908f908f908990600401615557565b60408051808303816000875af1158015612c85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ca99190615599565b9092509050612cb8828a6153b2565b9850612cc481896153b2565b975050505b6000612cf86127108686612cdd5789612cdf565b8a5b612ce99190615718565b612cf39190615745565b61460d565b90506000811315612d1557612d128a8a8a8a858b8a614673565b50505b50505050505050505050565b33612d2a610c71565b6001600160a01b031614612d505760405162461bcd60e51b8152600401610824906153c5565b6097546040516000916001600160a01b031690600080516020615ca6833981519152908390a3609780546001600160a01b0319169055565b609e5460009081906001600160a01b0390811690841603612dfd57609754849061271090612dc190600160e01b900461ffff1689615718565b612dcb9190615745565b1015612de95760405162461bcd60e51b815260040161082490615774565b612df384876153b2565b9150849050612ea3565b609f546001600160a01b0390811690841603612e6d57609754849061271090612e3190600160e01b900461ffff1688615718565b612e3b9190615745565b1015612e595760405162461bcd60e51b815260040161082490615774565b612e6384866153b2565b9050859150612ea3565b60405162461bcd60e51b815260206004820152600b60248201526a3bb937b733903a37b5b2b760a91b6044820152606401610824565b94509492505050565b6040516001600160a01b038316602482015260448101829052612f0f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261488f565b505050565b80471015612f645760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610824565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612fb1576040519150601f19603f3d011682016040523d82523d6000602084013e612fb6565b606091505b5050905080612f0f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152608401610824565b60006130378484846141b3565b9050600082806130495761304961572f565b848609111561084757600019811061306057600080fd5b8061306a81615796565b95945050505050565b60008060008360020b1261308a578260020b613097565b8260020b613097906157af565b90506130a6620d89e7196157cb565b60020b8111156130dc5760405162461bcd60e51b81526020600482015260016024820152601560fa1b6044820152606401610824565b6000816001166000036130f357600160801b613105565b6ffffcb933bd6fad37aa2d162d1a5940015b6001600160881b03169050600282161561313a576080613135826ffff97272373d413259a46990580e213a615718565b901c90505b600482161561316457608061315f826ffff2e50f5f656932ef12357cf3c7fdcc615718565b901c90505b600882161561318e576080613189826fffe5caca7e10e4e61c3624eaa0941cd0615718565b901c90505b60108216156131b85760806131b3826fffcb9843d60f6159c9db58835c926644615718565b901c90505b60208216156131e25760806131dd826fff973b41fa98c081472e6896dfb254c0615718565b901c90505b604082161561320c576080613207826fff2ea16466c96a3843ec78b326b52861615718565b901c90505b6080821615613236576080613231826ffe5dee046a99a2a811c461f1969c3053615718565b901c90505b61010082161561326157608061325c826ffcbe86c7900a88aedcffc83b479aa3a4615718565b901c90505b61020082161561328c576080613287826ff987a7253ac413176f2b074cf7815e54615718565b901c90505b6104008216156132b75760806132b2826ff3392b0822b70005940c7a398e4b70f3615718565b901c90505b6108008216156132e25760806132dd826fe7159475a2c29b7443b29c7fa6e889d9615718565b901c90505b61100082161561330d576080613308826fd097f3bdfd2022b8845ad8f792aa5825615718565b901c90505b612000821615613338576080613333826fa9f746462d870fdf8a65dc1f90e061e5615718565b901c90505b61400082161561336357608061335e826f70d869a156d2a1b890bb3df62baf32f7615718565b901c90505b61800082161561338e576080613389826f31be135f97d08fd981231505542fcfa6615718565b901c90505b620100008216156133ba5760806133b5826f09aa508b5b7a84e1c677de54f3e99bc9615718565b901c90505b620200008216156133e55760806133e0826e5d6af8dedb81196699c329225ee604615718565b901c90505b6204000082161561340f57608061340a826d2216e584f5fa1ea926041bedfe98615718565b901c90505b62080000821615613437576080613432826b048a170391f7dc42444e8fa2615718565b901c90505b60008460020b13156134525761344f81600019615745565b90505b613460600160201b826157ed565b1561346c57600161346f565b60005b6134809060ff16602083901c6154bc565b949350505050565b6000600160801b82106134ed5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663238206269747360c81b6064820152608401610824565b5090565b600080836001600160a01b0316856001600160a01b03161115613512579293925b846001600160a01b0316866001600160a01b03161161353d57613536858585614961565b9150612ea3565b836001600160a01b0316866001600160a01b0316101561357657613562868585614961565b915061356f8587856149cb565b9050612ea3565b6135818585856149cb565b905094509492505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610e2b9085906323b872dd60e01b90608401612ed8565b6000836001600160a01b0316856001600160a01b031611156135e4579293925b846001600160a01b0316866001600160a01b03161161360f57613608858585614a15565b905061306a565b836001600160a01b0316866001600160a01b03161015613671576000613636878686614a15565b90506000613645878986614a7f565b9050806001600160801b0316826001600160801b0316106136665780613668565b815b9250505061306a565b61367c858584614a7f565b9695505050505050565b6001600160a01b0382166136dc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610824565b80603560008282546136ee91906154bc565b90915550506001600160a01b0382166000908152603360205260408120805483929061371b9084906154bc565b90915550506040518181526001600160a01b03831690600090600080516020615cc68339815191529060200160405180910390a35050565b60008060008060006137636106fc565b915091508160001480156137775750600081115b1561378e576137878689836141b3565b925061383d565b8015801561379c5750600082115b156137ac576137878789846141b3565b811580156137b8575080155b156137df5760405162461bcd60e51b81526020600482015260006024820152604401610824565b60006137ec888a856141b3565b905060006137fb888b856141b3565b905060008211801561380d5750600081115b6138295760405162461bcd60e51b815260040161082490615537565b8082106138365780613838565b815b945050505b61384883838a61302a565b945061385583828a61302a565b9350505093509350939050565b6040805160028082526060820183526000926020830190803683375050609854825192935063ffffffff16918391506000906138a0576138a0615801565b602002602001019063ffffffff16908163ffffffff16815250506000816001815181106138cf576138cf615801565b63ffffffff90921660209283029190910190910152609d5460405163883bdbfd60e01b81526000916001600160a01b03169063883bdbfd90613915908590600401615817565b600060405180830381865afa158015613932573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261395a919081019061590a565b509050805160021461399a5760405162461bcd60e51b815260206004820152600960248201526830b93930bc903632b760b91b6044820152606401610824565b6098548151600091829163ffffffff90911660060b90849083906139c0576139c0615801565b6020026020010151846001815181106139db576139db615801565b60200260200101510360060b816139f4576139f461572f565b059050613a038160020b613073565b6097549092506000915061271090613a2690600160f01b900461ffff16846159cc565b613a3091906159fe565b90508415613a7857613a428183615a24565b6001600160a01b0316866001600160a01b03161015613a735760405162461bcd60e51b815260040161082490615a44565b613ab3565b613a828183615a6b565b6001600160a01b0316866001600160a01b03161115613ab35760405162461bcd60e51b815260040161082490615a44565b505050505050565b609b54609954609e546040516370a0823160e01b815260009392916001600160a01b0316906370a0823190613af4903090600401614e39565b602060405180830381865afa158015613b11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b359190615475565b613b3f91906153b2565b613b4991906153b2565b609c54609a54609f546040516370a0823160e01b81529394506000936001600160a01b03909116906370a0823190613b85903090600401614e39565b602060405180830381865afa158015613ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bc69190615475565b613bd091906153b2565b613bda91906153b2565b6097549091506000908190613c0590600160a01b8104600290810b91600160b81b9004900b8c6126da565b935093505050613c158282612a0d565b613c1f8282612ae6565b6040519193509150600080516020615ce683398151915290613c449084908490614e4d565b60405180910390a1613c5684836154bc565b9150613c6283826154bc565b609e549091506001600160a01b0390811690861603613def57609754869061271090613c9990600160d01b900461ffff1685615718565b613ca39190615745565b1015613cc15760405162461bcd60e51b815260040161082490615774565b609b54609954609e546040516370a0823160e01b8152899392916001600160a01b0316906370a0823190613cf9903090600401614e39565b602060405180830381865afa158015613d16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d3a9190615475565b613d4491906153b2565b613d4e91906153b2565b613d5891906153b2565b609c54609a54609f546040516370a0823160e01b8152939750919290916001600160a01b0316906370a0823190613d93903090600401614e39565b602060405180830381865afa158015613db0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dd49190615475565b613dde91906153b2565b613de891906153b2565b9250613f5c565b609f546001600160a01b0390811690861603612e6d57609754869061271090613e2390600160d01b900461ffff1684615718565b613e2d9190615745565b1015613e4b5760405162461bcd60e51b815260040161082490615774565b609b54609954609e546040516370a0823160e01b81526001600160a01b03909116906370a0823190613e81903090600401614e39565b602060405180830381865afa158015613e9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ec29190615475565b613ecc91906153b2565b613ed691906153b2565b609c54609a54609f546040516370a0823160e01b815293975089936001600160a01b03909116906370a0823190613f11903090600401614e39565b602060405180830381865afa158015613f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f529190615475565b613dd491906153b2565b609754612d1590600160a01b8104600290810b91600160b81b9004900b86868d8d8d612b80565b600054610100900460ff1680613f9c575060005460ff16155b613fb85760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015613fda576000805461ffff19166101011790555b613fe2614ab5565b613fec8383614b1f565b8015612f0f576000805461ff0019169055505050565b600054610100900460ff168061401b575060005460ff16155b6140375760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614059576000805461ffff19166101011790555b614061614ba6565b8015614073576000805461ff00191690555b50565b6001600160a01b0382166140d65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610824565b6001600160a01b0382166000908152603360205260409020548181101561414a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610824565b61415482826153b2565b6001600160a01b038416600090815260336020526040812091909155603580548492906141829084906153b2565b90915550506040518281526000906001600160a01b03851690600080516020615cc68339815191529060200161222c565b60008080600019858709858702925082811083820303915050806000036141ec57600084116141e157600080fd5b508290049050610847565b8084116141f857600080fd5b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b600080600080871561440157609d60009054906101000a90046001600160a01b03166001600160a01b031663f30583996040518163ffffffff1660e01b8152600401602060405180830381865afa1580156142c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142e49190615475565b609d5460975460405163f30dba9360e01b81529293506001600160a01b039091169163f30dba939161432491600160a01b90910460020b90600401614f3e565b61010060405180830381865afa158015614342573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143669190615a8b565b5050609d5460975460405163f30dba9360e01b8152959a506001600160a01b03909116965063f30dba9395506143af94600160b81b90910460020b93506004019150614f3e9050565b61010060405180830381865afa1580156143cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143f19190615a8b565b5093975061458f95505050505050565b609d60009054906101000a90046001600160a01b03166001600160a01b031663461413196040518163ffffffff1660e01b8152600401602060405180830381865afa158015614454573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144789190615475565b609d5460975460405163f30dba9360e01b81529293506001600160a01b039091169163f30dba93916144b891600160a01b90910460020b90600401614f3e565b61010060405180830381865afa1580156144d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144fa9190615a8b565b5050609d5460975460405163f30dba9360e01b8152949a506001600160a01b03909116965063f30dba9395506145429450600160b81b900460020b926004019150614f3e9050565b61010060405180830381865afa158015614560573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145849190615a8b565b509297505050505050505b609754600090600160a01b9004600290810b9088900b126145b15750826145b6565b508281035b609754600090600160b81b9004600290810b9089900b12156145d95750826145de565b508282035b8183038190036145fe6001600160801b0389168b8303600160801b6141b3565b9b9a5050505050505050505050565b6000600160ff1b82106134ed5760405162461bcd60e51b815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604482015267371034b73a191a9b60c11b6064820152608401610824565b609d54604051630251596160e31b81523060048201528215156024820152604481018590526001600160a01b03848116606483015260a06084830152600060a4830181905292839283928392169063128acb089060c40160408051808303816000875af11580156146e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061470c9190615599565b915091508161471a8a61460d565b6147249190615b27565b9350806147308961460d565b61473a9190615b27565b92506000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015614791573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147b5919061530a565b505050505050905060006147e2826147cf8f60020b613073565b6147db8f60020b613073565b89896135c4565b90506001600160801b0381161561487f57609d60009054906101000a90046001600160a01b03166001600160a01b0316633c8a7d8d308f8f856040518563ffffffff1660e01b815260040161483a9493929190615557565b60408051808303816000875af1158015614858573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061487c9190615599565b50505b5050505097509795505050505050565b60006148e4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614c169092919063ffffffff16565b805190915015612f0f57808060200190518101906149029190615b47565b612f0f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610824565b6000826001600160a01b0316846001600160a01b03161115614981579192915b6001600160a01b0384166149c1600160601b600160e01b03606085901b166149a98787615a24565b6001600160a01b0316866001600160a01b03166141b3565b6134809190615745565b6000826001600160a01b0316846001600160a01b031611156149eb579192915b6134806001600160801b038316614a028686615a24565b6001600160a01b0316600160601b6141b3565b6000826001600160a01b0316846001600160a01b03161115614a35579192915b6000614a58856001600160a01b0316856001600160a01b0316600160601b6141b3565b905061306a614a7a8483614a6c8989615a24565b6001600160a01b03166141b3565b614c25565b6000826001600160a01b0316846001600160a01b03161115614a9f579192915b613480614a7a83600160601b614a6c8888615a24565b600054610100900460ff1680614ace575060005460ff16155b614aea5760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614061576000805461ffff19166101011790558015614073576000805461ff001916905550565b600054610100900460ff1680614b38575060005460ff16155b614b545760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614b76576000805461ffff19166101011790555b6036614b828482615baa565b506037614b8f8382615baa565b508015612f0f576000805461ff0019169055505050565b600054610100900460ff1680614bbf575060005460ff16155b614bdb5760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614bfd576000805461ffff19166101011790555b60016065558015614073576000805461ff001916905550565b60606134808484600085614c40565b806001600160801b0381168114614c3b57600080fd5b919050565b606082471015614ca15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610824565b843b614cef5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610824565b600080866001600160a01b03168587604051614d0b9190615c69565b60006040518083038185875af1925050503d8060008114614d48576040519150601f19603f3d011682016040523d82523d6000602084013e614d4d565b606091505b5091509150614d5d828286614d68565b979650505050505050565b60608315614d77575081610847565b825115614d875782518084602001fd5b8160405162461bcd60e51b81526004016108249190614dc5565b60005b83811015614dbc578181015183820152602001614da4565b50506000910152565b6020815260008251806020840152614de4816040850160208701614da1565b601f01601f19169190910160400192915050565b6001600160a01b038116811461407357600080fd5b60008060408385031215614e2057600080fd5b8235614e2b81614df8565b946020939093013593505050565b6001600160a01b0391909116815260200190565b918252602082015260400190565b600080600060608486031215614e7057600080fd5b8335614e7b81614df8565b92506020840135614e8b81614df8565b929592945050506040919091013590565b8060020b811461407357600080fd5b801515811461407357600080fd5b600080600080600060a08688031215614ed157600080fd5b8535614edc81614e9c565b94506020860135614eec81614e9c565b93506040860135614efc81614df8565b9250606086013591506080860135614f1381614eab565b809150509295509295909350565b600060208284031215614f3357600080fd5b813561084781614df8565b60029190910b815260200190565b60008060408385031215614f5f57600080fd5b823591506020830135614f7181614df8565b809150509250929050565b60008060408385031215614f8f57600080fd5b50508035926020909101359150565b61ffff8116811461407357600080fd5b63ffffffff8116811461407357600080fd5b600080600080600060a08688031215614fd857600080fd5b8535614fe381614f9e565b94506020860135614ff381614f9e565b9350604086013561500381614f9e565b9250606086013561501381614fae565b91506080860135614f1381614df8565b600080600080600060a0868803121561503b57600080fd5b853561504681614df8565b945060208601359350604086013561505d81614eab565b9250606086013591506080860135614f1381614df8565b60008083601f84011261508657600080fd5b5081356001600160401b0381111561509d57600080fd5b6020830191508360208285010111156150b557600080fd5b9250929050565b600080600080606085870312156150d257600080fd5b843593506020850135925060408501356001600160401b038111156150f657600080fd5b61510287828801615074565b95989497509550505050565b6000806040838503121561512157600080fd5b823561512c81614df8565b91506020830135614f7181614df8565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561517a5761517a61513c565b604052919050565b600082601f83011261519357600080fd5b81356001600160401b038111156151ac576151ac61513c565b6151bf601f8201601f1916602001615152565b8181528460208386010111156151d457600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060e0888a03121561520c57600080fd5b87356001600160401b038082111561522357600080fd5b61522f8b838c01615182565b985060208a013591508082111561524557600080fd5b506152528a828b01615182565b965050604088013561526381614df8565b9450606088013561527381614f9e565b9350608088013561528381614e9c565b925060a088013561529381614e9c565b915060c08801356152a381614df8565b8091505092959891949750929550565b6000602082840312156152c557600080fd5b813561084781614f9e565b600181811c908216806152e457607f821691505b60208210810361530457634e487b7160e01b600052602260045260246000fd5b50919050565b600080600080600080600060e0888a03121561532557600080fd5b875161533081614df8565b602089015190975061534181614e9c565b604089015190965061535281614f9e565b606089015190955061536381614f9e565b608089015190945061537481614f9e565b60a089015190935060ff8116811461538b57600080fd5b60c08901519092506152a381614eab565b634e487b7160e01b600052601160045260246000fd5b818103818111156106f6576106f661539c565b60208082526022908201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d616e616760408201526132b960f11b606082015260800190565b80516001600160801b0381168114614c3b57600080fd5b600080600080600060a0868803121561543657600080fd5b61543f86615407565b9450602086015193506040860151925061545b60608701615407565b915061546960808701615407565b90509295509295909350565b60006020828403121561548757600080fd5b5051919050565b600294850b81529290930b60208301526001600160801b039081166040830152909116606082015260800190565b808201808211156106f6576106f661539c565b60208082526017908201527647656c61746f666965643a204f6e6c792067656c61746f60481b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526006908201526506d696e7420360d41b604082015260600190565b6001600160a01b03949094168452600292830b6020850152910b60408301526001600160801b0316606082015260a06080820181905260009082015260c00190565b600080604083850312156155ac57600080fd5b505080516020909101519092909150565b6001600160a01b039590951685526020850193909352604084019190915260608301526001600160801b0316608082015260a00190565b60208082526003908201526242505360e81b604082015260600190565b6020808252600f908201526e31b0b6363130b1b59031b0b63632b960891b604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b61ffff8281168282160390808211156156a3576156a361539c565b5092915050565b6020808252600490820152636d42505360e01b604082015260600190565b6000602082840312156156da57600080fd5b815161084781614df8565b600080604083850312156156f857600080fd5b61570183615407565b915061570f60208401615407565b90509250929050565b80820281158282048414176106f6576106f661539c565b634e487b7160e01b600052601260045260246000fd5b6000826157545761575461572f565b500490565b61ffff8181168382160190808211156156a3576156a361539c565b602080825260089082015267686967682066656560c01b604082015260600190565b6000600182016157a8576157a861539c565b5060010190565b6000600160ff1b82016157c4576157c461539c565b5060000390565b60008160020b627fffff1981036157e4576157e461539c565b60000392915050565b6000826157fc576157fc61572f565b500690565b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561585557835163ffffffff1683529284019291840191600101615833565b50909695505050505050565b60006001600160401b0382111561587a5761587a61513c565b5060051b60200190565b8051600681900b8114614c3b57600080fd5b600082601f8301126158a757600080fd5b815160206158bc6158b783615861565b615152565b82815260059290921b840181019181810190868411156158db57600080fd5b8286015b848110156158ff5780516158f281614df8565b83529183019183016158df565b509695505050505050565b6000806040838503121561591d57600080fd5b82516001600160401b038082111561593457600080fd5b818501915085601f83011261594857600080fd5b815160206159586158b783615861565b82815260059290921b8401810191818101908984111561597757600080fd5b948201945b8386101561599c5761598d86615884565b8252948201949082019061597c565b918801519196509093505050808211156159b557600080fd5b506159c285828601615896565b9150509250929050565b6001600160a01b038281168282168181028316929181158285048214176159f5576159f561539c565b50505092915050565b60006001600160a01b0383811680615a1857615a1861572f565b92169190910492915050565b6001600160a01b038281168282160390808211156156a3576156a361539c565b6020808252600d908201526c6869676820736c69707061676560981b604082015260600190565b6001600160a01b038181168382160190808211156156a3576156a361539c565b600080600080600080600080610100898b031215615aa857600080fd5b615ab189615407565b9750602089015180600f0b8114615ac757600080fd5b60408a015160608b015191985096509450615ae460808a01615884565b935060a0890151615af481614df8565b60c08a0151909350615b0581614fae565b60e08a0151909250615b1681614eab565b809150509295985092959890939650565b81810360008312801583831316838312821617156156a3576156a361539c565b600060208284031215615b5957600080fd5b815161084781614eab565b601f821115612f0f57600081815260208120601f850160051c81016020861015615b8b5750805b601f850160051c820191505b81811015613ab357828155600101615b97565b81516001600160401b03811115615bc357615bc361513c565b615bd781615bd184546152d0565b84615b64565b602080601f831160018114615c0c5760008415615bf45750858301515b600019600386901b1c1916600185901b178555613ab3565b600085815260208120601f198616915b82811015615c3b57888601518255948401946001909101908401615c1c565b5085821015615c595787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008251615c7b818460208701614da1565b919091019291505056fec749f9ae947d4734cf1569606a8a347391ae94a063478aa853aeff48ac5f99e88be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efc28ad1de9c0c32e5394ba60323e44d8d9536312236a47231772e448a3e49de42a2646970667358221220a11bde499516b0a2e8e737821292815fcefc66549a9729f24ea128d34ed6027364736f6c63430008130033", + "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106102255760003560e01c8063065756db1461022a57806306fdde0314610246578063095ea7b31461025b5780630dfe16811461027e5780631322d9541461029e57806316f0115b146102b457806318160ddd146102c757806323b872dd146102cf57806324b8fd1b146102e257806331366be4146102f7578063313ce5671461031257806339509351146103215780633d8b30e11461033457806342fb9d4414610349578063481c6a751461035257806354fd4d501461035a578063672152bd1461037e57806370a08231146103a3578063715018a6146103cc578063727dd228146103d457806378ac6357146103f557806394bf804d1461040857806395d89b411461043f5780639894f21a1461044757806399fd808c146104755780639b1344ac14610488578063a457c2d71461049c578063a50b1fe7146104af578063a9059cbb146104c4578063b135c99f146104d7578063b536bd12146104ea578063b670ed7d146104f3578063be93dd5f14610506578063c345445914610519578063cc95353e14610522578063ccdf7a021461053c578063d21220a714610551578063d348799714610564578063d6e7ff3914610577578063dd62ed3e1461058c578063df28408a146105c5578063e25e15e3146105cd578063e4077894146105e0578063eff557a7146105f3578063f2fde38b1461061a578063fa461e331461062d578063fcd3533c14610640575b600080fd5b61023360995481565b6040519081526020015b60405180910390f35b61024e610653565b60405161023d9190614dc5565b61026e610269366004614e0d565b6106e5565b604051901515815260200161023d565b609e54610291906001600160a01b031681565b60405161023d9190614e39565b6102a66106fc565b60405161023d929190614e4d565b609d54610291906001600160a01b031681565b603554610233565b61026e6102dd366004614e5b565b610796565b6102f56102f0366004614eb9565b61084e565b005b6102ff600081565b60405161ffff909116815260200161023d565b6040516012815260200161023d565b61026e61032f366004614e0d565b610c3a565b6097546102ff90600160e01b900461ffff1681565b610233609a5481565b610291610c71565b61024e604051806040016040528060058152602001640312e302e360dc1b81525081565b60985461038e9063ffffffff1681565b60405163ffffffff909116815260200161023d565b6102336103b1366004614f21565b6001600160a01b031660009081526033602052604090205490565b6102f5610c80565b6097546103e890600160b81b900460020b81565b60405161023d9190614f3e565b6102f5610403366004614f4c565b610cd6565b61041b610416366004614f4c565b610e31565b6040805193845260208401929092526001600160801b03169082015260600161023d565b61024e6110ea565b61045a610455366004614f7c565b6110f9565b6040805193845260208401929092529082015260600161023d565b6102f5610483366004614fc0565b611232565b6097546103e890600160a01b900460020b81565b61026e6104aa366004614e0d565b6113f2565b6097546102ff90600160d01b900461ffff1681565b61026e6104d2366004614e0d565b61148d565b6102f56104e5366004615023565b61149a565b610233609b5481565b6102a6610501366004614f21565b61173d565b6102f5610514366004614f4c565b6117d5565b610233609c5481565b60985461029190600160301b90046001600160a01b031681565b6098546102ff90600160201b900461ffff1681565b609f54610291906001600160a01b031681565b6102f56105723660046150bc565b6118bb565b6097546102ff90600160f01b900461ffff1681565b61023361059a36600461510e565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b61023361191f565b6102f56105db3660046151f1565b61192e565b6102f56105ee3660046152b3565b611ba3565b6102917f000000000000000000000000000000000000000000000000000000000000000081565b6102f5610628366004614f21565b611cb0565b6102f561063b3660046150bc565b611d90565b61041b61064e366004614f4c565b611dfa565b606060368054610662906152d0565b80601f016020809104026020016040519081016040528092919081815260200182805461068e906152d0565b80156106db5780601f106106b0576101008083540402835291602001916106db565b820191906000526020600020905b8154815290600101906020018083116106be57829003601f168201915b5050505050905090565b60006106f2338484612114565b5060015b92915050565b600080600080609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610755573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610779919061530a565b50505050509150915061078c8282612239565b9350935050509091565b60006107a38484846124b9565b6001600160a01b03841660009081526034602090815260408083203384529091529020548281101561082d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610841853361083c86856153b2565b612114565b60019150505b9392505050565b33610857610c71565b6001600160a01b03161461087d5760405162461bcd60e51b8152600401610824906153c5565b600080600061088b60355490565b1115610bca57609d546001600160a01b031663514ea4bf6108aa61267f565b6040518263ffffffff1660e01b81526004016108c891815260200190565b60a060405180830381865afa1580156108e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610909919061541e565b5092945050506001600160801b03831615905061099257609754600090819061094890600160a01b8104600290810b91600160b81b9004900b866126da565b9350935050506109588282612a0d565b6109628282612ae6565b6040519193509150600080516020615ce6833981519152906109879084908490614e4d565b60405180910390a150505b6097805462ffffff888116600160b81b0262ffffff60b81b19918b16600160a01b029190911665ffffffffffff60a01b1990921691909117179055609b54609954609e546040516370a0823160e01b815260009392916001600160a01b0316906370a0823190610a06903090600401614e39565b602060405180830381865afa158015610a23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a479190615475565b610a5191906153b2565b610a5b91906153b2565b609c54609a54609f546040516370a0823160e01b81529394506000936001600160a01b03909116906370a0823190610a97903090600401614e39565b602060405180830381865afa158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad89190615475565b610ae291906153b2565b610aec91906153b2565b9050610afd898984848b8b8b612b80565b609d546001600160a01b031663514ea4bf610b1661267f565b6040518263ffffffff1660e01b8152600401610b3491815260200190565b60a060405180830381865afa158015610b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b75919061541e565b509295505050506001600160801b038316610bc35760405162461bcd60e51b815260206004820152600e60248201526d06e657720706f736974696f6e20360941b6044820152606401610824565b5050610c06565b6097805462ffffff888116600160b81b0262ffffff60b81b19918b16600160a01b029190911665ffffffffffff60a01b19909216919091171790555b600080516020615c8683398151915287878484604051610c29949392919061548e565b60405180910390a150505050505050565b3360008181526034602090815260408083206001600160a01b038716845290915281205490916106f291859061083c9086906154bc565b6097546001600160a01b031690565b33610c89610c71565b6001600160a01b031614610caf5760405162461bcd60e51b8152600401610824906153c5565b60988054600160201b600160d01b031916905560006099819055609a55610cd4612d21565b565b8181336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610d205760405162461bcd60e51b8152600401610824906154cf565b600080610d33609954609a548888612d88565b60006099819055609a5590925090508115610d6d57609854609e54610d6d916001600160a01b0391821691600160301b9091041684612eac565b8015610d9857609854609f54610d98916001600160a01b0391821691600160301b9091041683612eac565b505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601610df757610df26001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683612f14565b610e2b565b610e2b6001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612eac565b50505050565b6000806000600260655403610e585760405162461bcd60e51b815260040161082490615500565b600260655584610e7a5760405162461bcd60e51b815260040161082490615537565b6000610e8560355490565b90506000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610edc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f00919061530a565b50505050505090506000821115610f4157600080610f1c6106fc565b91509150610f2b828a8661302a565b9650610f38818a8661302a565b95505050610f87565b609754610f81908290610f5d90600160a01b900460020b613073565b609754610f7390600160b81b900460020b613073565b610f7c8b613488565b6134f1565b90955093505b8415610fa557609e54610fa5906001600160a01b031633308861358c565b8315610fc357609f54610fc3906001600160a01b031633308761358c565b609754610ffc908290610fdf90600160a01b900460020b613073565b609754610ff590600160b81b900460020b613073565b88886135c4565b609d54609754604051633c8a7d8d60e01b81529295506001600160a01b0390911691633c8a7d8d9161104c913091600160a01b8104600290810b92600160b81b909204900b908990600401615557565b60408051808303816000875af115801561106a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108e9190615599565b505061109a8688613686565b7f55801cfe493000b734571da1694b21e7f66b11e8ce9fdaa0524ecb59105e73e786888787876040516110d19594939291906155bd565b60405180910390a1505060016065819055509250925092565b606060378054610662906152d0565b60008060008061110860355490565b905080156111275761111b818787613753565b9195509350915061122a565b609d5460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e09291908290030181865afa158015611171573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611195919061530a565b505050505050905060006111db826111be609760149054906101000a900460020b60020b613073565b6097546111d490600160b81b900460020b613073565b8b8b6135c4565b6097546001600160801b038216955090915061122290839061120690600160a01b900460020b613073565b60975461121c90600160b81b900460020b613073565b846134f1565b909650945050505b509250925092565b3361123b610c71565b6001600160a01b0316146112615760405162461bcd60e51b8152600401610824906153c5565b6127108461ffff1611156112875760405162461bcd60e51b8152600401610824906155f4565b6127108561ffff1611156112ad5760405162461bcd60e51b8152600401610824906155f4565b6127108361ffff1611156112d35760405162461bcd60e51b8152600401610824906155f4565b6040805161ffff8781168252868116602083015285168183015263ffffffff8416606082015290517f0b7615006627cf7664941bc288d4641731f895e102f95cb8690583ad7508faa89181900360800190a161ffff85161561134a576097805461ffff60d01b1916600160d01b61ffff8816021790555b61ffff84161561136f576097805461ffff60e01b1916600160e01b61ffff8716021790555b61ffff83161561139557609780546001600160f01b0316600160f01b61ffff8616021790555b63ffffffff8216156113b7576098805463ffffffff191663ffffffff84161790555b6001600160a01b038116156113eb5760988054600160301b600160d01b031916600160301b6001600160a01b038416021790555b5050505050565b3360009081526034602090815260408083206001600160a01b0386168452909152812054828110156114745760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610824565b611483338561083c86856153b2565b5060019392505050565b60006106f23384846124b9565b8181336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114e45760405162461bcd60e51b8152600401610824906154cf565b85156114f4576114f48786613862565b609d546000906001600160a01b031663514ea4bf61151061267f565b6040518263ffffffff1660e01b815260040161152e91815260200190565b60a060405180830381865afa15801561154b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156f919061541e565b505050509050611583818989898989613abb565b609d546000906001600160a01b031663514ea4bf61159f61267f565b6040518263ffffffff1660e01b81526004016115bd91815260200190565b60a060405180830381865afa1580156115da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fe919061541e565b505050509050816001600160801b0316816001600160801b03161161165f5760405162461bcd60e51b81526020600482015260176024820152766c6971756964697479206d75737420696e63726561736560481b6044820152606401610824565b609754604051600080516020615c868339815191529161169991600160a01b8204600290810b92600160b81b9004900b908690869061548e565b60405180910390a1505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601611700576116fb6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683612f14565b611734565b6117346001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612eac565b50505050505050565b6000806000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015611795573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b9919061530a565b50505050509150506117cb8482612239565b9250925050915091565b8181336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461181f5760405162461bcd60e51b8152600401610824906154cf565b600080611832609b54609c548888612d88565b6000609b819055609c559092509050811561187e57609e5461187e906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000084612eac565b8015610d9857609f54610d98906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000083612eac565b609d546001600160a01b031633146118e55760405162461bcd60e51b815260040161082490615611565b831561190257609e54611902906001600160a01b03163386612eac565b8215610e2b57609f54610e2b906001600160a01b03163385612eac565b600061192961267f565b905090565b600054610100900460ff1680611947575060005460ff16155b6119635760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015611985576000805461ffff19166101011790555b6119926000612710615688565b61ffff168561ffff1611156119b95760405162461bcd60e51b8152600401610824906156aa565b609d80546001600160a01b0319166001600160a01b03881690811790915560408051630dfe168160e01b81529051630dfe1681916004808201926020929091908290030181865afa158015611a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a3691906156c8565b609e80546001600160a01b0319166001600160a01b03928316179055609d546040805163d21220a760e01b81529051919092169163d21220a79160048083019260209291908290030181865afa158015611a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab891906156c8565b609f80546001600160a01b039283166001600160a01b0319918216179091556098805460978054948716600160301b8102600160301b600160d01b031963ffffffff1961ffff8e16600160201b021665ffffffffffff199095169490941761012c17939093169290921790925562ffffff878116600160b81b02909316600165ffffff00000160a01b0319938916600160a01b02600165ffffff00000160a01b0390951694909417643e800c801960d31b179290921692909217179055611b7f8888613f83565b611b87614002565b8015611b99576000805461ff00191690555b5050505050505050565b33611bac610c71565b6001600160a01b031614611bd25760405162461bcd60e51b8152600401610824906153c5565b609854600160201b900461ffff1615611c135760405162461bcd60e51b815260206004820152600360248201526266656560e81b6044820152606401610824565b60008161ffff16118015611c3b5750611c2f6000612710615688565b61ffff168161ffff1611155b611c575760405162461bcd60e51b8152600401610824906156aa565b60405161ffff821681527f8a1ffb520c943072e654fc414750dbefad5b6d6311339d041901c4752782fad39060200160405180910390a16098805461ffff909216600160201b0261ffff60201b19909216919091179055565b33611cb9610c71565b6001600160a01b031614611cdf5760405162461bcd60e51b8152600401610824906153c5565b6001600160a01b038116611d465760405162461bcd60e51b815260206004820152602860248201527f4f776e61626c653a206e6577206d616e6167657220697320746865207a65726f604482015267206164647265737360c01b6064820152608401610824565b6097546040516001600160a01b03808416921690600080516020615ca683398151915290600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b609d546001600160a01b03163314611dba5760405162461bcd60e51b815260040161082490615611565b6000841315611dda57609e54610df2906001600160a01b03163386612eac565b6000831315610e2b57609f54610e2b906001600160a01b03163385612eac565b6000806000600260655403611e215760405162461bcd60e51b815260040161082490615500565b600260655584611e5c5760405162461bcd60e51b815260206004820152600660248201526506275726e20360d41b6044820152606401610824565b6000611e6760355490565b609d549091506000906001600160a01b031663514ea4bf611e8661267f565b6040518263ffffffff1660e01b8152600401611ea491815260200190565b60a060405180830381865afa158015611ec1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee5919061541e565b505050509050611ef53388614076565b6000611f0b88836001600160801b0316856141b3565b9050611f1681613488565b609754909450600090819081908190611f4590600160a01b8104600290810b91600160b81b9004900b8a6126da565b9350935093509350611f578282612a0d565b611f618282612ae6565b6040519193509150600080516020615ce683398151915290611f869084908490614e4d565b60405180910390a1609b54609954609e546040516370a0823160e01b815261203293929188916001600160a01b03909116906370a0823190611fcc903090600401614e39565b602060405180830381865afa158015611fe9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200d9190615475565b61201791906153b2565b61202191906153b2565b61202b91906153b2565b8d896141b3565b61203c90856154bc565b609c54609a54609f546040516370a0823160e01b8152939d506120799387916001600160a01b0316906370a0823190611fcc903090600401614e39565b61208390846154bc565b985089156120a257609e546120a2906001600160a01b03168c8c612eac565b88156120bf57609f546120bf906001600160a01b03168c8b612eac565b7f7239dff1718b550db7f36cbf69c665cfeb56d0e96b4fb76a5cba712961b655098b8d8c8c8c6040516120f69594939291906155bd565b60405180910390a15050505050505060016065819055509250925092565b6001600160a01b0383166121765760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610824565b6001600160a01b0382166121d75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610824565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b609d546000908190819081908190819081906001600160a01b031663514ea4bf61226161267f565b6040518263ffffffff1660e01b815260040161227f91815260200190565b60a060405180830381865afa15801561229c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c0919061541e565b94509450945094509450612305896122e9609760149054906101000a900460020b60020b613073565b6097546122ff90600160b81b900460020b613073565b886134f1565b909750955060006001600160801b0383166123236001878c8a614261565b61232d91906154bc565b90506000826001600160801b03166123486000878d8b614261565b61235291906154bc565b905061235e8282612ae6565b609b54609954609e546040516370a0823160e01b8152949650929450909290916001600160a01b0316906370a082319061239c903090600401614e39565b602060405180830381865afa1580156123b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123dd9190615475565b6123e790856154bc565b6123f191906153b2565b6123fb91906153b2565b612405908a6154bc565b609c54609a54609f546040516370a0823160e01b8152939c50919290916001600160a01b0316906370a0823190612440903090600401614e39565b602060405180830381865afa15801561245d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124819190615475565b61248b90846154bc565b61249591906153b2565b61249f91906153b2565b6124a990896154bc565b9750505050505050509250929050565b6001600160a01b03831661251d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610824565b6001600160a01b03821661257f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610824565b6001600160a01b038316600090815260336020526040902054818110156125f75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610824565b61260182826153b2565b6001600160a01b0380861660009081526033602052604080822093909355908516815290812080548492906126379084906154bc565b92505081905550826001600160a01b0316846001600160a01b0316600080516020615cc68339815191528460405161267191815260200190565b60405180910390a350505050565b6097546040516001600160601b03193060601b166020820152600160a01b820460e890811b6034830152600160b81b90920490911b6037820152600090603a0160405160208183030381529060405280519060200120905090565b609e546040516370a0823160e01b815260009182918291829182916001600160a01b0316906370a0823190612713903090600401614e39565b602060405180830381865afa158015612730573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127549190615475565b609f546040516370a0823160e01b81529192506000916001600160a01b03909116906370a082319061278a903090600401614e39565b602060405180830381865afa1580156127a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127cb9190615475565b609d5460405163a34123a760e01b815260028c810b60048301528b900b60248201526001600160801b038a1660448201529192506001600160a01b03169063a34123a79060640160408051808303816000875af1158015612830573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128549190615599565b609d546040516309e3d67b60e31b815230600482015260028d810b60248301528c900b60448201526001600160801b036064820181905260848201529298509096506001600160a01b031690634f1eb3d89060a40160408051808303816000875af11580156128c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128eb91906156e5565b5050609e546040516370a0823160e01b8152879184916001600160a01b03909116906370a0823190612921903090600401614e39565b602060405180830381865afa15801561293e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129629190615475565b61296c91906153b2565b61297691906153b2565b609f546040516370a0823160e01b8152919550869183916001600160a01b0316906370a08231906129ab903090600401614e39565b602060405180830381865afa1580156129c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ec9190615475565b6129f691906153b2565b612a0091906153b2565b9250505093509350935093565b612710612a1b600084615718565b612a259190615745565b609b6000828254612a3691906154bc565b909155506127109050612a4a600083615718565b612a549190615745565b609c6000828254612a6591906154bc565b909155505060985461271090612a8690600160201b900461ffff1684615718565b612a909190615745565b60996000828254612aa191906154bc565b909155505060985461271090612ac290600160201b900461ffff1683615718565b612acc9190615745565b609a6000828254612add91906154bc565b90915550505050565b6000806000612710609860049054906101000a900461ffff166000612b0b9190615759565b612b199061ffff1687615718565b612b239190615745565b60985490915060009061271090612b4590600160201b900461ffff1683615759565b612b539061ffff1687615718565b612b5d9190615745565b9050612b6982876153b2565b9350612b7581866153b2565b925050509250929050565b609d5460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e09291908290030181865afa158015612bca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bee919061530a565b50505050505090506000612c1b82612c088b60020b613073565b612c148b60020b613073565b8a8a6135c4565b90506001600160801b03811615612cc957609d54604051633c8a7d8d60e01b815260009182916001600160a01b0390911690633c8a7d8d90612c679030908f908f908990600401615557565b60408051808303816000875af1158015612c85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ca99190615599565b9092509050612cb8828a6153b2565b9850612cc481896153b2565b975050505b6000612cf86127108686612cdd5789612cdf565b8a5b612ce99190615718565b612cf39190615745565b61460d565b90506000811315612d1557612d128a8a8a8a858b8a614673565b50505b50505050505050505050565b33612d2a610c71565b6001600160a01b031614612d505760405162461bcd60e51b8152600401610824906153c5565b6097546040516000916001600160a01b031690600080516020615ca6833981519152908390a3609780546001600160a01b0319169055565b609e5460009081906001600160a01b0390811690841603612dfd57609754849061271090612dc190600160e01b900461ffff1689615718565b612dcb9190615745565b1015612de95760405162461bcd60e51b815260040161082490615774565b612df384876153b2565b9150849050612ea3565b609f546001600160a01b0390811690841603612e6d57609754849061271090612e3190600160e01b900461ffff1688615718565b612e3b9190615745565b1015612e595760405162461bcd60e51b815260040161082490615774565b612e6384866153b2565b9050859150612ea3565b60405162461bcd60e51b815260206004820152600b60248201526a3bb937b733903a37b5b2b760a91b6044820152606401610824565b94509492505050565b6040516001600160a01b038316602482015260448101829052612f0f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261488f565b505050565b80471015612f645760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610824565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612fb1576040519150601f19603f3d011682016040523d82523d6000602084013e612fb6565b606091505b5050905080612f0f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152608401610824565b60006130378484846141b3565b9050600082806130495761304961572f565b848609111561084757600019811061306057600080fd5b8061306a81615796565b95945050505050565b60008060008360020b1261308a578260020b613097565b8260020b613097906157af565b90506130a6620d89e7196157cb565b60020b8111156130dc5760405162461bcd60e51b81526020600482015260016024820152601560fa1b6044820152606401610824565b6000816001166000036130f357600160801b613105565b6ffffcb933bd6fad37aa2d162d1a5940015b6001600160881b03169050600282161561313a576080613135826ffff97272373d413259a46990580e213a615718565b901c90505b600482161561316457608061315f826ffff2e50f5f656932ef12357cf3c7fdcc615718565b901c90505b600882161561318e576080613189826fffe5caca7e10e4e61c3624eaa0941cd0615718565b901c90505b60108216156131b85760806131b3826fffcb9843d60f6159c9db58835c926644615718565b901c90505b60208216156131e25760806131dd826fff973b41fa98c081472e6896dfb254c0615718565b901c90505b604082161561320c576080613207826fff2ea16466c96a3843ec78b326b52861615718565b901c90505b6080821615613236576080613231826ffe5dee046a99a2a811c461f1969c3053615718565b901c90505b61010082161561326157608061325c826ffcbe86c7900a88aedcffc83b479aa3a4615718565b901c90505b61020082161561328c576080613287826ff987a7253ac413176f2b074cf7815e54615718565b901c90505b6104008216156132b75760806132b2826ff3392b0822b70005940c7a398e4b70f3615718565b901c90505b6108008216156132e25760806132dd826fe7159475a2c29b7443b29c7fa6e889d9615718565b901c90505b61100082161561330d576080613308826fd097f3bdfd2022b8845ad8f792aa5825615718565b901c90505b612000821615613338576080613333826fa9f746462d870fdf8a65dc1f90e061e5615718565b901c90505b61400082161561336357608061335e826f70d869a156d2a1b890bb3df62baf32f7615718565b901c90505b61800082161561338e576080613389826f31be135f97d08fd981231505542fcfa6615718565b901c90505b620100008216156133ba5760806133b5826f09aa508b5b7a84e1c677de54f3e99bc9615718565b901c90505b620200008216156133e55760806133e0826e5d6af8dedb81196699c329225ee604615718565b901c90505b6204000082161561340f57608061340a826d2216e584f5fa1ea926041bedfe98615718565b901c90505b62080000821615613437576080613432826b048a170391f7dc42444e8fa2615718565b901c90505b60008460020b13156134525761344f81600019615745565b90505b613460600160201b826157ed565b1561346c57600161346f565b60005b6134809060ff16602083901c6154bc565b949350505050565b6000600160801b82106134ed5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663238206269747360c81b6064820152608401610824565b5090565b600080836001600160a01b0316856001600160a01b03161115613512579293925b846001600160a01b0316866001600160a01b03161161353d57613536858585614961565b9150612ea3565b836001600160a01b0316866001600160a01b0316101561357657613562868585614961565b915061356f8587856149cb565b9050612ea3565b6135818585856149cb565b905094509492505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610e2b9085906323b872dd60e01b90608401612ed8565b6000836001600160a01b0316856001600160a01b031611156135e4579293925b846001600160a01b0316866001600160a01b03161161360f57613608858585614a15565b905061306a565b836001600160a01b0316866001600160a01b03161015613671576000613636878686614a15565b90506000613645878986614a7f565b9050806001600160801b0316826001600160801b0316106136665780613668565b815b9250505061306a565b61367c858584614a7f565b9695505050505050565b6001600160a01b0382166136dc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610824565b80603560008282546136ee91906154bc565b90915550506001600160a01b0382166000908152603360205260408120805483929061371b9084906154bc565b90915550506040518181526001600160a01b03831690600090600080516020615cc68339815191529060200160405180910390a35050565b60008060008060006137636106fc565b915091508160001480156137775750600081115b1561378e576137878689836141b3565b925061383d565b8015801561379c5750600082115b156137ac576137878789846141b3565b811580156137b8575080155b156137df5760405162461bcd60e51b81526020600482015260006024820152604401610824565b60006137ec888a856141b3565b905060006137fb888b856141b3565b905060008211801561380d5750600081115b6138295760405162461bcd60e51b815260040161082490615537565b8082106138365780613838565b815b945050505b61384883838a61302a565b945061385583828a61302a565b9350505093509350939050565b6040805160028082526060820183526000926020830190803683375050609854825192935063ffffffff16918391506000906138a0576138a0615801565b602002602001019063ffffffff16908163ffffffff16815250506000816001815181106138cf576138cf615801565b63ffffffff90921660209283029190910190910152609d5460405163883bdbfd60e01b81526000916001600160a01b03169063883bdbfd90613915908590600401615817565b600060405180830381865afa158015613932573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261395a919081019061590a565b509050805160021461399a5760405162461bcd60e51b815260206004820152600960248201526830b93930bc903632b760b91b6044820152606401610824565b6098548151600091829163ffffffff90911660060b90849083906139c0576139c0615801565b6020026020010151846001815181106139db576139db615801565b60200260200101510360060b816139f4576139f461572f565b059050613a038160020b613073565b6097549092506000915061271090613a2690600160f01b900461ffff16846159cc565b613a3091906159fe565b90508415613a7857613a428183615a24565b6001600160a01b0316866001600160a01b03161015613a735760405162461bcd60e51b815260040161082490615a44565b613ab3565b613a828183615a6b565b6001600160a01b0316866001600160a01b03161115613ab35760405162461bcd60e51b815260040161082490615a44565b505050505050565b609b54609954609e546040516370a0823160e01b815260009392916001600160a01b0316906370a0823190613af4903090600401614e39565b602060405180830381865afa158015613b11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b359190615475565b613b3f91906153b2565b613b4991906153b2565b609c54609a54609f546040516370a0823160e01b81529394506000936001600160a01b03909116906370a0823190613b85903090600401614e39565b602060405180830381865afa158015613ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bc69190615475565b613bd091906153b2565b613bda91906153b2565b6097549091506000908190613c0590600160a01b8104600290810b91600160b81b9004900b8c6126da565b935093505050613c158282612a0d565b613c1f8282612ae6565b6040519193509150600080516020615ce683398151915290613c449084908490614e4d565b60405180910390a1613c5684836154bc565b9150613c6283826154bc565b609e549091506001600160a01b0390811690861603613def57609754869061271090613c9990600160d01b900461ffff1685615718565b613ca39190615745565b1015613cc15760405162461bcd60e51b815260040161082490615774565b609b54609954609e546040516370a0823160e01b8152899392916001600160a01b0316906370a0823190613cf9903090600401614e39565b602060405180830381865afa158015613d16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d3a9190615475565b613d4491906153b2565b613d4e91906153b2565b613d5891906153b2565b609c54609a54609f546040516370a0823160e01b8152939750919290916001600160a01b0316906370a0823190613d93903090600401614e39565b602060405180830381865afa158015613db0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dd49190615475565b613dde91906153b2565b613de891906153b2565b9250613f5c565b609f546001600160a01b0390811690861603612e6d57609754869061271090613e2390600160d01b900461ffff1684615718565b613e2d9190615745565b1015613e4b5760405162461bcd60e51b815260040161082490615774565b609b54609954609e546040516370a0823160e01b81526001600160a01b03909116906370a0823190613e81903090600401614e39565b602060405180830381865afa158015613e9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ec29190615475565b613ecc91906153b2565b613ed691906153b2565b609c54609a54609f546040516370a0823160e01b815293975089936001600160a01b03909116906370a0823190613f11903090600401614e39565b602060405180830381865afa158015613f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f529190615475565b613dd491906153b2565b609754612d1590600160a01b8104600290810b91600160b81b9004900b86868d8d8d612b80565b600054610100900460ff1680613f9c575060005460ff16155b613fb85760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015613fda576000805461ffff19166101011790555b613fe2614ab5565b613fec8383614b1f565b8015612f0f576000805461ff0019169055505050565b600054610100900460ff168061401b575060005460ff16155b6140375760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614059576000805461ffff19166101011790555b614061614ba6565b8015614073576000805461ff00191690555b50565b6001600160a01b0382166140d65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610824565b6001600160a01b0382166000908152603360205260409020548181101561414a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610824565b61415482826153b2565b6001600160a01b038416600090815260336020526040812091909155603580548492906141829084906153b2565b90915550506040518281526000906001600160a01b03851690600080516020615cc68339815191529060200161222c565b60008080600019858709858702925082811083820303915050806000036141ec57600084116141e157600080fd5b508290049050610847565b8084116141f857600080fd5b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b600080600080871561440157609d60009054906101000a90046001600160a01b03166001600160a01b031663f30583996040518163ffffffff1660e01b8152600401602060405180830381865afa1580156142c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142e49190615475565b609d5460975460405163f30dba9360e01b81529293506001600160a01b039091169163f30dba939161432491600160a01b90910460020b90600401614f3e565b61010060405180830381865afa158015614342573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143669190615a8b565b5050609d5460975460405163f30dba9360e01b8152959a506001600160a01b03909116965063f30dba9395506143af94600160b81b90910460020b93506004019150614f3e9050565b61010060405180830381865afa1580156143cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143f19190615a8b565b5093975061458f95505050505050565b609d60009054906101000a90046001600160a01b03166001600160a01b031663461413196040518163ffffffff1660e01b8152600401602060405180830381865afa158015614454573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144789190615475565b609d5460975460405163f30dba9360e01b81529293506001600160a01b039091169163f30dba93916144b891600160a01b90910460020b90600401614f3e565b61010060405180830381865afa1580156144d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144fa9190615a8b565b5050609d5460975460405163f30dba9360e01b8152949a506001600160a01b03909116965063f30dba9395506145429450600160b81b900460020b926004019150614f3e9050565b61010060405180830381865afa158015614560573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145849190615a8b565b509297505050505050505b609754600090600160a01b9004600290810b9088900b126145b15750826145b6565b508281035b609754600090600160b81b9004600290810b9089900b12156145d95750826145de565b508282035b8183038190036145fe6001600160801b0389168b8303600160801b6141b3565b9b9a5050505050505050505050565b6000600160ff1b82106134ed5760405162461bcd60e51b815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604482015267371034b73a191a9b60c11b6064820152608401610824565b609d54604051630251596160e31b81523060048201528215156024820152604481018590526001600160a01b03848116606483015260a06084830152600060a4830181905292839283928392169063128acb089060c40160408051808303816000875af11580156146e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061470c9190615599565b915091508161471a8a61460d565b6147249190615b27565b9350806147308961460d565b61473a9190615b27565b92506000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015614791573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147b5919061530a565b505050505050905060006147e2826147cf8f60020b613073565b6147db8f60020b613073565b89896135c4565b90506001600160801b0381161561487f57609d60009054906101000a90046001600160a01b03166001600160a01b0316633c8a7d8d308f8f856040518563ffffffff1660e01b815260040161483a9493929190615557565b60408051808303816000875af1158015614858573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061487c9190615599565b50505b5050505097509795505050505050565b60006148e4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614c169092919063ffffffff16565b805190915015612f0f57808060200190518101906149029190615b47565b612f0f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610824565b6000826001600160a01b0316846001600160a01b03161115614981579192915b6001600160a01b0384166149c1600160601b600160e01b03606085901b166149a98787615a24565b6001600160a01b0316866001600160a01b03166141b3565b6134809190615745565b6000826001600160a01b0316846001600160a01b031611156149eb579192915b6134806001600160801b038316614a028686615a24565b6001600160a01b0316600160601b6141b3565b6000826001600160a01b0316846001600160a01b03161115614a35579192915b6000614a58856001600160a01b0316856001600160a01b0316600160601b6141b3565b905061306a614a7a8483614a6c8989615a24565b6001600160a01b03166141b3565b614c25565b6000826001600160a01b0316846001600160a01b03161115614a9f579192915b613480614a7a83600160601b614a6c8888615a24565b600054610100900460ff1680614ace575060005460ff16155b614aea5760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614061576000805461ffff19166101011790558015614073576000805461ff001916905550565b600054610100900460ff1680614b38575060005460ff16155b614b545760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614b76576000805461ffff19166101011790555b6036614b828482615baa565b506037614b8f8382615baa565b508015612f0f576000805461ff0019169055505050565b600054610100900460ff1680614bbf575060005460ff16155b614bdb5760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614bfd576000805461ffff19166101011790555b60016065558015614073576000805461ff001916905550565b60606134808484600085614c40565b806001600160801b0381168114614c3b57600080fd5b919050565b606082471015614ca15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610824565b843b614cef5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610824565b600080866001600160a01b03168587604051614d0b9190615c69565b60006040518083038185875af1925050503d8060008114614d48576040519150601f19603f3d011682016040523d82523d6000602084013e614d4d565b606091505b5091509150614d5d828286614d68565b979650505050505050565b60608315614d77575081610847565b825115614d875782518084602001fd5b8160405162461bcd60e51b81526004016108249190614dc5565b60005b83811015614dbc578181015183820152602001614da4565b50506000910152565b6020815260008251806020840152614de4816040850160208701614da1565b601f01601f19169190910160400192915050565b6001600160a01b038116811461407357600080fd5b60008060408385031215614e2057600080fd5b8235614e2b81614df8565b946020939093013593505050565b6001600160a01b0391909116815260200190565b918252602082015260400190565b600080600060608486031215614e7057600080fd5b8335614e7b81614df8565b92506020840135614e8b81614df8565b929592945050506040919091013590565b8060020b811461407357600080fd5b801515811461407357600080fd5b600080600080600060a08688031215614ed157600080fd5b8535614edc81614e9c565b94506020860135614eec81614e9c565b93506040860135614efc81614df8565b9250606086013591506080860135614f1381614eab565b809150509295509295909350565b600060208284031215614f3357600080fd5b813561084781614df8565b60029190910b815260200190565b60008060408385031215614f5f57600080fd5b823591506020830135614f7181614df8565b809150509250929050565b60008060408385031215614f8f57600080fd5b50508035926020909101359150565b61ffff8116811461407357600080fd5b63ffffffff8116811461407357600080fd5b600080600080600060a08688031215614fd857600080fd5b8535614fe381614f9e565b94506020860135614ff381614f9e565b9350604086013561500381614f9e565b9250606086013561501381614fae565b91506080860135614f1381614df8565b600080600080600060a0868803121561503b57600080fd5b853561504681614df8565b945060208601359350604086013561505d81614eab565b9250606086013591506080860135614f1381614df8565b60008083601f84011261508657600080fd5b5081356001600160401b0381111561509d57600080fd5b6020830191508360208285010111156150b557600080fd5b9250929050565b600080600080606085870312156150d257600080fd5b843593506020850135925060408501356001600160401b038111156150f657600080fd5b61510287828801615074565b95989497509550505050565b6000806040838503121561512157600080fd5b823561512c81614df8565b91506020830135614f7181614df8565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561517a5761517a61513c565b604052919050565b600082601f83011261519357600080fd5b81356001600160401b038111156151ac576151ac61513c565b6151bf601f8201601f1916602001615152565b8181528460208386010111156151d457600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060e0888a03121561520c57600080fd5b87356001600160401b038082111561522357600080fd5b61522f8b838c01615182565b985060208a013591508082111561524557600080fd5b506152528a828b01615182565b965050604088013561526381614df8565b9450606088013561527381614f9e565b9350608088013561528381614e9c565b925060a088013561529381614e9c565b915060c08801356152a381614df8565b8091505092959891949750929550565b6000602082840312156152c557600080fd5b813561084781614f9e565b600181811c908216806152e457607f821691505b60208210810361530457634e487b7160e01b600052602260045260246000fd5b50919050565b600080600080600080600060e0888a03121561532557600080fd5b875161533081614df8565b602089015190975061534181614e9c565b604089015190965061535281614f9e565b606089015190955061536381614f9e565b608089015190945061537481614f9e565b60a089015190935060ff8116811461538b57600080fd5b60c08901519092506152a381614eab565b634e487b7160e01b600052601160045260246000fd5b818103818111156106f6576106f661539c565b60208082526022908201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d616e616760408201526132b960f11b606082015260800190565b80516001600160801b0381168114614c3b57600080fd5b600080600080600060a0868803121561543657600080fd5b61543f86615407565b9450602086015193506040860151925061545b60608701615407565b915061546960808701615407565b90509295509295909350565b60006020828403121561548757600080fd5b5051919050565b600294850b81529290930b60208301526001600160801b039081166040830152909116606082015260800190565b808201808211156106f6576106f661539c565b60208082526017908201527647656c61746f666965643a204f6e6c792067656c61746f60481b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526006908201526506d696e7420360d41b604082015260600190565b6001600160a01b03949094168452600292830b6020850152910b60408301526001600160801b0316606082015260a06080820181905260009082015260c00190565b600080604083850312156155ac57600080fd5b505080516020909101519092909150565b6001600160a01b039590951685526020850193909352604084019190915260608301526001600160801b0316608082015260a00190565b60208082526003908201526242505360e81b604082015260600190565b6020808252600f908201526e31b0b6363130b1b59031b0b63632b960891b604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b61ffff8281168282160390808211156156a3576156a361539c565b5092915050565b6020808252600490820152636d42505360e01b604082015260600190565b6000602082840312156156da57600080fd5b815161084781614df8565b600080604083850312156156f857600080fd5b61570183615407565b915061570f60208401615407565b90509250929050565b80820281158282048414176106f6576106f661539c565b634e487b7160e01b600052601260045260246000fd5b6000826157545761575461572f565b500490565b61ffff8181168382160190808211156156a3576156a361539c565b602080825260089082015267686967682066656560c01b604082015260600190565b6000600182016157a8576157a861539c565b5060010190565b6000600160ff1b82016157c4576157c461539c565b5060000390565b60008160020b627fffff1981036157e4576157e461539c565b60000392915050565b6000826157fc576157fc61572f565b500690565b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561585557835163ffffffff1683529284019291840191600101615833565b50909695505050505050565b60006001600160401b0382111561587a5761587a61513c565b5060051b60200190565b8051600681900b8114614c3b57600080fd5b600082601f8301126158a757600080fd5b815160206158bc6158b783615861565b615152565b82815260059290921b840181019181810190868411156158db57600080fd5b8286015b848110156158ff5780516158f281614df8565b83529183019183016158df565b509695505050505050565b6000806040838503121561591d57600080fd5b82516001600160401b038082111561593457600080fd5b818501915085601f83011261594857600080fd5b815160206159586158b783615861565b82815260059290921b8401810191818101908984111561597757600080fd5b948201945b8386101561599c5761598d86615884565b8252948201949082019061597c565b918801519196509093505050808211156159b557600080fd5b506159c285828601615896565b9150509250929050565b6001600160a01b038281168282168181028316929181158285048214176159f5576159f561539c565b50505092915050565b60006001600160a01b0383811680615a1857615a1861572f565b92169190910492915050565b6001600160a01b038281168282160390808211156156a3576156a361539c565b6020808252600d908201526c6869676820736c69707061676560981b604082015260600190565b6001600160a01b038181168382160190808211156156a3576156a361539c565b600080600080600080600080610100898b031215615aa857600080fd5b615ab189615407565b9750602089015180600f0b8114615ac757600080fd5b60408a015160608b015191985096509450615ae460808a01615884565b935060a0890151615af481614df8565b60c08a0151909350615b0581614fae565b60e08a0151909250615b1681614eab565b809150509295985092959890939650565b81810360008312801583831316838312821617156156a3576156a361539c565b600060208284031215615b5957600080fd5b815161084781614eab565b601f821115612f0f57600081815260208120601f850160051c81016020861015615b8b5750805b601f850160051c820191505b81811015613ab357828155600101615b97565b81516001600160401b03811115615bc357615bc361513c565b615bd781615bd184546152d0565b84615b64565b602080601f831160018114615c0c5760008415615bf45750858301515b600019600386901b1c1916600185901b178555613ab3565b600085815260208120601f198616915b82811015615c3b57888601518255948401946001909101908401615c1c565b5085821015615c595787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008251615c7b818460208701614da1565b919091019291505056fec749f9ae947d4734cf1569606a8a347391ae94a063478aa853aeff48ac5f99e88be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efc28ad1de9c0c32e5394ba60323e44d8d9536312236a47231772e448a3e49de42a2646970667358221220a11bde499516b0a2e8e737821292815fcefc66549a9729f24ea128d34ed6027364736f6c63430008130033", + "devdoc": { + "events": { + "Approval(address,address,uint256)": { + "details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance." + }, + "Transfer(address,address,uint256)": { + "details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero." + } + }, + "kind": "dev", + "methods": { + "allowance(address,address)": { + "details": "See {IERC20-allowance}." + }, + "approve(address,uint256)": { + "details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address." + }, + "balanceOf(address)": { + "details": "See {IERC20-balanceOf}." + }, + "burn(uint256,address)": { + "params": { + "burnAmount": "The number of G-UNI tokens to burn", + "receiver": "The account to receive the underlying amounts of token0 and token1" + }, + "returns": { + "amount0": "amount of token0 transferred to receiver for burning `burnAmount`", + "amount1": "amount of token1 transferred to receiver for burning `burnAmount`", + "liquidityBurned": "amount of liquidity removed from the underlying Uniswap V3 position" + } + }, + "decimals()": { + "details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}." + }, + "decreaseAllowance(address,uint256)": { + "details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`." + }, + "executiveRebalance(int24,int24,uint160,uint256,bool)": { + "details": "When changing the range the inventory of token0 and token1 may be rebalanced with a swap to deposit as much liquidity as possible into the new position. Swap parameters can be computed by simulating the whole operation: remove all liquidity, deposit as much as possible into new position, then observe how much of token0 or token1 is leftover. Swap a proportion of this leftover to deposit more liquidity into the position, since any leftover will be unused and sit idle until the next rebalance.", + "params": { + "newLowerTick": "The new lower bound of the position's range", + "newUpperTick": "The new upper bound of the position's range", + "swapAmountBPS": "amount of token to swap as proportion of total. Pass 0 to ignore swap.", + "swapThresholdPrice": "slippage parameter on the swap as a max or min sqrtPriceX96", + "zeroForOne": "Which token to input into the swap (true = token0, false = token1)" + } + }, + "getMintAmounts(uint256,uint256)": { + "params": { + "amount0Max": "The maximum amount of token1 to forward on mint" + }, + "returns": { + "amount0": "actual amount of token0 to forward when minting `mintAmount`", + "amount1": "actual amount of token1 to forward when minting `mintAmount`", + "mintAmount": "maximum number of G-UNI tokens to mint" + } + }, + "getUnderlyingBalances()": { + "returns": { + "amount0Current": "current total underlying balance of token0", + "amount1Current": "current total underlying balance of token1" + } + }, + "increaseAllowance(address,uint256)": { + "details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address." + }, + "initialize(string,string,address,uint16,int24,int24,address)": { + "params": { + "_lowerTick": "initial upperTick (only changeable with executiveRebalance)", + "_managerFeeBPS": "proportion of fees earned that go to manager treasury note that the 4 above params are NOT UPDATEABLE AFTER INILIALIZATION", + "_manager_": "address of manager (ownership can be transferred)", + "_name": "name of G-UNI token", + "_pool": "address of Uniswap V3 pool", + "_symbol": "symbol of G-UNI token" + } + }, + "initializeManagerFee(uint16)": { + "params": { + "_managerFeeBPS": "proportion of fees earned that are credited to manager in Basis Points" + } + }, + "manager()": { + "details": "Returns the address of the current manager." + }, + "mint(uint256,address)": { + "details": "to compute the amouint of tokens necessary to mint `mintAmount` see getMintAmounts", + "params": { + "mintAmount": "The number of G-UNI tokens to mint", + "receiver": "The account to receive the minted tokens" + }, + "returns": { + "amount0": "amount of token0 transferred from msg.sender to mint `mintAmount`", + "amount1": "amount of token1 transferred from msg.sender to mint `mintAmount`", + "liquidityMinted": "amount of liquidity added to the underlying Uniswap V3 position" + } + }, + "name()": { + "details": "Returns the name of the token." + }, + "renounceOwnership()": { + "details": "Leaves the contract without manager. It will not be possible to call `onlyManager` functions anymore. Can only be called by the current manager. NOTE: Renouncing ownership will leave the contract without an manager, thereby removing any functionality that is only available to the manager." + }, + "symbol()": { + "details": "Returns the symbol of the token, usually a shorter version of the name." + }, + "totalSupply()": { + "details": "See {IERC20-totalSupply}." + }, + "transfer(address,uint256)": { + "details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`." + }, + "transferFrom(address,address,uint256)": { + "details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`." + }, + "transferOwnership(address)": { + "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current manager." + }, + "updateGelatoParams(uint16,uint16,uint16,uint32,address)": { + "params": { + "newRebalanceBPS": "controls frequency of gelato rebalances: gas fee to execute rebalance can be gelatoRebalanceBPS proportion of fees earned since last rebalance", + "newSlippageBPS": "maximum slippage on swaps during gelato rebalance", + "newSlippageInterval": "length of time for TWAP used in computing slippage on swaps", + "newTreasury": "address where managerFee withdrawals are sent", + "newWithdrawBPS": "controls frequency of gelato withdrawals: gas fee to execute withdrawal can be gelatoWithdrawBPS proportion of fees accrued since last withdraw" + } + } + }, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "burn(uint256,address)": { + "notice": "burn G-UNI tokens (fractional shares of a Uniswap V3 position) and receive tokens" + }, + "executiveRebalance(int24,int24,uint160,uint256,bool)": { + "notice": "Change the range of underlying UniswapV3 position, only manager can call" + }, + "getMintAmounts(uint256,uint256)": { + "notice": "compute maximum G-UNI tokens that can be minted from `amount0Max` and `amount1Max`" + }, + "getUnderlyingBalances()": { + "notice": "compute total underlying holdings of the G-UNI token supply includes current liquidity invested in uniswap position, current fees earned and any uninvested leftover (but does not include manager or gelato fees accrued)" + }, + "initialize(string,string,address,uint16,int24,int24,address)": { + "notice": "initialize storage variables on a new G-UNI pool, only called once" + }, + "initializeManagerFee(uint16)": { + "notice": "initializeManagerFee sets a managerFee, only manager can call. If a manager fee was not set in the initialize function it can be set here but ONLY ONCE- after it is set to a non-zero value, managerFee can never be set again." + }, + "mint(uint256,address)": { + "notice": "mint fungible G-UNI tokens, fractional shares of a Uniswap V3 position" + }, + "rebalance(uint160,uint256,bool,uint256,address)": { + "notice": "Reinvest fees earned into underlying position, only gelato executors can call Position bounds CANNOT be altered by gelato, only manager may via executiveRebalance. Frequency of rebalance configured with gelatoRebalanceBPS, alterable by manager." + }, + "uniswapV3MintCallback(uint256,uint256,bytes)": { + "notice": "Uniswap V3 callback fn, called back on pool.mint" + }, + "uniswapV3SwapCallback(int256,int256,bytes)": { + "notice": "Uniswap v3 callback fn, called back on pool.swap" + }, + "updateGelatoParams(uint16,uint16,uint16,uint32,address)": { + "notice": "change configurable parameters, only manager can call" + }, + "withdrawGelatoBalance(uint256,address)": { + "notice": "withdraw gelato fees accrued, only gelato executors can call. Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager." + }, + "withdrawManagerBalance(uint256,address)": { + "notice": "withdraw manager fees accrued, only gelato executors can call. Target account to receive fees is managerTreasury, alterable by manager. Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager." + } + }, + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 5, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_bool" + }, + { + "astId": 8, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool" + }, + { + "astId": 784, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 122, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_balances", + "offset": 0, + "slot": "51", + "type": "t_mapping(t_address,t_uint256)" + }, + { + "astId": 128, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_allowances", + "offset": 0, + "slot": "52", + "type": "t_mapping(t_address,t_mapping(t_address,t_uint256))" + }, + { + "astId": 130, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_totalSupply", + "offset": 0, + "slot": "53", + "type": "t_uint256" + }, + { + "astId": 132, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_name", + "offset": 0, + "slot": "54", + "type": "t_string_storage" + }, + { + "astId": 134, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_symbol", + "offset": 0, + "slot": "55", + "type": "t_string_storage" + }, + { + "astId": 636, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "__gap", + "offset": 0, + "slot": "56", + "type": "t_array(t_uint256)45_storage" + }, + { + "astId": 59, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_status", + "offset": 0, + "slot": "101", + "type": "t_uint256" + }, + { + "astId": 102, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "__gap", + "offset": 0, + "slot": "102", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 6441, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_manager", + "offset": 0, + "slot": "151", + "type": "t_address" + }, + { + "astId": 6031, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "lowerTick", + "offset": 20, + "slot": "151", + "type": "t_int24" + }, + { + "astId": 6033, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "upperTick", + "offset": 23, + "slot": "151", + "type": "t_int24" + }, + { + "astId": 6035, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoRebalanceBPS", + "offset": 26, + "slot": "151", + "type": "t_uint16" + }, + { + "astId": 6037, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoWithdrawBPS", + "offset": 28, + "slot": "151", + "type": "t_uint16" + }, + { + "astId": 6039, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoSlippageBPS", + "offset": 30, + "slot": "151", + "type": "t_uint16" + }, + { + "astId": 6041, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoSlippageInterval", + "offset": 0, + "slot": "152", + "type": "t_uint32" + }, + { + "astId": 6043, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "managerFeeBPS", + "offset": 4, + "slot": "152", + "type": "t_uint16" + }, + { + "astId": 6045, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "managerTreasury", + "offset": 6, + "slot": "152", + "type": "t_address" + }, + { + "astId": 6047, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "managerBalance0", + "offset": 0, + "slot": "153", + "type": "t_uint256" + }, + { + "astId": 6049, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "managerBalance1", + "offset": 0, + "slot": "154", + "type": "t_uint256" + }, + { + "astId": 6051, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoBalance0", + "offset": 0, + "slot": "155", + "type": "t_uint256" + }, + { + "astId": 6053, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoBalance1", + "offset": 0, + "slot": "156", + "type": "t_uint256" + }, + { + "astId": 6056, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "pool", + "offset": 0, + "slot": "157", + "type": "t_contract(IUniswapV3Pool)2339" + }, + { + "astId": 6059, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "token0", + "offset": 0, + "slot": "158", + "type": "t_contract(IERC20)863" + }, + { + "astId": 6062, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "token1", + "offset": 0, + "slot": "159", + "type": "t_contract(IERC20)863" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)45_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[45]", + "numberOfBytes": "1440" + }, + "t_array(t_uint256)49_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_contract(IERC20)863": { + "encoding": "inplace", + "label": "contract IERC20", + "numberOfBytes": "20" + }, + "t_contract(IUniswapV3Pool)2339": { + "encoding": "inplace", + "label": "contract IUniswapV3Pool", + "numberOfBytes": "20" + }, + "t_int24": { + "encoding": "inplace", + "label": "int24", + "numberOfBytes": "3" + }, + "t_mapping(t_address,t_mapping(t_address,t_uint256))": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => mapping(address => uint256))", + "numberOfBytes": "32", + "value": "t_mapping(t_address,t_uint256)" + }, + "t_mapping(t_address,t_uint256)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_string_storage": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_uint16": { + "encoding": "inplace", + "label": "uint16", + "numberOfBytes": "2" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint32": { + "encoding": "inplace", + "label": "uint32", + "numberOfBytes": "4" + } + } + } +} \ No newline at end of file diff --git a/lib/g-uni-v1-core/deployments/baseSepolia/GUniPool.json b/lib/g-uni-v1-core/deployments/baseSepolia/GUniPool.json new file mode 100644 index 00000000..b656c183 --- /dev/null +++ b/lib/g-uni-v1-core/deployments/baseSepolia/GUniPool.json @@ -0,0 +1,1649 @@ +{ + "address": "0xF5c31d08a71c854A9f607A5992456dBC31B11e16", + "abi": [ + { + "inputs": [ + { + "internalType": "address payable", + "name": "_gelato", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "receiver", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "burnAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount0Out", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount1Out", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidityBurned", + "type": "uint128" + } + ], + "name": "Burned", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "feesEarned0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "feesEarned1", + "type": "uint256" + } + ], + "name": "FeesEarned", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "receiver", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "mintAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount0In", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount1In", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidityMinted", + "type": "uint128" + } + ], + "name": "Minted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousManager", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newManager", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "int24", + "name": "lowerTick_", + "type": "int24" + }, + { + "indexed": false, + "internalType": "int24", + "name": "upperTick_", + "type": "int24" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidityBefore", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidityAfter", + "type": "uint128" + } + ], + "name": "Rebalance", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint16", + "name": "managerFee", + "type": "uint16" + } + ], + "name": "SetManagerFee", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oldAdminTreasury", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdminTreasury", + "type": "address" + } + ], + "name": "UpdateAdminTreasury", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint16", + "name": "gelatoRebalanceBPS", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "gelatoWithdrawBPS", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "gelatoSlippageBPS", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "gelatoSlippageInterval", + "type": "uint32" + } + ], + "name": "UpdateGelatoParams", + "type": "event" + }, + { + "inputs": [], + "name": "GELATO", + "outputs": [ + { + "internalType": "address payable", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "spender", + "type": "address" + } + ], + "name": "allowance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "burnAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "receiver", + "type": "address" + } + ], + "name": "burn", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + }, + { + "internalType": "uint128", + "name": "liquidityBurned", + "type": "uint128" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "decimals", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "subtractedValue", + "type": "uint256" + } + ], + "name": "decreaseAllowance", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int24", + "name": "newLowerTick", + "type": "int24" + }, + { + "internalType": "int24", + "name": "newUpperTick", + "type": "int24" + }, + { + "internalType": "uint160", + "name": "swapThresholdPrice", + "type": "uint160" + }, + { + "internalType": "uint256", + "name": "swapAmountBPS", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "zeroForOne", + "type": "bool" + } + ], + "name": "executiveRebalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoBalance0", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoBalance1", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoFeeBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoRebalanceBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoSlippageBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoSlippageInterval", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoWithdrawBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount0Max", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1Max", + "type": "uint256" + } + ], + "name": "getMintAmounts", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "mintAmount", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getPositionID", + "outputs": [ + { + "internalType": "bytes32", + "name": "positionID", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getUnderlyingBalances", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0Current", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1Current", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint160", + "name": "sqrtRatioX96", + "type": "uint160" + } + ], + "name": "getUnderlyingBalancesAtPrice", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0Current", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1Current", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "addedValue", + "type": "uint256" + } + ], + "name": "increaseAllowance", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "_name", + "type": "string" + }, + { + "internalType": "string", + "name": "_symbol", + "type": "string" + }, + { + "internalType": "address", + "name": "_pool", + "type": "address" + }, + { + "internalType": "uint16", + "name": "_managerFeeBPS", + "type": "uint16" + }, + { + "internalType": "int24", + "name": "_lowerTick", + "type": "int24" + }, + { + "internalType": "int24", + "name": "_upperTick", + "type": "int24" + }, + { + "internalType": "address", + "name": "_manager_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint16", + "name": "_managerFeeBPS", + "type": "uint16" + } + ], + "name": "initializeManagerFee", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "lowerTick", + "outputs": [ + { + "internalType": "int24", + "name": "", + "type": "int24" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "manager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "managerBalance0", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "managerBalance1", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "managerFeeBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "managerTreasury", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "mintAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "receiver", + "type": "address" + } + ], + "name": "mint", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + }, + { + "internalType": "uint128", + "name": "liquidityMinted", + "type": "uint128" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pool", + "outputs": [ + { + "internalType": "contract IUniswapV3Pool", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint160", + "name": "swapThresholdPrice", + "type": "uint160" + }, + { + "internalType": "uint256", + "name": "swapAmountBPS", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "zeroForOne", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "paymentToken", + "type": "address" + } + ], + "name": "rebalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "token0", + "outputs": [ + { + "internalType": "contract IERC20", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "token1", + "outputs": [ + { + "internalType": "contract IERC20", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transfer", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount0Owed", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1Owed", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "uniswapV3MintCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int256", + "name": "amount0Delta", + "type": "int256" + }, + { + "internalType": "int256", + "name": "amount1Delta", + "type": "int256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "uniswapV3SwapCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint16", + "name": "newRebalanceBPS", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "newWithdrawBPS", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "newSlippageBPS", + "type": "uint16" + }, + { + "internalType": "uint32", + "name": "newSlippageInterval", + "type": "uint32" + }, + { + "internalType": "address", + "name": "newTreasury", + "type": "address" + } + ], + "name": "updateGelatoParams", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "upperTick", + "outputs": [ + { + "internalType": "int24", + "name": "", + "type": "int24" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "feeToken", + "type": "address" + } + ], + "name": "withdrawGelatoBalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "feeToken", + "type": "address" + } + ], + "name": "withdrawManagerBalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "transactionHash": "0x656dfce1a2831aeceb00af6330961c9e21c1e4c6919accfdcc3b28b11e806ea1", + "receipt": { + "to": null, + "from": "0xB47C8e4bEb28af80eDe5E5bF474927b110Ef2c0e", + "contractAddress": "0xF5c31d08a71c854A9f607A5992456dBC31B11e16", + "transactionIndex": 4, + "gasUsed": "5209546", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xed1232f938bae78807761859963245f84f5f4c75760ccb02e377d6ebbc47dd4a", + "transactionHash": "0x656dfce1a2831aeceb00af6330961c9e21c1e4c6919accfdcc3b28b11e806ea1", + "logs": [], + "blockNumber": 11304746, + "cumulativeGasUsed": "6095128", + "status": 1, + "byzantium": true + }, + "args": [ + "0xB47C8e4bEb28af80eDe5E5bF474927b110Ef2c0e" + ], + "solcInputHash": "f1f932b5297d788fce5c0abb03e1e395", + "metadata": "{\"compiler\":{\"version\":\"0.8.19+commit.7dd6d404\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"_gelato\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"burnAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0Out\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1Out\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityBurned\",\"type\":\"uint128\"}],\"name\":\"Burned\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feesEarned0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feesEarned1\",\"type\":\"uint256\"}],\"name\":\"FeesEarned\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"mintAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityMinted\",\"type\":\"uint128\"}],\"name\":\"Minted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousManager\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newManager\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"lowerTick_\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"upperTick_\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityBefore\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityAfter\",\"type\":\"uint128\"}],\"name\":\"Rebalance\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"managerFee\",\"type\":\"uint16\"}],\"name\":\"SetManagerFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldAdminTreasury\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdminTreasury\",\"type\":\"address\"}],\"name\":\"UpdateAdminTreasury\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"gelatoRebalanceBPS\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"gelatoWithdrawBPS\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"gelatoSlippageBPS\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"gelatoSlippageInterval\",\"type\":\"uint32\"}],\"name\":\"UpdateGelatoParams\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"GELATO\",\"outputs\":[{\"internalType\":\"address payable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"burnAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"liquidityBurned\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"newLowerTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"newUpperTick\",\"type\":\"int24\"},{\"internalType\":\"uint160\",\"name\":\"swapThresholdPrice\",\"type\":\"uint160\"},{\"internalType\":\"uint256\",\"name\":\"swapAmountBPS\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"zeroForOne\",\"type\":\"bool\"}],\"name\":\"executiveRebalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoBalance0\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoBalance1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoFeeBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoRebalanceBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoSlippageBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoSlippageInterval\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoWithdrawBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Max\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Max\",\"type\":\"uint256\"}],\"name\":\"getMintAmounts\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"mintAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPositionID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"positionID\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getUnderlyingBalances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Current\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Current\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"sqrtRatioX96\",\"type\":\"uint160\"}],\"name\":\"getUnderlyingBalancesAtPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Current\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Current\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_pool\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_managerFeeBPS\",\"type\":\"uint16\"},{\"internalType\":\"int24\",\"name\":\"_lowerTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"_upperTick\",\"type\":\"int24\"},{\"internalType\":\"address\",\"name\":\"_manager_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_managerFeeBPS\",\"type\":\"uint16\"}],\"name\":\"initializeManagerFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lowerTick\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"managerBalance0\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"managerBalance1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"managerFeeBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"managerTreasury\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"mintAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"liquidityMinted\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pool\",\"outputs\":[{\"internalType\":\"contract IUniswapV3Pool\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"swapThresholdPrice\",\"type\":\"uint160\"},{\"internalType\":\"uint256\",\"name\":\"swapAmountBPS\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"zeroForOne\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"paymentToken\",\"type\":\"address\"}],\"name\":\"rebalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Owed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Owed\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"uniswapV3MintCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"uniswapV3SwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newRebalanceBPS\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"newWithdrawBPS\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"newSlippageBPS\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"newSlippageInterval\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"newTreasury\",\"type\":\"address\"}],\"name\":\"updateGelatoParams\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"upperTick\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"feeToken\",\"type\":\"address\"}],\"name\":\"withdrawGelatoBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"feeToken\",\"type\":\"address\"}],\"name\":\"withdrawManagerBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"burn(uint256,address)\":{\"params\":{\"burnAmount\":\"The number of G-UNI tokens to burn\",\"receiver\":\"The account to receive the underlying amounts of token0 and token1\"},\"returns\":{\"amount0\":\"amount of token0 transferred to receiver for burning `burnAmount`\",\"amount1\":\"amount of token1 transferred to receiver for burning `burnAmount`\",\"liquidityBurned\":\"amount of liquidity removed from the underlying Uniswap V3 position\"}},\"decimals()\":{\"details\":\"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.\"},\"executiveRebalance(int24,int24,uint160,uint256,bool)\":{\"details\":\"When changing the range the inventory of token0 and token1 may be rebalanced with a swap to deposit as much liquidity as possible into the new position. Swap parameters can be computed by simulating the whole operation: remove all liquidity, deposit as much as possible into new position, then observe how much of token0 or token1 is leftover. Swap a proportion of this leftover to deposit more liquidity into the position, since any leftover will be unused and sit idle until the next rebalance.\",\"params\":{\"newLowerTick\":\"The new lower bound of the position's range\",\"newUpperTick\":\"The new upper bound of the position's range\",\"swapAmountBPS\":\"amount of token to swap as proportion of total. Pass 0 to ignore swap.\",\"swapThresholdPrice\":\"slippage parameter on the swap as a max or min sqrtPriceX96\",\"zeroForOne\":\"Which token to input into the swap (true = token0, false = token1)\"}},\"getMintAmounts(uint256,uint256)\":{\"params\":{\"amount0Max\":\"The maximum amount of token1 to forward on mint\"},\"returns\":{\"amount0\":\"actual amount of token0 to forward when minting `mintAmount`\",\"amount1\":\"actual amount of token1 to forward when minting `mintAmount`\",\"mintAmount\":\"maximum number of G-UNI tokens to mint\"}},\"getUnderlyingBalances()\":{\"returns\":{\"amount0Current\":\"current total underlying balance of token0\",\"amount1Current\":\"current total underlying balance of token1\"}},\"increaseAllowance(address,uint256)\":{\"details\":\"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address.\"},\"initialize(string,string,address,uint16,int24,int24,address)\":{\"params\":{\"_lowerTick\":\"initial upperTick (only changeable with executiveRebalance)\",\"_managerFeeBPS\":\"proportion of fees earned that go to manager treasury note that the 4 above params are NOT UPDATEABLE AFTER INILIALIZATION\",\"_manager_\":\"address of manager (ownership can be transferred)\",\"_name\":\"name of G-UNI token\",\"_pool\":\"address of Uniswap V3 pool\",\"_symbol\":\"symbol of G-UNI token\"}},\"initializeManagerFee(uint16)\":{\"params\":{\"_managerFeeBPS\":\"proportion of fees earned that are credited to manager in Basis Points\"}},\"manager()\":{\"details\":\"Returns the address of the current manager.\"},\"mint(uint256,address)\":{\"details\":\"to compute the amouint of tokens necessary to mint `mintAmount` see getMintAmounts\",\"params\":{\"mintAmount\":\"The number of G-UNI tokens to mint\",\"receiver\":\"The account to receive the minted tokens\"},\"returns\":{\"amount0\":\"amount of token0 transferred from msg.sender to mint `mintAmount`\",\"amount1\":\"amount of token1 transferred from msg.sender to mint `mintAmount`\",\"liquidityMinted\":\"amount of liquidity added to the underlying Uniswap V3 position\"}},\"name()\":{\"details\":\"Returns the name of the token.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without manager. It will not be possible to call `onlyManager` functions anymore. Can only be called by the current manager. NOTE: Renouncing ownership will leave the contract without an manager, thereby removing any functionality that is only available to the manager.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}.\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current manager.\"},\"updateGelatoParams(uint16,uint16,uint16,uint32,address)\":{\"params\":{\"newRebalanceBPS\":\"controls frequency of gelato rebalances: gas fee to execute rebalance can be gelatoRebalanceBPS proportion of fees earned since last rebalance\",\"newSlippageBPS\":\"maximum slippage on swaps during gelato rebalance\",\"newSlippageInterval\":\"length of time for TWAP used in computing slippage on swaps\",\"newTreasury\":\"address where managerFee withdrawals are sent\",\"newWithdrawBPS\":\"controls frequency of gelato withdrawals: gas fee to execute withdrawal can be gelatoWithdrawBPS proportion of fees accrued since last withdraw\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"burn(uint256,address)\":{\"notice\":\"burn G-UNI tokens (fractional shares of a Uniswap V3 position) and receive tokens\"},\"executiveRebalance(int24,int24,uint160,uint256,bool)\":{\"notice\":\"Change the range of underlying UniswapV3 position, only manager can call\"},\"getMintAmounts(uint256,uint256)\":{\"notice\":\"compute maximum G-UNI tokens that can be minted from `amount0Max` and `amount1Max`\"},\"getUnderlyingBalances()\":{\"notice\":\"compute total underlying holdings of the G-UNI token supply includes current liquidity invested in uniswap position, current fees earned and any uninvested leftover (but does not include manager or gelato fees accrued)\"},\"initialize(string,string,address,uint16,int24,int24,address)\":{\"notice\":\"initialize storage variables on a new G-UNI pool, only called once\"},\"initializeManagerFee(uint16)\":{\"notice\":\"initializeManagerFee sets a managerFee, only manager can call. If a manager fee was not set in the initialize function it can be set here but ONLY ONCE- after it is set to a non-zero value, managerFee can never be set again.\"},\"mint(uint256,address)\":{\"notice\":\"mint fungible G-UNI tokens, fractional shares of a Uniswap V3 position\"},\"rebalance(uint160,uint256,bool,uint256,address)\":{\"notice\":\"Reinvest fees earned into underlying position, only gelato executors can call Position bounds CANNOT be altered by gelato, only manager may via executiveRebalance. Frequency of rebalance configured with gelatoRebalanceBPS, alterable by manager.\"},\"uniswapV3MintCallback(uint256,uint256,bytes)\":{\"notice\":\"Uniswap V3 callback fn, called back on pool.mint\"},\"uniswapV3SwapCallback(int256,int256,bytes)\":{\"notice\":\"Uniswap v3 callback fn, called back on pool.swap\"},\"updateGelatoParams(uint16,uint16,uint16,uint32,address)\":{\"notice\":\"change configurable parameters, only manager can call\"},\"withdrawGelatoBalance(uint256,address)\":{\"notice\":\"withdraw gelato fees accrued, only gelato executors can call. Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager.\"},\"withdrawManagerBalance(uint256,address)\":{\"notice\":\"withdraw manager fees accrued, only gelato executors can call. Target account to receive fees is managerTreasury, alterable by manager. Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/GUniPool.sol\":\"GUniPool\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\n// solhint-disable-next-line compiler-version\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n */\\nabstract contract Initializable {\\n\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n bool private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Modifier to protect an initializer function from being invoked twice.\\n */\\n modifier initializer() {\\n require(_initializing || !_initialized, \\\"Initializable: contract is already initialized\\\");\\n\\n bool isTopLevelCall = !_initializing;\\n if (isTopLevelCall) {\\n _initializing = true;\\n _initialized = true;\\n }\\n\\n _;\\n\\n if (isTopLevelCall) {\\n _initializing = false;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67d2f282a9678e58e878a0b774041ba7a01e2740a262aea97a3f681339914713\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuardUpgradeable is Initializable {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n function __ReentrancyGuard_init() internal initializer {\\n __ReentrancyGuard_init_unchained();\\n }\\n\\n function __ReentrancyGuard_init_unchained() internal initializer {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and make it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n // On the first call to nonReentrant, _notEntered will be true\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n\\n _;\\n\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x89fa60d14355f7ae06af11e28fce2bb90c5c6186645d681a30e1b36234a4c210\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC20Upgradeable.sol\\\";\\nimport \\\"./extensions/IERC20MetadataUpgradeable.sol\\\";\\nimport \\\"../../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * We have followed general OpenZeppelin guidelines: functions revert instead\\n * of returning `false` on failure. This behavior is nonetheless conventional\\n * and does not conflict with the expectations of ERC20 applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {\\n mapping (address => uint256) private _balances;\\n\\n mapping (address => mapping (address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}.\\n *\\n * The defaut value of {decimals} is 18. To select a different value for\\n * {decimals} you should overload it.\\n *\\n * All two of these values are immutable: they can only be set once during\\n * construction.\\n */\\n function __ERC20_init(string memory name_, string memory symbol_) internal initializer {\\n __Context_init_unchained();\\n __ERC20_init_unchained(name_, symbol_);\\n }\\n\\n function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {\\n _name = name_;\\n _symbol = symbol_;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual override returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual override returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5,05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the value {ERC20} uses, unless this function is\\n * overridden;\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual override returns (uint8) {\\n return 18;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `recipient` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\\n _transfer(_msgSender(), recipient, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n _approve(_msgSender(), spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * Requirements:\\n *\\n * - `sender` and `recipient` cannot be the zero address.\\n * - `sender` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``sender``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {\\n _transfer(sender, recipient, amount);\\n\\n uint256 currentAllowance = _allowances[sender][_msgSender()];\\n require(currentAllowance >= amount, \\\"ERC20: transfer amount exceeds allowance\\\");\\n _approve(sender, _msgSender(), currentAllowance - amount);\\n\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n uint256 currentAllowance = _allowances[_msgSender()][spender];\\n require(currentAllowance >= subtractedValue, \\\"ERC20: decreased allowance below zero\\\");\\n _approve(_msgSender(), spender, currentAllowance - subtractedValue);\\n\\n return true;\\n }\\n\\n /**\\n * @dev Moves tokens `amount` from `sender` to `recipient`.\\n *\\n * This is internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `sender` cannot be the zero address.\\n * - `recipient` cannot be the zero address.\\n * - `sender` must have a balance of at least `amount`.\\n */\\n function _transfer(address sender, address recipient, uint256 amount) internal virtual {\\n require(sender != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(recipient != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(sender, recipient, amount);\\n\\n uint256 senderBalance = _balances[sender];\\n require(senderBalance >= amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n _balances[sender] = senderBalance - amount;\\n _balances[recipient] += amount;\\n\\n emit Transfer(sender, recipient, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply += amount;\\n _balances[account] += amount;\\n emit Transfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n uint256 accountBalance = _balances[account];\\n require(accountBalance >= amount, \\\"ERC20: burn amount exceeds balance\\\");\\n _balances[account] = accountBalance - amount;\\n _totalSupply -= amount;\\n\\n emit Transfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(address owner, address spender, uint256 amount) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be to transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }\\n uint256[45] private __gap;\\n}\\n\",\"keccak256\":\"0x9c2d7425f3343ea340d6ea67e9d90109d4d846bb013c2572096ec88c9e74946b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\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 `recipient`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address recipient, 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 `sender` to `recipient` 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(address sender, address recipient, uint256 amount) external returns (bool);\\n\\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\",\"keccak256\":\"0x8d4a0f2b5b760b5e2c19ed3c108d83897a4dfd5bfed97a93867918df19191e5e\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20Upgradeable.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20MetadataUpgradeable is IERC20Upgradeable {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x6795c369a4eefa78468e38966f7851fbc2dda5e5b9ccd3fa2b45970e2e4d3abd\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\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 ContextUpgradeable is Initializable {\\n function __Context_init() internal initializer {\\n __Context_init_unchained();\\n }\\n\\n function __Context_init_unchained() internal initializer {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\\n return msg.data;\\n }\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x8e9eb503de1189f50c5f16fef327da310b11898d6b9ab3ca937df07c35233b9e\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\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 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 `recipient`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address recipient, 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 `sender` to `recipient` 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(address sender, address recipient, uint256 amount) external returns (bool);\\n\\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\",\"keccak256\":\"0xf8e8d118a7a8b2e134181f7da655f6266aa3a0f9134b2605747139fcb0c5d835\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.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(IERC20 token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) 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(IERC20 token, address spender, uint256 value) 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 // solhint-disable-next-line max-line-length\\n require((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(IERC20 token, address spender, uint256 value) 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(IERC20 token, address spender, uint256 value) 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 /**\\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) { // Return data is optional\\n // solhint-disable-next-line max-line-length\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0x99f5c21018d796db7833a2100bb0e7411999e248a3c950fb526eee5d2bf47cb7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\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 function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize, which returns 0 for contracts in\\n // construction, since the code is only stored at the end of the\\n // constructor execution.\\n\\n uint256 size;\\n // solhint-disable-next-line no-inline-assembly\\n assembly { size := extcodesize(account) }\\n return size > 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 // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\\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 functionCall(target, data, \\\"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(address target, bytes memory data, string memory errorMessage) 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(address target, bytes memory data, uint256 value) 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(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.call{ value: value }(data);\\n return _verifyCallResult(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(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return _verifyCallResult(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(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\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\\n // solhint-disable-next-line no-inline-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}\\n\",\"keccak256\":\"0x069b2631bb5b5193a58ccf7a06266c7361bd2c20095667af4402817605627f45\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n *\\n * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\\n * all math on `uint256` and `int256` and then downcasting.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n require(value < 2**128, \\\"SafeCast: value doesn\\\\'t fit in 128 bits\\\");\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n require(value < 2**64, \\\"SafeCast: value doesn\\\\'t fit in 64 bits\\\");\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n require(value < 2**32, \\\"SafeCast: value doesn\\\\'t fit in 32 bits\\\");\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n require(value < 2**16, \\\"SafeCast: value doesn\\\\'t fit in 16 bits\\\");\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits.\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n require(value < 2**8, \\\"SafeCast: value doesn\\\\'t fit in 8 bits\\\");\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n require(value >= 0, \\\"SafeCast: value must be positive\\\");\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt128(int256 value) internal pure returns (int128) {\\n require(value >= -2**127 && value < 2**127, \\\"SafeCast: value doesn\\\\'t fit in 128 bits\\\");\\n return int128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt64(int256 value) internal pure returns (int64) {\\n require(value >= -2**63 && value < 2**63, \\\"SafeCast: value doesn\\\\'t fit in 64 bits\\\");\\n return int64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt32(int256 value) internal pure returns (int32) {\\n require(value >= -2**31 && value < 2**31, \\\"SafeCast: value doesn\\\\'t fit in 32 bits\\\");\\n return int32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt16(int256 value) internal pure returns (int16) {\\n require(value >= -2**15 && value < 2**15, \\\"SafeCast: value doesn\\\\'t fit in 16 bits\\\");\\n return int16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits.\\n *\\n * _Available since v3.1._\\n */\\n function toInt8(int256 value) internal pure returns (int8) {\\n require(value >= -2**7 && value < 2**7, \\\"SafeCast: value doesn\\\\'t fit in 8 bits\\\");\\n return int8(value);\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n require(value < 2**255, \\\"SafeCast: value doesn't fit in an int256\\\");\\n return int256(value);\\n }\\n}\\n\",\"keccak256\":\"0xc37d85b96c2a8d7bc09f25958e0a81394bf5780286444147ddf875fa628d53ce\",\"license\":\"MIT\"},\"@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\nimport './pool/IUniswapV3PoolImmutables.sol';\\nimport './pool/IUniswapV3PoolState.sol';\\nimport './pool/IUniswapV3PoolDerivedState.sol';\\nimport './pool/IUniswapV3PoolActions.sol';\\nimport './pool/IUniswapV3PoolOwnerActions.sol';\\nimport './pool/IUniswapV3PoolEvents.sol';\\n\\n/// @title The interface for a Uniswap V3 Pool\\n/// @notice A Uniswap pool facilitates swapping and automated market making between any two assets that strictly conform\\n/// to the ERC20 specification\\n/// @dev The pool interface is broken up into many smaller pieces\\ninterface IUniswapV3Pool is\\n IUniswapV3PoolImmutables,\\n IUniswapV3PoolState,\\n IUniswapV3PoolDerivedState,\\n IUniswapV3PoolActions,\\n IUniswapV3PoolOwnerActions,\\n IUniswapV3PoolEvents\\n{\\n\\n}\\n\",\"keccak256\":\"0xfe6113d518466cd6652c85b111e01f33eb62157f49ae5ed7d5a3947a2044adb1\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3MintCallback.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Callback for IUniswapV3PoolActions#mint\\n/// @notice Any contract that calls IUniswapV3PoolActions#mint must implement this interface\\ninterface IUniswapV3MintCallback {\\n /// @notice Called to `msg.sender` after minting liquidity to a position from IUniswapV3Pool#mint.\\n /// @dev In the implementation you must pay the pool tokens owed for the minted liquidity.\\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\\n /// @param amount0Owed The amount of token0 due to the pool for the minted liquidity\\n /// @param amount1Owed The amount of token1 due to the pool for the minted liquidity\\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#mint call\\n function uniswapV3MintCallback(\\n uint256 amount0Owed,\\n uint256 amount1Owed,\\n bytes calldata data\\n ) external;\\n}\\n\",\"keccak256\":\"0x27a9725b8f831a92d16380860c3d348a0b926a7f01b34a54ea6eea78cbdbcd6a\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Callback for IUniswapV3PoolActions#swap\\n/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface\\ninterface IUniswapV3SwapCallback {\\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}\\n\",\"keccak256\":\"0x3f485fb1a44e8fbeadefb5da07d66edab3cfe809f0ac4074b1e54e3eb3c4cf69\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Permissionless pool actions\\n/// @notice Contains pool methods that can be called by anyone\\ninterface IUniswapV3PoolActions {\\n /// @notice Sets the initial price for the pool\\n /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value\\n /// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96\\n function initialize(uint160 sqrtPriceX96) external;\\n\\n /// @notice Adds liquidity for the given recipient/tickLower/tickUpper position\\n /// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback\\n /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends\\n /// on tickLower, tickUpper, the amount of liquidity, and the current price.\\n /// @param recipient The address for which the liquidity will be created\\n /// @param tickLower The lower tick of the position in which to add liquidity\\n /// @param tickUpper The upper tick of the position in which to add liquidity\\n /// @param amount The amount of liquidity to mint\\n /// @param data Any data that should be passed through to the callback\\n /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback\\n /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback\\n function mint(\\n address recipient,\\n int24 tickLower,\\n int24 tickUpper,\\n uint128 amount,\\n bytes calldata data\\n ) external returns (uint256 amount0, uint256 amount1);\\n\\n /// @notice Collects tokens owed to a position\\n /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity.\\n /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or\\n /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the\\n /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.\\n /// @param recipient The address which should receive the fees collected\\n /// @param tickLower The lower tick of the position for which to collect fees\\n /// @param tickUpper The upper tick of the position for which to collect fees\\n /// @param amount0Requested How much token0 should be withdrawn from the fees owed\\n /// @param amount1Requested How much token1 should be withdrawn from the fees owed\\n /// @return amount0 The amount of fees collected in token0\\n /// @return amount1 The amount of fees collected in token1\\n function collect(\\n address recipient,\\n int24 tickLower,\\n int24 tickUpper,\\n uint128 amount0Requested,\\n uint128 amount1Requested\\n ) external returns (uint128 amount0, uint128 amount1);\\n\\n /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position\\n /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0\\n /// @dev Fees must be collected separately via a call to #collect\\n /// @param tickLower The lower tick of the position for which to burn liquidity\\n /// @param tickUpper The upper tick of the position for which to burn liquidity\\n /// @param amount How much liquidity to burn\\n /// @return amount0 The amount of token0 sent to the recipient\\n /// @return amount1 The amount of token1 sent to the recipient\\n function burn(\\n int24 tickLower,\\n int24 tickUpper,\\n uint128 amount\\n ) external returns (uint256 amount0, uint256 amount1);\\n\\n /// @notice Swap token0 for token1, or token1 for token0\\n /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback\\n /// @param recipient The address to receive the output of the swap\\n /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0\\n /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\\n /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\\n /// value after the swap. If one for zero, the price cannot be greater than this value after the swap\\n /// @param data Any data to be passed through to the callback\\n /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive\\n /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive\\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 /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback\\n /// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback\\n /// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling\\n /// with 0 amount{0,1} and sending the donation amount(s) from the callback\\n /// @param recipient The address which will receive the token0 and token1 amounts\\n /// @param amount0 The amount of token0 to send\\n /// @param amount1 The amount of token1 to send\\n /// @param data Any data to be passed through to the callback\\n function flash(\\n address recipient,\\n uint256 amount0,\\n uint256 amount1,\\n bytes calldata data\\n ) external;\\n\\n /// @notice Increase the maximum number of price and liquidity observations that this pool will store\\n /// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to\\n /// the input observationCardinalityNext.\\n /// @param observationCardinalityNext The desired minimum number of observations for the pool to store\\n function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external;\\n}\\n\",\"keccak256\":\"0x9453dd0e7442188667d01d9b65de3f1e14e9511ff3e303179a15f6fc267f7634\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Pool state that is not stored\\n/// @notice Contains view functions to provide information about the pool that is computed rather than stored on the\\n/// blockchain. The functions here may have variable gas costs.\\ninterface IUniswapV3PoolDerivedState {\\n /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp\\n /// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing\\n /// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick,\\n /// you must call it with secondsAgos = [3600, 0].\\n /// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in\\n /// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio.\\n /// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned\\n /// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp\\n /// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block\\n /// timestamp\\n function observe(uint32[] calldata secondsAgos)\\n external\\n view\\n returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s);\\n\\n /// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range\\n /// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed.\\n /// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first\\n /// snapshot is taken and the second snapshot is taken.\\n /// @param tickLower The lower tick of the range\\n /// @param tickUpper The upper tick of the range\\n /// @return tickCumulativeInside The snapshot of the tick accumulator for the range\\n /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range\\n /// @return secondsInside The snapshot of seconds per liquidity for the range\\n function snapshotCumulativesInside(int24 tickLower, int24 tickUpper)\\n external\\n view\\n returns (\\n int56 tickCumulativeInside,\\n uint160 secondsPerLiquidityInsideX128,\\n uint32 secondsInside\\n );\\n}\\n\",\"keccak256\":\"0xe603ac5b17ecdee73ba2b27efdf386c257a19c14206e87eee77e2017b742d9e5\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Events emitted by a pool\\n/// @notice Contains all events emitted by the pool\\ninterface IUniswapV3PoolEvents {\\n /// @notice Emitted exactly once by a pool when #initialize is first called on the pool\\n /// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize\\n /// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96\\n /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool\\n event Initialize(uint160 sqrtPriceX96, int24 tick);\\n\\n /// @notice Emitted when liquidity is minted for a given position\\n /// @param sender The address that minted the liquidity\\n /// @param owner The owner of the position and recipient of any minted liquidity\\n /// @param tickLower The lower tick of the position\\n /// @param tickUpper The upper tick of the position\\n /// @param amount The amount of liquidity minted to the position range\\n /// @param amount0 How much token0 was required for the minted liquidity\\n /// @param amount1 How much token1 was required for the minted liquidity\\n event Mint(\\n address sender,\\n address indexed owner,\\n int24 indexed tickLower,\\n int24 indexed tickUpper,\\n uint128 amount,\\n uint256 amount0,\\n uint256 amount1\\n );\\n\\n /// @notice Emitted when fees are collected by the owner of a position\\n /// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees\\n /// @param owner The owner of the position for which fees are collected\\n /// @param tickLower The lower tick of the position\\n /// @param tickUpper The upper tick of the position\\n /// @param amount0 The amount of token0 fees collected\\n /// @param amount1 The amount of token1 fees collected\\n event Collect(\\n address indexed owner,\\n address recipient,\\n int24 indexed tickLower,\\n int24 indexed tickUpper,\\n uint128 amount0,\\n uint128 amount1\\n );\\n\\n /// @notice Emitted when a position's liquidity is removed\\n /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect\\n /// @param owner The owner of the position for which liquidity is removed\\n /// @param tickLower The lower tick of the position\\n /// @param tickUpper The upper tick of the position\\n /// @param amount The amount of liquidity to remove\\n /// @param amount0 The amount of token0 withdrawn\\n /// @param amount1 The amount of token1 withdrawn\\n event Burn(\\n address indexed owner,\\n int24 indexed tickLower,\\n int24 indexed tickUpper,\\n uint128 amount,\\n uint256 amount0,\\n uint256 amount1\\n );\\n\\n /// @notice Emitted by the pool for any swaps between token0 and token1\\n /// @param sender The address that initiated the swap call, and that received the callback\\n /// @param recipient The address that received the output of the swap\\n /// @param amount0 The delta of the token0 balance of the pool\\n /// @param amount1 The delta of the token1 balance of the pool\\n /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96\\n /// @param liquidity The liquidity of the pool after the swap\\n /// @param tick The log base 1.0001 of price of the pool after the swap\\n event Swap(\\n address indexed sender,\\n address indexed recipient,\\n int256 amount0,\\n int256 amount1,\\n uint160 sqrtPriceX96,\\n uint128 liquidity,\\n int24 tick\\n );\\n\\n /// @notice Emitted by the pool for any flashes of token0/token1\\n /// @param sender The address that initiated the swap call, and that received the callback\\n /// @param recipient The address that received the tokens from flash\\n /// @param amount0 The amount of token0 that was flashed\\n /// @param amount1 The amount of token1 that was flashed\\n /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee\\n /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee\\n event Flash(\\n address indexed sender,\\n address indexed recipient,\\n uint256 amount0,\\n uint256 amount1,\\n uint256 paid0,\\n uint256 paid1\\n );\\n\\n /// @notice Emitted by the pool for increases to the number of observations that can be stored\\n /// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index\\n /// just before a mint/swap/burn.\\n /// @param observationCardinalityNextOld The previous value of the next observation cardinality\\n /// @param observationCardinalityNextNew The updated value of the next observation cardinality\\n event IncreaseObservationCardinalityNext(\\n uint16 observationCardinalityNextOld,\\n uint16 observationCardinalityNextNew\\n );\\n\\n /// @notice Emitted when the protocol fee is changed by the pool\\n /// @param feeProtocol0Old The previous value of the token0 protocol fee\\n /// @param feeProtocol1Old The previous value of the token1 protocol fee\\n /// @param feeProtocol0New The updated value of the token0 protocol fee\\n /// @param feeProtocol1New The updated value of the token1 protocol fee\\n event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New);\\n\\n /// @notice Emitted when the collected protocol fees are withdrawn by the factory owner\\n /// @param sender The address that collects the protocol fees\\n /// @param recipient The address that receives the collected protocol fees\\n /// @param amount0 The amount of token0 protocol fees that is withdrawn\\n /// @param amount0 The amount of token1 protocol fees that is withdrawn\\n event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1);\\n}\\n\",\"keccak256\":\"0x8071514d0fe5d17d6fbd31c191cdfb703031c24e0ece3621d88ab10e871375cd\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Pool state that never changes\\n/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values\\ninterface IUniswapV3PoolImmutables {\\n /// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface\\n /// @return The contract address\\n function factory() external view returns (address);\\n\\n /// @notice The first of the two tokens of the pool, sorted by address\\n /// @return The token contract address\\n function token0() external view returns (address);\\n\\n /// @notice The second of the two tokens of the pool, sorted by address\\n /// @return The token contract address\\n function token1() external view returns (address);\\n\\n /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6\\n /// @return The fee\\n function fee() external view returns (uint24);\\n\\n /// @notice The pool tick spacing\\n /// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive\\n /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ...\\n /// This value is an int24 to avoid casting even though it is always positive.\\n /// @return The tick spacing\\n function tickSpacing() external view returns (int24);\\n\\n /// @notice The maximum amount of position liquidity that can use any tick in the range\\n /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and\\n /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool\\n /// @return The max amount of liquidity per tick\\n function maxLiquidityPerTick() external view returns (uint128);\\n}\\n\",\"keccak256\":\"0xf6e5d2cd1139c4c276bdbc8e1d2b256e456c866a91f1b868da265c6d2685c3f7\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Permissioned pool actions\\n/// @notice Contains pool methods that may only be called by the factory owner\\ninterface IUniswapV3PoolOwnerActions {\\n /// @notice Set the denominator of the protocol's % share of the fees\\n /// @param feeProtocol0 new protocol fee for token0 of the pool\\n /// @param feeProtocol1 new protocol fee for token1 of the pool\\n function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external;\\n\\n /// @notice Collect the protocol fee accrued to the pool\\n /// @param recipient The address to which collected protocol fees should be sent\\n /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1\\n /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0\\n /// @return amount0 The protocol fee collected in token0\\n /// @return amount1 The protocol fee collected in token1\\n function collectProtocol(\\n address recipient,\\n uint128 amount0Requested,\\n uint128 amount1Requested\\n ) external returns (uint128 amount0, uint128 amount1);\\n}\\n\",\"keccak256\":\"0x759b78a2918af9e99e246dc3af084f654e48ef32bb4e4cb8a966aa3dcaece235\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Pool state that can change\\n/// @notice These methods compose the pool's state, and can change with any frequency including multiple times\\n/// per transaction\\ninterface IUniswapV3PoolState {\\n /// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas\\n /// when accessed externally.\\n /// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value\\n /// tick The current tick of the pool, i.e. according to the last tick transition that was run.\\n /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick\\n /// boundary.\\n /// observationIndex The index of the last oracle observation that was written,\\n /// observationCardinality The current maximum number of observations stored in the pool,\\n /// observationCardinalityNext The next maximum number of observations, to be updated when the observation.\\n /// feeProtocol The protocol fee for both tokens of the pool.\\n /// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0\\n /// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee.\\n /// unlocked Whether the pool is currently locked to reentrancy\\n function slot0()\\n external\\n view\\n returns (\\n uint160 sqrtPriceX96,\\n int24 tick,\\n uint16 observationIndex,\\n uint16 observationCardinality,\\n uint16 observationCardinalityNext,\\n uint8 feeProtocol,\\n bool unlocked\\n );\\n\\n /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool\\n /// @dev This value can overflow the uint256\\n function feeGrowthGlobal0X128() external view returns (uint256);\\n\\n /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool\\n /// @dev This value can overflow the uint256\\n function feeGrowthGlobal1X128() external view returns (uint256);\\n\\n /// @notice The amounts of token0 and token1 that are owed to the protocol\\n /// @dev Protocol fees will never exceed uint128 max in either token\\n function protocolFees() external view returns (uint128 token0, uint128 token1);\\n\\n /// @notice The currently in range liquidity available to the pool\\n /// @dev This value has no relationship to the total liquidity across all ticks\\n function liquidity() external view returns (uint128);\\n\\n /// @notice Look up information about a specific tick in the pool\\n /// @param tick The tick to look up\\n /// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or\\n /// tick upper,\\n /// liquidityNet how much liquidity changes when the pool price crosses the tick,\\n /// feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0,\\n /// feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1,\\n /// tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick\\n /// secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick,\\n /// secondsOutside the seconds spent on the other side of the tick from the current tick,\\n /// initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false.\\n /// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0.\\n /// In addition, these values are only relative and must be used only in comparison to previous snapshots for\\n /// a specific position.\\n function ticks(int24 tick)\\n external\\n view\\n returns (\\n uint128 liquidityGross,\\n int128 liquidityNet,\\n uint256 feeGrowthOutside0X128,\\n uint256 feeGrowthOutside1X128,\\n int56 tickCumulativeOutside,\\n uint160 secondsPerLiquidityOutsideX128,\\n uint32 secondsOutside,\\n bool initialized\\n );\\n\\n /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information\\n function tickBitmap(int16 wordPosition) external view returns (uint256);\\n\\n /// @notice Returns the information about a position by the position's key\\n /// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper\\n /// @return _liquidity The amount of liquidity in the position,\\n /// Returns feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke,\\n /// Returns feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke,\\n /// Returns tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke,\\n /// Returns tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke\\n function positions(bytes32 key)\\n external\\n view\\n returns (\\n uint128 _liquidity,\\n uint256 feeGrowthInside0LastX128,\\n uint256 feeGrowthInside1LastX128,\\n uint128 tokensOwed0,\\n uint128 tokensOwed1\\n );\\n\\n /// @notice Returns data about a specific observation index\\n /// @param index The element of the observations array to fetch\\n /// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time\\n /// ago, rather than at a specific index in the array.\\n /// @return blockTimestamp The timestamp of the observation,\\n /// Returns tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp,\\n /// Returns secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp,\\n /// Returns initialized whether the observation has been initialized and the values are safe to use\\n function observations(uint256 index)\\n external\\n view\\n returns (\\n uint32 blockTimestamp,\\n int56 tickCumulative,\\n uint160 secondsPerLiquidityCumulativeX128,\\n bool initialized\\n );\\n}\\n\",\"keccak256\":\"0x852dc1f5df7dcf7f11e7bb3eed79f0cea72ad4b25f6a9d2c35aafb48925fd49f\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/libraries/FixedPoint96.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.4.0;\\n\\n/// @title FixedPoint96\\n/// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)\\n/// @dev Used in SqrtPriceMath.sol\\nlibrary FixedPoint96 {\\n uint8 internal constant RESOLUTION = 96;\\n uint256 internal constant Q96 = 0x1000000000000000000000000;\\n}\\n\",\"keccak256\":\"0x0ba8a9b95a956a4050749c0158e928398c447c91469682ca8a7cc7e77a7fe032\",\"license\":\"GPL-2.0-or-later\"},\"contracts/GUniPool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\nimport {\\n IUniswapV3MintCallback\\n} from \\\"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3MintCallback.sol\\\";\\nimport {\\n IUniswapV3SwapCallback\\n} from \\\"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol\\\";\\nimport {GUniPoolStorage} from \\\"./abstract/GUniPoolStorage.sol\\\";\\nimport {\\n IUniswapV3Pool\\n} from \\\"@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol\\\";\\nimport {TickMath} from \\\"./vendor/uniswap/TickMath.sol\\\";\\nimport {\\n IERC20,\\n SafeERC20\\n} from \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\nimport {SafeCast} from \\\"@openzeppelin/contracts/utils/math/SafeCast.sol\\\";\\nimport {\\n FullMath,\\n LiquidityAmounts\\n} from \\\"./vendor/uniswap/LiquidityAmounts.sol\\\";\\n\\ncontract GUniPool is\\n IUniswapV3MintCallback,\\n IUniswapV3SwapCallback,\\n GUniPoolStorage\\n{\\n using SafeERC20 for IERC20;\\n using TickMath for int24;\\n\\n event Minted(\\n address receiver,\\n uint256 mintAmount,\\n uint256 amount0In,\\n uint256 amount1In,\\n uint128 liquidityMinted\\n );\\n\\n event Burned(\\n address receiver,\\n uint256 burnAmount,\\n uint256 amount0Out,\\n uint256 amount1Out,\\n uint128 liquidityBurned\\n );\\n\\n event Rebalance(\\n int24 lowerTick_,\\n int24 upperTick_,\\n uint128 liquidityBefore,\\n uint128 liquidityAfter\\n );\\n\\n event FeesEarned(uint256 feesEarned0, uint256 feesEarned1);\\n\\n // solhint-disable-next-line max-line-length\\n constructor(address payable _gelato) GUniPoolStorage(_gelato) {} // solhint-disable-line no-empty-blocks\\n\\n /// @notice Uniswap V3 callback fn, called back on pool.mint\\n function uniswapV3MintCallback(\\n uint256 amount0Owed,\\n uint256 amount1Owed,\\n bytes calldata /*_data*/\\n ) external override {\\n require(msg.sender == address(pool), \\\"callback caller\\\");\\n\\n if (amount0Owed > 0) token0.safeTransfer(msg.sender, amount0Owed);\\n if (amount1Owed > 0) token1.safeTransfer(msg.sender, amount1Owed);\\n }\\n\\n /// @notice Uniswap v3 callback fn, called back on pool.swap\\n function uniswapV3SwapCallback(\\n int256 amount0Delta,\\n int256 amount1Delta,\\n bytes calldata /*data*/\\n ) external override {\\n require(msg.sender == address(pool), \\\"callback caller\\\");\\n\\n if (amount0Delta > 0)\\n token0.safeTransfer(msg.sender, uint256(amount0Delta));\\n else if (amount1Delta > 0)\\n token1.safeTransfer(msg.sender, uint256(amount1Delta));\\n }\\n\\n // User functions => Should be called via a Router\\n\\n /// @notice mint fungible G-UNI tokens, fractional shares of a Uniswap V3 position\\n /// @dev to compute the amouint of tokens necessary to mint `mintAmount` see getMintAmounts\\n /// @param mintAmount The number of G-UNI tokens to mint\\n /// @param receiver The account to receive the minted tokens\\n /// @return amount0 amount of token0 transferred from msg.sender to mint `mintAmount`\\n /// @return amount1 amount of token1 transferred from msg.sender to mint `mintAmount`\\n /// @return liquidityMinted amount of liquidity added to the underlying Uniswap V3 position\\n // solhint-disable-next-line function-max-lines, code-complexity\\n function mint(uint256 mintAmount, address receiver)\\n external\\n nonReentrant\\n returns (\\n uint256 amount0,\\n uint256 amount1,\\n uint128 liquidityMinted\\n )\\n {\\n require(mintAmount > 0, \\\"mint 0\\\");\\n\\n uint256 totalSupply = totalSupply();\\n\\n (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();\\n\\n if (totalSupply > 0) {\\n (uint256 amount0Current, uint256 amount1Current) =\\n getUnderlyingBalances();\\n\\n amount0 = FullMath.mulDivRoundingUp(\\n amount0Current,\\n mintAmount,\\n totalSupply\\n );\\n amount1 = FullMath.mulDivRoundingUp(\\n amount1Current,\\n mintAmount,\\n totalSupply\\n );\\n } else {\\n // if supply is 0 mintAmount == liquidity to deposit\\n (amount0, amount1) = LiquidityAmounts.getAmountsForLiquidity(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n SafeCast.toUint128(mintAmount)\\n );\\n }\\n\\n // transfer amounts owed to contract\\n if (amount0 > 0) {\\n token0.safeTransferFrom(msg.sender, address(this), amount0);\\n }\\n if (amount1 > 0) {\\n token1.safeTransferFrom(msg.sender, address(this), amount1);\\n }\\n\\n // deposit as much new liquidity as possible\\n liquidityMinted = LiquidityAmounts.getLiquidityForAmounts(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n amount0,\\n amount1\\n );\\n\\n pool.mint(address(this), lowerTick, upperTick, liquidityMinted, \\\"\\\");\\n\\n _mint(receiver, mintAmount);\\n emit Minted(receiver, mintAmount, amount0, amount1, liquidityMinted);\\n }\\n\\n /// @notice burn G-UNI tokens (fractional shares of a Uniswap V3 position) and receive tokens\\n /// @param burnAmount The number of G-UNI tokens to burn\\n /// @param receiver The account to receive the underlying amounts of token0 and token1\\n /// @return amount0 amount of token0 transferred to receiver for burning `burnAmount`\\n /// @return amount1 amount of token1 transferred to receiver for burning `burnAmount`\\n /// @return liquidityBurned amount of liquidity removed from the underlying Uniswap V3 position\\n // solhint-disable-next-line function-max-lines\\n function burn(uint256 burnAmount, address receiver)\\n external\\n nonReentrant\\n returns (\\n uint256 amount0,\\n uint256 amount1,\\n uint128 liquidityBurned\\n )\\n {\\n require(burnAmount > 0, \\\"burn 0\\\");\\n\\n uint256 totalSupply = totalSupply();\\n\\n (uint128 liquidity, , , , ) = pool.positions(_getPositionID());\\n\\n _burn(msg.sender, burnAmount);\\n\\n uint256 liquidityBurned_ =\\n FullMath.mulDiv(burnAmount, liquidity, totalSupply);\\n liquidityBurned = SafeCast.toUint128(liquidityBurned_);\\n (uint256 burn0, uint256 burn1, uint256 fee0, uint256 fee1) =\\n _withdraw(lowerTick, upperTick, liquidityBurned);\\n _applyFees(fee0, fee1);\\n (fee0, fee1) = _subtractAdminFees(fee0, fee1);\\n emit FeesEarned(fee0, fee1);\\n\\n amount0 =\\n burn0 +\\n FullMath.mulDiv(\\n token0.balanceOf(address(this)) -\\n burn0 -\\n managerBalance0 -\\n gelatoBalance0,\\n burnAmount,\\n totalSupply\\n );\\n amount1 =\\n burn1 +\\n FullMath.mulDiv(\\n token1.balanceOf(address(this)) -\\n burn1 -\\n managerBalance1 -\\n gelatoBalance1,\\n burnAmount,\\n totalSupply\\n );\\n\\n if (amount0 > 0) {\\n token0.safeTransfer(receiver, amount0);\\n }\\n\\n if (amount1 > 0) {\\n token1.safeTransfer(receiver, amount1);\\n }\\n\\n emit Burned(receiver, burnAmount, amount0, amount1, liquidityBurned);\\n }\\n\\n // Manager Functions => Called by Pool Manager\\n\\n /// @notice Change the range of underlying UniswapV3 position, only manager can call\\n /// @dev When changing the range the inventory of token0 and token1 may be rebalanced\\n /// with a swap to deposit as much liquidity as possible into the new position. Swap parameters\\n /// can be computed by simulating the whole operation: remove all liquidity, deposit as much\\n /// as possible into new position, then observe how much of token0 or token1 is leftover.\\n /// Swap a proportion of this leftover to deposit more liquidity into the position, since\\n /// any leftover will be unused and sit idle until the next rebalance.\\n /// @param newLowerTick The new lower bound of the position's range\\n /// @param newUpperTick The new upper bound of the position's range\\n /// @param swapThresholdPrice slippage parameter on the swap as a max or min sqrtPriceX96\\n /// @param swapAmountBPS amount of token to swap as proportion of total. Pass 0 to ignore swap.\\n /// @param zeroForOne Which token to input into the swap (true = token0, false = token1)\\n // solhint-disable-next-line function-max-lines\\n function executiveRebalance(\\n int24 newLowerTick,\\n int24 newUpperTick,\\n uint160 swapThresholdPrice,\\n uint256 swapAmountBPS,\\n bool zeroForOne\\n ) external onlyManager {\\n uint128 liquidity;\\n uint128 newLiquidity;\\n if (totalSupply() > 0) {\\n (liquidity, , , , ) = pool.positions(_getPositionID());\\n if (liquidity > 0) {\\n (, , uint256 fee0, uint256 fee1) =\\n _withdraw(lowerTick, upperTick, liquidity);\\n\\n _applyFees(fee0, fee1);\\n (fee0, fee1) = _subtractAdminFees(fee0, fee1);\\n emit FeesEarned(fee0, fee1);\\n }\\n\\n lowerTick = newLowerTick;\\n upperTick = newUpperTick;\\n\\n uint256 reinvest0 =\\n token0.balanceOf(address(this)) -\\n managerBalance0 -\\n gelatoBalance0;\\n uint256 reinvest1 =\\n token1.balanceOf(address(this)) -\\n managerBalance1 -\\n gelatoBalance1;\\n\\n _deposit(\\n newLowerTick,\\n newUpperTick,\\n reinvest0,\\n reinvest1,\\n swapThresholdPrice,\\n swapAmountBPS,\\n zeroForOne\\n );\\n\\n (newLiquidity, , , , ) = pool.positions(_getPositionID());\\n require(newLiquidity > 0, \\\"new position 0\\\");\\n } else {\\n lowerTick = newLowerTick;\\n upperTick = newUpperTick;\\n }\\n\\n emit Rebalance(newLowerTick, newUpperTick, liquidity, newLiquidity);\\n }\\n\\n // Gelatofied functions => Automatically called by Gelato\\n\\n /// @notice Reinvest fees earned into underlying position, only gelato executors can call\\n /// Position bounds CANNOT be altered by gelato, only manager may via executiveRebalance.\\n /// Frequency of rebalance configured with gelatoRebalanceBPS, alterable by manager.\\n function rebalance(\\n uint160 swapThresholdPrice,\\n uint256 swapAmountBPS,\\n bool zeroForOne,\\n uint256 feeAmount,\\n address paymentToken\\n ) external gelatofy(feeAmount, paymentToken) {\\n if (swapAmountBPS > 0) {\\n _checkSlippage(swapThresholdPrice, zeroForOne);\\n }\\n (uint128 liquidity, , , , ) = pool.positions(_getPositionID());\\n _rebalance(\\n liquidity,\\n swapThresholdPrice,\\n swapAmountBPS,\\n zeroForOne,\\n feeAmount,\\n paymentToken\\n );\\n\\n (uint128 newLiquidity, , , , ) = pool.positions(_getPositionID());\\n require(newLiquidity > liquidity, \\\"liquidity must increase\\\");\\n\\n emit Rebalance(lowerTick, upperTick, liquidity, newLiquidity);\\n }\\n\\n /// @notice withdraw manager fees accrued, only gelato executors can call.\\n /// Target account to receive fees is managerTreasury, alterable by manager.\\n /// Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager.\\n function withdrawManagerBalance(uint256 feeAmount, address feeToken)\\n external\\n gelatofy(feeAmount, feeToken)\\n {\\n (uint256 amount0, uint256 amount1) =\\n _balancesToWithdraw(\\n managerBalance0,\\n managerBalance1,\\n feeAmount,\\n feeToken\\n );\\n\\n managerBalance0 = 0;\\n managerBalance1 = 0;\\n\\n if (amount0 > 0) {\\n token0.safeTransfer(managerTreasury, amount0);\\n }\\n\\n if (amount1 > 0) {\\n token1.safeTransfer(managerTreasury, amount1);\\n }\\n }\\n\\n /// @notice withdraw gelato fees accrued, only gelato executors can call.\\n /// Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager.\\n function withdrawGelatoBalance(uint256 feeAmount, address feeToken)\\n external\\n gelatofy(feeAmount, feeToken)\\n {\\n (uint256 amount0, uint256 amount1) =\\n _balancesToWithdraw(\\n gelatoBalance0,\\n gelatoBalance1,\\n feeAmount,\\n feeToken\\n );\\n\\n gelatoBalance0 = 0;\\n gelatoBalance1 = 0;\\n\\n if (amount0 > 0) {\\n token0.safeTransfer(GELATO, amount0);\\n }\\n\\n if (amount1 > 0) {\\n token1.safeTransfer(GELATO, amount1);\\n }\\n }\\n\\n function _balancesToWithdraw(\\n uint256 balance0,\\n uint256 balance1,\\n uint256 feeAmount,\\n address feeToken\\n ) internal view returns (uint256 amount0, uint256 amount1) {\\n if (feeToken == address(token0)) {\\n require(\\n (balance0 * gelatoWithdrawBPS) / 10000 >= feeAmount,\\n \\\"high fee\\\"\\n );\\n amount0 = balance0 - feeAmount;\\n amount1 = balance1;\\n } else if (feeToken == address(token1)) {\\n require(\\n (balance1 * gelatoWithdrawBPS) / 10000 >= feeAmount,\\n \\\"high fee\\\"\\n );\\n amount1 = balance1 - feeAmount;\\n amount0 = balance0;\\n } else {\\n revert(\\\"wrong token\\\");\\n }\\n }\\n\\n // View functions\\n\\n /// @notice compute maximum G-UNI tokens that can be minted from `amount0Max` and `amount1Max`\\n /// @param amount0Max The maximum amount of token0 to forward on mint\\n /// @param amount0Max The maximum amount of token1 to forward on mint\\n /// @return amount0 actual amount of token0 to forward when minting `mintAmount`\\n /// @return amount1 actual amount of token1 to forward when minting `mintAmount`\\n /// @return mintAmount maximum number of G-UNI tokens to mint\\n function getMintAmounts(uint256 amount0Max, uint256 amount1Max)\\n external\\n view\\n returns (\\n uint256 amount0,\\n uint256 amount1,\\n uint256 mintAmount\\n )\\n {\\n uint256 totalSupply = totalSupply();\\n if (totalSupply > 0) {\\n (amount0, amount1, mintAmount) = _computeMintAmounts(\\n totalSupply,\\n amount0Max,\\n amount1Max\\n );\\n } else {\\n (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();\\n uint128 newLiquidity =\\n LiquidityAmounts.getLiquidityForAmounts(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n amount0Max,\\n amount1Max\\n );\\n mintAmount = uint256(newLiquidity);\\n (amount0, amount1) = LiquidityAmounts.getAmountsForLiquidity(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n newLiquidity\\n );\\n }\\n }\\n\\n /// @notice compute total underlying holdings of the G-UNI token supply\\n /// includes current liquidity invested in uniswap position, current fees earned\\n /// and any uninvested leftover (but does not include manager or gelato fees accrued)\\n /// @return amount0Current current total underlying balance of token0\\n /// @return amount1Current current total underlying balance of token1\\n function getUnderlyingBalances()\\n public\\n view\\n returns (uint256 amount0Current, uint256 amount1Current)\\n {\\n (uint160 sqrtRatioX96, int24 tick, , , , , ) = pool.slot0();\\n return _getUnderlyingBalances(sqrtRatioX96, tick);\\n }\\n\\n function getUnderlyingBalancesAtPrice(uint160 sqrtRatioX96)\\n external\\n view\\n returns (uint256 amount0Current, uint256 amount1Current)\\n {\\n (, int24 tick, , , , , ) = pool.slot0();\\n return _getUnderlyingBalances(sqrtRatioX96, tick);\\n }\\n\\n // solhint-disable-next-line function-max-lines\\n function _getUnderlyingBalances(uint160 sqrtRatioX96, int24 tick)\\n internal\\n view\\n returns (uint256 amount0Current, uint256 amount1Current)\\n {\\n (\\n uint128 liquidity,\\n uint256 feeGrowthInside0Last,\\n uint256 feeGrowthInside1Last,\\n uint128 tokensOwed0,\\n uint128 tokensOwed1\\n ) = pool.positions(_getPositionID());\\n\\n // compute current holdings from liquidity\\n (amount0Current, amount1Current) = LiquidityAmounts\\n .getAmountsForLiquidity(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n liquidity\\n );\\n\\n // compute current fees earned\\n uint256 fee0 =\\n _computeFeesEarned(true, feeGrowthInside0Last, tick, liquidity) +\\n uint256(tokensOwed0);\\n uint256 fee1 =\\n _computeFeesEarned(false, feeGrowthInside1Last, tick, liquidity) +\\n uint256(tokensOwed1);\\n\\n (fee0, fee1) = _subtractAdminFees(fee0, fee1);\\n\\n // add any leftover in contract to current holdings\\n amount0Current +=\\n fee0 +\\n token0.balanceOf(address(this)) -\\n managerBalance0 -\\n gelatoBalance0;\\n amount1Current +=\\n fee1 +\\n token1.balanceOf(address(this)) -\\n managerBalance1 -\\n gelatoBalance1;\\n }\\n\\n // Private functions\\n\\n // solhint-disable-next-line function-max-lines\\n function _rebalance(\\n uint128 liquidity,\\n uint160 swapThresholdPrice,\\n uint256 swapAmountBPS,\\n bool zeroForOne,\\n uint256 feeAmount,\\n address paymentToken\\n ) private {\\n uint256 leftover0 =\\n token0.balanceOf(address(this)) - managerBalance0 - gelatoBalance0;\\n uint256 leftover1 =\\n token1.balanceOf(address(this)) - managerBalance1 - gelatoBalance1;\\n\\n (, , uint256 feesEarned0, uint256 feesEarned1) =\\n _withdraw(lowerTick, upperTick, liquidity);\\n _applyFees(feesEarned0, feesEarned1);\\n (feesEarned0, feesEarned1) = _subtractAdminFees(\\n feesEarned0,\\n feesEarned1\\n );\\n emit FeesEarned(feesEarned0, feesEarned1);\\n feesEarned0 += leftover0;\\n feesEarned1 += leftover1;\\n\\n if (paymentToken == address(token0)) {\\n require(\\n (feesEarned0 * gelatoRebalanceBPS) / 10000 >= feeAmount,\\n \\\"high fee\\\"\\n );\\n leftover0 =\\n token0.balanceOf(address(this)) -\\n managerBalance0 -\\n gelatoBalance0 -\\n feeAmount;\\n leftover1 =\\n token1.balanceOf(address(this)) -\\n managerBalance1 -\\n gelatoBalance1;\\n } else if (paymentToken == address(token1)) {\\n require(\\n (feesEarned1 * gelatoRebalanceBPS) / 10000 >= feeAmount,\\n \\\"high fee\\\"\\n );\\n leftover0 =\\n token0.balanceOf(address(this)) -\\n managerBalance0 -\\n gelatoBalance0;\\n leftover1 =\\n token1.balanceOf(address(this)) -\\n managerBalance1 -\\n gelatoBalance1 -\\n feeAmount;\\n } else {\\n revert(\\\"wrong token\\\");\\n }\\n\\n _deposit(\\n lowerTick,\\n upperTick,\\n leftover0,\\n leftover1,\\n swapThresholdPrice,\\n swapAmountBPS,\\n zeroForOne\\n );\\n }\\n\\n // solhint-disable-next-line function-max-lines\\n function _withdraw(\\n int24 lowerTick_,\\n int24 upperTick_,\\n uint128 liquidity\\n )\\n private\\n returns (\\n uint256 burn0,\\n uint256 burn1,\\n uint256 fee0,\\n uint256 fee1\\n )\\n {\\n uint256 preBalance0 = token0.balanceOf(address(this));\\n uint256 preBalance1 = token1.balanceOf(address(this));\\n\\n (burn0, burn1) = pool.burn(lowerTick_, upperTick_, liquidity);\\n\\n pool.collect(\\n address(this),\\n lowerTick_,\\n upperTick_,\\n type(uint128).max,\\n type(uint128).max\\n );\\n\\n fee0 = token0.balanceOf(address(this)) - preBalance0 - burn0;\\n fee1 = token1.balanceOf(address(this)) - preBalance1 - burn1;\\n }\\n\\n // solhint-disable-next-line function-max-lines\\n function _deposit(\\n int24 lowerTick_,\\n int24 upperTick_,\\n uint256 amount0,\\n uint256 amount1,\\n uint160 swapThresholdPrice,\\n uint256 swapAmountBPS,\\n bool zeroForOne\\n ) private {\\n (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();\\n // First, deposit as much as we can\\n uint128 baseLiquidity =\\n LiquidityAmounts.getLiquidityForAmounts(\\n sqrtRatioX96,\\n lowerTick_.getSqrtRatioAtTick(),\\n upperTick_.getSqrtRatioAtTick(),\\n amount0,\\n amount1\\n );\\n if (baseLiquidity > 0) {\\n (uint256 amountDeposited0, uint256 amountDeposited1) =\\n pool.mint(\\n address(this),\\n lowerTick_,\\n upperTick_,\\n baseLiquidity,\\n \\\"\\\"\\n );\\n\\n amount0 -= amountDeposited0;\\n amount1 -= amountDeposited1;\\n }\\n int256 swapAmount =\\n SafeCast.toInt256(\\n ((zeroForOne ? amount0 : amount1) * swapAmountBPS) / 10000\\n );\\n if (swapAmount > 0) {\\n _swapAndDeposit(\\n lowerTick_,\\n upperTick_,\\n amount0,\\n amount1,\\n swapAmount,\\n swapThresholdPrice,\\n zeroForOne\\n );\\n }\\n }\\n\\n function _swapAndDeposit(\\n int24 lowerTick_,\\n int24 upperTick_,\\n uint256 amount0,\\n uint256 amount1,\\n int256 swapAmount,\\n uint160 swapThresholdPrice,\\n bool zeroForOne\\n ) private returns (uint256 finalAmount0, uint256 finalAmount1) {\\n (int256 amount0Delta, int256 amount1Delta) =\\n pool.swap(\\n address(this),\\n zeroForOne,\\n swapAmount,\\n swapThresholdPrice,\\n \\\"\\\"\\n );\\n finalAmount0 = uint256(SafeCast.toInt256(amount0) - amount0Delta);\\n finalAmount1 = uint256(SafeCast.toInt256(amount1) - amount1Delta);\\n\\n // Add liquidity a second time\\n (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();\\n uint128 liquidityAfterSwap =\\n LiquidityAmounts.getLiquidityForAmounts(\\n sqrtRatioX96,\\n lowerTick_.getSqrtRatioAtTick(),\\n upperTick_.getSqrtRatioAtTick(),\\n finalAmount0,\\n finalAmount1\\n );\\n if (liquidityAfterSwap > 0) {\\n pool.mint(\\n address(this),\\n lowerTick_,\\n upperTick_,\\n liquidityAfterSwap,\\n \\\"\\\"\\n );\\n }\\n }\\n\\n // solhint-disable-next-line function-max-lines, code-complexity\\n function _computeMintAmounts(\\n uint256 totalSupply,\\n uint256 amount0Max,\\n uint256 amount1Max\\n )\\n private\\n view\\n returns (\\n uint256 amount0,\\n uint256 amount1,\\n uint256 mintAmount\\n )\\n {\\n (uint256 amount0Current, uint256 amount1Current) =\\n getUnderlyingBalances();\\n\\n // compute proportional amount of tokens to mint\\n if (amount0Current == 0 && amount1Current > 0) {\\n mintAmount = FullMath.mulDiv(\\n amount1Max,\\n totalSupply,\\n amount1Current\\n );\\n } else if (amount1Current == 0 && amount0Current > 0) {\\n mintAmount = FullMath.mulDiv(\\n amount0Max,\\n totalSupply,\\n amount0Current\\n );\\n } else if (amount0Current == 0 && amount1Current == 0) {\\n revert(\\\"\\\");\\n } else {\\n // only if both are non-zero\\n uint256 amount0Mint =\\n FullMath.mulDiv(amount0Max, totalSupply, amount0Current);\\n uint256 amount1Mint =\\n FullMath.mulDiv(amount1Max, totalSupply, amount1Current);\\n require(amount0Mint > 0 && amount1Mint > 0, \\\"mint 0\\\");\\n\\n mintAmount = amount0Mint < amount1Mint ? amount0Mint : amount1Mint;\\n }\\n\\n // compute amounts owed to contract\\n amount0 = FullMath.mulDivRoundingUp(\\n mintAmount,\\n amount0Current,\\n totalSupply\\n );\\n amount1 = FullMath.mulDivRoundingUp(\\n mintAmount,\\n amount1Current,\\n totalSupply\\n );\\n }\\n\\n // solhint-disable-next-line function-max-lines\\n function _computeFeesEarned(\\n bool isZero,\\n uint256 feeGrowthInsideLast,\\n int24 tick,\\n uint128 liquidity\\n ) private view returns (uint256 fee) {\\n uint256 feeGrowthOutsideLower;\\n uint256 feeGrowthOutsideUpper;\\n uint256 feeGrowthGlobal;\\n if (isZero) {\\n feeGrowthGlobal = pool.feeGrowthGlobal0X128();\\n (, , feeGrowthOutsideLower, , , , , ) = pool.ticks(lowerTick);\\n (, , feeGrowthOutsideUpper, , , , , ) = pool.ticks(upperTick);\\n } else {\\n feeGrowthGlobal = pool.feeGrowthGlobal1X128();\\n (, , , feeGrowthOutsideLower, , , , ) = pool.ticks(lowerTick);\\n (, , , feeGrowthOutsideUpper, , , , ) = pool.ticks(upperTick);\\n }\\n\\n unchecked {\\n // calculate fee growth below\\n uint256 feeGrowthBelow;\\n if (tick >= lowerTick) {\\n feeGrowthBelow = feeGrowthOutsideLower;\\n } else {\\n feeGrowthBelow = feeGrowthGlobal - feeGrowthOutsideLower;\\n }\\n\\n // calculate fee growth above\\n uint256 feeGrowthAbove;\\n if (tick < upperTick) {\\n feeGrowthAbove = feeGrowthOutsideUpper;\\n } else {\\n feeGrowthAbove = feeGrowthGlobal - feeGrowthOutsideUpper;\\n }\\n\\n uint256 feeGrowthInside =\\n feeGrowthGlobal - feeGrowthBelow - feeGrowthAbove;\\n fee = FullMath.mulDiv(\\n liquidity,\\n feeGrowthInside - feeGrowthInsideLast,\\n 0x100000000000000000000000000000000\\n );\\n }\\n }\\n\\n function _applyFees(uint256 _fee0, uint256 _fee1) private {\\n gelatoBalance0 += (_fee0 * gelatoFeeBPS) / 10000;\\n gelatoBalance1 += (_fee1 * gelatoFeeBPS) / 10000;\\n managerBalance0 += (_fee0 * managerFeeBPS) / 10000;\\n managerBalance1 += (_fee1 * managerFeeBPS) / 10000;\\n }\\n\\n function _subtractAdminFees(uint256 rawFee0, uint256 rawFee1)\\n private\\n view\\n returns (uint256 fee0, uint256 fee1)\\n {\\n uint256 deduct0 = (rawFee0 * (gelatoFeeBPS + managerFeeBPS)) / 10000;\\n uint256 deduct1 = (rawFee1 * (gelatoFeeBPS + managerFeeBPS)) / 10000;\\n fee0 = rawFee0 - deduct0;\\n fee1 = rawFee1 - deduct1;\\n }\\n\\n function _checkSlippage(uint160 swapThresholdPrice, bool zeroForOne)\\n private\\n view\\n {\\n uint32[] memory secondsAgo = new uint32[](2);\\n secondsAgo[0] = gelatoSlippageInterval;\\n secondsAgo[1] = 0;\\n\\n (int56[] memory tickCumulatives, ) = pool.observe(secondsAgo);\\n\\n require(tickCumulatives.length == 2, \\\"array len\\\");\\n uint160 avgSqrtRatioX96;\\n unchecked {\\n int24 avgTick =\\n int24(\\n (tickCumulatives[1] - tickCumulatives[0]) /\\n int56(uint56(gelatoSlippageInterval))\\n );\\n avgSqrtRatioX96 = avgTick.getSqrtRatioAtTick();\\n }\\n\\n uint160 maxSlippage = (avgSqrtRatioX96 * gelatoSlippageBPS) / 10000;\\n if (zeroForOne) {\\n require(\\n swapThresholdPrice >= avgSqrtRatioX96 - maxSlippage,\\n \\\"high slippage\\\"\\n );\\n } else {\\n require(\\n swapThresholdPrice <= avgSqrtRatioX96 + maxSlippage,\\n \\\"high slippage\\\"\\n );\\n }\\n }\\n}\\n\",\"keccak256\":\"0xdd382818c81f34c434bb3d4235ac9ff39034cb68e1b87244837d9250878d9fa0\",\"license\":\"GPL-3.0\"},\"contracts/abstract/GUniPoolStorage.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\nimport {Gelatofied} from \\\"./Gelatofied.sol\\\";\\nimport {OwnableUninitialized} from \\\"./OwnableUninitialized.sol\\\";\\nimport {\\n IUniswapV3Pool\\n} from \\\"@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol\\\";\\nimport {IERC20} from \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport {\\n ReentrancyGuardUpgradeable\\n} from \\\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\\\";\\nimport {\\n ERC20Upgradeable\\n} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol\\\";\\n\\n/// @dev Single Global upgradeable state var storage base: APPEND ONLY\\n/// @dev Add all inherited contracts with state vars here: APPEND ONLY\\n/// @dev ERC20Upgradable Includes Initialize\\n// solhint-disable-next-line max-states-count\\n/// @dev Modified to support 0.8.19\\n/// @dev Modified to set the gelatoFeeBPS to 0\\nabstract contract GUniPoolStorage is\\n ERC20Upgradeable, /* XXXX DONT MODIFY ORDERING XXXX */\\n ReentrancyGuardUpgradeable,\\n OwnableUninitialized,\\n Gelatofied\\n // APPEND ADDITIONAL BASE WITH STATE VARS BELOW:\\n // XXXX DONT MODIFY ORDERING XXXX\\n{\\n // solhint-disable-next-line const-name-snakecase\\n string public constant version = \\\"1.0.0\\\";\\n // solhint-disable-next-line const-name-snakecase\\n uint16 public constant gelatoFeeBPS = 0;\\n\\n // XXXXXXXX DO NOT MODIFY ORDERING XXXXXXXX\\n int24 public lowerTick;\\n int24 public upperTick;\\n\\n uint16 public gelatoRebalanceBPS;\\n uint16 public gelatoWithdrawBPS;\\n uint16 public gelatoSlippageBPS;\\n uint32 public gelatoSlippageInterval;\\n\\n uint16 public managerFeeBPS;\\n address public managerTreasury;\\n\\n uint256 public managerBalance0;\\n uint256 public managerBalance1;\\n uint256 public gelatoBalance0;\\n uint256 public gelatoBalance1;\\n\\n IUniswapV3Pool public pool;\\n IERC20 public token0;\\n IERC20 public token1;\\n // APPPEND ADDITIONAL STATE VARS BELOW:\\n // XXXXXXXX DO NOT MODIFY ORDERING XXXXXXXX\\n\\n event UpdateAdminTreasury(\\n address oldAdminTreasury,\\n address newAdminTreasury\\n );\\n\\n event UpdateGelatoParams(\\n uint16 gelatoRebalanceBPS,\\n uint16 gelatoWithdrawBPS,\\n uint16 gelatoSlippageBPS,\\n uint32 gelatoSlippageInterval\\n );\\n\\n event SetManagerFee(uint16 managerFee);\\n\\n // solhint-disable-next-line max-line-length\\n constructor(address payable _gelato) Gelatofied(_gelato) {} // solhint-disable-line no-empty-blocks\\n\\n /// @notice initialize storage variables on a new G-UNI pool, only called once\\n /// @param _name name of G-UNI token\\n /// @param _symbol symbol of G-UNI token\\n /// @param _pool address of Uniswap V3 pool\\n /// @param _managerFeeBPS proportion of fees earned that go to manager treasury\\n /// note that the 4 above params are NOT UPDATEABLE AFTER INILIALIZATION\\n /// @param _lowerTick initial lowerTick (only changeable with executiveRebalance)\\n /// @param _lowerTick initial upperTick (only changeable with executiveRebalance)\\n /// @param _manager_ address of manager (ownership can be transferred)\\n function initialize(\\n string memory _name,\\n string memory _symbol,\\n address _pool,\\n uint16 _managerFeeBPS,\\n int24 _lowerTick,\\n int24 _upperTick,\\n address _manager_\\n ) external initializer {\\n require(_managerFeeBPS <= 10000 - gelatoFeeBPS, \\\"mBPS\\\");\\n\\n // these variables are immutable after initialization\\n pool = IUniswapV3Pool(_pool);\\n token0 = IERC20(pool.token0());\\n token1 = IERC20(pool.token1());\\n managerFeeBPS = _managerFeeBPS; // if set to 0 here manager can still initialize later\\n\\n // these variables can be udpated by the manager\\n gelatoSlippageInterval = 5 minutes; // default: last five minutes;\\n gelatoSlippageBPS = 500; // default: 5% slippage\\n gelatoWithdrawBPS = 100; // default: only auto withdraw if tx fee is lt 1% withdrawn\\n gelatoRebalanceBPS = 200; // default: only rebalance if tx fee is lt 2% reinvested\\n managerTreasury = _manager_; // default: treasury is admin\\n lowerTick = _lowerTick;\\n upperTick = _upperTick;\\n _manager = _manager_;\\n\\n // e.g. \\\"Gelato Uniswap V3 USDC/DAI LP\\\" and \\\"G-UNI\\\"\\n __ERC20_init(_name, _symbol);\\n __ReentrancyGuard_init();\\n }\\n\\n /// @notice change configurable parameters, only manager can call\\n /// @param newRebalanceBPS controls frequency of gelato rebalances: gas fee to execute\\n /// rebalance can be gelatoRebalanceBPS proportion of fees earned since last rebalance\\n /// @param newWithdrawBPS controls frequency of gelato withdrawals: gas fee to execute\\n /// withdrawal can be gelatoWithdrawBPS proportion of fees accrued since last withdraw\\n /// @param newSlippageBPS maximum slippage on swaps during gelato rebalance\\n /// @param newSlippageInterval length of time for TWAP used in computing slippage on swaps\\n /// @param newTreasury address where managerFee withdrawals are sent\\n // solhint-disable-next-line code-complexity\\n function updateGelatoParams(\\n uint16 newRebalanceBPS,\\n uint16 newWithdrawBPS,\\n uint16 newSlippageBPS,\\n uint32 newSlippageInterval,\\n address newTreasury\\n ) external onlyManager {\\n require(newWithdrawBPS <= 10000, \\\"BPS\\\");\\n require(newRebalanceBPS <= 10000, \\\"BPS\\\");\\n require(newSlippageBPS <= 10000, \\\"BPS\\\");\\n emit UpdateGelatoParams(\\n newRebalanceBPS,\\n newWithdrawBPS,\\n newSlippageBPS,\\n newSlippageInterval\\n );\\n if (newRebalanceBPS != 0) gelatoRebalanceBPS = newRebalanceBPS;\\n if (newWithdrawBPS != 0) gelatoWithdrawBPS = newWithdrawBPS;\\n if (newSlippageBPS != 0) gelatoSlippageBPS = newSlippageBPS;\\n if (newSlippageInterval != 0)\\n gelatoSlippageInterval = newSlippageInterval;\\n if (newTreasury != address(0)) managerTreasury = newTreasury;\\n }\\n\\n /// @notice initializeManagerFee sets a managerFee, only manager can call.\\n /// If a manager fee was not set in the initialize function it can be set here\\n /// but ONLY ONCE- after it is set to a non-zero value, managerFee can never be set again.\\n /// @param _managerFeeBPS proportion of fees earned that are credited to manager in Basis Points\\n function initializeManagerFee(uint16 _managerFeeBPS) external onlyManager {\\n require(managerFeeBPS == 0, \\\"fee\\\");\\n require(\\n _managerFeeBPS > 0 && _managerFeeBPS <= 10000 - gelatoFeeBPS,\\n \\\"mBPS\\\"\\n );\\n emit SetManagerFee(_managerFeeBPS);\\n managerFeeBPS = _managerFeeBPS;\\n }\\n\\n function renounceOwnership() public virtual override onlyManager {\\n managerTreasury = address(0);\\n managerFeeBPS = 0;\\n managerBalance0 = 0;\\n managerBalance1 = 0;\\n super.renounceOwnership();\\n }\\n\\n function getPositionID() external view returns (bytes32 positionID) {\\n return _getPositionID();\\n }\\n\\n function _getPositionID() internal view returns (bytes32 positionID) {\\n return keccak256(abi.encodePacked(address(this), lowerTick, upperTick));\\n }\\n}\\n\",\"keccak256\":\"0xd1ad805a13c7cd73554b1e3cc3735f3f369d759f8e0b9188977b85295456d033\",\"license\":\"GPL-3.0\"},\"contracts/abstract/Gelatofied.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\nimport {Address} from \\\"@openzeppelin/contracts/utils/Address.sol\\\";\\nimport {\\n IERC20,\\n SafeERC20\\n} from \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\n\\n/// @dev DO NOT ADD STATE VARIABLES - APPEND THEM TO GelatoUniV3PoolStorage\\n/// @dev DO NOT ADD BASE CONTRACTS WITH STATE VARS - APPEND THEM TO GelatoUniV3PoolStorage\\nabstract contract Gelatofied {\\n using Address for address payable;\\n using SafeERC20 for IERC20;\\n\\n // solhint-disable-next-line var-name-mixedcase\\n address payable public immutable GELATO;\\n\\n address private constant _ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\\n\\n constructor(address payable _gelato) {\\n GELATO = _gelato;\\n }\\n\\n modifier gelatofy(uint256 _amount, address _paymentToken) {\\n require(msg.sender == GELATO, \\\"Gelatofied: Only gelato\\\");\\n _;\\n if (_paymentToken == _ETH) GELATO.sendValue(_amount);\\n else IERC20(_paymentToken).safeTransfer(GELATO, _amount);\\n }\\n}\\n\",\"keccak256\":\"0x264bc07e6e1b80c454c311ecf4b56afe245ddde31151ed9bcc4cb9ad25bec46a\",\"license\":\"GPL-3.0\"},\"contracts/abstract/OwnableUninitialized.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an manager) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the manager 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 * `onlyManager`, which can be applied to your functions to restrict their use to\\n * the manager.\\n */\\n/// @dev DO NOT ADD STATE VARIABLES - APPEND THEM TO GelatoUniV3PoolStorage\\n/// @dev DO NOT ADD BASE CONTRACTS WITH STATE VARS - APPEND THEM TO GelatoUniV3PoolStorage\\nabstract contract OwnableUninitialized {\\n address internal _manager;\\n\\n event OwnershipTransferred(\\n address indexed previousManager,\\n address indexed newManager\\n );\\n\\n /// @dev Initializes the contract setting the deployer as the initial manager.\\n /// CONSTRUCTOR EMPTY - USE INITIALIZIABLE INSTEAD\\n // solhint-disable-next-line no-empty-blocks\\n constructor() {}\\n\\n /**\\n * @dev Returns the address of the current manager.\\n */\\n function manager() public view virtual returns (address) {\\n return _manager;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the manager.\\n */\\n modifier onlyManager() {\\n require(manager() == msg.sender, \\\"Ownable: caller is not the manager\\\");\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without manager. It will not be possible to call\\n * `onlyManager` functions anymore. Can only be called by the current manager.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an manager,\\n * thereby removing any functionality that is only available to the manager.\\n */\\n function renounceOwnership() public virtual onlyManager {\\n emit OwnershipTransferred(_manager, address(0));\\n _manager = 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 manager.\\n */\\n function transferOwnership(address newOwner) public virtual onlyManager {\\n require(\\n newOwner != address(0),\\n \\\"Ownable: new manager is the zero address\\\"\\n );\\n emit OwnershipTransferred(_manager, newOwner);\\n _manager = newOwner;\\n }\\n}\\n\",\"keccak256\":\"0xb6016d5611f38fbd516a84ea2e56794cb76a8d61c40f6716d5f0133f195759bd\",\"license\":\"GPL-3.0\"},\"contracts/vendor/uniswap/FullMath.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity ^0.8.4;\\n\\n/// @title Contains 512-bit math functions\\n/// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision\\n/// @dev Handles \\\"phantom overflow\\\" i.e., allows multiplication and division where an intermediate value overflows 256 bits\\nlibrary FullMath {\\n /// @notice Calculates floor(a\\u00d7b\\u00f7denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n /// @param a The multiplicand\\n /// @param b The multiplier\\n /// @param denominator The divisor\\n /// @return result The 256-bit result\\n /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv\\n function mulDiv(\\n uint256 a,\\n uint256 b,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = a * b\\n // Compute the product mod 2**256 and mod 2**256 - 1\\n // then use the Chinese Remainder Theorem to reconstruct\\n // the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2**256 + prod0\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(a, b, not(0))\\n prod0 := mul(a, b)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division\\n if (prod1 == 0) {\\n require(denominator > 0);\\n assembly {\\n result := div(prod0, denominator)\\n }\\n return result;\\n }\\n\\n // Make sure the result is less than 2**256.\\n // Also prevents denominator == 0\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0]\\n // Compute remainder using mulmod\\n uint256 remainder;\\n assembly {\\n remainder := mulmod(a, b, denominator)\\n }\\n // Subtract 256 bit number from 512 bit number\\n assembly {\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator\\n // Compute largest power of two divisor of denominator.\\n // Always >= 1.\\n // EDIT for 0.8 compatibility:\\n // see: https://ethereum.stackexchange.com/questions/96642/unary-operator-cannot-be-applied-to-type-uint256\\n uint256 twos = denominator & (~denominator + 1);\\n\\n // Divide denominator by power of two\\n assembly {\\n denominator := div(denominator, twos)\\n }\\n\\n // Divide [prod1 prod0] by the factors of two\\n assembly {\\n prod0 := div(prod0, twos)\\n }\\n // Shift in bits from prod1 into prod0. For this we need\\n // to flip `twos` such that it is 2**256 / twos.\\n // If twos is zero, then it becomes one\\n assembly {\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2**256\\n // Now that denominator is an odd number, it has an inverse\\n // modulo 2**256 such that denominator * inv = 1 mod 2**256.\\n // Compute the inverse by starting with a seed that is correct\\n // correct for four bits. That is, denominator * inv = 1 mod 2**4\\n uint256 inv = (3 * denominator) ^ 2;\\n // Now use Newton-Raphson iteration to improve the precision.\\n // Thanks to Hensel's lifting lemma, this also works in modular\\n // arithmetic, doubling the correct bits in each step.\\n inv *= 2 - denominator * inv; // inverse mod 2**8\\n inv *= 2 - denominator * inv; // inverse mod 2**16\\n inv *= 2 - denominator * inv; // inverse mod 2**32\\n inv *= 2 - denominator * inv; // inverse mod 2**64\\n inv *= 2 - denominator * inv; // inverse mod 2**128\\n inv *= 2 - denominator * inv; // inverse mod 2**256\\n\\n // Because the division is now exact we can divide by multiplying\\n // with the modular inverse of denominator. This will give us the\\n // correct result modulo 2**256. Since the precoditions guarantee\\n // that the outcome is less than 2**256, this is the final result.\\n // We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inv;\\n return result;\\n }\\n }\\n\\n /// @notice Calculates ceil(a\\u00d7b\\u00f7denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n /// @param a The multiplicand\\n /// @param b The multiplier\\n /// @param denominator The divisor\\n /// @return result The 256-bit result\\n function mulDivRoundingUp(\\n uint256 a,\\n uint256 b,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n result = mulDiv(a, b, denominator);\\n if (mulmod(a, b, denominator) > 0) {\\n require(result < type(uint256).max);\\n result++;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3fa0efa3eea2a84bd6ab7e55badd61f97069a6c50780059b036c810427a9740c\",\"license\":\"GPL-3.0\"},\"contracts/vendor/uniswap/LiquidityAmounts.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity >=0.5.0;\\n\\nimport {FullMath} from \\\"./FullMath.sol\\\";\\nimport \\\"@uniswap/v3-core/contracts/libraries/FixedPoint96.sol\\\";\\n\\n/// @title Liquidity amount functions\\n/// @notice Provides functions for computing liquidity amounts from token amounts and prices\\nlibrary LiquidityAmounts {\\n function toUint128(uint256 x) private pure returns (uint128 y) {\\n require((y = uint128(x)) == x);\\n }\\n\\n /// @notice Computes the amount of liquidity received for a given amount of token0 and price range\\n /// @dev Calculates amount0 * (sqrt(upper) * sqrt(lower)) / (sqrt(upper) - sqrt(lower)).\\n /// @param sqrtRatioAX96 A sqrt price\\n /// @param sqrtRatioBX96 Another sqrt price\\n /// @param amount0 The amount0 being sent in\\n /// @return liquidity The amount of returned liquidity\\n function getLiquidityForAmount0(\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint256 amount0\\n ) internal pure returns (uint128 liquidity) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n uint256 intermediate =\\n FullMath.mulDiv(sqrtRatioAX96, sqrtRatioBX96, FixedPoint96.Q96);\\n return\\n toUint128(\\n FullMath.mulDiv(\\n amount0,\\n intermediate,\\n sqrtRatioBX96 - sqrtRatioAX96\\n )\\n );\\n }\\n\\n /// @notice Computes the amount of liquidity received for a given amount of token1 and price range\\n /// @dev Calculates amount1 / (sqrt(upper) - sqrt(lower)).\\n /// @param sqrtRatioAX96 A sqrt price\\n /// @param sqrtRatioBX96 Another sqrt price\\n /// @param amount1 The amount1 being sent in\\n /// @return liquidity The amount of returned liquidity\\n function getLiquidityForAmount1(\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint256 amount1\\n ) internal pure returns (uint128 liquidity) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n return\\n toUint128(\\n FullMath.mulDiv(\\n amount1,\\n FixedPoint96.Q96,\\n sqrtRatioBX96 - sqrtRatioAX96\\n )\\n );\\n }\\n\\n /// @notice Computes the maximum amount of liquidity received for a given amount of token0, token1, the current\\n /// pool prices and the prices at the tick boundaries\\n function getLiquidityForAmounts(\\n uint160 sqrtRatioX96,\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint256 amount0,\\n uint256 amount1\\n ) internal pure returns (uint128 liquidity) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n\\n if (sqrtRatioX96 <= sqrtRatioAX96) {\\n liquidity = getLiquidityForAmount0(\\n sqrtRatioAX96,\\n sqrtRatioBX96,\\n amount0\\n );\\n } else if (sqrtRatioX96 < sqrtRatioBX96) {\\n uint128 liquidity0 =\\n getLiquidityForAmount0(sqrtRatioX96, sqrtRatioBX96, amount0);\\n uint128 liquidity1 =\\n getLiquidityForAmount1(sqrtRatioAX96, sqrtRatioX96, amount1);\\n\\n liquidity = liquidity0 < liquidity1 ? liquidity0 : liquidity1;\\n } else {\\n liquidity = getLiquidityForAmount1(\\n sqrtRatioAX96,\\n sqrtRatioBX96,\\n amount1\\n );\\n }\\n }\\n\\n /// @notice Computes the amount of token0 for a given amount of liquidity and a price range\\n /// @param sqrtRatioAX96 A sqrt price\\n /// @param sqrtRatioBX96 Another sqrt price\\n /// @param liquidity The liquidity being valued\\n /// @return amount0 The amount0\\n function getAmount0ForLiquidity(\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint128 liquidity\\n ) internal pure returns (uint256 amount0) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n\\n return\\n FullMath.mulDiv(\\n uint256(liquidity) << FixedPoint96.RESOLUTION,\\n sqrtRatioBX96 - sqrtRatioAX96,\\n sqrtRatioBX96\\n ) / sqrtRatioAX96;\\n }\\n\\n /// @notice Computes the amount of token1 for a given amount of liquidity and a price range\\n /// @param sqrtRatioAX96 A sqrt price\\n /// @param sqrtRatioBX96 Another sqrt price\\n /// @param liquidity The liquidity being valued\\n /// @return amount1 The amount1\\n function getAmount1ForLiquidity(\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint128 liquidity\\n ) internal pure returns (uint256 amount1) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n\\n return\\n FullMath.mulDiv(\\n liquidity,\\n sqrtRatioBX96 - sqrtRatioAX96,\\n FixedPoint96.Q96\\n );\\n }\\n\\n /// @notice Computes the token0 and token1 value for a given amount of liquidity, the current\\n /// pool prices and the prices at the tick boundaries\\n function getAmountsForLiquidity(\\n uint160 sqrtRatioX96,\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint128 liquidity\\n ) internal pure returns (uint256 amount0, uint256 amount1) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n\\n if (sqrtRatioX96 <= sqrtRatioAX96) {\\n amount0 = getAmount0ForLiquidity(\\n sqrtRatioAX96,\\n sqrtRatioBX96,\\n liquidity\\n );\\n } else if (sqrtRatioX96 < sqrtRatioBX96) {\\n amount0 = getAmount0ForLiquidity(\\n sqrtRatioX96,\\n sqrtRatioBX96,\\n liquidity\\n );\\n amount1 = getAmount1ForLiquidity(\\n sqrtRatioAX96,\\n sqrtRatioX96,\\n liquidity\\n );\\n } else {\\n amount1 = getAmount1ForLiquidity(\\n sqrtRatioAX96,\\n sqrtRatioBX96,\\n liquidity\\n );\\n }\\n }\\n}\\n\",\"keccak256\":\"0x6205f6409d42fc9565530d2a69819bf8c4e4c66b7a4c61d0827e81c084df6832\",\"license\":\"GPL-3.0\"},\"contracts/vendor/uniswap/TickMath.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\n/// @title Math library for computing sqrt prices from ticks and vice versa\\n/// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports\\n/// prices between 2**-128 and 2**128\\nlibrary TickMath {\\n /// @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128\\n int24 internal constant MIN_TICK = -887272;\\n /// @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128\\n int24 internal constant MAX_TICK = -MIN_TICK;\\n\\n /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\\n uint160 internal constant MIN_SQRT_RATIO = 4295128739;\\n /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\\n uint160 internal constant MAX_SQRT_RATIO =\\n 1461446703485210103287273052203988822378723970342;\\n\\n /// @notice Calculates sqrt(1.0001^tick) * 2^96\\n /// @dev Throws if |tick| > max tick\\n /// @param tick The input tick for the above formula\\n /// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0)\\n /// at the given tick\\n function getSqrtRatioAtTick(int24 tick)\\n internal\\n pure\\n returns (uint160 sqrtPriceX96)\\n {\\n uint256 absTick =\\n tick < 0 ? uint256(-int256(tick)) : uint256(int256(tick));\\n\\n // EDIT: 0.8 compatibility\\n require(absTick <= uint256(int256(MAX_TICK)), \\\"T\\\");\\n\\n uint256 ratio =\\n absTick & 0x1 != 0\\n ? 0xfffcb933bd6fad37aa2d162d1a594001\\n : 0x100000000000000000000000000000000;\\n if (absTick & 0x2 != 0)\\n ratio = (ratio * 0xfff97272373d413259a46990580e213a) >> 128;\\n if (absTick & 0x4 != 0)\\n ratio = (ratio * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128;\\n if (absTick & 0x8 != 0)\\n ratio = (ratio * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128;\\n if (absTick & 0x10 != 0)\\n ratio = (ratio * 0xffcb9843d60f6159c9db58835c926644) >> 128;\\n if (absTick & 0x20 != 0)\\n ratio = (ratio * 0xff973b41fa98c081472e6896dfb254c0) >> 128;\\n if (absTick & 0x40 != 0)\\n ratio = (ratio * 0xff2ea16466c96a3843ec78b326b52861) >> 128;\\n if (absTick & 0x80 != 0)\\n ratio = (ratio * 0xfe5dee046a99a2a811c461f1969c3053) >> 128;\\n if (absTick & 0x100 != 0)\\n ratio = (ratio * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128;\\n if (absTick & 0x200 != 0)\\n ratio = (ratio * 0xf987a7253ac413176f2b074cf7815e54) >> 128;\\n if (absTick & 0x400 != 0)\\n ratio = (ratio * 0xf3392b0822b70005940c7a398e4b70f3) >> 128;\\n if (absTick & 0x800 != 0)\\n ratio = (ratio * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128;\\n if (absTick & 0x1000 != 0)\\n ratio = (ratio * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128;\\n if (absTick & 0x2000 != 0)\\n ratio = (ratio * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128;\\n if (absTick & 0x4000 != 0)\\n ratio = (ratio * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128;\\n if (absTick & 0x8000 != 0)\\n ratio = (ratio * 0x31be135f97d08fd981231505542fcfa6) >> 128;\\n if (absTick & 0x10000 != 0)\\n ratio = (ratio * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128;\\n if (absTick & 0x20000 != 0)\\n ratio = (ratio * 0x5d6af8dedb81196699c329225ee604) >> 128;\\n if (absTick & 0x40000 != 0)\\n ratio = (ratio * 0x2216e584f5fa1ea926041bedfe98) >> 128;\\n if (absTick & 0x80000 != 0)\\n ratio = (ratio * 0x48a170391f7dc42444e8fa2) >> 128;\\n\\n if (tick > 0) ratio = type(uint256).max / ratio;\\n\\n // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96.\\n // we then downcast because we know the result always fits within 160 bits due to our tick input constraint\\n // we round up in the division so getTickAtSqrtRatio of the output price is always consistent\\n sqrtPriceX96 = uint160(\\n (ratio >> 32) + (ratio % (1 << 32) == 0 ? 0 : 1)\\n );\\n }\\n\\n /// @notice Calculates the greatest tick value such that getRatioAtTick(tick) <= ratio\\n /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_RATIO, as MIN_SQRT_RATIO is the lowest value getRatioAtTick may\\n /// ever return.\\n /// @param sqrtPriceX96 The sqrt ratio for which to compute the tick as a Q64.96\\n /// @return tick The greatest tick for which the ratio is less than or equal to the input ratio\\n function getTickAtSqrtRatio(uint160 sqrtPriceX96)\\n internal\\n pure\\n returns (int24 tick)\\n {\\n // second inequality must be < because the price can never reach the price at the max tick\\n require(\\n sqrtPriceX96 >= MIN_SQRT_RATIO && sqrtPriceX96 < MAX_SQRT_RATIO,\\n \\\"R\\\"\\n );\\n uint256 ratio = uint256(sqrtPriceX96) << 32;\\n\\n uint256 r = ratio;\\n uint256 msb = 0;\\n\\n assembly {\\n let f := shl(7, gt(r, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(6, gt(r, 0xFFFFFFFFFFFFFFFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(5, gt(r, 0xFFFFFFFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(4, gt(r, 0xFFFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(3, gt(r, 0xFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(2, gt(r, 0xF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(1, gt(r, 0x3))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := gt(r, 0x1)\\n msb := or(msb, f)\\n }\\n\\n if (msb >= 128) r = ratio >> (msb - 127);\\n else r = ratio << (127 - msb);\\n\\n int256 log_2 = (int256(msb) - 128) << 64;\\n\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(63, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(62, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(61, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(60, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(59, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(58, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(57, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(56, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(55, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(54, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(53, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(52, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(51, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(50, f))\\n }\\n\\n int256 log_sqrt10001 = log_2 * 255738958999603826347141; // 128.128 number\\n\\n int24 tickLow =\\n int24(\\n (log_sqrt10001 - 3402992956809132418596140100660247210) >> 128\\n );\\n int24 tickHi =\\n int24(\\n (log_sqrt10001 + 291339464771989622907027621153398088495) >> 128\\n );\\n\\n tick = tickLow == tickHi\\n ? tickLow\\n : getSqrtRatioAtTick(tickHi) <= sqrtPriceX96\\n ? tickHi\\n : tickLow;\\n }\\n}\\n\",\"keccak256\":\"0x589b6104fd07d2e56e5b52edcfa53e6e47e2c38cace38025c16278ca73413f2d\",\"license\":\"GPL-3.0\"}},\"version\":1}", + "bytecode": "0x60a06040523480156200001157600080fd5b5060405162005e0e38038062005e0e833981016040819052620000349162000046565b6001600160a01b031660805262000078565b6000602082840312156200005957600080fd5b81516001600160a01b03811681146200007157600080fd5b9392505050565b608051615d3b620000d3600039600081816105f801528181610ce301528181610dcc01528181610e06015281816114a7015281816116d50152818161170f015281816117e20152818161185901526118960152615d3b6000f3fe608060405234801561001057600080fd5b50600436106102255760003560e01c8063065756db1461022a57806306fdde0314610246578063095ea7b31461025b5780630dfe16811461027e5780631322d9541461029e57806316f0115b146102b457806318160ddd146102c757806323b872dd146102cf57806324b8fd1b146102e257806331366be4146102f7578063313ce5671461031257806339509351146103215780633d8b30e11461033457806342fb9d4414610349578063481c6a751461035257806354fd4d501461035a578063672152bd1461037e57806370a08231146103a3578063715018a6146103cc578063727dd228146103d457806378ac6357146103f557806394bf804d1461040857806395d89b411461043f5780639894f21a1461044757806399fd808c146104755780639b1344ac14610488578063a457c2d71461049c578063a50b1fe7146104af578063a9059cbb146104c4578063b135c99f146104d7578063b536bd12146104ea578063b670ed7d146104f3578063be93dd5f14610506578063c345445914610519578063cc95353e14610522578063ccdf7a021461053c578063d21220a714610551578063d348799714610564578063d6e7ff3914610577578063dd62ed3e1461058c578063df28408a146105c5578063e25e15e3146105cd578063e4077894146105e0578063eff557a7146105f3578063f2fde38b1461061a578063fa461e331461062d578063fcd3533c14610640575b600080fd5b61023360995481565b6040519081526020015b60405180910390f35b61024e610653565b60405161023d9190614dc5565b61026e610269366004614e0d565b6106e5565b604051901515815260200161023d565b609e54610291906001600160a01b031681565b60405161023d9190614e39565b6102a66106fc565b60405161023d929190614e4d565b609d54610291906001600160a01b031681565b603554610233565b61026e6102dd366004614e5b565b610796565b6102f56102f0366004614eb9565b61084e565b005b6102ff600081565b60405161ffff909116815260200161023d565b6040516012815260200161023d565b61026e61032f366004614e0d565b610c3a565b6097546102ff90600160e01b900461ffff1681565b610233609a5481565b610291610c71565b61024e604051806040016040528060058152602001640312e302e360dc1b81525081565b60985461038e9063ffffffff1681565b60405163ffffffff909116815260200161023d565b6102336103b1366004614f21565b6001600160a01b031660009081526033602052604090205490565b6102f5610c80565b6097546103e890600160b81b900460020b81565b60405161023d9190614f3e565b6102f5610403366004614f4c565b610cd6565b61041b610416366004614f4c565b610e31565b6040805193845260208401929092526001600160801b03169082015260600161023d565b61024e6110ea565b61045a610455366004614f7c565b6110f9565b6040805193845260208401929092529082015260600161023d565b6102f5610483366004614fc0565b611232565b6097546103e890600160a01b900460020b81565b61026e6104aa366004614e0d565b6113f2565b6097546102ff90600160d01b900461ffff1681565b61026e6104d2366004614e0d565b61148d565b6102f56104e5366004615023565b61149a565b610233609b5481565b6102a6610501366004614f21565b61173d565b6102f5610514366004614f4c565b6117d5565b610233609c5481565b60985461029190600160301b90046001600160a01b031681565b6098546102ff90600160201b900461ffff1681565b609f54610291906001600160a01b031681565b6102f56105723660046150bc565b6118bb565b6097546102ff90600160f01b900461ffff1681565b61023361059a36600461510e565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b61023361191f565b6102f56105db3660046151f1565b61192e565b6102f56105ee3660046152b3565b611ba3565b6102917f000000000000000000000000000000000000000000000000000000000000000081565b6102f5610628366004614f21565b611cb0565b6102f561063b3660046150bc565b611d90565b61041b61064e366004614f4c565b611dfa565b606060368054610662906152d0565b80601f016020809104026020016040519081016040528092919081815260200182805461068e906152d0565b80156106db5780601f106106b0576101008083540402835291602001916106db565b820191906000526020600020905b8154815290600101906020018083116106be57829003601f168201915b5050505050905090565b60006106f2338484612114565b5060015b92915050565b600080600080609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610755573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610779919061530a565b50505050509150915061078c8282612239565b9350935050509091565b60006107a38484846124b9565b6001600160a01b03841660009081526034602090815260408083203384529091529020548281101561082d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610841853361083c86856153b2565b612114565b60019150505b9392505050565b33610857610c71565b6001600160a01b03161461087d5760405162461bcd60e51b8152600401610824906153c5565b600080600061088b60355490565b1115610bca57609d546001600160a01b031663514ea4bf6108aa61267f565b6040518263ffffffff1660e01b81526004016108c891815260200190565b60a060405180830381865afa1580156108e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610909919061541e565b5092945050506001600160801b03831615905061099257609754600090819061094890600160a01b8104600290810b91600160b81b9004900b866126da565b9350935050506109588282612a0d565b6109628282612ae6565b6040519193509150600080516020615ce6833981519152906109879084908490614e4d565b60405180910390a150505b6097805462ffffff888116600160b81b0262ffffff60b81b19918b16600160a01b029190911665ffffffffffff60a01b1990921691909117179055609b54609954609e546040516370a0823160e01b815260009392916001600160a01b0316906370a0823190610a06903090600401614e39565b602060405180830381865afa158015610a23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a479190615475565b610a5191906153b2565b610a5b91906153b2565b609c54609a54609f546040516370a0823160e01b81529394506000936001600160a01b03909116906370a0823190610a97903090600401614e39565b602060405180830381865afa158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad89190615475565b610ae291906153b2565b610aec91906153b2565b9050610afd898984848b8b8b612b80565b609d546001600160a01b031663514ea4bf610b1661267f565b6040518263ffffffff1660e01b8152600401610b3491815260200190565b60a060405180830381865afa158015610b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b75919061541e565b509295505050506001600160801b038316610bc35760405162461bcd60e51b815260206004820152600e60248201526d06e657720706f736974696f6e20360941b6044820152606401610824565b5050610c06565b6097805462ffffff888116600160b81b0262ffffff60b81b19918b16600160a01b029190911665ffffffffffff60a01b19909216919091171790555b600080516020615c8683398151915287878484604051610c29949392919061548e565b60405180910390a150505050505050565b3360008181526034602090815260408083206001600160a01b038716845290915281205490916106f291859061083c9086906154bc565b6097546001600160a01b031690565b33610c89610c71565b6001600160a01b031614610caf5760405162461bcd60e51b8152600401610824906153c5565b60988054600160201b600160d01b031916905560006099819055609a55610cd4612d21565b565b8181336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610d205760405162461bcd60e51b8152600401610824906154cf565b600080610d33609954609a548888612d88565b60006099819055609a5590925090508115610d6d57609854609e54610d6d916001600160a01b0391821691600160301b9091041684612eac565b8015610d9857609854609f54610d98916001600160a01b0391821691600160301b9091041683612eac565b505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601610df757610df26001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683612f14565b610e2b565b610e2b6001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612eac565b50505050565b6000806000600260655403610e585760405162461bcd60e51b815260040161082490615500565b600260655584610e7a5760405162461bcd60e51b815260040161082490615537565b6000610e8560355490565b90506000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610edc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f00919061530a565b50505050505090506000821115610f4157600080610f1c6106fc565b91509150610f2b828a8661302a565b9650610f38818a8661302a565b95505050610f87565b609754610f81908290610f5d90600160a01b900460020b613073565b609754610f7390600160b81b900460020b613073565b610f7c8b613488565b6134f1565b90955093505b8415610fa557609e54610fa5906001600160a01b031633308861358c565b8315610fc357609f54610fc3906001600160a01b031633308761358c565b609754610ffc908290610fdf90600160a01b900460020b613073565b609754610ff590600160b81b900460020b613073565b88886135c4565b609d54609754604051633c8a7d8d60e01b81529295506001600160a01b0390911691633c8a7d8d9161104c913091600160a01b8104600290810b92600160b81b909204900b908990600401615557565b60408051808303816000875af115801561106a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108e9190615599565b505061109a8688613686565b7f55801cfe493000b734571da1694b21e7f66b11e8ce9fdaa0524ecb59105e73e786888787876040516110d19594939291906155bd565b60405180910390a1505060016065819055509250925092565b606060378054610662906152d0565b60008060008061110860355490565b905080156111275761111b818787613753565b9195509350915061122a565b609d5460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e09291908290030181865afa158015611171573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611195919061530a565b505050505050905060006111db826111be609760149054906101000a900460020b60020b613073565b6097546111d490600160b81b900460020b613073565b8b8b6135c4565b6097546001600160801b038216955090915061122290839061120690600160a01b900460020b613073565b60975461121c90600160b81b900460020b613073565b846134f1565b909650945050505b509250925092565b3361123b610c71565b6001600160a01b0316146112615760405162461bcd60e51b8152600401610824906153c5565b6127108461ffff1611156112875760405162461bcd60e51b8152600401610824906155f4565b6127108561ffff1611156112ad5760405162461bcd60e51b8152600401610824906155f4565b6127108361ffff1611156112d35760405162461bcd60e51b8152600401610824906155f4565b6040805161ffff8781168252868116602083015285168183015263ffffffff8416606082015290517f0b7615006627cf7664941bc288d4641731f895e102f95cb8690583ad7508faa89181900360800190a161ffff85161561134a576097805461ffff60d01b1916600160d01b61ffff8816021790555b61ffff84161561136f576097805461ffff60e01b1916600160e01b61ffff8716021790555b61ffff83161561139557609780546001600160f01b0316600160f01b61ffff8616021790555b63ffffffff8216156113b7576098805463ffffffff191663ffffffff84161790555b6001600160a01b038116156113eb5760988054600160301b600160d01b031916600160301b6001600160a01b038416021790555b5050505050565b3360009081526034602090815260408083206001600160a01b0386168452909152812054828110156114745760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610824565b611483338561083c86856153b2565b5060019392505050565b60006106f23384846124b9565b8181336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114e45760405162461bcd60e51b8152600401610824906154cf565b85156114f4576114f48786613862565b609d546000906001600160a01b031663514ea4bf61151061267f565b6040518263ffffffff1660e01b815260040161152e91815260200190565b60a060405180830381865afa15801561154b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156f919061541e565b505050509050611583818989898989613abb565b609d546000906001600160a01b031663514ea4bf61159f61267f565b6040518263ffffffff1660e01b81526004016115bd91815260200190565b60a060405180830381865afa1580156115da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fe919061541e565b505050509050816001600160801b0316816001600160801b03161161165f5760405162461bcd60e51b81526020600482015260176024820152766c6971756964697479206d75737420696e63726561736560481b6044820152606401610824565b609754604051600080516020615c868339815191529161169991600160a01b8204600290810b92600160b81b9004900b908690869061548e565b60405180910390a1505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601611700576116fb6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683612f14565b611734565b6117346001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612eac565b50505050505050565b6000806000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015611795573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b9919061530a565b50505050509150506117cb8482612239565b9250925050915091565b8181336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461181f5760405162461bcd60e51b8152600401610824906154cf565b600080611832609b54609c548888612d88565b6000609b819055609c559092509050811561187e57609e5461187e906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000084612eac565b8015610d9857609f54610d98906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000083612eac565b609d546001600160a01b031633146118e55760405162461bcd60e51b815260040161082490615611565b831561190257609e54611902906001600160a01b03163386612eac565b8215610e2b57609f54610e2b906001600160a01b03163385612eac565b600061192961267f565b905090565b600054610100900460ff1680611947575060005460ff16155b6119635760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015611985576000805461ffff19166101011790555b6119926000612710615688565b61ffff168561ffff1611156119b95760405162461bcd60e51b8152600401610824906156aa565b609d80546001600160a01b0319166001600160a01b03881690811790915560408051630dfe168160e01b81529051630dfe1681916004808201926020929091908290030181865afa158015611a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a3691906156c8565b609e80546001600160a01b0319166001600160a01b03928316179055609d546040805163d21220a760e01b81529051919092169163d21220a79160048083019260209291908290030181865afa158015611a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab891906156c8565b609f80546001600160a01b039283166001600160a01b0319918216179091556098805460978054948716600160301b8102600160301b600160d01b031963ffffffff1961ffff8e16600160201b021665ffffffffffff199095169490941761012c17939093169290921790925562ffffff878116600160b81b02909316600165ffffff00000160a01b0319938916600160a01b02600165ffffff00000160a01b0390951694909417643e800c801960d31b179290921692909217179055611b7f8888613f83565b611b87614002565b8015611b99576000805461ff00191690555b5050505050505050565b33611bac610c71565b6001600160a01b031614611bd25760405162461bcd60e51b8152600401610824906153c5565b609854600160201b900461ffff1615611c135760405162461bcd60e51b815260206004820152600360248201526266656560e81b6044820152606401610824565b60008161ffff16118015611c3b5750611c2f6000612710615688565b61ffff168161ffff1611155b611c575760405162461bcd60e51b8152600401610824906156aa565b60405161ffff821681527f8a1ffb520c943072e654fc414750dbefad5b6d6311339d041901c4752782fad39060200160405180910390a16098805461ffff909216600160201b0261ffff60201b19909216919091179055565b33611cb9610c71565b6001600160a01b031614611cdf5760405162461bcd60e51b8152600401610824906153c5565b6001600160a01b038116611d465760405162461bcd60e51b815260206004820152602860248201527f4f776e61626c653a206e6577206d616e6167657220697320746865207a65726f604482015267206164647265737360c01b6064820152608401610824565b6097546040516001600160a01b03808416921690600080516020615ca683398151915290600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b609d546001600160a01b03163314611dba5760405162461bcd60e51b815260040161082490615611565b6000841315611dda57609e54610df2906001600160a01b03163386612eac565b6000831315610e2b57609f54610e2b906001600160a01b03163385612eac565b6000806000600260655403611e215760405162461bcd60e51b815260040161082490615500565b600260655584611e5c5760405162461bcd60e51b815260206004820152600660248201526506275726e20360d41b6044820152606401610824565b6000611e6760355490565b609d549091506000906001600160a01b031663514ea4bf611e8661267f565b6040518263ffffffff1660e01b8152600401611ea491815260200190565b60a060405180830381865afa158015611ec1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee5919061541e565b505050509050611ef53388614076565b6000611f0b88836001600160801b0316856141b3565b9050611f1681613488565b609754909450600090819081908190611f4590600160a01b8104600290810b91600160b81b9004900b8a6126da565b9350935093509350611f578282612a0d565b611f618282612ae6565b6040519193509150600080516020615ce683398151915290611f869084908490614e4d565b60405180910390a1609b54609954609e546040516370a0823160e01b815261203293929188916001600160a01b03909116906370a0823190611fcc903090600401614e39565b602060405180830381865afa158015611fe9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200d9190615475565b61201791906153b2565b61202191906153b2565b61202b91906153b2565b8d896141b3565b61203c90856154bc565b609c54609a54609f546040516370a0823160e01b8152939d506120799387916001600160a01b0316906370a0823190611fcc903090600401614e39565b61208390846154bc565b985089156120a257609e546120a2906001600160a01b03168c8c612eac565b88156120bf57609f546120bf906001600160a01b03168c8b612eac565b7f7239dff1718b550db7f36cbf69c665cfeb56d0e96b4fb76a5cba712961b655098b8d8c8c8c6040516120f69594939291906155bd565b60405180910390a15050505050505060016065819055509250925092565b6001600160a01b0383166121765760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610824565b6001600160a01b0382166121d75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610824565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b609d546000908190819081908190819081906001600160a01b031663514ea4bf61226161267f565b6040518263ffffffff1660e01b815260040161227f91815260200190565b60a060405180830381865afa15801561229c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c0919061541e565b94509450945094509450612305896122e9609760149054906101000a900460020b60020b613073565b6097546122ff90600160b81b900460020b613073565b886134f1565b909750955060006001600160801b0383166123236001878c8a614261565b61232d91906154bc565b90506000826001600160801b03166123486000878d8b614261565b61235291906154bc565b905061235e8282612ae6565b609b54609954609e546040516370a0823160e01b8152949650929450909290916001600160a01b0316906370a082319061239c903090600401614e39565b602060405180830381865afa1580156123b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123dd9190615475565b6123e790856154bc565b6123f191906153b2565b6123fb91906153b2565b612405908a6154bc565b609c54609a54609f546040516370a0823160e01b8152939c50919290916001600160a01b0316906370a0823190612440903090600401614e39565b602060405180830381865afa15801561245d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124819190615475565b61248b90846154bc565b61249591906153b2565b61249f91906153b2565b6124a990896154bc565b9750505050505050509250929050565b6001600160a01b03831661251d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610824565b6001600160a01b03821661257f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610824565b6001600160a01b038316600090815260336020526040902054818110156125f75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610824565b61260182826153b2565b6001600160a01b0380861660009081526033602052604080822093909355908516815290812080548492906126379084906154bc565b92505081905550826001600160a01b0316846001600160a01b0316600080516020615cc68339815191528460405161267191815260200190565b60405180910390a350505050565b6097546040516001600160601b03193060601b166020820152600160a01b820460e890811b6034830152600160b81b90920490911b6037820152600090603a0160405160208183030381529060405280519060200120905090565b609e546040516370a0823160e01b815260009182918291829182916001600160a01b0316906370a0823190612713903090600401614e39565b602060405180830381865afa158015612730573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127549190615475565b609f546040516370a0823160e01b81529192506000916001600160a01b03909116906370a082319061278a903090600401614e39565b602060405180830381865afa1580156127a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127cb9190615475565b609d5460405163a34123a760e01b815260028c810b60048301528b900b60248201526001600160801b038a1660448201529192506001600160a01b03169063a34123a79060640160408051808303816000875af1158015612830573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128549190615599565b609d546040516309e3d67b60e31b815230600482015260028d810b60248301528c900b60448201526001600160801b036064820181905260848201529298509096506001600160a01b031690634f1eb3d89060a40160408051808303816000875af11580156128c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128eb91906156e5565b5050609e546040516370a0823160e01b8152879184916001600160a01b03909116906370a0823190612921903090600401614e39565b602060405180830381865afa15801561293e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129629190615475565b61296c91906153b2565b61297691906153b2565b609f546040516370a0823160e01b8152919550869183916001600160a01b0316906370a08231906129ab903090600401614e39565b602060405180830381865afa1580156129c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ec9190615475565b6129f691906153b2565b612a0091906153b2565b9250505093509350935093565b612710612a1b600084615718565b612a259190615745565b609b6000828254612a3691906154bc565b909155506127109050612a4a600083615718565b612a549190615745565b609c6000828254612a6591906154bc565b909155505060985461271090612a8690600160201b900461ffff1684615718565b612a909190615745565b60996000828254612aa191906154bc565b909155505060985461271090612ac290600160201b900461ffff1683615718565b612acc9190615745565b609a6000828254612add91906154bc565b90915550505050565b6000806000612710609860049054906101000a900461ffff166000612b0b9190615759565b612b199061ffff1687615718565b612b239190615745565b60985490915060009061271090612b4590600160201b900461ffff1683615759565b612b539061ffff1687615718565b612b5d9190615745565b9050612b6982876153b2565b9350612b7581866153b2565b925050509250929050565b609d5460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e09291908290030181865afa158015612bca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bee919061530a565b50505050505090506000612c1b82612c088b60020b613073565b612c148b60020b613073565b8a8a6135c4565b90506001600160801b03811615612cc957609d54604051633c8a7d8d60e01b815260009182916001600160a01b0390911690633c8a7d8d90612c679030908f908f908990600401615557565b60408051808303816000875af1158015612c85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ca99190615599565b9092509050612cb8828a6153b2565b9850612cc481896153b2565b975050505b6000612cf86127108686612cdd5789612cdf565b8a5b612ce99190615718565b612cf39190615745565b61460d565b90506000811315612d1557612d128a8a8a8a858b8a614673565b50505b50505050505050505050565b33612d2a610c71565b6001600160a01b031614612d505760405162461bcd60e51b8152600401610824906153c5565b6097546040516000916001600160a01b031690600080516020615ca6833981519152908390a3609780546001600160a01b0319169055565b609e5460009081906001600160a01b0390811690841603612dfd57609754849061271090612dc190600160e01b900461ffff1689615718565b612dcb9190615745565b1015612de95760405162461bcd60e51b815260040161082490615774565b612df384876153b2565b9150849050612ea3565b609f546001600160a01b0390811690841603612e6d57609754849061271090612e3190600160e01b900461ffff1688615718565b612e3b9190615745565b1015612e595760405162461bcd60e51b815260040161082490615774565b612e6384866153b2565b9050859150612ea3565b60405162461bcd60e51b815260206004820152600b60248201526a3bb937b733903a37b5b2b760a91b6044820152606401610824565b94509492505050565b6040516001600160a01b038316602482015260448101829052612f0f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261488f565b505050565b80471015612f645760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610824565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612fb1576040519150601f19603f3d011682016040523d82523d6000602084013e612fb6565b606091505b5050905080612f0f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152608401610824565b60006130378484846141b3565b9050600082806130495761304961572f565b848609111561084757600019811061306057600080fd5b8061306a81615796565b95945050505050565b60008060008360020b1261308a578260020b613097565b8260020b613097906157af565b90506130a6620d89e7196157cb565b60020b8111156130dc5760405162461bcd60e51b81526020600482015260016024820152601560fa1b6044820152606401610824565b6000816001166000036130f357600160801b613105565b6ffffcb933bd6fad37aa2d162d1a5940015b6001600160881b03169050600282161561313a576080613135826ffff97272373d413259a46990580e213a615718565b901c90505b600482161561316457608061315f826ffff2e50f5f656932ef12357cf3c7fdcc615718565b901c90505b600882161561318e576080613189826fffe5caca7e10e4e61c3624eaa0941cd0615718565b901c90505b60108216156131b85760806131b3826fffcb9843d60f6159c9db58835c926644615718565b901c90505b60208216156131e25760806131dd826fff973b41fa98c081472e6896dfb254c0615718565b901c90505b604082161561320c576080613207826fff2ea16466c96a3843ec78b326b52861615718565b901c90505b6080821615613236576080613231826ffe5dee046a99a2a811c461f1969c3053615718565b901c90505b61010082161561326157608061325c826ffcbe86c7900a88aedcffc83b479aa3a4615718565b901c90505b61020082161561328c576080613287826ff987a7253ac413176f2b074cf7815e54615718565b901c90505b6104008216156132b75760806132b2826ff3392b0822b70005940c7a398e4b70f3615718565b901c90505b6108008216156132e25760806132dd826fe7159475a2c29b7443b29c7fa6e889d9615718565b901c90505b61100082161561330d576080613308826fd097f3bdfd2022b8845ad8f792aa5825615718565b901c90505b612000821615613338576080613333826fa9f746462d870fdf8a65dc1f90e061e5615718565b901c90505b61400082161561336357608061335e826f70d869a156d2a1b890bb3df62baf32f7615718565b901c90505b61800082161561338e576080613389826f31be135f97d08fd981231505542fcfa6615718565b901c90505b620100008216156133ba5760806133b5826f09aa508b5b7a84e1c677de54f3e99bc9615718565b901c90505b620200008216156133e55760806133e0826e5d6af8dedb81196699c329225ee604615718565b901c90505b6204000082161561340f57608061340a826d2216e584f5fa1ea926041bedfe98615718565b901c90505b62080000821615613437576080613432826b048a170391f7dc42444e8fa2615718565b901c90505b60008460020b13156134525761344f81600019615745565b90505b613460600160201b826157ed565b1561346c57600161346f565b60005b6134809060ff16602083901c6154bc565b949350505050565b6000600160801b82106134ed5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663238206269747360c81b6064820152608401610824565b5090565b600080836001600160a01b0316856001600160a01b03161115613512579293925b846001600160a01b0316866001600160a01b03161161353d57613536858585614961565b9150612ea3565b836001600160a01b0316866001600160a01b0316101561357657613562868585614961565b915061356f8587856149cb565b9050612ea3565b6135818585856149cb565b905094509492505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610e2b9085906323b872dd60e01b90608401612ed8565b6000836001600160a01b0316856001600160a01b031611156135e4579293925b846001600160a01b0316866001600160a01b03161161360f57613608858585614a15565b905061306a565b836001600160a01b0316866001600160a01b03161015613671576000613636878686614a15565b90506000613645878986614a7f565b9050806001600160801b0316826001600160801b0316106136665780613668565b815b9250505061306a565b61367c858584614a7f565b9695505050505050565b6001600160a01b0382166136dc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610824565b80603560008282546136ee91906154bc565b90915550506001600160a01b0382166000908152603360205260408120805483929061371b9084906154bc565b90915550506040518181526001600160a01b03831690600090600080516020615cc68339815191529060200160405180910390a35050565b60008060008060006137636106fc565b915091508160001480156137775750600081115b1561378e576137878689836141b3565b925061383d565b8015801561379c5750600082115b156137ac576137878789846141b3565b811580156137b8575080155b156137df5760405162461bcd60e51b81526020600482015260006024820152604401610824565b60006137ec888a856141b3565b905060006137fb888b856141b3565b905060008211801561380d5750600081115b6138295760405162461bcd60e51b815260040161082490615537565b8082106138365780613838565b815b945050505b61384883838a61302a565b945061385583828a61302a565b9350505093509350939050565b6040805160028082526060820183526000926020830190803683375050609854825192935063ffffffff16918391506000906138a0576138a0615801565b602002602001019063ffffffff16908163ffffffff16815250506000816001815181106138cf576138cf615801565b63ffffffff90921660209283029190910190910152609d5460405163883bdbfd60e01b81526000916001600160a01b03169063883bdbfd90613915908590600401615817565b600060405180830381865afa158015613932573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261395a919081019061590a565b509050805160021461399a5760405162461bcd60e51b815260206004820152600960248201526830b93930bc903632b760b91b6044820152606401610824565b6098548151600091829163ffffffff90911660060b90849083906139c0576139c0615801565b6020026020010151846001815181106139db576139db615801565b60200260200101510360060b816139f4576139f461572f565b059050613a038160020b613073565b6097549092506000915061271090613a2690600160f01b900461ffff16846159cc565b613a3091906159fe565b90508415613a7857613a428183615a24565b6001600160a01b0316866001600160a01b03161015613a735760405162461bcd60e51b815260040161082490615a44565b613ab3565b613a828183615a6b565b6001600160a01b0316866001600160a01b03161115613ab35760405162461bcd60e51b815260040161082490615a44565b505050505050565b609b54609954609e546040516370a0823160e01b815260009392916001600160a01b0316906370a0823190613af4903090600401614e39565b602060405180830381865afa158015613b11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b359190615475565b613b3f91906153b2565b613b4991906153b2565b609c54609a54609f546040516370a0823160e01b81529394506000936001600160a01b03909116906370a0823190613b85903090600401614e39565b602060405180830381865afa158015613ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bc69190615475565b613bd091906153b2565b613bda91906153b2565b6097549091506000908190613c0590600160a01b8104600290810b91600160b81b9004900b8c6126da565b935093505050613c158282612a0d565b613c1f8282612ae6565b6040519193509150600080516020615ce683398151915290613c449084908490614e4d565b60405180910390a1613c5684836154bc565b9150613c6283826154bc565b609e549091506001600160a01b0390811690861603613def57609754869061271090613c9990600160d01b900461ffff1685615718565b613ca39190615745565b1015613cc15760405162461bcd60e51b815260040161082490615774565b609b54609954609e546040516370a0823160e01b8152899392916001600160a01b0316906370a0823190613cf9903090600401614e39565b602060405180830381865afa158015613d16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d3a9190615475565b613d4491906153b2565b613d4e91906153b2565b613d5891906153b2565b609c54609a54609f546040516370a0823160e01b8152939750919290916001600160a01b0316906370a0823190613d93903090600401614e39565b602060405180830381865afa158015613db0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dd49190615475565b613dde91906153b2565b613de891906153b2565b9250613f5c565b609f546001600160a01b0390811690861603612e6d57609754869061271090613e2390600160d01b900461ffff1684615718565b613e2d9190615745565b1015613e4b5760405162461bcd60e51b815260040161082490615774565b609b54609954609e546040516370a0823160e01b81526001600160a01b03909116906370a0823190613e81903090600401614e39565b602060405180830381865afa158015613e9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ec29190615475565b613ecc91906153b2565b613ed691906153b2565b609c54609a54609f546040516370a0823160e01b815293975089936001600160a01b03909116906370a0823190613f11903090600401614e39565b602060405180830381865afa158015613f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f529190615475565b613dd491906153b2565b609754612d1590600160a01b8104600290810b91600160b81b9004900b86868d8d8d612b80565b600054610100900460ff1680613f9c575060005460ff16155b613fb85760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015613fda576000805461ffff19166101011790555b613fe2614ab5565b613fec8383614b1f565b8015612f0f576000805461ff0019169055505050565b600054610100900460ff168061401b575060005460ff16155b6140375760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614059576000805461ffff19166101011790555b614061614ba6565b8015614073576000805461ff00191690555b50565b6001600160a01b0382166140d65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610824565b6001600160a01b0382166000908152603360205260409020548181101561414a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610824565b61415482826153b2565b6001600160a01b038416600090815260336020526040812091909155603580548492906141829084906153b2565b90915550506040518281526000906001600160a01b03851690600080516020615cc68339815191529060200161222c565b60008080600019858709858702925082811083820303915050806000036141ec57600084116141e157600080fd5b508290049050610847565b8084116141f857600080fd5b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b600080600080871561440157609d60009054906101000a90046001600160a01b03166001600160a01b031663f30583996040518163ffffffff1660e01b8152600401602060405180830381865afa1580156142c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142e49190615475565b609d5460975460405163f30dba9360e01b81529293506001600160a01b039091169163f30dba939161432491600160a01b90910460020b90600401614f3e565b61010060405180830381865afa158015614342573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143669190615a8b565b5050609d5460975460405163f30dba9360e01b8152959a506001600160a01b03909116965063f30dba9395506143af94600160b81b90910460020b93506004019150614f3e9050565b61010060405180830381865afa1580156143cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143f19190615a8b565b5093975061458f95505050505050565b609d60009054906101000a90046001600160a01b03166001600160a01b031663461413196040518163ffffffff1660e01b8152600401602060405180830381865afa158015614454573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144789190615475565b609d5460975460405163f30dba9360e01b81529293506001600160a01b039091169163f30dba93916144b891600160a01b90910460020b90600401614f3e565b61010060405180830381865afa1580156144d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144fa9190615a8b565b5050609d5460975460405163f30dba9360e01b8152949a506001600160a01b03909116965063f30dba9395506145429450600160b81b900460020b926004019150614f3e9050565b61010060405180830381865afa158015614560573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145849190615a8b565b509297505050505050505b609754600090600160a01b9004600290810b9088900b126145b15750826145b6565b508281035b609754600090600160b81b9004600290810b9089900b12156145d95750826145de565b508282035b8183038190036145fe6001600160801b0389168b8303600160801b6141b3565b9b9a5050505050505050505050565b6000600160ff1b82106134ed5760405162461bcd60e51b815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604482015267371034b73a191a9b60c11b6064820152608401610824565b609d54604051630251596160e31b81523060048201528215156024820152604481018590526001600160a01b03848116606483015260a06084830152600060a4830181905292839283928392169063128acb089060c40160408051808303816000875af11580156146e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061470c9190615599565b915091508161471a8a61460d565b6147249190615b27565b9350806147308961460d565b61473a9190615b27565b92506000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015614791573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147b5919061530a565b505050505050905060006147e2826147cf8f60020b613073565b6147db8f60020b613073565b89896135c4565b90506001600160801b0381161561487f57609d60009054906101000a90046001600160a01b03166001600160a01b0316633c8a7d8d308f8f856040518563ffffffff1660e01b815260040161483a9493929190615557565b60408051808303816000875af1158015614858573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061487c9190615599565b50505b5050505097509795505050505050565b60006148e4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614c169092919063ffffffff16565b805190915015612f0f57808060200190518101906149029190615b47565b612f0f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610824565b6000826001600160a01b0316846001600160a01b03161115614981579192915b6001600160a01b0384166149c1600160601b600160e01b03606085901b166149a98787615a24565b6001600160a01b0316866001600160a01b03166141b3565b6134809190615745565b6000826001600160a01b0316846001600160a01b031611156149eb579192915b6134806001600160801b038316614a028686615a24565b6001600160a01b0316600160601b6141b3565b6000826001600160a01b0316846001600160a01b03161115614a35579192915b6000614a58856001600160a01b0316856001600160a01b0316600160601b6141b3565b905061306a614a7a8483614a6c8989615a24565b6001600160a01b03166141b3565b614c25565b6000826001600160a01b0316846001600160a01b03161115614a9f579192915b613480614a7a83600160601b614a6c8888615a24565b600054610100900460ff1680614ace575060005460ff16155b614aea5760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614061576000805461ffff19166101011790558015614073576000805461ff001916905550565b600054610100900460ff1680614b38575060005460ff16155b614b545760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614b76576000805461ffff19166101011790555b6036614b828482615baa565b506037614b8f8382615baa565b508015612f0f576000805461ff0019169055505050565b600054610100900460ff1680614bbf575060005460ff16155b614bdb5760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614bfd576000805461ffff19166101011790555b60016065558015614073576000805461ff001916905550565b60606134808484600085614c40565b806001600160801b0381168114614c3b57600080fd5b919050565b606082471015614ca15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610824565b843b614cef5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610824565b600080866001600160a01b03168587604051614d0b9190615c69565b60006040518083038185875af1925050503d8060008114614d48576040519150601f19603f3d011682016040523d82523d6000602084013e614d4d565b606091505b5091509150614d5d828286614d68565b979650505050505050565b60608315614d77575081610847565b825115614d875782518084602001fd5b8160405162461bcd60e51b81526004016108249190614dc5565b60005b83811015614dbc578181015183820152602001614da4565b50506000910152565b6020815260008251806020840152614de4816040850160208701614da1565b601f01601f19169190910160400192915050565b6001600160a01b038116811461407357600080fd5b60008060408385031215614e2057600080fd5b8235614e2b81614df8565b946020939093013593505050565b6001600160a01b0391909116815260200190565b918252602082015260400190565b600080600060608486031215614e7057600080fd5b8335614e7b81614df8565b92506020840135614e8b81614df8565b929592945050506040919091013590565b8060020b811461407357600080fd5b801515811461407357600080fd5b600080600080600060a08688031215614ed157600080fd5b8535614edc81614e9c565b94506020860135614eec81614e9c565b93506040860135614efc81614df8565b9250606086013591506080860135614f1381614eab565b809150509295509295909350565b600060208284031215614f3357600080fd5b813561084781614df8565b60029190910b815260200190565b60008060408385031215614f5f57600080fd5b823591506020830135614f7181614df8565b809150509250929050565b60008060408385031215614f8f57600080fd5b50508035926020909101359150565b61ffff8116811461407357600080fd5b63ffffffff8116811461407357600080fd5b600080600080600060a08688031215614fd857600080fd5b8535614fe381614f9e565b94506020860135614ff381614f9e565b9350604086013561500381614f9e565b9250606086013561501381614fae565b91506080860135614f1381614df8565b600080600080600060a0868803121561503b57600080fd5b853561504681614df8565b945060208601359350604086013561505d81614eab565b9250606086013591506080860135614f1381614df8565b60008083601f84011261508657600080fd5b5081356001600160401b0381111561509d57600080fd5b6020830191508360208285010111156150b557600080fd5b9250929050565b600080600080606085870312156150d257600080fd5b843593506020850135925060408501356001600160401b038111156150f657600080fd5b61510287828801615074565b95989497509550505050565b6000806040838503121561512157600080fd5b823561512c81614df8565b91506020830135614f7181614df8565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561517a5761517a61513c565b604052919050565b600082601f83011261519357600080fd5b81356001600160401b038111156151ac576151ac61513c565b6151bf601f8201601f1916602001615152565b8181528460208386010111156151d457600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060e0888a03121561520c57600080fd5b87356001600160401b038082111561522357600080fd5b61522f8b838c01615182565b985060208a013591508082111561524557600080fd5b506152528a828b01615182565b965050604088013561526381614df8565b9450606088013561527381614f9e565b9350608088013561528381614e9c565b925060a088013561529381614e9c565b915060c08801356152a381614df8565b8091505092959891949750929550565b6000602082840312156152c557600080fd5b813561084781614f9e565b600181811c908216806152e457607f821691505b60208210810361530457634e487b7160e01b600052602260045260246000fd5b50919050565b600080600080600080600060e0888a03121561532557600080fd5b875161533081614df8565b602089015190975061534181614e9c565b604089015190965061535281614f9e565b606089015190955061536381614f9e565b608089015190945061537481614f9e565b60a089015190935060ff8116811461538b57600080fd5b60c08901519092506152a381614eab565b634e487b7160e01b600052601160045260246000fd5b818103818111156106f6576106f661539c565b60208082526022908201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d616e616760408201526132b960f11b606082015260800190565b80516001600160801b0381168114614c3b57600080fd5b600080600080600060a0868803121561543657600080fd5b61543f86615407565b9450602086015193506040860151925061545b60608701615407565b915061546960808701615407565b90509295509295909350565b60006020828403121561548757600080fd5b5051919050565b600294850b81529290930b60208301526001600160801b039081166040830152909116606082015260800190565b808201808211156106f6576106f661539c565b60208082526017908201527647656c61746f666965643a204f6e6c792067656c61746f60481b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526006908201526506d696e7420360d41b604082015260600190565b6001600160a01b03949094168452600292830b6020850152910b60408301526001600160801b0316606082015260a06080820181905260009082015260c00190565b600080604083850312156155ac57600080fd5b505080516020909101519092909150565b6001600160a01b039590951685526020850193909352604084019190915260608301526001600160801b0316608082015260a00190565b60208082526003908201526242505360e81b604082015260600190565b6020808252600f908201526e31b0b6363130b1b59031b0b63632b960891b604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b61ffff8281168282160390808211156156a3576156a361539c565b5092915050565b6020808252600490820152636d42505360e01b604082015260600190565b6000602082840312156156da57600080fd5b815161084781614df8565b600080604083850312156156f857600080fd5b61570183615407565b915061570f60208401615407565b90509250929050565b80820281158282048414176106f6576106f661539c565b634e487b7160e01b600052601260045260246000fd5b6000826157545761575461572f565b500490565b61ffff8181168382160190808211156156a3576156a361539c565b602080825260089082015267686967682066656560c01b604082015260600190565b6000600182016157a8576157a861539c565b5060010190565b6000600160ff1b82016157c4576157c461539c565b5060000390565b60008160020b627fffff1981036157e4576157e461539c565b60000392915050565b6000826157fc576157fc61572f565b500690565b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561585557835163ffffffff1683529284019291840191600101615833565b50909695505050505050565b60006001600160401b0382111561587a5761587a61513c565b5060051b60200190565b8051600681900b8114614c3b57600080fd5b600082601f8301126158a757600080fd5b815160206158bc6158b783615861565b615152565b82815260059290921b840181019181810190868411156158db57600080fd5b8286015b848110156158ff5780516158f281614df8565b83529183019183016158df565b509695505050505050565b6000806040838503121561591d57600080fd5b82516001600160401b038082111561593457600080fd5b818501915085601f83011261594857600080fd5b815160206159586158b783615861565b82815260059290921b8401810191818101908984111561597757600080fd5b948201945b8386101561599c5761598d86615884565b8252948201949082019061597c565b918801519196509093505050808211156159b557600080fd5b506159c285828601615896565b9150509250929050565b6001600160a01b038281168282168181028316929181158285048214176159f5576159f561539c565b50505092915050565b60006001600160a01b0383811680615a1857615a1861572f565b92169190910492915050565b6001600160a01b038281168282160390808211156156a3576156a361539c565b6020808252600d908201526c6869676820736c69707061676560981b604082015260600190565b6001600160a01b038181168382160190808211156156a3576156a361539c565b600080600080600080600080610100898b031215615aa857600080fd5b615ab189615407565b9750602089015180600f0b8114615ac757600080fd5b60408a015160608b015191985096509450615ae460808a01615884565b935060a0890151615af481614df8565b60c08a0151909350615b0581614fae565b60e08a0151909250615b1681614eab565b809150509295985092959890939650565b81810360008312801583831316838312821617156156a3576156a361539c565b600060208284031215615b5957600080fd5b815161084781614eab565b601f821115612f0f57600081815260208120601f850160051c81016020861015615b8b5750805b601f850160051c820191505b81811015613ab357828155600101615b97565b81516001600160401b03811115615bc357615bc361513c565b615bd781615bd184546152d0565b84615b64565b602080601f831160018114615c0c5760008415615bf45750858301515b600019600386901b1c1916600185901b178555613ab3565b600085815260208120601f198616915b82811015615c3b57888601518255948401946001909101908401615c1c565b5085821015615c595787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008251615c7b818460208701614da1565b919091019291505056fec749f9ae947d4734cf1569606a8a347391ae94a063478aa853aeff48ac5f99e88be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efc28ad1de9c0c32e5394ba60323e44d8d9536312236a47231772e448a3e49de42a2646970667358221220a11bde499516b0a2e8e737821292815fcefc66549a9729f24ea128d34ed6027364736f6c63430008130033", + "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106102255760003560e01c8063065756db1461022a57806306fdde0314610246578063095ea7b31461025b5780630dfe16811461027e5780631322d9541461029e57806316f0115b146102b457806318160ddd146102c757806323b872dd146102cf57806324b8fd1b146102e257806331366be4146102f7578063313ce5671461031257806339509351146103215780633d8b30e11461033457806342fb9d4414610349578063481c6a751461035257806354fd4d501461035a578063672152bd1461037e57806370a08231146103a3578063715018a6146103cc578063727dd228146103d457806378ac6357146103f557806394bf804d1461040857806395d89b411461043f5780639894f21a1461044757806399fd808c146104755780639b1344ac14610488578063a457c2d71461049c578063a50b1fe7146104af578063a9059cbb146104c4578063b135c99f146104d7578063b536bd12146104ea578063b670ed7d146104f3578063be93dd5f14610506578063c345445914610519578063cc95353e14610522578063ccdf7a021461053c578063d21220a714610551578063d348799714610564578063d6e7ff3914610577578063dd62ed3e1461058c578063df28408a146105c5578063e25e15e3146105cd578063e4077894146105e0578063eff557a7146105f3578063f2fde38b1461061a578063fa461e331461062d578063fcd3533c14610640575b600080fd5b61023360995481565b6040519081526020015b60405180910390f35b61024e610653565b60405161023d9190614dc5565b61026e610269366004614e0d565b6106e5565b604051901515815260200161023d565b609e54610291906001600160a01b031681565b60405161023d9190614e39565b6102a66106fc565b60405161023d929190614e4d565b609d54610291906001600160a01b031681565b603554610233565b61026e6102dd366004614e5b565b610796565b6102f56102f0366004614eb9565b61084e565b005b6102ff600081565b60405161ffff909116815260200161023d565b6040516012815260200161023d565b61026e61032f366004614e0d565b610c3a565b6097546102ff90600160e01b900461ffff1681565b610233609a5481565b610291610c71565b61024e604051806040016040528060058152602001640312e302e360dc1b81525081565b60985461038e9063ffffffff1681565b60405163ffffffff909116815260200161023d565b6102336103b1366004614f21565b6001600160a01b031660009081526033602052604090205490565b6102f5610c80565b6097546103e890600160b81b900460020b81565b60405161023d9190614f3e565b6102f5610403366004614f4c565b610cd6565b61041b610416366004614f4c565b610e31565b6040805193845260208401929092526001600160801b03169082015260600161023d565b61024e6110ea565b61045a610455366004614f7c565b6110f9565b6040805193845260208401929092529082015260600161023d565b6102f5610483366004614fc0565b611232565b6097546103e890600160a01b900460020b81565b61026e6104aa366004614e0d565b6113f2565b6097546102ff90600160d01b900461ffff1681565b61026e6104d2366004614e0d565b61148d565b6102f56104e5366004615023565b61149a565b610233609b5481565b6102a6610501366004614f21565b61173d565b6102f5610514366004614f4c565b6117d5565b610233609c5481565b60985461029190600160301b90046001600160a01b031681565b6098546102ff90600160201b900461ffff1681565b609f54610291906001600160a01b031681565b6102f56105723660046150bc565b6118bb565b6097546102ff90600160f01b900461ffff1681565b61023361059a36600461510e565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b61023361191f565b6102f56105db3660046151f1565b61192e565b6102f56105ee3660046152b3565b611ba3565b6102917f000000000000000000000000000000000000000000000000000000000000000081565b6102f5610628366004614f21565b611cb0565b6102f561063b3660046150bc565b611d90565b61041b61064e366004614f4c565b611dfa565b606060368054610662906152d0565b80601f016020809104026020016040519081016040528092919081815260200182805461068e906152d0565b80156106db5780601f106106b0576101008083540402835291602001916106db565b820191906000526020600020905b8154815290600101906020018083116106be57829003601f168201915b5050505050905090565b60006106f2338484612114565b5060015b92915050565b600080600080609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610755573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610779919061530a565b50505050509150915061078c8282612239565b9350935050509091565b60006107a38484846124b9565b6001600160a01b03841660009081526034602090815260408083203384529091529020548281101561082d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610841853361083c86856153b2565b612114565b60019150505b9392505050565b33610857610c71565b6001600160a01b03161461087d5760405162461bcd60e51b8152600401610824906153c5565b600080600061088b60355490565b1115610bca57609d546001600160a01b031663514ea4bf6108aa61267f565b6040518263ffffffff1660e01b81526004016108c891815260200190565b60a060405180830381865afa1580156108e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610909919061541e565b5092945050506001600160801b03831615905061099257609754600090819061094890600160a01b8104600290810b91600160b81b9004900b866126da565b9350935050506109588282612a0d565b6109628282612ae6565b6040519193509150600080516020615ce6833981519152906109879084908490614e4d565b60405180910390a150505b6097805462ffffff888116600160b81b0262ffffff60b81b19918b16600160a01b029190911665ffffffffffff60a01b1990921691909117179055609b54609954609e546040516370a0823160e01b815260009392916001600160a01b0316906370a0823190610a06903090600401614e39565b602060405180830381865afa158015610a23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a479190615475565b610a5191906153b2565b610a5b91906153b2565b609c54609a54609f546040516370a0823160e01b81529394506000936001600160a01b03909116906370a0823190610a97903090600401614e39565b602060405180830381865afa158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad89190615475565b610ae291906153b2565b610aec91906153b2565b9050610afd898984848b8b8b612b80565b609d546001600160a01b031663514ea4bf610b1661267f565b6040518263ffffffff1660e01b8152600401610b3491815260200190565b60a060405180830381865afa158015610b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b75919061541e565b509295505050506001600160801b038316610bc35760405162461bcd60e51b815260206004820152600e60248201526d06e657720706f736974696f6e20360941b6044820152606401610824565b5050610c06565b6097805462ffffff888116600160b81b0262ffffff60b81b19918b16600160a01b029190911665ffffffffffff60a01b19909216919091171790555b600080516020615c8683398151915287878484604051610c29949392919061548e565b60405180910390a150505050505050565b3360008181526034602090815260408083206001600160a01b038716845290915281205490916106f291859061083c9086906154bc565b6097546001600160a01b031690565b33610c89610c71565b6001600160a01b031614610caf5760405162461bcd60e51b8152600401610824906153c5565b60988054600160201b600160d01b031916905560006099819055609a55610cd4612d21565b565b8181336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610d205760405162461bcd60e51b8152600401610824906154cf565b600080610d33609954609a548888612d88565b60006099819055609a5590925090508115610d6d57609854609e54610d6d916001600160a01b0391821691600160301b9091041684612eac565b8015610d9857609854609f54610d98916001600160a01b0391821691600160301b9091041683612eac565b505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601610df757610df26001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683612f14565b610e2b565b610e2b6001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612eac565b50505050565b6000806000600260655403610e585760405162461bcd60e51b815260040161082490615500565b600260655584610e7a5760405162461bcd60e51b815260040161082490615537565b6000610e8560355490565b90506000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610edc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f00919061530a565b50505050505090506000821115610f4157600080610f1c6106fc565b91509150610f2b828a8661302a565b9650610f38818a8661302a565b95505050610f87565b609754610f81908290610f5d90600160a01b900460020b613073565b609754610f7390600160b81b900460020b613073565b610f7c8b613488565b6134f1565b90955093505b8415610fa557609e54610fa5906001600160a01b031633308861358c565b8315610fc357609f54610fc3906001600160a01b031633308761358c565b609754610ffc908290610fdf90600160a01b900460020b613073565b609754610ff590600160b81b900460020b613073565b88886135c4565b609d54609754604051633c8a7d8d60e01b81529295506001600160a01b0390911691633c8a7d8d9161104c913091600160a01b8104600290810b92600160b81b909204900b908990600401615557565b60408051808303816000875af115801561106a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108e9190615599565b505061109a8688613686565b7f55801cfe493000b734571da1694b21e7f66b11e8ce9fdaa0524ecb59105e73e786888787876040516110d19594939291906155bd565b60405180910390a1505060016065819055509250925092565b606060378054610662906152d0565b60008060008061110860355490565b905080156111275761111b818787613753565b9195509350915061122a565b609d5460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e09291908290030181865afa158015611171573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611195919061530a565b505050505050905060006111db826111be609760149054906101000a900460020b60020b613073565b6097546111d490600160b81b900460020b613073565b8b8b6135c4565b6097546001600160801b038216955090915061122290839061120690600160a01b900460020b613073565b60975461121c90600160b81b900460020b613073565b846134f1565b909650945050505b509250925092565b3361123b610c71565b6001600160a01b0316146112615760405162461bcd60e51b8152600401610824906153c5565b6127108461ffff1611156112875760405162461bcd60e51b8152600401610824906155f4565b6127108561ffff1611156112ad5760405162461bcd60e51b8152600401610824906155f4565b6127108361ffff1611156112d35760405162461bcd60e51b8152600401610824906155f4565b6040805161ffff8781168252868116602083015285168183015263ffffffff8416606082015290517f0b7615006627cf7664941bc288d4641731f895e102f95cb8690583ad7508faa89181900360800190a161ffff85161561134a576097805461ffff60d01b1916600160d01b61ffff8816021790555b61ffff84161561136f576097805461ffff60e01b1916600160e01b61ffff8716021790555b61ffff83161561139557609780546001600160f01b0316600160f01b61ffff8616021790555b63ffffffff8216156113b7576098805463ffffffff191663ffffffff84161790555b6001600160a01b038116156113eb5760988054600160301b600160d01b031916600160301b6001600160a01b038416021790555b5050505050565b3360009081526034602090815260408083206001600160a01b0386168452909152812054828110156114745760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610824565b611483338561083c86856153b2565b5060019392505050565b60006106f23384846124b9565b8181336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114e45760405162461bcd60e51b8152600401610824906154cf565b85156114f4576114f48786613862565b609d546000906001600160a01b031663514ea4bf61151061267f565b6040518263ffffffff1660e01b815260040161152e91815260200190565b60a060405180830381865afa15801561154b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156f919061541e565b505050509050611583818989898989613abb565b609d546000906001600160a01b031663514ea4bf61159f61267f565b6040518263ffffffff1660e01b81526004016115bd91815260200190565b60a060405180830381865afa1580156115da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fe919061541e565b505050509050816001600160801b0316816001600160801b03161161165f5760405162461bcd60e51b81526020600482015260176024820152766c6971756964697479206d75737420696e63726561736560481b6044820152606401610824565b609754604051600080516020615c868339815191529161169991600160a01b8204600290810b92600160b81b9004900b908690869061548e565b60405180910390a1505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601611700576116fb6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683612f14565b611734565b6117346001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612eac565b50505050505050565b6000806000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015611795573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b9919061530a565b50505050509150506117cb8482612239565b9250925050915091565b8181336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461181f5760405162461bcd60e51b8152600401610824906154cf565b600080611832609b54609c548888612d88565b6000609b819055609c559092509050811561187e57609e5461187e906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000084612eac565b8015610d9857609f54610d98906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000083612eac565b609d546001600160a01b031633146118e55760405162461bcd60e51b815260040161082490615611565b831561190257609e54611902906001600160a01b03163386612eac565b8215610e2b57609f54610e2b906001600160a01b03163385612eac565b600061192961267f565b905090565b600054610100900460ff1680611947575060005460ff16155b6119635760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015611985576000805461ffff19166101011790555b6119926000612710615688565b61ffff168561ffff1611156119b95760405162461bcd60e51b8152600401610824906156aa565b609d80546001600160a01b0319166001600160a01b03881690811790915560408051630dfe168160e01b81529051630dfe1681916004808201926020929091908290030181865afa158015611a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a3691906156c8565b609e80546001600160a01b0319166001600160a01b03928316179055609d546040805163d21220a760e01b81529051919092169163d21220a79160048083019260209291908290030181865afa158015611a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab891906156c8565b609f80546001600160a01b039283166001600160a01b0319918216179091556098805460978054948716600160301b8102600160301b600160d01b031963ffffffff1961ffff8e16600160201b021665ffffffffffff199095169490941761012c17939093169290921790925562ffffff878116600160b81b02909316600165ffffff00000160a01b0319938916600160a01b02600165ffffff00000160a01b0390951694909417643e800c801960d31b179290921692909217179055611b7f8888613f83565b611b87614002565b8015611b99576000805461ff00191690555b5050505050505050565b33611bac610c71565b6001600160a01b031614611bd25760405162461bcd60e51b8152600401610824906153c5565b609854600160201b900461ffff1615611c135760405162461bcd60e51b815260206004820152600360248201526266656560e81b6044820152606401610824565b60008161ffff16118015611c3b5750611c2f6000612710615688565b61ffff168161ffff1611155b611c575760405162461bcd60e51b8152600401610824906156aa565b60405161ffff821681527f8a1ffb520c943072e654fc414750dbefad5b6d6311339d041901c4752782fad39060200160405180910390a16098805461ffff909216600160201b0261ffff60201b19909216919091179055565b33611cb9610c71565b6001600160a01b031614611cdf5760405162461bcd60e51b8152600401610824906153c5565b6001600160a01b038116611d465760405162461bcd60e51b815260206004820152602860248201527f4f776e61626c653a206e6577206d616e6167657220697320746865207a65726f604482015267206164647265737360c01b6064820152608401610824565b6097546040516001600160a01b03808416921690600080516020615ca683398151915290600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b609d546001600160a01b03163314611dba5760405162461bcd60e51b815260040161082490615611565b6000841315611dda57609e54610df2906001600160a01b03163386612eac565b6000831315610e2b57609f54610e2b906001600160a01b03163385612eac565b6000806000600260655403611e215760405162461bcd60e51b815260040161082490615500565b600260655584611e5c5760405162461bcd60e51b815260206004820152600660248201526506275726e20360d41b6044820152606401610824565b6000611e6760355490565b609d549091506000906001600160a01b031663514ea4bf611e8661267f565b6040518263ffffffff1660e01b8152600401611ea491815260200190565b60a060405180830381865afa158015611ec1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee5919061541e565b505050509050611ef53388614076565b6000611f0b88836001600160801b0316856141b3565b9050611f1681613488565b609754909450600090819081908190611f4590600160a01b8104600290810b91600160b81b9004900b8a6126da565b9350935093509350611f578282612a0d565b611f618282612ae6565b6040519193509150600080516020615ce683398151915290611f869084908490614e4d565b60405180910390a1609b54609954609e546040516370a0823160e01b815261203293929188916001600160a01b03909116906370a0823190611fcc903090600401614e39565b602060405180830381865afa158015611fe9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200d9190615475565b61201791906153b2565b61202191906153b2565b61202b91906153b2565b8d896141b3565b61203c90856154bc565b609c54609a54609f546040516370a0823160e01b8152939d506120799387916001600160a01b0316906370a0823190611fcc903090600401614e39565b61208390846154bc565b985089156120a257609e546120a2906001600160a01b03168c8c612eac565b88156120bf57609f546120bf906001600160a01b03168c8b612eac565b7f7239dff1718b550db7f36cbf69c665cfeb56d0e96b4fb76a5cba712961b655098b8d8c8c8c6040516120f69594939291906155bd565b60405180910390a15050505050505060016065819055509250925092565b6001600160a01b0383166121765760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610824565b6001600160a01b0382166121d75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610824565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b609d546000908190819081908190819081906001600160a01b031663514ea4bf61226161267f565b6040518263ffffffff1660e01b815260040161227f91815260200190565b60a060405180830381865afa15801561229c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c0919061541e565b94509450945094509450612305896122e9609760149054906101000a900460020b60020b613073565b6097546122ff90600160b81b900460020b613073565b886134f1565b909750955060006001600160801b0383166123236001878c8a614261565b61232d91906154bc565b90506000826001600160801b03166123486000878d8b614261565b61235291906154bc565b905061235e8282612ae6565b609b54609954609e546040516370a0823160e01b8152949650929450909290916001600160a01b0316906370a082319061239c903090600401614e39565b602060405180830381865afa1580156123b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123dd9190615475565b6123e790856154bc565b6123f191906153b2565b6123fb91906153b2565b612405908a6154bc565b609c54609a54609f546040516370a0823160e01b8152939c50919290916001600160a01b0316906370a0823190612440903090600401614e39565b602060405180830381865afa15801561245d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124819190615475565b61248b90846154bc565b61249591906153b2565b61249f91906153b2565b6124a990896154bc565b9750505050505050509250929050565b6001600160a01b03831661251d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610824565b6001600160a01b03821661257f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610824565b6001600160a01b038316600090815260336020526040902054818110156125f75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610824565b61260182826153b2565b6001600160a01b0380861660009081526033602052604080822093909355908516815290812080548492906126379084906154bc565b92505081905550826001600160a01b0316846001600160a01b0316600080516020615cc68339815191528460405161267191815260200190565b60405180910390a350505050565b6097546040516001600160601b03193060601b166020820152600160a01b820460e890811b6034830152600160b81b90920490911b6037820152600090603a0160405160208183030381529060405280519060200120905090565b609e546040516370a0823160e01b815260009182918291829182916001600160a01b0316906370a0823190612713903090600401614e39565b602060405180830381865afa158015612730573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127549190615475565b609f546040516370a0823160e01b81529192506000916001600160a01b03909116906370a082319061278a903090600401614e39565b602060405180830381865afa1580156127a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127cb9190615475565b609d5460405163a34123a760e01b815260028c810b60048301528b900b60248201526001600160801b038a1660448201529192506001600160a01b03169063a34123a79060640160408051808303816000875af1158015612830573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128549190615599565b609d546040516309e3d67b60e31b815230600482015260028d810b60248301528c900b60448201526001600160801b036064820181905260848201529298509096506001600160a01b031690634f1eb3d89060a40160408051808303816000875af11580156128c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128eb91906156e5565b5050609e546040516370a0823160e01b8152879184916001600160a01b03909116906370a0823190612921903090600401614e39565b602060405180830381865afa15801561293e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129629190615475565b61296c91906153b2565b61297691906153b2565b609f546040516370a0823160e01b8152919550869183916001600160a01b0316906370a08231906129ab903090600401614e39565b602060405180830381865afa1580156129c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ec9190615475565b6129f691906153b2565b612a0091906153b2565b9250505093509350935093565b612710612a1b600084615718565b612a259190615745565b609b6000828254612a3691906154bc565b909155506127109050612a4a600083615718565b612a549190615745565b609c6000828254612a6591906154bc565b909155505060985461271090612a8690600160201b900461ffff1684615718565b612a909190615745565b60996000828254612aa191906154bc565b909155505060985461271090612ac290600160201b900461ffff1683615718565b612acc9190615745565b609a6000828254612add91906154bc565b90915550505050565b6000806000612710609860049054906101000a900461ffff166000612b0b9190615759565b612b199061ffff1687615718565b612b239190615745565b60985490915060009061271090612b4590600160201b900461ffff1683615759565b612b539061ffff1687615718565b612b5d9190615745565b9050612b6982876153b2565b9350612b7581866153b2565b925050509250929050565b609d5460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e09291908290030181865afa158015612bca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bee919061530a565b50505050505090506000612c1b82612c088b60020b613073565b612c148b60020b613073565b8a8a6135c4565b90506001600160801b03811615612cc957609d54604051633c8a7d8d60e01b815260009182916001600160a01b0390911690633c8a7d8d90612c679030908f908f908990600401615557565b60408051808303816000875af1158015612c85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ca99190615599565b9092509050612cb8828a6153b2565b9850612cc481896153b2565b975050505b6000612cf86127108686612cdd5789612cdf565b8a5b612ce99190615718565b612cf39190615745565b61460d565b90506000811315612d1557612d128a8a8a8a858b8a614673565b50505b50505050505050505050565b33612d2a610c71565b6001600160a01b031614612d505760405162461bcd60e51b8152600401610824906153c5565b6097546040516000916001600160a01b031690600080516020615ca6833981519152908390a3609780546001600160a01b0319169055565b609e5460009081906001600160a01b0390811690841603612dfd57609754849061271090612dc190600160e01b900461ffff1689615718565b612dcb9190615745565b1015612de95760405162461bcd60e51b815260040161082490615774565b612df384876153b2565b9150849050612ea3565b609f546001600160a01b0390811690841603612e6d57609754849061271090612e3190600160e01b900461ffff1688615718565b612e3b9190615745565b1015612e595760405162461bcd60e51b815260040161082490615774565b612e6384866153b2565b9050859150612ea3565b60405162461bcd60e51b815260206004820152600b60248201526a3bb937b733903a37b5b2b760a91b6044820152606401610824565b94509492505050565b6040516001600160a01b038316602482015260448101829052612f0f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261488f565b505050565b80471015612f645760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610824565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612fb1576040519150601f19603f3d011682016040523d82523d6000602084013e612fb6565b606091505b5050905080612f0f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152608401610824565b60006130378484846141b3565b9050600082806130495761304961572f565b848609111561084757600019811061306057600080fd5b8061306a81615796565b95945050505050565b60008060008360020b1261308a578260020b613097565b8260020b613097906157af565b90506130a6620d89e7196157cb565b60020b8111156130dc5760405162461bcd60e51b81526020600482015260016024820152601560fa1b6044820152606401610824565b6000816001166000036130f357600160801b613105565b6ffffcb933bd6fad37aa2d162d1a5940015b6001600160881b03169050600282161561313a576080613135826ffff97272373d413259a46990580e213a615718565b901c90505b600482161561316457608061315f826ffff2e50f5f656932ef12357cf3c7fdcc615718565b901c90505b600882161561318e576080613189826fffe5caca7e10e4e61c3624eaa0941cd0615718565b901c90505b60108216156131b85760806131b3826fffcb9843d60f6159c9db58835c926644615718565b901c90505b60208216156131e25760806131dd826fff973b41fa98c081472e6896dfb254c0615718565b901c90505b604082161561320c576080613207826fff2ea16466c96a3843ec78b326b52861615718565b901c90505b6080821615613236576080613231826ffe5dee046a99a2a811c461f1969c3053615718565b901c90505b61010082161561326157608061325c826ffcbe86c7900a88aedcffc83b479aa3a4615718565b901c90505b61020082161561328c576080613287826ff987a7253ac413176f2b074cf7815e54615718565b901c90505b6104008216156132b75760806132b2826ff3392b0822b70005940c7a398e4b70f3615718565b901c90505b6108008216156132e25760806132dd826fe7159475a2c29b7443b29c7fa6e889d9615718565b901c90505b61100082161561330d576080613308826fd097f3bdfd2022b8845ad8f792aa5825615718565b901c90505b612000821615613338576080613333826fa9f746462d870fdf8a65dc1f90e061e5615718565b901c90505b61400082161561336357608061335e826f70d869a156d2a1b890bb3df62baf32f7615718565b901c90505b61800082161561338e576080613389826f31be135f97d08fd981231505542fcfa6615718565b901c90505b620100008216156133ba5760806133b5826f09aa508b5b7a84e1c677de54f3e99bc9615718565b901c90505b620200008216156133e55760806133e0826e5d6af8dedb81196699c329225ee604615718565b901c90505b6204000082161561340f57608061340a826d2216e584f5fa1ea926041bedfe98615718565b901c90505b62080000821615613437576080613432826b048a170391f7dc42444e8fa2615718565b901c90505b60008460020b13156134525761344f81600019615745565b90505b613460600160201b826157ed565b1561346c57600161346f565b60005b6134809060ff16602083901c6154bc565b949350505050565b6000600160801b82106134ed5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663238206269747360c81b6064820152608401610824565b5090565b600080836001600160a01b0316856001600160a01b03161115613512579293925b846001600160a01b0316866001600160a01b03161161353d57613536858585614961565b9150612ea3565b836001600160a01b0316866001600160a01b0316101561357657613562868585614961565b915061356f8587856149cb565b9050612ea3565b6135818585856149cb565b905094509492505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610e2b9085906323b872dd60e01b90608401612ed8565b6000836001600160a01b0316856001600160a01b031611156135e4579293925b846001600160a01b0316866001600160a01b03161161360f57613608858585614a15565b905061306a565b836001600160a01b0316866001600160a01b03161015613671576000613636878686614a15565b90506000613645878986614a7f565b9050806001600160801b0316826001600160801b0316106136665780613668565b815b9250505061306a565b61367c858584614a7f565b9695505050505050565b6001600160a01b0382166136dc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610824565b80603560008282546136ee91906154bc565b90915550506001600160a01b0382166000908152603360205260408120805483929061371b9084906154bc565b90915550506040518181526001600160a01b03831690600090600080516020615cc68339815191529060200160405180910390a35050565b60008060008060006137636106fc565b915091508160001480156137775750600081115b1561378e576137878689836141b3565b925061383d565b8015801561379c5750600082115b156137ac576137878789846141b3565b811580156137b8575080155b156137df5760405162461bcd60e51b81526020600482015260006024820152604401610824565b60006137ec888a856141b3565b905060006137fb888b856141b3565b905060008211801561380d5750600081115b6138295760405162461bcd60e51b815260040161082490615537565b8082106138365780613838565b815b945050505b61384883838a61302a565b945061385583828a61302a565b9350505093509350939050565b6040805160028082526060820183526000926020830190803683375050609854825192935063ffffffff16918391506000906138a0576138a0615801565b602002602001019063ffffffff16908163ffffffff16815250506000816001815181106138cf576138cf615801565b63ffffffff90921660209283029190910190910152609d5460405163883bdbfd60e01b81526000916001600160a01b03169063883bdbfd90613915908590600401615817565b600060405180830381865afa158015613932573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261395a919081019061590a565b509050805160021461399a5760405162461bcd60e51b815260206004820152600960248201526830b93930bc903632b760b91b6044820152606401610824565b6098548151600091829163ffffffff90911660060b90849083906139c0576139c0615801565b6020026020010151846001815181106139db576139db615801565b60200260200101510360060b816139f4576139f461572f565b059050613a038160020b613073565b6097549092506000915061271090613a2690600160f01b900461ffff16846159cc565b613a3091906159fe565b90508415613a7857613a428183615a24565b6001600160a01b0316866001600160a01b03161015613a735760405162461bcd60e51b815260040161082490615a44565b613ab3565b613a828183615a6b565b6001600160a01b0316866001600160a01b03161115613ab35760405162461bcd60e51b815260040161082490615a44565b505050505050565b609b54609954609e546040516370a0823160e01b815260009392916001600160a01b0316906370a0823190613af4903090600401614e39565b602060405180830381865afa158015613b11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b359190615475565b613b3f91906153b2565b613b4991906153b2565b609c54609a54609f546040516370a0823160e01b81529394506000936001600160a01b03909116906370a0823190613b85903090600401614e39565b602060405180830381865afa158015613ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bc69190615475565b613bd091906153b2565b613bda91906153b2565b6097549091506000908190613c0590600160a01b8104600290810b91600160b81b9004900b8c6126da565b935093505050613c158282612a0d565b613c1f8282612ae6565b6040519193509150600080516020615ce683398151915290613c449084908490614e4d565b60405180910390a1613c5684836154bc565b9150613c6283826154bc565b609e549091506001600160a01b0390811690861603613def57609754869061271090613c9990600160d01b900461ffff1685615718565b613ca39190615745565b1015613cc15760405162461bcd60e51b815260040161082490615774565b609b54609954609e546040516370a0823160e01b8152899392916001600160a01b0316906370a0823190613cf9903090600401614e39565b602060405180830381865afa158015613d16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d3a9190615475565b613d4491906153b2565b613d4e91906153b2565b613d5891906153b2565b609c54609a54609f546040516370a0823160e01b8152939750919290916001600160a01b0316906370a0823190613d93903090600401614e39565b602060405180830381865afa158015613db0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dd49190615475565b613dde91906153b2565b613de891906153b2565b9250613f5c565b609f546001600160a01b0390811690861603612e6d57609754869061271090613e2390600160d01b900461ffff1684615718565b613e2d9190615745565b1015613e4b5760405162461bcd60e51b815260040161082490615774565b609b54609954609e546040516370a0823160e01b81526001600160a01b03909116906370a0823190613e81903090600401614e39565b602060405180830381865afa158015613e9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ec29190615475565b613ecc91906153b2565b613ed691906153b2565b609c54609a54609f546040516370a0823160e01b815293975089936001600160a01b03909116906370a0823190613f11903090600401614e39565b602060405180830381865afa158015613f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f529190615475565b613dd491906153b2565b609754612d1590600160a01b8104600290810b91600160b81b9004900b86868d8d8d612b80565b600054610100900460ff1680613f9c575060005460ff16155b613fb85760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015613fda576000805461ffff19166101011790555b613fe2614ab5565b613fec8383614b1f565b8015612f0f576000805461ff0019169055505050565b600054610100900460ff168061401b575060005460ff16155b6140375760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614059576000805461ffff19166101011790555b614061614ba6565b8015614073576000805461ff00191690555b50565b6001600160a01b0382166140d65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610824565b6001600160a01b0382166000908152603360205260409020548181101561414a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610824565b61415482826153b2565b6001600160a01b038416600090815260336020526040812091909155603580548492906141829084906153b2565b90915550506040518281526000906001600160a01b03851690600080516020615cc68339815191529060200161222c565b60008080600019858709858702925082811083820303915050806000036141ec57600084116141e157600080fd5b508290049050610847565b8084116141f857600080fd5b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b600080600080871561440157609d60009054906101000a90046001600160a01b03166001600160a01b031663f30583996040518163ffffffff1660e01b8152600401602060405180830381865afa1580156142c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142e49190615475565b609d5460975460405163f30dba9360e01b81529293506001600160a01b039091169163f30dba939161432491600160a01b90910460020b90600401614f3e565b61010060405180830381865afa158015614342573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143669190615a8b565b5050609d5460975460405163f30dba9360e01b8152959a506001600160a01b03909116965063f30dba9395506143af94600160b81b90910460020b93506004019150614f3e9050565b61010060405180830381865afa1580156143cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143f19190615a8b565b5093975061458f95505050505050565b609d60009054906101000a90046001600160a01b03166001600160a01b031663461413196040518163ffffffff1660e01b8152600401602060405180830381865afa158015614454573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144789190615475565b609d5460975460405163f30dba9360e01b81529293506001600160a01b039091169163f30dba93916144b891600160a01b90910460020b90600401614f3e565b61010060405180830381865afa1580156144d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144fa9190615a8b565b5050609d5460975460405163f30dba9360e01b8152949a506001600160a01b03909116965063f30dba9395506145429450600160b81b900460020b926004019150614f3e9050565b61010060405180830381865afa158015614560573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145849190615a8b565b509297505050505050505b609754600090600160a01b9004600290810b9088900b126145b15750826145b6565b508281035b609754600090600160b81b9004600290810b9089900b12156145d95750826145de565b508282035b8183038190036145fe6001600160801b0389168b8303600160801b6141b3565b9b9a5050505050505050505050565b6000600160ff1b82106134ed5760405162461bcd60e51b815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604482015267371034b73a191a9b60c11b6064820152608401610824565b609d54604051630251596160e31b81523060048201528215156024820152604481018590526001600160a01b03848116606483015260a06084830152600060a4830181905292839283928392169063128acb089060c40160408051808303816000875af11580156146e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061470c9190615599565b915091508161471a8a61460d565b6147249190615b27565b9350806147308961460d565b61473a9190615b27565b92506000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015614791573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147b5919061530a565b505050505050905060006147e2826147cf8f60020b613073565b6147db8f60020b613073565b89896135c4565b90506001600160801b0381161561487f57609d60009054906101000a90046001600160a01b03166001600160a01b0316633c8a7d8d308f8f856040518563ffffffff1660e01b815260040161483a9493929190615557565b60408051808303816000875af1158015614858573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061487c9190615599565b50505b5050505097509795505050505050565b60006148e4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614c169092919063ffffffff16565b805190915015612f0f57808060200190518101906149029190615b47565b612f0f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610824565b6000826001600160a01b0316846001600160a01b03161115614981579192915b6001600160a01b0384166149c1600160601b600160e01b03606085901b166149a98787615a24565b6001600160a01b0316866001600160a01b03166141b3565b6134809190615745565b6000826001600160a01b0316846001600160a01b031611156149eb579192915b6134806001600160801b038316614a028686615a24565b6001600160a01b0316600160601b6141b3565b6000826001600160a01b0316846001600160a01b03161115614a35579192915b6000614a58856001600160a01b0316856001600160a01b0316600160601b6141b3565b905061306a614a7a8483614a6c8989615a24565b6001600160a01b03166141b3565b614c25565b6000826001600160a01b0316846001600160a01b03161115614a9f579192915b613480614a7a83600160601b614a6c8888615a24565b600054610100900460ff1680614ace575060005460ff16155b614aea5760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614061576000805461ffff19166101011790558015614073576000805461ff001916905550565b600054610100900460ff1680614b38575060005460ff16155b614b545760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614b76576000805461ffff19166101011790555b6036614b828482615baa565b506037614b8f8382615baa565b508015612f0f576000805461ff0019169055505050565b600054610100900460ff1680614bbf575060005460ff16155b614bdb5760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614bfd576000805461ffff19166101011790555b60016065558015614073576000805461ff001916905550565b60606134808484600085614c40565b806001600160801b0381168114614c3b57600080fd5b919050565b606082471015614ca15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610824565b843b614cef5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610824565b600080866001600160a01b03168587604051614d0b9190615c69565b60006040518083038185875af1925050503d8060008114614d48576040519150601f19603f3d011682016040523d82523d6000602084013e614d4d565b606091505b5091509150614d5d828286614d68565b979650505050505050565b60608315614d77575081610847565b825115614d875782518084602001fd5b8160405162461bcd60e51b81526004016108249190614dc5565b60005b83811015614dbc578181015183820152602001614da4565b50506000910152565b6020815260008251806020840152614de4816040850160208701614da1565b601f01601f19169190910160400192915050565b6001600160a01b038116811461407357600080fd5b60008060408385031215614e2057600080fd5b8235614e2b81614df8565b946020939093013593505050565b6001600160a01b0391909116815260200190565b918252602082015260400190565b600080600060608486031215614e7057600080fd5b8335614e7b81614df8565b92506020840135614e8b81614df8565b929592945050506040919091013590565b8060020b811461407357600080fd5b801515811461407357600080fd5b600080600080600060a08688031215614ed157600080fd5b8535614edc81614e9c565b94506020860135614eec81614e9c565b93506040860135614efc81614df8565b9250606086013591506080860135614f1381614eab565b809150509295509295909350565b600060208284031215614f3357600080fd5b813561084781614df8565b60029190910b815260200190565b60008060408385031215614f5f57600080fd5b823591506020830135614f7181614df8565b809150509250929050565b60008060408385031215614f8f57600080fd5b50508035926020909101359150565b61ffff8116811461407357600080fd5b63ffffffff8116811461407357600080fd5b600080600080600060a08688031215614fd857600080fd5b8535614fe381614f9e565b94506020860135614ff381614f9e565b9350604086013561500381614f9e565b9250606086013561501381614fae565b91506080860135614f1381614df8565b600080600080600060a0868803121561503b57600080fd5b853561504681614df8565b945060208601359350604086013561505d81614eab565b9250606086013591506080860135614f1381614df8565b60008083601f84011261508657600080fd5b5081356001600160401b0381111561509d57600080fd5b6020830191508360208285010111156150b557600080fd5b9250929050565b600080600080606085870312156150d257600080fd5b843593506020850135925060408501356001600160401b038111156150f657600080fd5b61510287828801615074565b95989497509550505050565b6000806040838503121561512157600080fd5b823561512c81614df8565b91506020830135614f7181614df8565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561517a5761517a61513c565b604052919050565b600082601f83011261519357600080fd5b81356001600160401b038111156151ac576151ac61513c565b6151bf601f8201601f1916602001615152565b8181528460208386010111156151d457600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060e0888a03121561520c57600080fd5b87356001600160401b038082111561522357600080fd5b61522f8b838c01615182565b985060208a013591508082111561524557600080fd5b506152528a828b01615182565b965050604088013561526381614df8565b9450606088013561527381614f9e565b9350608088013561528381614e9c565b925060a088013561529381614e9c565b915060c08801356152a381614df8565b8091505092959891949750929550565b6000602082840312156152c557600080fd5b813561084781614f9e565b600181811c908216806152e457607f821691505b60208210810361530457634e487b7160e01b600052602260045260246000fd5b50919050565b600080600080600080600060e0888a03121561532557600080fd5b875161533081614df8565b602089015190975061534181614e9c565b604089015190965061535281614f9e565b606089015190955061536381614f9e565b608089015190945061537481614f9e565b60a089015190935060ff8116811461538b57600080fd5b60c08901519092506152a381614eab565b634e487b7160e01b600052601160045260246000fd5b818103818111156106f6576106f661539c565b60208082526022908201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d616e616760408201526132b960f11b606082015260800190565b80516001600160801b0381168114614c3b57600080fd5b600080600080600060a0868803121561543657600080fd5b61543f86615407565b9450602086015193506040860151925061545b60608701615407565b915061546960808701615407565b90509295509295909350565b60006020828403121561548757600080fd5b5051919050565b600294850b81529290930b60208301526001600160801b039081166040830152909116606082015260800190565b808201808211156106f6576106f661539c565b60208082526017908201527647656c61746f666965643a204f6e6c792067656c61746f60481b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526006908201526506d696e7420360d41b604082015260600190565b6001600160a01b03949094168452600292830b6020850152910b60408301526001600160801b0316606082015260a06080820181905260009082015260c00190565b600080604083850312156155ac57600080fd5b505080516020909101519092909150565b6001600160a01b039590951685526020850193909352604084019190915260608301526001600160801b0316608082015260a00190565b60208082526003908201526242505360e81b604082015260600190565b6020808252600f908201526e31b0b6363130b1b59031b0b63632b960891b604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b61ffff8281168282160390808211156156a3576156a361539c565b5092915050565b6020808252600490820152636d42505360e01b604082015260600190565b6000602082840312156156da57600080fd5b815161084781614df8565b600080604083850312156156f857600080fd5b61570183615407565b915061570f60208401615407565b90509250929050565b80820281158282048414176106f6576106f661539c565b634e487b7160e01b600052601260045260246000fd5b6000826157545761575461572f565b500490565b61ffff8181168382160190808211156156a3576156a361539c565b602080825260089082015267686967682066656560c01b604082015260600190565b6000600182016157a8576157a861539c565b5060010190565b6000600160ff1b82016157c4576157c461539c565b5060000390565b60008160020b627fffff1981036157e4576157e461539c565b60000392915050565b6000826157fc576157fc61572f565b500690565b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561585557835163ffffffff1683529284019291840191600101615833565b50909695505050505050565b60006001600160401b0382111561587a5761587a61513c565b5060051b60200190565b8051600681900b8114614c3b57600080fd5b600082601f8301126158a757600080fd5b815160206158bc6158b783615861565b615152565b82815260059290921b840181019181810190868411156158db57600080fd5b8286015b848110156158ff5780516158f281614df8565b83529183019183016158df565b509695505050505050565b6000806040838503121561591d57600080fd5b82516001600160401b038082111561593457600080fd5b818501915085601f83011261594857600080fd5b815160206159586158b783615861565b82815260059290921b8401810191818101908984111561597757600080fd5b948201945b8386101561599c5761598d86615884565b8252948201949082019061597c565b918801519196509093505050808211156159b557600080fd5b506159c285828601615896565b9150509250929050565b6001600160a01b038281168282168181028316929181158285048214176159f5576159f561539c565b50505092915050565b60006001600160a01b0383811680615a1857615a1861572f565b92169190910492915050565b6001600160a01b038281168282160390808211156156a3576156a361539c565b6020808252600d908201526c6869676820736c69707061676560981b604082015260600190565b6001600160a01b038181168382160190808211156156a3576156a361539c565b600080600080600080600080610100898b031215615aa857600080fd5b615ab189615407565b9750602089015180600f0b8114615ac757600080fd5b60408a015160608b015191985096509450615ae460808a01615884565b935060a0890151615af481614df8565b60c08a0151909350615b0581614fae565b60e08a0151909250615b1681614eab565b809150509295985092959890939650565b81810360008312801583831316838312821617156156a3576156a361539c565b600060208284031215615b5957600080fd5b815161084781614eab565b601f821115612f0f57600081815260208120601f850160051c81016020861015615b8b5750805b601f850160051c820191505b81811015613ab357828155600101615b97565b81516001600160401b03811115615bc357615bc361513c565b615bd781615bd184546152d0565b84615b64565b602080601f831160018114615c0c5760008415615bf45750858301515b600019600386901b1c1916600185901b178555613ab3565b600085815260208120601f198616915b82811015615c3b57888601518255948401946001909101908401615c1c565b5085821015615c595787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008251615c7b818460208701614da1565b919091019291505056fec749f9ae947d4734cf1569606a8a347391ae94a063478aa853aeff48ac5f99e88be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efc28ad1de9c0c32e5394ba60323e44d8d9536312236a47231772e448a3e49de42a2646970667358221220a11bde499516b0a2e8e737821292815fcefc66549a9729f24ea128d34ed6027364736f6c63430008130033", + "devdoc": { + "events": { + "Approval(address,address,uint256)": { + "details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance." + }, + "Transfer(address,address,uint256)": { + "details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero." + } + }, + "kind": "dev", + "methods": { + "allowance(address,address)": { + "details": "See {IERC20-allowance}." + }, + "approve(address,uint256)": { + "details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address." + }, + "balanceOf(address)": { + "details": "See {IERC20-balanceOf}." + }, + "burn(uint256,address)": { + "params": { + "burnAmount": "The number of G-UNI tokens to burn", + "receiver": "The account to receive the underlying amounts of token0 and token1" + }, + "returns": { + "amount0": "amount of token0 transferred to receiver for burning `burnAmount`", + "amount1": "amount of token1 transferred to receiver for burning `burnAmount`", + "liquidityBurned": "amount of liquidity removed from the underlying Uniswap V3 position" + } + }, + "decimals()": { + "details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}." + }, + "decreaseAllowance(address,uint256)": { + "details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`." + }, + "executiveRebalance(int24,int24,uint160,uint256,bool)": { + "details": "When changing the range the inventory of token0 and token1 may be rebalanced with a swap to deposit as much liquidity as possible into the new position. Swap parameters can be computed by simulating the whole operation: remove all liquidity, deposit as much as possible into new position, then observe how much of token0 or token1 is leftover. Swap a proportion of this leftover to deposit more liquidity into the position, since any leftover will be unused and sit idle until the next rebalance.", + "params": { + "newLowerTick": "The new lower bound of the position's range", + "newUpperTick": "The new upper bound of the position's range", + "swapAmountBPS": "amount of token to swap as proportion of total. Pass 0 to ignore swap.", + "swapThresholdPrice": "slippage parameter on the swap as a max or min sqrtPriceX96", + "zeroForOne": "Which token to input into the swap (true = token0, false = token1)" + } + }, + "getMintAmounts(uint256,uint256)": { + "params": { + "amount0Max": "The maximum amount of token1 to forward on mint" + }, + "returns": { + "amount0": "actual amount of token0 to forward when minting `mintAmount`", + "amount1": "actual amount of token1 to forward when minting `mintAmount`", + "mintAmount": "maximum number of G-UNI tokens to mint" + } + }, + "getUnderlyingBalances()": { + "returns": { + "amount0Current": "current total underlying balance of token0", + "amount1Current": "current total underlying balance of token1" + } + }, + "increaseAllowance(address,uint256)": { + "details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address." + }, + "initialize(string,string,address,uint16,int24,int24,address)": { + "params": { + "_lowerTick": "initial upperTick (only changeable with executiveRebalance)", + "_managerFeeBPS": "proportion of fees earned that go to manager treasury note that the 4 above params are NOT UPDATEABLE AFTER INILIALIZATION", + "_manager_": "address of manager (ownership can be transferred)", + "_name": "name of G-UNI token", + "_pool": "address of Uniswap V3 pool", + "_symbol": "symbol of G-UNI token" + } + }, + "initializeManagerFee(uint16)": { + "params": { + "_managerFeeBPS": "proportion of fees earned that are credited to manager in Basis Points" + } + }, + "manager()": { + "details": "Returns the address of the current manager." + }, + "mint(uint256,address)": { + "details": "to compute the amouint of tokens necessary to mint `mintAmount` see getMintAmounts", + "params": { + "mintAmount": "The number of G-UNI tokens to mint", + "receiver": "The account to receive the minted tokens" + }, + "returns": { + "amount0": "amount of token0 transferred from msg.sender to mint `mintAmount`", + "amount1": "amount of token1 transferred from msg.sender to mint `mintAmount`", + "liquidityMinted": "amount of liquidity added to the underlying Uniswap V3 position" + } + }, + "name()": { + "details": "Returns the name of the token." + }, + "renounceOwnership()": { + "details": "Leaves the contract without manager. It will not be possible to call `onlyManager` functions anymore. Can only be called by the current manager. NOTE: Renouncing ownership will leave the contract without an manager, thereby removing any functionality that is only available to the manager." + }, + "symbol()": { + "details": "Returns the symbol of the token, usually a shorter version of the name." + }, + "totalSupply()": { + "details": "See {IERC20-totalSupply}." + }, + "transfer(address,uint256)": { + "details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`." + }, + "transferFrom(address,address,uint256)": { + "details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`." + }, + "transferOwnership(address)": { + "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current manager." + }, + "updateGelatoParams(uint16,uint16,uint16,uint32,address)": { + "params": { + "newRebalanceBPS": "controls frequency of gelato rebalances: gas fee to execute rebalance can be gelatoRebalanceBPS proportion of fees earned since last rebalance", + "newSlippageBPS": "maximum slippage on swaps during gelato rebalance", + "newSlippageInterval": "length of time for TWAP used in computing slippage on swaps", + "newTreasury": "address where managerFee withdrawals are sent", + "newWithdrawBPS": "controls frequency of gelato withdrawals: gas fee to execute withdrawal can be gelatoWithdrawBPS proportion of fees accrued since last withdraw" + } + } + }, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "burn(uint256,address)": { + "notice": "burn G-UNI tokens (fractional shares of a Uniswap V3 position) and receive tokens" + }, + "executiveRebalance(int24,int24,uint160,uint256,bool)": { + "notice": "Change the range of underlying UniswapV3 position, only manager can call" + }, + "getMintAmounts(uint256,uint256)": { + "notice": "compute maximum G-UNI tokens that can be minted from `amount0Max` and `amount1Max`" + }, + "getUnderlyingBalances()": { + "notice": "compute total underlying holdings of the G-UNI token supply includes current liquidity invested in uniswap position, current fees earned and any uninvested leftover (but does not include manager or gelato fees accrued)" + }, + "initialize(string,string,address,uint16,int24,int24,address)": { + "notice": "initialize storage variables on a new G-UNI pool, only called once" + }, + "initializeManagerFee(uint16)": { + "notice": "initializeManagerFee sets a managerFee, only manager can call. If a manager fee was not set in the initialize function it can be set here but ONLY ONCE- after it is set to a non-zero value, managerFee can never be set again." + }, + "mint(uint256,address)": { + "notice": "mint fungible G-UNI tokens, fractional shares of a Uniswap V3 position" + }, + "rebalance(uint160,uint256,bool,uint256,address)": { + "notice": "Reinvest fees earned into underlying position, only gelato executors can call Position bounds CANNOT be altered by gelato, only manager may via executiveRebalance. Frequency of rebalance configured with gelatoRebalanceBPS, alterable by manager." + }, + "uniswapV3MintCallback(uint256,uint256,bytes)": { + "notice": "Uniswap V3 callback fn, called back on pool.mint" + }, + "uniswapV3SwapCallback(int256,int256,bytes)": { + "notice": "Uniswap v3 callback fn, called back on pool.swap" + }, + "updateGelatoParams(uint16,uint16,uint16,uint32,address)": { + "notice": "change configurable parameters, only manager can call" + }, + "withdrawGelatoBalance(uint256,address)": { + "notice": "withdraw gelato fees accrued, only gelato executors can call. Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager." + }, + "withdrawManagerBalance(uint256,address)": { + "notice": "withdraw manager fees accrued, only gelato executors can call. Target account to receive fees is managerTreasury, alterable by manager. Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager." + } + }, + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 5, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_bool" + }, + { + "astId": 8, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool" + }, + { + "astId": 784, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 122, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_balances", + "offset": 0, + "slot": "51", + "type": "t_mapping(t_address,t_uint256)" + }, + { + "astId": 128, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_allowances", + "offset": 0, + "slot": "52", + "type": "t_mapping(t_address,t_mapping(t_address,t_uint256))" + }, + { + "astId": 130, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_totalSupply", + "offset": 0, + "slot": "53", + "type": "t_uint256" + }, + { + "astId": 132, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_name", + "offset": 0, + "slot": "54", + "type": "t_string_storage" + }, + { + "astId": 134, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_symbol", + "offset": 0, + "slot": "55", + "type": "t_string_storage" + }, + { + "astId": 636, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "__gap", + "offset": 0, + "slot": "56", + "type": "t_array(t_uint256)45_storage" + }, + { + "astId": 59, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_status", + "offset": 0, + "slot": "101", + "type": "t_uint256" + }, + { + "astId": 102, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "__gap", + "offset": 0, + "slot": "102", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 6441, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_manager", + "offset": 0, + "slot": "151", + "type": "t_address" + }, + { + "astId": 6031, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "lowerTick", + "offset": 20, + "slot": "151", + "type": "t_int24" + }, + { + "astId": 6033, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "upperTick", + "offset": 23, + "slot": "151", + "type": "t_int24" + }, + { + "astId": 6035, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoRebalanceBPS", + "offset": 26, + "slot": "151", + "type": "t_uint16" + }, + { + "astId": 6037, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoWithdrawBPS", + "offset": 28, + "slot": "151", + "type": "t_uint16" + }, + { + "astId": 6039, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoSlippageBPS", + "offset": 30, + "slot": "151", + "type": "t_uint16" + }, + { + "astId": 6041, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoSlippageInterval", + "offset": 0, + "slot": "152", + "type": "t_uint32" + }, + { + "astId": 6043, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "managerFeeBPS", + "offset": 4, + "slot": "152", + "type": "t_uint16" + }, + { + "astId": 6045, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "managerTreasury", + "offset": 6, + "slot": "152", + "type": "t_address" + }, + { + "astId": 6047, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "managerBalance0", + "offset": 0, + "slot": "153", + "type": "t_uint256" + }, + { + "astId": 6049, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "managerBalance1", + "offset": 0, + "slot": "154", + "type": "t_uint256" + }, + { + "astId": 6051, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoBalance0", + "offset": 0, + "slot": "155", + "type": "t_uint256" + }, + { + "astId": 6053, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoBalance1", + "offset": 0, + "slot": "156", + "type": "t_uint256" + }, + { + "astId": 6056, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "pool", + "offset": 0, + "slot": "157", + "type": "t_contract(IUniswapV3Pool)2339" + }, + { + "astId": 6059, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "token0", + "offset": 0, + "slot": "158", + "type": "t_contract(IERC20)863" + }, + { + "astId": 6062, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "token1", + "offset": 0, + "slot": "159", + "type": "t_contract(IERC20)863" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)45_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[45]", + "numberOfBytes": "1440" + }, + "t_array(t_uint256)49_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_contract(IERC20)863": { + "encoding": "inplace", + "label": "contract IERC20", + "numberOfBytes": "20" + }, + "t_contract(IUniswapV3Pool)2339": { + "encoding": "inplace", + "label": "contract IUniswapV3Pool", + "numberOfBytes": "20" + }, + "t_int24": { + "encoding": "inplace", + "label": "int24", + "numberOfBytes": "3" + }, + "t_mapping(t_address,t_mapping(t_address,t_uint256))": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => mapping(address => uint256))", + "numberOfBytes": "32", + "value": "t_mapping(t_address,t_uint256)" + }, + "t_mapping(t_address,t_uint256)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_string_storage": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_uint16": { + "encoding": "inplace", + "label": "uint16", + "numberOfBytes": "2" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint32": { + "encoding": "inplace", + "label": "uint32", + "numberOfBytes": "4" + } + } + } +} \ No newline at end of file diff --git a/lib/g-uni-v1-core/deployments/blastSepolia/GUniPool.json b/lib/g-uni-v1-core/deployments/blastSepolia/GUniPool.json new file mode 100644 index 00000000..d2b5797e --- /dev/null +++ b/lib/g-uni-v1-core/deployments/blastSepolia/GUniPool.json @@ -0,0 +1,1649 @@ +{ + "address": "0xdde18C0c3B637F4BA02f5567a671F5e28b7404e7", + "abi": [ + { + "inputs": [ + { + "internalType": "address payable", + "name": "_gelato", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "receiver", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "burnAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount0Out", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount1Out", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidityBurned", + "type": "uint128" + } + ], + "name": "Burned", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "feesEarned0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "feesEarned1", + "type": "uint256" + } + ], + "name": "FeesEarned", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "receiver", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "mintAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount0In", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount1In", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidityMinted", + "type": "uint128" + } + ], + "name": "Minted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousManager", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newManager", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "int24", + "name": "lowerTick_", + "type": "int24" + }, + { + "indexed": false, + "internalType": "int24", + "name": "upperTick_", + "type": "int24" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidityBefore", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidityAfter", + "type": "uint128" + } + ], + "name": "Rebalance", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint16", + "name": "managerFee", + "type": "uint16" + } + ], + "name": "SetManagerFee", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oldAdminTreasury", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdminTreasury", + "type": "address" + } + ], + "name": "UpdateAdminTreasury", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint16", + "name": "gelatoRebalanceBPS", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "gelatoWithdrawBPS", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "gelatoSlippageBPS", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "gelatoSlippageInterval", + "type": "uint32" + } + ], + "name": "UpdateGelatoParams", + "type": "event" + }, + { + "inputs": [], + "name": "GELATO", + "outputs": [ + { + "internalType": "address payable", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "spender", + "type": "address" + } + ], + "name": "allowance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "burnAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "receiver", + "type": "address" + } + ], + "name": "burn", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + }, + { + "internalType": "uint128", + "name": "liquidityBurned", + "type": "uint128" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "decimals", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "subtractedValue", + "type": "uint256" + } + ], + "name": "decreaseAllowance", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int24", + "name": "newLowerTick", + "type": "int24" + }, + { + "internalType": "int24", + "name": "newUpperTick", + "type": "int24" + }, + { + "internalType": "uint160", + "name": "swapThresholdPrice", + "type": "uint160" + }, + { + "internalType": "uint256", + "name": "swapAmountBPS", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "zeroForOne", + "type": "bool" + } + ], + "name": "executiveRebalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoBalance0", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoBalance1", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoFeeBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoRebalanceBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoSlippageBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoSlippageInterval", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoWithdrawBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount0Max", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1Max", + "type": "uint256" + } + ], + "name": "getMintAmounts", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "mintAmount", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getPositionID", + "outputs": [ + { + "internalType": "bytes32", + "name": "positionID", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getUnderlyingBalances", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0Current", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1Current", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint160", + "name": "sqrtRatioX96", + "type": "uint160" + } + ], + "name": "getUnderlyingBalancesAtPrice", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0Current", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1Current", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "addedValue", + "type": "uint256" + } + ], + "name": "increaseAllowance", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "_name", + "type": "string" + }, + { + "internalType": "string", + "name": "_symbol", + "type": "string" + }, + { + "internalType": "address", + "name": "_pool", + "type": "address" + }, + { + "internalType": "uint16", + "name": "_managerFeeBPS", + "type": "uint16" + }, + { + "internalType": "int24", + "name": "_lowerTick", + "type": "int24" + }, + { + "internalType": "int24", + "name": "_upperTick", + "type": "int24" + }, + { + "internalType": "address", + "name": "_manager_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint16", + "name": "_managerFeeBPS", + "type": "uint16" + } + ], + "name": "initializeManagerFee", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "lowerTick", + "outputs": [ + { + "internalType": "int24", + "name": "", + "type": "int24" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "manager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "managerBalance0", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "managerBalance1", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "managerFeeBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "managerTreasury", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "mintAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "receiver", + "type": "address" + } + ], + "name": "mint", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + }, + { + "internalType": "uint128", + "name": "liquidityMinted", + "type": "uint128" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pool", + "outputs": [ + { + "internalType": "contract IUniswapV3Pool", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint160", + "name": "swapThresholdPrice", + "type": "uint160" + }, + { + "internalType": "uint256", + "name": "swapAmountBPS", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "zeroForOne", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "paymentToken", + "type": "address" + } + ], + "name": "rebalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "token0", + "outputs": [ + { + "internalType": "contract IERC20", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "token1", + "outputs": [ + { + "internalType": "contract IERC20", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transfer", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount0Owed", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1Owed", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "uniswapV3MintCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int256", + "name": "amount0Delta", + "type": "int256" + }, + { + "internalType": "int256", + "name": "amount1Delta", + "type": "int256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "uniswapV3SwapCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint16", + "name": "newRebalanceBPS", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "newWithdrawBPS", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "newSlippageBPS", + "type": "uint16" + }, + { + "internalType": "uint32", + "name": "newSlippageInterval", + "type": "uint32" + }, + { + "internalType": "address", + "name": "newTreasury", + "type": "address" + } + ], + "name": "updateGelatoParams", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "upperTick", + "outputs": [ + { + "internalType": "int24", + "name": "", + "type": "int24" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "feeToken", + "type": "address" + } + ], + "name": "withdrawGelatoBalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "feeToken", + "type": "address" + } + ], + "name": "withdrawManagerBalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "transactionHash": "0x6d39c836321bf66ba9109eed55a5780dd6f1f54f0d93cc64ed28bd55209f9386", + "receipt": { + "to": null, + "from": "0xB47C8e4bEb28af80eDe5E5bF474927b110Ef2c0e", + "contractAddress": "0xdde18C0c3B637F4BA02f5567a671F5e28b7404e7", + "transactionIndex": 1, + "gasUsed": "5209546", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x897a336a953079aaaa4ea22700f30bc6535131c6a57606c3d8cdc2541affae33", + "transactionHash": "0x6d39c836321bf66ba9109eed55a5780dd6f1f54f0d93cc64ed28bd55209f9386", + "logs": [], + "blockNumber": 6845439, + "cumulativeGasUsed": "5264652", + "status": 1, + "byzantium": true + }, + "args": [ + "0xB47C8e4bEb28af80eDe5E5bF474927b110Ef2c0e" + ], + "solcInputHash": "f1f932b5297d788fce5c0abb03e1e395", + "metadata": "{\"compiler\":{\"version\":\"0.8.19+commit.7dd6d404\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"_gelato\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"burnAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0Out\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1Out\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityBurned\",\"type\":\"uint128\"}],\"name\":\"Burned\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feesEarned0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feesEarned1\",\"type\":\"uint256\"}],\"name\":\"FeesEarned\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"mintAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityMinted\",\"type\":\"uint128\"}],\"name\":\"Minted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousManager\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newManager\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"lowerTick_\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"upperTick_\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityBefore\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityAfter\",\"type\":\"uint128\"}],\"name\":\"Rebalance\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"managerFee\",\"type\":\"uint16\"}],\"name\":\"SetManagerFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldAdminTreasury\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdminTreasury\",\"type\":\"address\"}],\"name\":\"UpdateAdminTreasury\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"gelatoRebalanceBPS\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"gelatoWithdrawBPS\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"gelatoSlippageBPS\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"gelatoSlippageInterval\",\"type\":\"uint32\"}],\"name\":\"UpdateGelatoParams\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"GELATO\",\"outputs\":[{\"internalType\":\"address payable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"burnAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"liquidityBurned\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"newLowerTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"newUpperTick\",\"type\":\"int24\"},{\"internalType\":\"uint160\",\"name\":\"swapThresholdPrice\",\"type\":\"uint160\"},{\"internalType\":\"uint256\",\"name\":\"swapAmountBPS\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"zeroForOne\",\"type\":\"bool\"}],\"name\":\"executiveRebalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoBalance0\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoBalance1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoFeeBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoRebalanceBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoSlippageBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoSlippageInterval\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoWithdrawBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Max\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Max\",\"type\":\"uint256\"}],\"name\":\"getMintAmounts\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"mintAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPositionID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"positionID\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getUnderlyingBalances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Current\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Current\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"sqrtRatioX96\",\"type\":\"uint160\"}],\"name\":\"getUnderlyingBalancesAtPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Current\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Current\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_pool\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_managerFeeBPS\",\"type\":\"uint16\"},{\"internalType\":\"int24\",\"name\":\"_lowerTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"_upperTick\",\"type\":\"int24\"},{\"internalType\":\"address\",\"name\":\"_manager_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_managerFeeBPS\",\"type\":\"uint16\"}],\"name\":\"initializeManagerFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lowerTick\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"managerBalance0\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"managerBalance1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"managerFeeBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"managerTreasury\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"mintAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"liquidityMinted\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pool\",\"outputs\":[{\"internalType\":\"contract IUniswapV3Pool\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"swapThresholdPrice\",\"type\":\"uint160\"},{\"internalType\":\"uint256\",\"name\":\"swapAmountBPS\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"zeroForOne\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"paymentToken\",\"type\":\"address\"}],\"name\":\"rebalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Owed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Owed\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"uniswapV3MintCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"uniswapV3SwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newRebalanceBPS\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"newWithdrawBPS\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"newSlippageBPS\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"newSlippageInterval\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"newTreasury\",\"type\":\"address\"}],\"name\":\"updateGelatoParams\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"upperTick\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"feeToken\",\"type\":\"address\"}],\"name\":\"withdrawGelatoBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"feeToken\",\"type\":\"address\"}],\"name\":\"withdrawManagerBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"burn(uint256,address)\":{\"params\":{\"burnAmount\":\"The number of G-UNI tokens to burn\",\"receiver\":\"The account to receive the underlying amounts of token0 and token1\"},\"returns\":{\"amount0\":\"amount of token0 transferred to receiver for burning `burnAmount`\",\"amount1\":\"amount of token1 transferred to receiver for burning `burnAmount`\",\"liquidityBurned\":\"amount of liquidity removed from the underlying Uniswap V3 position\"}},\"decimals()\":{\"details\":\"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.\"},\"executiveRebalance(int24,int24,uint160,uint256,bool)\":{\"details\":\"When changing the range the inventory of token0 and token1 may be rebalanced with a swap to deposit as much liquidity as possible into the new position. Swap parameters can be computed by simulating the whole operation: remove all liquidity, deposit as much as possible into new position, then observe how much of token0 or token1 is leftover. Swap a proportion of this leftover to deposit more liquidity into the position, since any leftover will be unused and sit idle until the next rebalance.\",\"params\":{\"newLowerTick\":\"The new lower bound of the position's range\",\"newUpperTick\":\"The new upper bound of the position's range\",\"swapAmountBPS\":\"amount of token to swap as proportion of total. Pass 0 to ignore swap.\",\"swapThresholdPrice\":\"slippage parameter on the swap as a max or min sqrtPriceX96\",\"zeroForOne\":\"Which token to input into the swap (true = token0, false = token1)\"}},\"getMintAmounts(uint256,uint256)\":{\"params\":{\"amount0Max\":\"The maximum amount of token1 to forward on mint\"},\"returns\":{\"amount0\":\"actual amount of token0 to forward when minting `mintAmount`\",\"amount1\":\"actual amount of token1 to forward when minting `mintAmount`\",\"mintAmount\":\"maximum number of G-UNI tokens to mint\"}},\"getUnderlyingBalances()\":{\"returns\":{\"amount0Current\":\"current total underlying balance of token0\",\"amount1Current\":\"current total underlying balance of token1\"}},\"increaseAllowance(address,uint256)\":{\"details\":\"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address.\"},\"initialize(string,string,address,uint16,int24,int24,address)\":{\"params\":{\"_lowerTick\":\"initial upperTick (only changeable with executiveRebalance)\",\"_managerFeeBPS\":\"proportion of fees earned that go to manager treasury note that the 4 above params are NOT UPDATEABLE AFTER INILIALIZATION\",\"_manager_\":\"address of manager (ownership can be transferred)\",\"_name\":\"name of G-UNI token\",\"_pool\":\"address of Uniswap V3 pool\",\"_symbol\":\"symbol of G-UNI token\"}},\"initializeManagerFee(uint16)\":{\"params\":{\"_managerFeeBPS\":\"proportion of fees earned that are credited to manager in Basis Points\"}},\"manager()\":{\"details\":\"Returns the address of the current manager.\"},\"mint(uint256,address)\":{\"details\":\"to compute the amouint of tokens necessary to mint `mintAmount` see getMintAmounts\",\"params\":{\"mintAmount\":\"The number of G-UNI tokens to mint\",\"receiver\":\"The account to receive the minted tokens\"},\"returns\":{\"amount0\":\"amount of token0 transferred from msg.sender to mint `mintAmount`\",\"amount1\":\"amount of token1 transferred from msg.sender to mint `mintAmount`\",\"liquidityMinted\":\"amount of liquidity added to the underlying Uniswap V3 position\"}},\"name()\":{\"details\":\"Returns the name of the token.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without manager. It will not be possible to call `onlyManager` functions anymore. Can only be called by the current manager. NOTE: Renouncing ownership will leave the contract without an manager, thereby removing any functionality that is only available to the manager.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}.\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current manager.\"},\"updateGelatoParams(uint16,uint16,uint16,uint32,address)\":{\"params\":{\"newRebalanceBPS\":\"controls frequency of gelato rebalances: gas fee to execute rebalance can be gelatoRebalanceBPS proportion of fees earned since last rebalance\",\"newSlippageBPS\":\"maximum slippage on swaps during gelato rebalance\",\"newSlippageInterval\":\"length of time for TWAP used in computing slippage on swaps\",\"newTreasury\":\"address where managerFee withdrawals are sent\",\"newWithdrawBPS\":\"controls frequency of gelato withdrawals: gas fee to execute withdrawal can be gelatoWithdrawBPS proportion of fees accrued since last withdraw\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"burn(uint256,address)\":{\"notice\":\"burn G-UNI tokens (fractional shares of a Uniswap V3 position) and receive tokens\"},\"executiveRebalance(int24,int24,uint160,uint256,bool)\":{\"notice\":\"Change the range of underlying UniswapV3 position, only manager can call\"},\"getMintAmounts(uint256,uint256)\":{\"notice\":\"compute maximum G-UNI tokens that can be minted from `amount0Max` and `amount1Max`\"},\"getUnderlyingBalances()\":{\"notice\":\"compute total underlying holdings of the G-UNI token supply includes current liquidity invested in uniswap position, current fees earned and any uninvested leftover (but does not include manager or gelato fees accrued)\"},\"initialize(string,string,address,uint16,int24,int24,address)\":{\"notice\":\"initialize storage variables on a new G-UNI pool, only called once\"},\"initializeManagerFee(uint16)\":{\"notice\":\"initializeManagerFee sets a managerFee, only manager can call. If a manager fee was not set in the initialize function it can be set here but ONLY ONCE- after it is set to a non-zero value, managerFee can never be set again.\"},\"mint(uint256,address)\":{\"notice\":\"mint fungible G-UNI tokens, fractional shares of a Uniswap V3 position\"},\"rebalance(uint160,uint256,bool,uint256,address)\":{\"notice\":\"Reinvest fees earned into underlying position, only gelato executors can call Position bounds CANNOT be altered by gelato, only manager may via executiveRebalance. Frequency of rebalance configured with gelatoRebalanceBPS, alterable by manager.\"},\"uniswapV3MintCallback(uint256,uint256,bytes)\":{\"notice\":\"Uniswap V3 callback fn, called back on pool.mint\"},\"uniswapV3SwapCallback(int256,int256,bytes)\":{\"notice\":\"Uniswap v3 callback fn, called back on pool.swap\"},\"updateGelatoParams(uint16,uint16,uint16,uint32,address)\":{\"notice\":\"change configurable parameters, only manager can call\"},\"withdrawGelatoBalance(uint256,address)\":{\"notice\":\"withdraw gelato fees accrued, only gelato executors can call. Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager.\"},\"withdrawManagerBalance(uint256,address)\":{\"notice\":\"withdraw manager fees accrued, only gelato executors can call. Target account to receive fees is managerTreasury, alterable by manager. Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/GUniPool.sol\":\"GUniPool\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\n// solhint-disable-next-line compiler-version\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n */\\nabstract contract Initializable {\\n\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n bool private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Modifier to protect an initializer function from being invoked twice.\\n */\\n modifier initializer() {\\n require(_initializing || !_initialized, \\\"Initializable: contract is already initialized\\\");\\n\\n bool isTopLevelCall = !_initializing;\\n if (isTopLevelCall) {\\n _initializing = true;\\n _initialized = true;\\n }\\n\\n _;\\n\\n if (isTopLevelCall) {\\n _initializing = false;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67d2f282a9678e58e878a0b774041ba7a01e2740a262aea97a3f681339914713\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuardUpgradeable is Initializable {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n function __ReentrancyGuard_init() internal initializer {\\n __ReentrancyGuard_init_unchained();\\n }\\n\\n function __ReentrancyGuard_init_unchained() internal initializer {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and make it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n // On the first call to nonReentrant, _notEntered will be true\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n\\n _;\\n\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x89fa60d14355f7ae06af11e28fce2bb90c5c6186645d681a30e1b36234a4c210\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC20Upgradeable.sol\\\";\\nimport \\\"./extensions/IERC20MetadataUpgradeable.sol\\\";\\nimport \\\"../../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * We have followed general OpenZeppelin guidelines: functions revert instead\\n * of returning `false` on failure. This behavior is nonetheless conventional\\n * and does not conflict with the expectations of ERC20 applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {\\n mapping (address => uint256) private _balances;\\n\\n mapping (address => mapping (address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}.\\n *\\n * The defaut value of {decimals} is 18. To select a different value for\\n * {decimals} you should overload it.\\n *\\n * All two of these values are immutable: they can only be set once during\\n * construction.\\n */\\n function __ERC20_init(string memory name_, string memory symbol_) internal initializer {\\n __Context_init_unchained();\\n __ERC20_init_unchained(name_, symbol_);\\n }\\n\\n function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {\\n _name = name_;\\n _symbol = symbol_;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual override returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual override returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5,05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the value {ERC20} uses, unless this function is\\n * overridden;\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual override returns (uint8) {\\n return 18;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `recipient` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\\n _transfer(_msgSender(), recipient, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n _approve(_msgSender(), spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * Requirements:\\n *\\n * - `sender` and `recipient` cannot be the zero address.\\n * - `sender` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``sender``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {\\n _transfer(sender, recipient, amount);\\n\\n uint256 currentAllowance = _allowances[sender][_msgSender()];\\n require(currentAllowance >= amount, \\\"ERC20: transfer amount exceeds allowance\\\");\\n _approve(sender, _msgSender(), currentAllowance - amount);\\n\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n uint256 currentAllowance = _allowances[_msgSender()][spender];\\n require(currentAllowance >= subtractedValue, \\\"ERC20: decreased allowance below zero\\\");\\n _approve(_msgSender(), spender, currentAllowance - subtractedValue);\\n\\n return true;\\n }\\n\\n /**\\n * @dev Moves tokens `amount` from `sender` to `recipient`.\\n *\\n * This is internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `sender` cannot be the zero address.\\n * - `recipient` cannot be the zero address.\\n * - `sender` must have a balance of at least `amount`.\\n */\\n function _transfer(address sender, address recipient, uint256 amount) internal virtual {\\n require(sender != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(recipient != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(sender, recipient, amount);\\n\\n uint256 senderBalance = _balances[sender];\\n require(senderBalance >= amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n _balances[sender] = senderBalance - amount;\\n _balances[recipient] += amount;\\n\\n emit Transfer(sender, recipient, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply += amount;\\n _balances[account] += amount;\\n emit Transfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n uint256 accountBalance = _balances[account];\\n require(accountBalance >= amount, \\\"ERC20: burn amount exceeds balance\\\");\\n _balances[account] = accountBalance - amount;\\n _totalSupply -= amount;\\n\\n emit Transfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(address owner, address spender, uint256 amount) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be to transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }\\n uint256[45] private __gap;\\n}\\n\",\"keccak256\":\"0x9c2d7425f3343ea340d6ea67e9d90109d4d846bb013c2572096ec88c9e74946b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\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 `recipient`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address recipient, 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 `sender` to `recipient` 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(address sender, address recipient, uint256 amount) external returns (bool);\\n\\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\",\"keccak256\":\"0x8d4a0f2b5b760b5e2c19ed3c108d83897a4dfd5bfed97a93867918df19191e5e\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20Upgradeable.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20MetadataUpgradeable is IERC20Upgradeable {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x6795c369a4eefa78468e38966f7851fbc2dda5e5b9ccd3fa2b45970e2e4d3abd\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\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 ContextUpgradeable is Initializable {\\n function __Context_init() internal initializer {\\n __Context_init_unchained();\\n }\\n\\n function __Context_init_unchained() internal initializer {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\\n return msg.data;\\n }\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x8e9eb503de1189f50c5f16fef327da310b11898d6b9ab3ca937df07c35233b9e\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\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 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 `recipient`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address recipient, 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 `sender` to `recipient` 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(address sender, address recipient, uint256 amount) external returns (bool);\\n\\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\",\"keccak256\":\"0xf8e8d118a7a8b2e134181f7da655f6266aa3a0f9134b2605747139fcb0c5d835\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.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(IERC20 token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) 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(IERC20 token, address spender, uint256 value) 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 // solhint-disable-next-line max-line-length\\n require((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(IERC20 token, address spender, uint256 value) 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(IERC20 token, address spender, uint256 value) 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 /**\\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) { // Return data is optional\\n // solhint-disable-next-line max-line-length\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0x99f5c21018d796db7833a2100bb0e7411999e248a3c950fb526eee5d2bf47cb7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\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 function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize, which returns 0 for contracts in\\n // construction, since the code is only stored at the end of the\\n // constructor execution.\\n\\n uint256 size;\\n // solhint-disable-next-line no-inline-assembly\\n assembly { size := extcodesize(account) }\\n return size > 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 // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\\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 functionCall(target, data, \\\"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(address target, bytes memory data, string memory errorMessage) 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(address target, bytes memory data, uint256 value) 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(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.call{ value: value }(data);\\n return _verifyCallResult(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(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return _verifyCallResult(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(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\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\\n // solhint-disable-next-line no-inline-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}\\n\",\"keccak256\":\"0x069b2631bb5b5193a58ccf7a06266c7361bd2c20095667af4402817605627f45\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n *\\n * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\\n * all math on `uint256` and `int256` and then downcasting.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n require(value < 2**128, \\\"SafeCast: value doesn\\\\'t fit in 128 bits\\\");\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n require(value < 2**64, \\\"SafeCast: value doesn\\\\'t fit in 64 bits\\\");\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n require(value < 2**32, \\\"SafeCast: value doesn\\\\'t fit in 32 bits\\\");\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n require(value < 2**16, \\\"SafeCast: value doesn\\\\'t fit in 16 bits\\\");\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits.\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n require(value < 2**8, \\\"SafeCast: value doesn\\\\'t fit in 8 bits\\\");\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n require(value >= 0, \\\"SafeCast: value must be positive\\\");\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt128(int256 value) internal pure returns (int128) {\\n require(value >= -2**127 && value < 2**127, \\\"SafeCast: value doesn\\\\'t fit in 128 bits\\\");\\n return int128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt64(int256 value) internal pure returns (int64) {\\n require(value >= -2**63 && value < 2**63, \\\"SafeCast: value doesn\\\\'t fit in 64 bits\\\");\\n return int64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt32(int256 value) internal pure returns (int32) {\\n require(value >= -2**31 && value < 2**31, \\\"SafeCast: value doesn\\\\'t fit in 32 bits\\\");\\n return int32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt16(int256 value) internal pure returns (int16) {\\n require(value >= -2**15 && value < 2**15, \\\"SafeCast: value doesn\\\\'t fit in 16 bits\\\");\\n return int16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits.\\n *\\n * _Available since v3.1._\\n */\\n function toInt8(int256 value) internal pure returns (int8) {\\n require(value >= -2**7 && value < 2**7, \\\"SafeCast: value doesn\\\\'t fit in 8 bits\\\");\\n return int8(value);\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n require(value < 2**255, \\\"SafeCast: value doesn't fit in an int256\\\");\\n return int256(value);\\n }\\n}\\n\",\"keccak256\":\"0xc37d85b96c2a8d7bc09f25958e0a81394bf5780286444147ddf875fa628d53ce\",\"license\":\"MIT\"},\"@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\nimport './pool/IUniswapV3PoolImmutables.sol';\\nimport './pool/IUniswapV3PoolState.sol';\\nimport './pool/IUniswapV3PoolDerivedState.sol';\\nimport './pool/IUniswapV3PoolActions.sol';\\nimport './pool/IUniswapV3PoolOwnerActions.sol';\\nimport './pool/IUniswapV3PoolEvents.sol';\\n\\n/// @title The interface for a Uniswap V3 Pool\\n/// @notice A Uniswap pool facilitates swapping and automated market making between any two assets that strictly conform\\n/// to the ERC20 specification\\n/// @dev The pool interface is broken up into many smaller pieces\\ninterface IUniswapV3Pool is\\n IUniswapV3PoolImmutables,\\n IUniswapV3PoolState,\\n IUniswapV3PoolDerivedState,\\n IUniswapV3PoolActions,\\n IUniswapV3PoolOwnerActions,\\n IUniswapV3PoolEvents\\n{\\n\\n}\\n\",\"keccak256\":\"0xfe6113d518466cd6652c85b111e01f33eb62157f49ae5ed7d5a3947a2044adb1\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3MintCallback.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Callback for IUniswapV3PoolActions#mint\\n/// @notice Any contract that calls IUniswapV3PoolActions#mint must implement this interface\\ninterface IUniswapV3MintCallback {\\n /// @notice Called to `msg.sender` after minting liquidity to a position from IUniswapV3Pool#mint.\\n /// @dev In the implementation you must pay the pool tokens owed for the minted liquidity.\\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\\n /// @param amount0Owed The amount of token0 due to the pool for the minted liquidity\\n /// @param amount1Owed The amount of token1 due to the pool for the minted liquidity\\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#mint call\\n function uniswapV3MintCallback(\\n uint256 amount0Owed,\\n uint256 amount1Owed,\\n bytes calldata data\\n ) external;\\n}\\n\",\"keccak256\":\"0x27a9725b8f831a92d16380860c3d348a0b926a7f01b34a54ea6eea78cbdbcd6a\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Callback for IUniswapV3PoolActions#swap\\n/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface\\ninterface IUniswapV3SwapCallback {\\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}\\n\",\"keccak256\":\"0x3f485fb1a44e8fbeadefb5da07d66edab3cfe809f0ac4074b1e54e3eb3c4cf69\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Permissionless pool actions\\n/// @notice Contains pool methods that can be called by anyone\\ninterface IUniswapV3PoolActions {\\n /// @notice Sets the initial price for the pool\\n /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value\\n /// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96\\n function initialize(uint160 sqrtPriceX96) external;\\n\\n /// @notice Adds liquidity for the given recipient/tickLower/tickUpper position\\n /// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback\\n /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends\\n /// on tickLower, tickUpper, the amount of liquidity, and the current price.\\n /// @param recipient The address for which the liquidity will be created\\n /// @param tickLower The lower tick of the position in which to add liquidity\\n /// @param tickUpper The upper tick of the position in which to add liquidity\\n /// @param amount The amount of liquidity to mint\\n /// @param data Any data that should be passed through to the callback\\n /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback\\n /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback\\n function mint(\\n address recipient,\\n int24 tickLower,\\n int24 tickUpper,\\n uint128 amount,\\n bytes calldata data\\n ) external returns (uint256 amount0, uint256 amount1);\\n\\n /// @notice Collects tokens owed to a position\\n /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity.\\n /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or\\n /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the\\n /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.\\n /// @param recipient The address which should receive the fees collected\\n /// @param tickLower The lower tick of the position for which to collect fees\\n /// @param tickUpper The upper tick of the position for which to collect fees\\n /// @param amount0Requested How much token0 should be withdrawn from the fees owed\\n /// @param amount1Requested How much token1 should be withdrawn from the fees owed\\n /// @return amount0 The amount of fees collected in token0\\n /// @return amount1 The amount of fees collected in token1\\n function collect(\\n address recipient,\\n int24 tickLower,\\n int24 tickUpper,\\n uint128 amount0Requested,\\n uint128 amount1Requested\\n ) external returns (uint128 amount0, uint128 amount1);\\n\\n /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position\\n /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0\\n /// @dev Fees must be collected separately via a call to #collect\\n /// @param tickLower The lower tick of the position for which to burn liquidity\\n /// @param tickUpper The upper tick of the position for which to burn liquidity\\n /// @param amount How much liquidity to burn\\n /// @return amount0 The amount of token0 sent to the recipient\\n /// @return amount1 The amount of token1 sent to the recipient\\n function burn(\\n int24 tickLower,\\n int24 tickUpper,\\n uint128 amount\\n ) external returns (uint256 amount0, uint256 amount1);\\n\\n /// @notice Swap token0 for token1, or token1 for token0\\n /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback\\n /// @param recipient The address to receive the output of the swap\\n /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0\\n /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\\n /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\\n /// value after the swap. If one for zero, the price cannot be greater than this value after the swap\\n /// @param data Any data to be passed through to the callback\\n /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive\\n /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive\\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 /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback\\n /// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback\\n /// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling\\n /// with 0 amount{0,1} and sending the donation amount(s) from the callback\\n /// @param recipient The address which will receive the token0 and token1 amounts\\n /// @param amount0 The amount of token0 to send\\n /// @param amount1 The amount of token1 to send\\n /// @param data Any data to be passed through to the callback\\n function flash(\\n address recipient,\\n uint256 amount0,\\n uint256 amount1,\\n bytes calldata data\\n ) external;\\n\\n /// @notice Increase the maximum number of price and liquidity observations that this pool will store\\n /// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to\\n /// the input observationCardinalityNext.\\n /// @param observationCardinalityNext The desired minimum number of observations for the pool to store\\n function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external;\\n}\\n\",\"keccak256\":\"0x9453dd0e7442188667d01d9b65de3f1e14e9511ff3e303179a15f6fc267f7634\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Pool state that is not stored\\n/// @notice Contains view functions to provide information about the pool that is computed rather than stored on the\\n/// blockchain. The functions here may have variable gas costs.\\ninterface IUniswapV3PoolDerivedState {\\n /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp\\n /// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing\\n /// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick,\\n /// you must call it with secondsAgos = [3600, 0].\\n /// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in\\n /// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio.\\n /// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned\\n /// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp\\n /// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block\\n /// timestamp\\n function observe(uint32[] calldata secondsAgos)\\n external\\n view\\n returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s);\\n\\n /// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range\\n /// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed.\\n /// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first\\n /// snapshot is taken and the second snapshot is taken.\\n /// @param tickLower The lower tick of the range\\n /// @param tickUpper The upper tick of the range\\n /// @return tickCumulativeInside The snapshot of the tick accumulator for the range\\n /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range\\n /// @return secondsInside The snapshot of seconds per liquidity for the range\\n function snapshotCumulativesInside(int24 tickLower, int24 tickUpper)\\n external\\n view\\n returns (\\n int56 tickCumulativeInside,\\n uint160 secondsPerLiquidityInsideX128,\\n uint32 secondsInside\\n );\\n}\\n\",\"keccak256\":\"0xe603ac5b17ecdee73ba2b27efdf386c257a19c14206e87eee77e2017b742d9e5\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Events emitted by a pool\\n/// @notice Contains all events emitted by the pool\\ninterface IUniswapV3PoolEvents {\\n /// @notice Emitted exactly once by a pool when #initialize is first called on the pool\\n /// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize\\n /// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96\\n /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool\\n event Initialize(uint160 sqrtPriceX96, int24 tick);\\n\\n /// @notice Emitted when liquidity is minted for a given position\\n /// @param sender The address that minted the liquidity\\n /// @param owner The owner of the position and recipient of any minted liquidity\\n /// @param tickLower The lower tick of the position\\n /// @param tickUpper The upper tick of the position\\n /// @param amount The amount of liquidity minted to the position range\\n /// @param amount0 How much token0 was required for the minted liquidity\\n /// @param amount1 How much token1 was required for the minted liquidity\\n event Mint(\\n address sender,\\n address indexed owner,\\n int24 indexed tickLower,\\n int24 indexed tickUpper,\\n uint128 amount,\\n uint256 amount0,\\n uint256 amount1\\n );\\n\\n /// @notice Emitted when fees are collected by the owner of a position\\n /// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees\\n /// @param owner The owner of the position for which fees are collected\\n /// @param tickLower The lower tick of the position\\n /// @param tickUpper The upper tick of the position\\n /// @param amount0 The amount of token0 fees collected\\n /// @param amount1 The amount of token1 fees collected\\n event Collect(\\n address indexed owner,\\n address recipient,\\n int24 indexed tickLower,\\n int24 indexed tickUpper,\\n uint128 amount0,\\n uint128 amount1\\n );\\n\\n /// @notice Emitted when a position's liquidity is removed\\n /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect\\n /// @param owner The owner of the position for which liquidity is removed\\n /// @param tickLower The lower tick of the position\\n /// @param tickUpper The upper tick of the position\\n /// @param amount The amount of liquidity to remove\\n /// @param amount0 The amount of token0 withdrawn\\n /// @param amount1 The amount of token1 withdrawn\\n event Burn(\\n address indexed owner,\\n int24 indexed tickLower,\\n int24 indexed tickUpper,\\n uint128 amount,\\n uint256 amount0,\\n uint256 amount1\\n );\\n\\n /// @notice Emitted by the pool for any swaps between token0 and token1\\n /// @param sender The address that initiated the swap call, and that received the callback\\n /// @param recipient The address that received the output of the swap\\n /// @param amount0 The delta of the token0 balance of the pool\\n /// @param amount1 The delta of the token1 balance of the pool\\n /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96\\n /// @param liquidity The liquidity of the pool after the swap\\n /// @param tick The log base 1.0001 of price of the pool after the swap\\n event Swap(\\n address indexed sender,\\n address indexed recipient,\\n int256 amount0,\\n int256 amount1,\\n uint160 sqrtPriceX96,\\n uint128 liquidity,\\n int24 tick\\n );\\n\\n /// @notice Emitted by the pool for any flashes of token0/token1\\n /// @param sender The address that initiated the swap call, and that received the callback\\n /// @param recipient The address that received the tokens from flash\\n /// @param amount0 The amount of token0 that was flashed\\n /// @param amount1 The amount of token1 that was flashed\\n /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee\\n /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee\\n event Flash(\\n address indexed sender,\\n address indexed recipient,\\n uint256 amount0,\\n uint256 amount1,\\n uint256 paid0,\\n uint256 paid1\\n );\\n\\n /// @notice Emitted by the pool for increases to the number of observations that can be stored\\n /// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index\\n /// just before a mint/swap/burn.\\n /// @param observationCardinalityNextOld The previous value of the next observation cardinality\\n /// @param observationCardinalityNextNew The updated value of the next observation cardinality\\n event IncreaseObservationCardinalityNext(\\n uint16 observationCardinalityNextOld,\\n uint16 observationCardinalityNextNew\\n );\\n\\n /// @notice Emitted when the protocol fee is changed by the pool\\n /// @param feeProtocol0Old The previous value of the token0 protocol fee\\n /// @param feeProtocol1Old The previous value of the token1 protocol fee\\n /// @param feeProtocol0New The updated value of the token0 protocol fee\\n /// @param feeProtocol1New The updated value of the token1 protocol fee\\n event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New);\\n\\n /// @notice Emitted when the collected protocol fees are withdrawn by the factory owner\\n /// @param sender The address that collects the protocol fees\\n /// @param recipient The address that receives the collected protocol fees\\n /// @param amount0 The amount of token0 protocol fees that is withdrawn\\n /// @param amount0 The amount of token1 protocol fees that is withdrawn\\n event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1);\\n}\\n\",\"keccak256\":\"0x8071514d0fe5d17d6fbd31c191cdfb703031c24e0ece3621d88ab10e871375cd\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Pool state that never changes\\n/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values\\ninterface IUniswapV3PoolImmutables {\\n /// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface\\n /// @return The contract address\\n function factory() external view returns (address);\\n\\n /// @notice The first of the two tokens of the pool, sorted by address\\n /// @return The token contract address\\n function token0() external view returns (address);\\n\\n /// @notice The second of the two tokens of the pool, sorted by address\\n /// @return The token contract address\\n function token1() external view returns (address);\\n\\n /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6\\n /// @return The fee\\n function fee() external view returns (uint24);\\n\\n /// @notice The pool tick spacing\\n /// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive\\n /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ...\\n /// This value is an int24 to avoid casting even though it is always positive.\\n /// @return The tick spacing\\n function tickSpacing() external view returns (int24);\\n\\n /// @notice The maximum amount of position liquidity that can use any tick in the range\\n /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and\\n /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool\\n /// @return The max amount of liquidity per tick\\n function maxLiquidityPerTick() external view returns (uint128);\\n}\\n\",\"keccak256\":\"0xf6e5d2cd1139c4c276bdbc8e1d2b256e456c866a91f1b868da265c6d2685c3f7\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Permissioned pool actions\\n/// @notice Contains pool methods that may only be called by the factory owner\\ninterface IUniswapV3PoolOwnerActions {\\n /// @notice Set the denominator of the protocol's % share of the fees\\n /// @param feeProtocol0 new protocol fee for token0 of the pool\\n /// @param feeProtocol1 new protocol fee for token1 of the pool\\n function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external;\\n\\n /// @notice Collect the protocol fee accrued to the pool\\n /// @param recipient The address to which collected protocol fees should be sent\\n /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1\\n /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0\\n /// @return amount0 The protocol fee collected in token0\\n /// @return amount1 The protocol fee collected in token1\\n function collectProtocol(\\n address recipient,\\n uint128 amount0Requested,\\n uint128 amount1Requested\\n ) external returns (uint128 amount0, uint128 amount1);\\n}\\n\",\"keccak256\":\"0x759b78a2918af9e99e246dc3af084f654e48ef32bb4e4cb8a966aa3dcaece235\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Pool state that can change\\n/// @notice These methods compose the pool's state, and can change with any frequency including multiple times\\n/// per transaction\\ninterface IUniswapV3PoolState {\\n /// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas\\n /// when accessed externally.\\n /// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value\\n /// tick The current tick of the pool, i.e. according to the last tick transition that was run.\\n /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick\\n /// boundary.\\n /// observationIndex The index of the last oracle observation that was written,\\n /// observationCardinality The current maximum number of observations stored in the pool,\\n /// observationCardinalityNext The next maximum number of observations, to be updated when the observation.\\n /// feeProtocol The protocol fee for both tokens of the pool.\\n /// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0\\n /// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee.\\n /// unlocked Whether the pool is currently locked to reentrancy\\n function slot0()\\n external\\n view\\n returns (\\n uint160 sqrtPriceX96,\\n int24 tick,\\n uint16 observationIndex,\\n uint16 observationCardinality,\\n uint16 observationCardinalityNext,\\n uint8 feeProtocol,\\n bool unlocked\\n );\\n\\n /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool\\n /// @dev This value can overflow the uint256\\n function feeGrowthGlobal0X128() external view returns (uint256);\\n\\n /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool\\n /// @dev This value can overflow the uint256\\n function feeGrowthGlobal1X128() external view returns (uint256);\\n\\n /// @notice The amounts of token0 and token1 that are owed to the protocol\\n /// @dev Protocol fees will never exceed uint128 max in either token\\n function protocolFees() external view returns (uint128 token0, uint128 token1);\\n\\n /// @notice The currently in range liquidity available to the pool\\n /// @dev This value has no relationship to the total liquidity across all ticks\\n function liquidity() external view returns (uint128);\\n\\n /// @notice Look up information about a specific tick in the pool\\n /// @param tick The tick to look up\\n /// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or\\n /// tick upper,\\n /// liquidityNet how much liquidity changes when the pool price crosses the tick,\\n /// feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0,\\n /// feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1,\\n /// tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick\\n /// secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick,\\n /// secondsOutside the seconds spent on the other side of the tick from the current tick,\\n /// initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false.\\n /// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0.\\n /// In addition, these values are only relative and must be used only in comparison to previous snapshots for\\n /// a specific position.\\n function ticks(int24 tick)\\n external\\n view\\n returns (\\n uint128 liquidityGross,\\n int128 liquidityNet,\\n uint256 feeGrowthOutside0X128,\\n uint256 feeGrowthOutside1X128,\\n int56 tickCumulativeOutside,\\n uint160 secondsPerLiquidityOutsideX128,\\n uint32 secondsOutside,\\n bool initialized\\n );\\n\\n /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information\\n function tickBitmap(int16 wordPosition) external view returns (uint256);\\n\\n /// @notice Returns the information about a position by the position's key\\n /// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper\\n /// @return _liquidity The amount of liquidity in the position,\\n /// Returns feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke,\\n /// Returns feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke,\\n /// Returns tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke,\\n /// Returns tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke\\n function positions(bytes32 key)\\n external\\n view\\n returns (\\n uint128 _liquidity,\\n uint256 feeGrowthInside0LastX128,\\n uint256 feeGrowthInside1LastX128,\\n uint128 tokensOwed0,\\n uint128 tokensOwed1\\n );\\n\\n /// @notice Returns data about a specific observation index\\n /// @param index The element of the observations array to fetch\\n /// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time\\n /// ago, rather than at a specific index in the array.\\n /// @return blockTimestamp The timestamp of the observation,\\n /// Returns tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp,\\n /// Returns secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp,\\n /// Returns initialized whether the observation has been initialized and the values are safe to use\\n function observations(uint256 index)\\n external\\n view\\n returns (\\n uint32 blockTimestamp,\\n int56 tickCumulative,\\n uint160 secondsPerLiquidityCumulativeX128,\\n bool initialized\\n );\\n}\\n\",\"keccak256\":\"0x852dc1f5df7dcf7f11e7bb3eed79f0cea72ad4b25f6a9d2c35aafb48925fd49f\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/libraries/FixedPoint96.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.4.0;\\n\\n/// @title FixedPoint96\\n/// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)\\n/// @dev Used in SqrtPriceMath.sol\\nlibrary FixedPoint96 {\\n uint8 internal constant RESOLUTION = 96;\\n uint256 internal constant Q96 = 0x1000000000000000000000000;\\n}\\n\",\"keccak256\":\"0x0ba8a9b95a956a4050749c0158e928398c447c91469682ca8a7cc7e77a7fe032\",\"license\":\"GPL-2.0-or-later\"},\"contracts/GUniPool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\nimport {\\n IUniswapV3MintCallback\\n} from \\\"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3MintCallback.sol\\\";\\nimport {\\n IUniswapV3SwapCallback\\n} from \\\"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol\\\";\\nimport {GUniPoolStorage} from \\\"./abstract/GUniPoolStorage.sol\\\";\\nimport {\\n IUniswapV3Pool\\n} from \\\"@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol\\\";\\nimport {TickMath} from \\\"./vendor/uniswap/TickMath.sol\\\";\\nimport {\\n IERC20,\\n SafeERC20\\n} from \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\nimport {SafeCast} from \\\"@openzeppelin/contracts/utils/math/SafeCast.sol\\\";\\nimport {\\n FullMath,\\n LiquidityAmounts\\n} from \\\"./vendor/uniswap/LiquidityAmounts.sol\\\";\\n\\ncontract GUniPool is\\n IUniswapV3MintCallback,\\n IUniswapV3SwapCallback,\\n GUniPoolStorage\\n{\\n using SafeERC20 for IERC20;\\n using TickMath for int24;\\n\\n event Minted(\\n address receiver,\\n uint256 mintAmount,\\n uint256 amount0In,\\n uint256 amount1In,\\n uint128 liquidityMinted\\n );\\n\\n event Burned(\\n address receiver,\\n uint256 burnAmount,\\n uint256 amount0Out,\\n uint256 amount1Out,\\n uint128 liquidityBurned\\n );\\n\\n event Rebalance(\\n int24 lowerTick_,\\n int24 upperTick_,\\n uint128 liquidityBefore,\\n uint128 liquidityAfter\\n );\\n\\n event FeesEarned(uint256 feesEarned0, uint256 feesEarned1);\\n\\n // solhint-disable-next-line max-line-length\\n constructor(address payable _gelato) GUniPoolStorage(_gelato) {} // solhint-disable-line no-empty-blocks\\n\\n /// @notice Uniswap V3 callback fn, called back on pool.mint\\n function uniswapV3MintCallback(\\n uint256 amount0Owed,\\n uint256 amount1Owed,\\n bytes calldata /*_data*/\\n ) external override {\\n require(msg.sender == address(pool), \\\"callback caller\\\");\\n\\n if (amount0Owed > 0) token0.safeTransfer(msg.sender, amount0Owed);\\n if (amount1Owed > 0) token1.safeTransfer(msg.sender, amount1Owed);\\n }\\n\\n /// @notice Uniswap v3 callback fn, called back on pool.swap\\n function uniswapV3SwapCallback(\\n int256 amount0Delta,\\n int256 amount1Delta,\\n bytes calldata /*data*/\\n ) external override {\\n require(msg.sender == address(pool), \\\"callback caller\\\");\\n\\n if (amount0Delta > 0)\\n token0.safeTransfer(msg.sender, uint256(amount0Delta));\\n else if (amount1Delta > 0)\\n token1.safeTransfer(msg.sender, uint256(amount1Delta));\\n }\\n\\n // User functions => Should be called via a Router\\n\\n /// @notice mint fungible G-UNI tokens, fractional shares of a Uniswap V3 position\\n /// @dev to compute the amouint of tokens necessary to mint `mintAmount` see getMintAmounts\\n /// @param mintAmount The number of G-UNI tokens to mint\\n /// @param receiver The account to receive the minted tokens\\n /// @return amount0 amount of token0 transferred from msg.sender to mint `mintAmount`\\n /// @return amount1 amount of token1 transferred from msg.sender to mint `mintAmount`\\n /// @return liquidityMinted amount of liquidity added to the underlying Uniswap V3 position\\n // solhint-disable-next-line function-max-lines, code-complexity\\n function mint(uint256 mintAmount, address receiver)\\n external\\n nonReentrant\\n returns (\\n uint256 amount0,\\n uint256 amount1,\\n uint128 liquidityMinted\\n )\\n {\\n require(mintAmount > 0, \\\"mint 0\\\");\\n\\n uint256 totalSupply = totalSupply();\\n\\n (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();\\n\\n if (totalSupply > 0) {\\n (uint256 amount0Current, uint256 amount1Current) =\\n getUnderlyingBalances();\\n\\n amount0 = FullMath.mulDivRoundingUp(\\n amount0Current,\\n mintAmount,\\n totalSupply\\n );\\n amount1 = FullMath.mulDivRoundingUp(\\n amount1Current,\\n mintAmount,\\n totalSupply\\n );\\n } else {\\n // if supply is 0 mintAmount == liquidity to deposit\\n (amount0, amount1) = LiquidityAmounts.getAmountsForLiquidity(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n SafeCast.toUint128(mintAmount)\\n );\\n }\\n\\n // transfer amounts owed to contract\\n if (amount0 > 0) {\\n token0.safeTransferFrom(msg.sender, address(this), amount0);\\n }\\n if (amount1 > 0) {\\n token1.safeTransferFrom(msg.sender, address(this), amount1);\\n }\\n\\n // deposit as much new liquidity as possible\\n liquidityMinted = LiquidityAmounts.getLiquidityForAmounts(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n amount0,\\n amount1\\n );\\n\\n pool.mint(address(this), lowerTick, upperTick, liquidityMinted, \\\"\\\");\\n\\n _mint(receiver, mintAmount);\\n emit Minted(receiver, mintAmount, amount0, amount1, liquidityMinted);\\n }\\n\\n /// @notice burn G-UNI tokens (fractional shares of a Uniswap V3 position) and receive tokens\\n /// @param burnAmount The number of G-UNI tokens to burn\\n /// @param receiver The account to receive the underlying amounts of token0 and token1\\n /// @return amount0 amount of token0 transferred to receiver for burning `burnAmount`\\n /// @return amount1 amount of token1 transferred to receiver for burning `burnAmount`\\n /// @return liquidityBurned amount of liquidity removed from the underlying Uniswap V3 position\\n // solhint-disable-next-line function-max-lines\\n function burn(uint256 burnAmount, address receiver)\\n external\\n nonReentrant\\n returns (\\n uint256 amount0,\\n uint256 amount1,\\n uint128 liquidityBurned\\n )\\n {\\n require(burnAmount > 0, \\\"burn 0\\\");\\n\\n uint256 totalSupply = totalSupply();\\n\\n (uint128 liquidity, , , , ) = pool.positions(_getPositionID());\\n\\n _burn(msg.sender, burnAmount);\\n\\n uint256 liquidityBurned_ =\\n FullMath.mulDiv(burnAmount, liquidity, totalSupply);\\n liquidityBurned = SafeCast.toUint128(liquidityBurned_);\\n (uint256 burn0, uint256 burn1, uint256 fee0, uint256 fee1) =\\n _withdraw(lowerTick, upperTick, liquidityBurned);\\n _applyFees(fee0, fee1);\\n (fee0, fee1) = _subtractAdminFees(fee0, fee1);\\n emit FeesEarned(fee0, fee1);\\n\\n amount0 =\\n burn0 +\\n FullMath.mulDiv(\\n token0.balanceOf(address(this)) -\\n burn0 -\\n managerBalance0 -\\n gelatoBalance0,\\n burnAmount,\\n totalSupply\\n );\\n amount1 =\\n burn1 +\\n FullMath.mulDiv(\\n token1.balanceOf(address(this)) -\\n burn1 -\\n managerBalance1 -\\n gelatoBalance1,\\n burnAmount,\\n totalSupply\\n );\\n\\n if (amount0 > 0) {\\n token0.safeTransfer(receiver, amount0);\\n }\\n\\n if (amount1 > 0) {\\n token1.safeTransfer(receiver, amount1);\\n }\\n\\n emit Burned(receiver, burnAmount, amount0, amount1, liquidityBurned);\\n }\\n\\n // Manager Functions => Called by Pool Manager\\n\\n /// @notice Change the range of underlying UniswapV3 position, only manager can call\\n /// @dev When changing the range the inventory of token0 and token1 may be rebalanced\\n /// with a swap to deposit as much liquidity as possible into the new position. Swap parameters\\n /// can be computed by simulating the whole operation: remove all liquidity, deposit as much\\n /// as possible into new position, then observe how much of token0 or token1 is leftover.\\n /// Swap a proportion of this leftover to deposit more liquidity into the position, since\\n /// any leftover will be unused and sit idle until the next rebalance.\\n /// @param newLowerTick The new lower bound of the position's range\\n /// @param newUpperTick The new upper bound of the position's range\\n /// @param swapThresholdPrice slippage parameter on the swap as a max or min sqrtPriceX96\\n /// @param swapAmountBPS amount of token to swap as proportion of total. Pass 0 to ignore swap.\\n /// @param zeroForOne Which token to input into the swap (true = token0, false = token1)\\n // solhint-disable-next-line function-max-lines\\n function executiveRebalance(\\n int24 newLowerTick,\\n int24 newUpperTick,\\n uint160 swapThresholdPrice,\\n uint256 swapAmountBPS,\\n bool zeroForOne\\n ) external onlyManager {\\n uint128 liquidity;\\n uint128 newLiquidity;\\n if (totalSupply() > 0) {\\n (liquidity, , , , ) = pool.positions(_getPositionID());\\n if (liquidity > 0) {\\n (, , uint256 fee0, uint256 fee1) =\\n _withdraw(lowerTick, upperTick, liquidity);\\n\\n _applyFees(fee0, fee1);\\n (fee0, fee1) = _subtractAdminFees(fee0, fee1);\\n emit FeesEarned(fee0, fee1);\\n }\\n\\n lowerTick = newLowerTick;\\n upperTick = newUpperTick;\\n\\n uint256 reinvest0 =\\n token0.balanceOf(address(this)) -\\n managerBalance0 -\\n gelatoBalance0;\\n uint256 reinvest1 =\\n token1.balanceOf(address(this)) -\\n managerBalance1 -\\n gelatoBalance1;\\n\\n _deposit(\\n newLowerTick,\\n newUpperTick,\\n reinvest0,\\n reinvest1,\\n swapThresholdPrice,\\n swapAmountBPS,\\n zeroForOne\\n );\\n\\n (newLiquidity, , , , ) = pool.positions(_getPositionID());\\n require(newLiquidity > 0, \\\"new position 0\\\");\\n } else {\\n lowerTick = newLowerTick;\\n upperTick = newUpperTick;\\n }\\n\\n emit Rebalance(newLowerTick, newUpperTick, liquidity, newLiquidity);\\n }\\n\\n // Gelatofied functions => Automatically called by Gelato\\n\\n /// @notice Reinvest fees earned into underlying position, only gelato executors can call\\n /// Position bounds CANNOT be altered by gelato, only manager may via executiveRebalance.\\n /// Frequency of rebalance configured with gelatoRebalanceBPS, alterable by manager.\\n function rebalance(\\n uint160 swapThresholdPrice,\\n uint256 swapAmountBPS,\\n bool zeroForOne,\\n uint256 feeAmount,\\n address paymentToken\\n ) external gelatofy(feeAmount, paymentToken) {\\n if (swapAmountBPS > 0) {\\n _checkSlippage(swapThresholdPrice, zeroForOne);\\n }\\n (uint128 liquidity, , , , ) = pool.positions(_getPositionID());\\n _rebalance(\\n liquidity,\\n swapThresholdPrice,\\n swapAmountBPS,\\n zeroForOne,\\n feeAmount,\\n paymentToken\\n );\\n\\n (uint128 newLiquidity, , , , ) = pool.positions(_getPositionID());\\n require(newLiquidity > liquidity, \\\"liquidity must increase\\\");\\n\\n emit Rebalance(lowerTick, upperTick, liquidity, newLiquidity);\\n }\\n\\n /// @notice withdraw manager fees accrued, only gelato executors can call.\\n /// Target account to receive fees is managerTreasury, alterable by manager.\\n /// Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager.\\n function withdrawManagerBalance(uint256 feeAmount, address feeToken)\\n external\\n gelatofy(feeAmount, feeToken)\\n {\\n (uint256 amount0, uint256 amount1) =\\n _balancesToWithdraw(\\n managerBalance0,\\n managerBalance1,\\n feeAmount,\\n feeToken\\n );\\n\\n managerBalance0 = 0;\\n managerBalance1 = 0;\\n\\n if (amount0 > 0) {\\n token0.safeTransfer(managerTreasury, amount0);\\n }\\n\\n if (amount1 > 0) {\\n token1.safeTransfer(managerTreasury, amount1);\\n }\\n }\\n\\n /// @notice withdraw gelato fees accrued, only gelato executors can call.\\n /// Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager.\\n function withdrawGelatoBalance(uint256 feeAmount, address feeToken)\\n external\\n gelatofy(feeAmount, feeToken)\\n {\\n (uint256 amount0, uint256 amount1) =\\n _balancesToWithdraw(\\n gelatoBalance0,\\n gelatoBalance1,\\n feeAmount,\\n feeToken\\n );\\n\\n gelatoBalance0 = 0;\\n gelatoBalance1 = 0;\\n\\n if (amount0 > 0) {\\n token0.safeTransfer(GELATO, amount0);\\n }\\n\\n if (amount1 > 0) {\\n token1.safeTransfer(GELATO, amount1);\\n }\\n }\\n\\n function _balancesToWithdraw(\\n uint256 balance0,\\n uint256 balance1,\\n uint256 feeAmount,\\n address feeToken\\n ) internal view returns (uint256 amount0, uint256 amount1) {\\n if (feeToken == address(token0)) {\\n require(\\n (balance0 * gelatoWithdrawBPS) / 10000 >= feeAmount,\\n \\\"high fee\\\"\\n );\\n amount0 = balance0 - feeAmount;\\n amount1 = balance1;\\n } else if (feeToken == address(token1)) {\\n require(\\n (balance1 * gelatoWithdrawBPS) / 10000 >= feeAmount,\\n \\\"high fee\\\"\\n );\\n amount1 = balance1 - feeAmount;\\n amount0 = balance0;\\n } else {\\n revert(\\\"wrong token\\\");\\n }\\n }\\n\\n // View functions\\n\\n /// @notice compute maximum G-UNI tokens that can be minted from `amount0Max` and `amount1Max`\\n /// @param amount0Max The maximum amount of token0 to forward on mint\\n /// @param amount0Max The maximum amount of token1 to forward on mint\\n /// @return amount0 actual amount of token0 to forward when minting `mintAmount`\\n /// @return amount1 actual amount of token1 to forward when minting `mintAmount`\\n /// @return mintAmount maximum number of G-UNI tokens to mint\\n function getMintAmounts(uint256 amount0Max, uint256 amount1Max)\\n external\\n view\\n returns (\\n uint256 amount0,\\n uint256 amount1,\\n uint256 mintAmount\\n )\\n {\\n uint256 totalSupply = totalSupply();\\n if (totalSupply > 0) {\\n (amount0, amount1, mintAmount) = _computeMintAmounts(\\n totalSupply,\\n amount0Max,\\n amount1Max\\n );\\n } else {\\n (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();\\n uint128 newLiquidity =\\n LiquidityAmounts.getLiquidityForAmounts(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n amount0Max,\\n amount1Max\\n );\\n mintAmount = uint256(newLiquidity);\\n (amount0, amount1) = LiquidityAmounts.getAmountsForLiquidity(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n newLiquidity\\n );\\n }\\n }\\n\\n /// @notice compute total underlying holdings of the G-UNI token supply\\n /// includes current liquidity invested in uniswap position, current fees earned\\n /// and any uninvested leftover (but does not include manager or gelato fees accrued)\\n /// @return amount0Current current total underlying balance of token0\\n /// @return amount1Current current total underlying balance of token1\\n function getUnderlyingBalances()\\n public\\n view\\n returns (uint256 amount0Current, uint256 amount1Current)\\n {\\n (uint160 sqrtRatioX96, int24 tick, , , , , ) = pool.slot0();\\n return _getUnderlyingBalances(sqrtRatioX96, tick);\\n }\\n\\n function getUnderlyingBalancesAtPrice(uint160 sqrtRatioX96)\\n external\\n view\\n returns (uint256 amount0Current, uint256 amount1Current)\\n {\\n (, int24 tick, , , , , ) = pool.slot0();\\n return _getUnderlyingBalances(sqrtRatioX96, tick);\\n }\\n\\n // solhint-disable-next-line function-max-lines\\n function _getUnderlyingBalances(uint160 sqrtRatioX96, int24 tick)\\n internal\\n view\\n returns (uint256 amount0Current, uint256 amount1Current)\\n {\\n (\\n uint128 liquidity,\\n uint256 feeGrowthInside0Last,\\n uint256 feeGrowthInside1Last,\\n uint128 tokensOwed0,\\n uint128 tokensOwed1\\n ) = pool.positions(_getPositionID());\\n\\n // compute current holdings from liquidity\\n (amount0Current, amount1Current) = LiquidityAmounts\\n .getAmountsForLiquidity(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n liquidity\\n );\\n\\n // compute current fees earned\\n uint256 fee0 =\\n _computeFeesEarned(true, feeGrowthInside0Last, tick, liquidity) +\\n uint256(tokensOwed0);\\n uint256 fee1 =\\n _computeFeesEarned(false, feeGrowthInside1Last, tick, liquidity) +\\n uint256(tokensOwed1);\\n\\n (fee0, fee1) = _subtractAdminFees(fee0, fee1);\\n\\n // add any leftover in contract to current holdings\\n amount0Current +=\\n fee0 +\\n token0.balanceOf(address(this)) -\\n managerBalance0 -\\n gelatoBalance0;\\n amount1Current +=\\n fee1 +\\n token1.balanceOf(address(this)) -\\n managerBalance1 -\\n gelatoBalance1;\\n }\\n\\n // Private functions\\n\\n // solhint-disable-next-line function-max-lines\\n function _rebalance(\\n uint128 liquidity,\\n uint160 swapThresholdPrice,\\n uint256 swapAmountBPS,\\n bool zeroForOne,\\n uint256 feeAmount,\\n address paymentToken\\n ) private {\\n uint256 leftover0 =\\n token0.balanceOf(address(this)) - managerBalance0 - gelatoBalance0;\\n uint256 leftover1 =\\n token1.balanceOf(address(this)) - managerBalance1 - gelatoBalance1;\\n\\n (, , uint256 feesEarned0, uint256 feesEarned1) =\\n _withdraw(lowerTick, upperTick, liquidity);\\n _applyFees(feesEarned0, feesEarned1);\\n (feesEarned0, feesEarned1) = _subtractAdminFees(\\n feesEarned0,\\n feesEarned1\\n );\\n emit FeesEarned(feesEarned0, feesEarned1);\\n feesEarned0 += leftover0;\\n feesEarned1 += leftover1;\\n\\n if (paymentToken == address(token0)) {\\n require(\\n (feesEarned0 * gelatoRebalanceBPS) / 10000 >= feeAmount,\\n \\\"high fee\\\"\\n );\\n leftover0 =\\n token0.balanceOf(address(this)) -\\n managerBalance0 -\\n gelatoBalance0 -\\n feeAmount;\\n leftover1 =\\n token1.balanceOf(address(this)) -\\n managerBalance1 -\\n gelatoBalance1;\\n } else if (paymentToken == address(token1)) {\\n require(\\n (feesEarned1 * gelatoRebalanceBPS) / 10000 >= feeAmount,\\n \\\"high fee\\\"\\n );\\n leftover0 =\\n token0.balanceOf(address(this)) -\\n managerBalance0 -\\n gelatoBalance0;\\n leftover1 =\\n token1.balanceOf(address(this)) -\\n managerBalance1 -\\n gelatoBalance1 -\\n feeAmount;\\n } else {\\n revert(\\\"wrong token\\\");\\n }\\n\\n _deposit(\\n lowerTick,\\n upperTick,\\n leftover0,\\n leftover1,\\n swapThresholdPrice,\\n swapAmountBPS,\\n zeroForOne\\n );\\n }\\n\\n // solhint-disable-next-line function-max-lines\\n function _withdraw(\\n int24 lowerTick_,\\n int24 upperTick_,\\n uint128 liquidity\\n )\\n private\\n returns (\\n uint256 burn0,\\n uint256 burn1,\\n uint256 fee0,\\n uint256 fee1\\n )\\n {\\n uint256 preBalance0 = token0.balanceOf(address(this));\\n uint256 preBalance1 = token1.balanceOf(address(this));\\n\\n (burn0, burn1) = pool.burn(lowerTick_, upperTick_, liquidity);\\n\\n pool.collect(\\n address(this),\\n lowerTick_,\\n upperTick_,\\n type(uint128).max,\\n type(uint128).max\\n );\\n\\n fee0 = token0.balanceOf(address(this)) - preBalance0 - burn0;\\n fee1 = token1.balanceOf(address(this)) - preBalance1 - burn1;\\n }\\n\\n // solhint-disable-next-line function-max-lines\\n function _deposit(\\n int24 lowerTick_,\\n int24 upperTick_,\\n uint256 amount0,\\n uint256 amount1,\\n uint160 swapThresholdPrice,\\n uint256 swapAmountBPS,\\n bool zeroForOne\\n ) private {\\n (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();\\n // First, deposit as much as we can\\n uint128 baseLiquidity =\\n LiquidityAmounts.getLiquidityForAmounts(\\n sqrtRatioX96,\\n lowerTick_.getSqrtRatioAtTick(),\\n upperTick_.getSqrtRatioAtTick(),\\n amount0,\\n amount1\\n );\\n if (baseLiquidity > 0) {\\n (uint256 amountDeposited0, uint256 amountDeposited1) =\\n pool.mint(\\n address(this),\\n lowerTick_,\\n upperTick_,\\n baseLiquidity,\\n \\\"\\\"\\n );\\n\\n amount0 -= amountDeposited0;\\n amount1 -= amountDeposited1;\\n }\\n int256 swapAmount =\\n SafeCast.toInt256(\\n ((zeroForOne ? amount0 : amount1) * swapAmountBPS) / 10000\\n );\\n if (swapAmount > 0) {\\n _swapAndDeposit(\\n lowerTick_,\\n upperTick_,\\n amount0,\\n amount1,\\n swapAmount,\\n swapThresholdPrice,\\n zeroForOne\\n );\\n }\\n }\\n\\n function _swapAndDeposit(\\n int24 lowerTick_,\\n int24 upperTick_,\\n uint256 amount0,\\n uint256 amount1,\\n int256 swapAmount,\\n uint160 swapThresholdPrice,\\n bool zeroForOne\\n ) private returns (uint256 finalAmount0, uint256 finalAmount1) {\\n (int256 amount0Delta, int256 amount1Delta) =\\n pool.swap(\\n address(this),\\n zeroForOne,\\n swapAmount,\\n swapThresholdPrice,\\n \\\"\\\"\\n );\\n finalAmount0 = uint256(SafeCast.toInt256(amount0) - amount0Delta);\\n finalAmount1 = uint256(SafeCast.toInt256(amount1) - amount1Delta);\\n\\n // Add liquidity a second time\\n (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();\\n uint128 liquidityAfterSwap =\\n LiquidityAmounts.getLiquidityForAmounts(\\n sqrtRatioX96,\\n lowerTick_.getSqrtRatioAtTick(),\\n upperTick_.getSqrtRatioAtTick(),\\n finalAmount0,\\n finalAmount1\\n );\\n if (liquidityAfterSwap > 0) {\\n pool.mint(\\n address(this),\\n lowerTick_,\\n upperTick_,\\n liquidityAfterSwap,\\n \\\"\\\"\\n );\\n }\\n }\\n\\n // solhint-disable-next-line function-max-lines, code-complexity\\n function _computeMintAmounts(\\n uint256 totalSupply,\\n uint256 amount0Max,\\n uint256 amount1Max\\n )\\n private\\n view\\n returns (\\n uint256 amount0,\\n uint256 amount1,\\n uint256 mintAmount\\n )\\n {\\n (uint256 amount0Current, uint256 amount1Current) =\\n getUnderlyingBalances();\\n\\n // compute proportional amount of tokens to mint\\n if (amount0Current == 0 && amount1Current > 0) {\\n mintAmount = FullMath.mulDiv(\\n amount1Max,\\n totalSupply,\\n amount1Current\\n );\\n } else if (amount1Current == 0 && amount0Current > 0) {\\n mintAmount = FullMath.mulDiv(\\n amount0Max,\\n totalSupply,\\n amount0Current\\n );\\n } else if (amount0Current == 0 && amount1Current == 0) {\\n revert(\\\"\\\");\\n } else {\\n // only if both are non-zero\\n uint256 amount0Mint =\\n FullMath.mulDiv(amount0Max, totalSupply, amount0Current);\\n uint256 amount1Mint =\\n FullMath.mulDiv(amount1Max, totalSupply, amount1Current);\\n require(amount0Mint > 0 && amount1Mint > 0, \\\"mint 0\\\");\\n\\n mintAmount = amount0Mint < amount1Mint ? amount0Mint : amount1Mint;\\n }\\n\\n // compute amounts owed to contract\\n amount0 = FullMath.mulDivRoundingUp(\\n mintAmount,\\n amount0Current,\\n totalSupply\\n );\\n amount1 = FullMath.mulDivRoundingUp(\\n mintAmount,\\n amount1Current,\\n totalSupply\\n );\\n }\\n\\n // solhint-disable-next-line function-max-lines\\n function _computeFeesEarned(\\n bool isZero,\\n uint256 feeGrowthInsideLast,\\n int24 tick,\\n uint128 liquidity\\n ) private view returns (uint256 fee) {\\n uint256 feeGrowthOutsideLower;\\n uint256 feeGrowthOutsideUpper;\\n uint256 feeGrowthGlobal;\\n if (isZero) {\\n feeGrowthGlobal = pool.feeGrowthGlobal0X128();\\n (, , feeGrowthOutsideLower, , , , , ) = pool.ticks(lowerTick);\\n (, , feeGrowthOutsideUpper, , , , , ) = pool.ticks(upperTick);\\n } else {\\n feeGrowthGlobal = pool.feeGrowthGlobal1X128();\\n (, , , feeGrowthOutsideLower, , , , ) = pool.ticks(lowerTick);\\n (, , , feeGrowthOutsideUpper, , , , ) = pool.ticks(upperTick);\\n }\\n\\n unchecked {\\n // calculate fee growth below\\n uint256 feeGrowthBelow;\\n if (tick >= lowerTick) {\\n feeGrowthBelow = feeGrowthOutsideLower;\\n } else {\\n feeGrowthBelow = feeGrowthGlobal - feeGrowthOutsideLower;\\n }\\n\\n // calculate fee growth above\\n uint256 feeGrowthAbove;\\n if (tick < upperTick) {\\n feeGrowthAbove = feeGrowthOutsideUpper;\\n } else {\\n feeGrowthAbove = feeGrowthGlobal - feeGrowthOutsideUpper;\\n }\\n\\n uint256 feeGrowthInside =\\n feeGrowthGlobal - feeGrowthBelow - feeGrowthAbove;\\n fee = FullMath.mulDiv(\\n liquidity,\\n feeGrowthInside - feeGrowthInsideLast,\\n 0x100000000000000000000000000000000\\n );\\n }\\n }\\n\\n function _applyFees(uint256 _fee0, uint256 _fee1) private {\\n gelatoBalance0 += (_fee0 * gelatoFeeBPS) / 10000;\\n gelatoBalance1 += (_fee1 * gelatoFeeBPS) / 10000;\\n managerBalance0 += (_fee0 * managerFeeBPS) / 10000;\\n managerBalance1 += (_fee1 * managerFeeBPS) / 10000;\\n }\\n\\n function _subtractAdminFees(uint256 rawFee0, uint256 rawFee1)\\n private\\n view\\n returns (uint256 fee0, uint256 fee1)\\n {\\n uint256 deduct0 = (rawFee0 * (gelatoFeeBPS + managerFeeBPS)) / 10000;\\n uint256 deduct1 = (rawFee1 * (gelatoFeeBPS + managerFeeBPS)) / 10000;\\n fee0 = rawFee0 - deduct0;\\n fee1 = rawFee1 - deduct1;\\n }\\n\\n function _checkSlippage(uint160 swapThresholdPrice, bool zeroForOne)\\n private\\n view\\n {\\n uint32[] memory secondsAgo = new uint32[](2);\\n secondsAgo[0] = gelatoSlippageInterval;\\n secondsAgo[1] = 0;\\n\\n (int56[] memory tickCumulatives, ) = pool.observe(secondsAgo);\\n\\n require(tickCumulatives.length == 2, \\\"array len\\\");\\n uint160 avgSqrtRatioX96;\\n unchecked {\\n int24 avgTick =\\n int24(\\n (tickCumulatives[1] - tickCumulatives[0]) /\\n int56(uint56(gelatoSlippageInterval))\\n );\\n avgSqrtRatioX96 = avgTick.getSqrtRatioAtTick();\\n }\\n\\n uint160 maxSlippage = (avgSqrtRatioX96 * gelatoSlippageBPS) / 10000;\\n if (zeroForOne) {\\n require(\\n swapThresholdPrice >= avgSqrtRatioX96 - maxSlippage,\\n \\\"high slippage\\\"\\n );\\n } else {\\n require(\\n swapThresholdPrice <= avgSqrtRatioX96 + maxSlippage,\\n \\\"high slippage\\\"\\n );\\n }\\n }\\n}\\n\",\"keccak256\":\"0xdd382818c81f34c434bb3d4235ac9ff39034cb68e1b87244837d9250878d9fa0\",\"license\":\"GPL-3.0\"},\"contracts/abstract/GUniPoolStorage.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\nimport {Gelatofied} from \\\"./Gelatofied.sol\\\";\\nimport {OwnableUninitialized} from \\\"./OwnableUninitialized.sol\\\";\\nimport {\\n IUniswapV3Pool\\n} from \\\"@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol\\\";\\nimport {IERC20} from \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport {\\n ReentrancyGuardUpgradeable\\n} from \\\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\\\";\\nimport {\\n ERC20Upgradeable\\n} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol\\\";\\n\\n/// @dev Single Global upgradeable state var storage base: APPEND ONLY\\n/// @dev Add all inherited contracts with state vars here: APPEND ONLY\\n/// @dev ERC20Upgradable Includes Initialize\\n// solhint-disable-next-line max-states-count\\n/// @dev Modified to support 0.8.19\\n/// @dev Modified to set the gelatoFeeBPS to 0\\nabstract contract GUniPoolStorage is\\n ERC20Upgradeable, /* XXXX DONT MODIFY ORDERING XXXX */\\n ReentrancyGuardUpgradeable,\\n OwnableUninitialized,\\n Gelatofied\\n // APPEND ADDITIONAL BASE WITH STATE VARS BELOW:\\n // XXXX DONT MODIFY ORDERING XXXX\\n{\\n // solhint-disable-next-line const-name-snakecase\\n string public constant version = \\\"1.0.0\\\";\\n // solhint-disable-next-line const-name-snakecase\\n uint16 public constant gelatoFeeBPS = 0;\\n\\n // XXXXXXXX DO NOT MODIFY ORDERING XXXXXXXX\\n int24 public lowerTick;\\n int24 public upperTick;\\n\\n uint16 public gelatoRebalanceBPS;\\n uint16 public gelatoWithdrawBPS;\\n uint16 public gelatoSlippageBPS;\\n uint32 public gelatoSlippageInterval;\\n\\n uint16 public managerFeeBPS;\\n address public managerTreasury;\\n\\n uint256 public managerBalance0;\\n uint256 public managerBalance1;\\n uint256 public gelatoBalance0;\\n uint256 public gelatoBalance1;\\n\\n IUniswapV3Pool public pool;\\n IERC20 public token0;\\n IERC20 public token1;\\n // APPPEND ADDITIONAL STATE VARS BELOW:\\n // XXXXXXXX DO NOT MODIFY ORDERING XXXXXXXX\\n\\n event UpdateAdminTreasury(\\n address oldAdminTreasury,\\n address newAdminTreasury\\n );\\n\\n event UpdateGelatoParams(\\n uint16 gelatoRebalanceBPS,\\n uint16 gelatoWithdrawBPS,\\n uint16 gelatoSlippageBPS,\\n uint32 gelatoSlippageInterval\\n );\\n\\n event SetManagerFee(uint16 managerFee);\\n\\n // solhint-disable-next-line max-line-length\\n constructor(address payable _gelato) Gelatofied(_gelato) {} // solhint-disable-line no-empty-blocks\\n\\n /// @notice initialize storage variables on a new G-UNI pool, only called once\\n /// @param _name name of G-UNI token\\n /// @param _symbol symbol of G-UNI token\\n /// @param _pool address of Uniswap V3 pool\\n /// @param _managerFeeBPS proportion of fees earned that go to manager treasury\\n /// note that the 4 above params are NOT UPDATEABLE AFTER INILIALIZATION\\n /// @param _lowerTick initial lowerTick (only changeable with executiveRebalance)\\n /// @param _lowerTick initial upperTick (only changeable with executiveRebalance)\\n /// @param _manager_ address of manager (ownership can be transferred)\\n function initialize(\\n string memory _name,\\n string memory _symbol,\\n address _pool,\\n uint16 _managerFeeBPS,\\n int24 _lowerTick,\\n int24 _upperTick,\\n address _manager_\\n ) external initializer {\\n require(_managerFeeBPS <= 10000 - gelatoFeeBPS, \\\"mBPS\\\");\\n\\n // these variables are immutable after initialization\\n pool = IUniswapV3Pool(_pool);\\n token0 = IERC20(pool.token0());\\n token1 = IERC20(pool.token1());\\n managerFeeBPS = _managerFeeBPS; // if set to 0 here manager can still initialize later\\n\\n // these variables can be udpated by the manager\\n gelatoSlippageInterval = 5 minutes; // default: last five minutes;\\n gelatoSlippageBPS = 500; // default: 5% slippage\\n gelatoWithdrawBPS = 100; // default: only auto withdraw if tx fee is lt 1% withdrawn\\n gelatoRebalanceBPS = 200; // default: only rebalance if tx fee is lt 2% reinvested\\n managerTreasury = _manager_; // default: treasury is admin\\n lowerTick = _lowerTick;\\n upperTick = _upperTick;\\n _manager = _manager_;\\n\\n // e.g. \\\"Gelato Uniswap V3 USDC/DAI LP\\\" and \\\"G-UNI\\\"\\n __ERC20_init(_name, _symbol);\\n __ReentrancyGuard_init();\\n }\\n\\n /// @notice change configurable parameters, only manager can call\\n /// @param newRebalanceBPS controls frequency of gelato rebalances: gas fee to execute\\n /// rebalance can be gelatoRebalanceBPS proportion of fees earned since last rebalance\\n /// @param newWithdrawBPS controls frequency of gelato withdrawals: gas fee to execute\\n /// withdrawal can be gelatoWithdrawBPS proportion of fees accrued since last withdraw\\n /// @param newSlippageBPS maximum slippage on swaps during gelato rebalance\\n /// @param newSlippageInterval length of time for TWAP used in computing slippage on swaps\\n /// @param newTreasury address where managerFee withdrawals are sent\\n // solhint-disable-next-line code-complexity\\n function updateGelatoParams(\\n uint16 newRebalanceBPS,\\n uint16 newWithdrawBPS,\\n uint16 newSlippageBPS,\\n uint32 newSlippageInterval,\\n address newTreasury\\n ) external onlyManager {\\n require(newWithdrawBPS <= 10000, \\\"BPS\\\");\\n require(newRebalanceBPS <= 10000, \\\"BPS\\\");\\n require(newSlippageBPS <= 10000, \\\"BPS\\\");\\n emit UpdateGelatoParams(\\n newRebalanceBPS,\\n newWithdrawBPS,\\n newSlippageBPS,\\n newSlippageInterval\\n );\\n if (newRebalanceBPS != 0) gelatoRebalanceBPS = newRebalanceBPS;\\n if (newWithdrawBPS != 0) gelatoWithdrawBPS = newWithdrawBPS;\\n if (newSlippageBPS != 0) gelatoSlippageBPS = newSlippageBPS;\\n if (newSlippageInterval != 0)\\n gelatoSlippageInterval = newSlippageInterval;\\n if (newTreasury != address(0)) managerTreasury = newTreasury;\\n }\\n\\n /// @notice initializeManagerFee sets a managerFee, only manager can call.\\n /// If a manager fee was not set in the initialize function it can be set here\\n /// but ONLY ONCE- after it is set to a non-zero value, managerFee can never be set again.\\n /// @param _managerFeeBPS proportion of fees earned that are credited to manager in Basis Points\\n function initializeManagerFee(uint16 _managerFeeBPS) external onlyManager {\\n require(managerFeeBPS == 0, \\\"fee\\\");\\n require(\\n _managerFeeBPS > 0 && _managerFeeBPS <= 10000 - gelatoFeeBPS,\\n \\\"mBPS\\\"\\n );\\n emit SetManagerFee(_managerFeeBPS);\\n managerFeeBPS = _managerFeeBPS;\\n }\\n\\n function renounceOwnership() public virtual override onlyManager {\\n managerTreasury = address(0);\\n managerFeeBPS = 0;\\n managerBalance0 = 0;\\n managerBalance1 = 0;\\n super.renounceOwnership();\\n }\\n\\n function getPositionID() external view returns (bytes32 positionID) {\\n return _getPositionID();\\n }\\n\\n function _getPositionID() internal view returns (bytes32 positionID) {\\n return keccak256(abi.encodePacked(address(this), lowerTick, upperTick));\\n }\\n}\\n\",\"keccak256\":\"0xd1ad805a13c7cd73554b1e3cc3735f3f369d759f8e0b9188977b85295456d033\",\"license\":\"GPL-3.0\"},\"contracts/abstract/Gelatofied.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\nimport {Address} from \\\"@openzeppelin/contracts/utils/Address.sol\\\";\\nimport {\\n IERC20,\\n SafeERC20\\n} from \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\n\\n/// @dev DO NOT ADD STATE VARIABLES - APPEND THEM TO GelatoUniV3PoolStorage\\n/// @dev DO NOT ADD BASE CONTRACTS WITH STATE VARS - APPEND THEM TO GelatoUniV3PoolStorage\\nabstract contract Gelatofied {\\n using Address for address payable;\\n using SafeERC20 for IERC20;\\n\\n // solhint-disable-next-line var-name-mixedcase\\n address payable public immutable GELATO;\\n\\n address private constant _ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\\n\\n constructor(address payable _gelato) {\\n GELATO = _gelato;\\n }\\n\\n modifier gelatofy(uint256 _amount, address _paymentToken) {\\n require(msg.sender == GELATO, \\\"Gelatofied: Only gelato\\\");\\n _;\\n if (_paymentToken == _ETH) GELATO.sendValue(_amount);\\n else IERC20(_paymentToken).safeTransfer(GELATO, _amount);\\n }\\n}\\n\",\"keccak256\":\"0x264bc07e6e1b80c454c311ecf4b56afe245ddde31151ed9bcc4cb9ad25bec46a\",\"license\":\"GPL-3.0\"},\"contracts/abstract/OwnableUninitialized.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an manager) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the manager 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 * `onlyManager`, which can be applied to your functions to restrict their use to\\n * the manager.\\n */\\n/// @dev DO NOT ADD STATE VARIABLES - APPEND THEM TO GelatoUniV3PoolStorage\\n/// @dev DO NOT ADD BASE CONTRACTS WITH STATE VARS - APPEND THEM TO GelatoUniV3PoolStorage\\nabstract contract OwnableUninitialized {\\n address internal _manager;\\n\\n event OwnershipTransferred(\\n address indexed previousManager,\\n address indexed newManager\\n );\\n\\n /// @dev Initializes the contract setting the deployer as the initial manager.\\n /// CONSTRUCTOR EMPTY - USE INITIALIZIABLE INSTEAD\\n // solhint-disable-next-line no-empty-blocks\\n constructor() {}\\n\\n /**\\n * @dev Returns the address of the current manager.\\n */\\n function manager() public view virtual returns (address) {\\n return _manager;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the manager.\\n */\\n modifier onlyManager() {\\n require(manager() == msg.sender, \\\"Ownable: caller is not the manager\\\");\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without manager. It will not be possible to call\\n * `onlyManager` functions anymore. Can only be called by the current manager.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an manager,\\n * thereby removing any functionality that is only available to the manager.\\n */\\n function renounceOwnership() public virtual onlyManager {\\n emit OwnershipTransferred(_manager, address(0));\\n _manager = 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 manager.\\n */\\n function transferOwnership(address newOwner) public virtual onlyManager {\\n require(\\n newOwner != address(0),\\n \\\"Ownable: new manager is the zero address\\\"\\n );\\n emit OwnershipTransferred(_manager, newOwner);\\n _manager = newOwner;\\n }\\n}\\n\",\"keccak256\":\"0xb6016d5611f38fbd516a84ea2e56794cb76a8d61c40f6716d5f0133f195759bd\",\"license\":\"GPL-3.0\"},\"contracts/vendor/uniswap/FullMath.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity ^0.8.4;\\n\\n/// @title Contains 512-bit math functions\\n/// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision\\n/// @dev Handles \\\"phantom overflow\\\" i.e., allows multiplication and division where an intermediate value overflows 256 bits\\nlibrary FullMath {\\n /// @notice Calculates floor(a\\u00d7b\\u00f7denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n /// @param a The multiplicand\\n /// @param b The multiplier\\n /// @param denominator The divisor\\n /// @return result The 256-bit result\\n /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv\\n function mulDiv(\\n uint256 a,\\n uint256 b,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = a * b\\n // Compute the product mod 2**256 and mod 2**256 - 1\\n // then use the Chinese Remainder Theorem to reconstruct\\n // the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2**256 + prod0\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(a, b, not(0))\\n prod0 := mul(a, b)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division\\n if (prod1 == 0) {\\n require(denominator > 0);\\n assembly {\\n result := div(prod0, denominator)\\n }\\n return result;\\n }\\n\\n // Make sure the result is less than 2**256.\\n // Also prevents denominator == 0\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0]\\n // Compute remainder using mulmod\\n uint256 remainder;\\n assembly {\\n remainder := mulmod(a, b, denominator)\\n }\\n // Subtract 256 bit number from 512 bit number\\n assembly {\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator\\n // Compute largest power of two divisor of denominator.\\n // Always >= 1.\\n // EDIT for 0.8 compatibility:\\n // see: https://ethereum.stackexchange.com/questions/96642/unary-operator-cannot-be-applied-to-type-uint256\\n uint256 twos = denominator & (~denominator + 1);\\n\\n // Divide denominator by power of two\\n assembly {\\n denominator := div(denominator, twos)\\n }\\n\\n // Divide [prod1 prod0] by the factors of two\\n assembly {\\n prod0 := div(prod0, twos)\\n }\\n // Shift in bits from prod1 into prod0. For this we need\\n // to flip `twos` such that it is 2**256 / twos.\\n // If twos is zero, then it becomes one\\n assembly {\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2**256\\n // Now that denominator is an odd number, it has an inverse\\n // modulo 2**256 such that denominator * inv = 1 mod 2**256.\\n // Compute the inverse by starting with a seed that is correct\\n // correct for four bits. That is, denominator * inv = 1 mod 2**4\\n uint256 inv = (3 * denominator) ^ 2;\\n // Now use Newton-Raphson iteration to improve the precision.\\n // Thanks to Hensel's lifting lemma, this also works in modular\\n // arithmetic, doubling the correct bits in each step.\\n inv *= 2 - denominator * inv; // inverse mod 2**8\\n inv *= 2 - denominator * inv; // inverse mod 2**16\\n inv *= 2 - denominator * inv; // inverse mod 2**32\\n inv *= 2 - denominator * inv; // inverse mod 2**64\\n inv *= 2 - denominator * inv; // inverse mod 2**128\\n inv *= 2 - denominator * inv; // inverse mod 2**256\\n\\n // Because the division is now exact we can divide by multiplying\\n // with the modular inverse of denominator. This will give us the\\n // correct result modulo 2**256. Since the precoditions guarantee\\n // that the outcome is less than 2**256, this is the final result.\\n // We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inv;\\n return result;\\n }\\n }\\n\\n /// @notice Calculates ceil(a\\u00d7b\\u00f7denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n /// @param a The multiplicand\\n /// @param b The multiplier\\n /// @param denominator The divisor\\n /// @return result The 256-bit result\\n function mulDivRoundingUp(\\n uint256 a,\\n uint256 b,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n result = mulDiv(a, b, denominator);\\n if (mulmod(a, b, denominator) > 0) {\\n require(result < type(uint256).max);\\n result++;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3fa0efa3eea2a84bd6ab7e55badd61f97069a6c50780059b036c810427a9740c\",\"license\":\"GPL-3.0\"},\"contracts/vendor/uniswap/LiquidityAmounts.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity >=0.5.0;\\n\\nimport {FullMath} from \\\"./FullMath.sol\\\";\\nimport \\\"@uniswap/v3-core/contracts/libraries/FixedPoint96.sol\\\";\\n\\n/// @title Liquidity amount functions\\n/// @notice Provides functions for computing liquidity amounts from token amounts and prices\\nlibrary LiquidityAmounts {\\n function toUint128(uint256 x) private pure returns (uint128 y) {\\n require((y = uint128(x)) == x);\\n }\\n\\n /// @notice Computes the amount of liquidity received for a given amount of token0 and price range\\n /// @dev Calculates amount0 * (sqrt(upper) * sqrt(lower)) / (sqrt(upper) - sqrt(lower)).\\n /// @param sqrtRatioAX96 A sqrt price\\n /// @param sqrtRatioBX96 Another sqrt price\\n /// @param amount0 The amount0 being sent in\\n /// @return liquidity The amount of returned liquidity\\n function getLiquidityForAmount0(\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint256 amount0\\n ) internal pure returns (uint128 liquidity) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n uint256 intermediate =\\n FullMath.mulDiv(sqrtRatioAX96, sqrtRatioBX96, FixedPoint96.Q96);\\n return\\n toUint128(\\n FullMath.mulDiv(\\n amount0,\\n intermediate,\\n sqrtRatioBX96 - sqrtRatioAX96\\n )\\n );\\n }\\n\\n /// @notice Computes the amount of liquidity received for a given amount of token1 and price range\\n /// @dev Calculates amount1 / (sqrt(upper) - sqrt(lower)).\\n /// @param sqrtRatioAX96 A sqrt price\\n /// @param sqrtRatioBX96 Another sqrt price\\n /// @param amount1 The amount1 being sent in\\n /// @return liquidity The amount of returned liquidity\\n function getLiquidityForAmount1(\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint256 amount1\\n ) internal pure returns (uint128 liquidity) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n return\\n toUint128(\\n FullMath.mulDiv(\\n amount1,\\n FixedPoint96.Q96,\\n sqrtRatioBX96 - sqrtRatioAX96\\n )\\n );\\n }\\n\\n /// @notice Computes the maximum amount of liquidity received for a given amount of token0, token1, the current\\n /// pool prices and the prices at the tick boundaries\\n function getLiquidityForAmounts(\\n uint160 sqrtRatioX96,\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint256 amount0,\\n uint256 amount1\\n ) internal pure returns (uint128 liquidity) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n\\n if (sqrtRatioX96 <= sqrtRatioAX96) {\\n liquidity = getLiquidityForAmount0(\\n sqrtRatioAX96,\\n sqrtRatioBX96,\\n amount0\\n );\\n } else if (sqrtRatioX96 < sqrtRatioBX96) {\\n uint128 liquidity0 =\\n getLiquidityForAmount0(sqrtRatioX96, sqrtRatioBX96, amount0);\\n uint128 liquidity1 =\\n getLiquidityForAmount1(sqrtRatioAX96, sqrtRatioX96, amount1);\\n\\n liquidity = liquidity0 < liquidity1 ? liquidity0 : liquidity1;\\n } else {\\n liquidity = getLiquidityForAmount1(\\n sqrtRatioAX96,\\n sqrtRatioBX96,\\n amount1\\n );\\n }\\n }\\n\\n /// @notice Computes the amount of token0 for a given amount of liquidity and a price range\\n /// @param sqrtRatioAX96 A sqrt price\\n /// @param sqrtRatioBX96 Another sqrt price\\n /// @param liquidity The liquidity being valued\\n /// @return amount0 The amount0\\n function getAmount0ForLiquidity(\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint128 liquidity\\n ) internal pure returns (uint256 amount0) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n\\n return\\n FullMath.mulDiv(\\n uint256(liquidity) << FixedPoint96.RESOLUTION,\\n sqrtRatioBX96 - sqrtRatioAX96,\\n sqrtRatioBX96\\n ) / sqrtRatioAX96;\\n }\\n\\n /// @notice Computes the amount of token1 for a given amount of liquidity and a price range\\n /// @param sqrtRatioAX96 A sqrt price\\n /// @param sqrtRatioBX96 Another sqrt price\\n /// @param liquidity The liquidity being valued\\n /// @return amount1 The amount1\\n function getAmount1ForLiquidity(\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint128 liquidity\\n ) internal pure returns (uint256 amount1) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n\\n return\\n FullMath.mulDiv(\\n liquidity,\\n sqrtRatioBX96 - sqrtRatioAX96,\\n FixedPoint96.Q96\\n );\\n }\\n\\n /// @notice Computes the token0 and token1 value for a given amount of liquidity, the current\\n /// pool prices and the prices at the tick boundaries\\n function getAmountsForLiquidity(\\n uint160 sqrtRatioX96,\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint128 liquidity\\n ) internal pure returns (uint256 amount0, uint256 amount1) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n\\n if (sqrtRatioX96 <= sqrtRatioAX96) {\\n amount0 = getAmount0ForLiquidity(\\n sqrtRatioAX96,\\n sqrtRatioBX96,\\n liquidity\\n );\\n } else if (sqrtRatioX96 < sqrtRatioBX96) {\\n amount0 = getAmount0ForLiquidity(\\n sqrtRatioX96,\\n sqrtRatioBX96,\\n liquidity\\n );\\n amount1 = getAmount1ForLiquidity(\\n sqrtRatioAX96,\\n sqrtRatioX96,\\n liquidity\\n );\\n } else {\\n amount1 = getAmount1ForLiquidity(\\n sqrtRatioAX96,\\n sqrtRatioBX96,\\n liquidity\\n );\\n }\\n }\\n}\\n\",\"keccak256\":\"0x6205f6409d42fc9565530d2a69819bf8c4e4c66b7a4c61d0827e81c084df6832\",\"license\":\"GPL-3.0\"},\"contracts/vendor/uniswap/TickMath.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\n/// @title Math library for computing sqrt prices from ticks and vice versa\\n/// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports\\n/// prices between 2**-128 and 2**128\\nlibrary TickMath {\\n /// @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128\\n int24 internal constant MIN_TICK = -887272;\\n /// @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128\\n int24 internal constant MAX_TICK = -MIN_TICK;\\n\\n /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\\n uint160 internal constant MIN_SQRT_RATIO = 4295128739;\\n /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\\n uint160 internal constant MAX_SQRT_RATIO =\\n 1461446703485210103287273052203988822378723970342;\\n\\n /// @notice Calculates sqrt(1.0001^tick) * 2^96\\n /// @dev Throws if |tick| > max tick\\n /// @param tick The input tick for the above formula\\n /// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0)\\n /// at the given tick\\n function getSqrtRatioAtTick(int24 tick)\\n internal\\n pure\\n returns (uint160 sqrtPriceX96)\\n {\\n uint256 absTick =\\n tick < 0 ? uint256(-int256(tick)) : uint256(int256(tick));\\n\\n // EDIT: 0.8 compatibility\\n require(absTick <= uint256(int256(MAX_TICK)), \\\"T\\\");\\n\\n uint256 ratio =\\n absTick & 0x1 != 0\\n ? 0xfffcb933bd6fad37aa2d162d1a594001\\n : 0x100000000000000000000000000000000;\\n if (absTick & 0x2 != 0)\\n ratio = (ratio * 0xfff97272373d413259a46990580e213a) >> 128;\\n if (absTick & 0x4 != 0)\\n ratio = (ratio * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128;\\n if (absTick & 0x8 != 0)\\n ratio = (ratio * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128;\\n if (absTick & 0x10 != 0)\\n ratio = (ratio * 0xffcb9843d60f6159c9db58835c926644) >> 128;\\n if (absTick & 0x20 != 0)\\n ratio = (ratio * 0xff973b41fa98c081472e6896dfb254c0) >> 128;\\n if (absTick & 0x40 != 0)\\n ratio = (ratio * 0xff2ea16466c96a3843ec78b326b52861) >> 128;\\n if (absTick & 0x80 != 0)\\n ratio = (ratio * 0xfe5dee046a99a2a811c461f1969c3053) >> 128;\\n if (absTick & 0x100 != 0)\\n ratio = (ratio * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128;\\n if (absTick & 0x200 != 0)\\n ratio = (ratio * 0xf987a7253ac413176f2b074cf7815e54) >> 128;\\n if (absTick & 0x400 != 0)\\n ratio = (ratio * 0xf3392b0822b70005940c7a398e4b70f3) >> 128;\\n if (absTick & 0x800 != 0)\\n ratio = (ratio * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128;\\n if (absTick & 0x1000 != 0)\\n ratio = (ratio * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128;\\n if (absTick & 0x2000 != 0)\\n ratio = (ratio * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128;\\n if (absTick & 0x4000 != 0)\\n ratio = (ratio * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128;\\n if (absTick & 0x8000 != 0)\\n ratio = (ratio * 0x31be135f97d08fd981231505542fcfa6) >> 128;\\n if (absTick & 0x10000 != 0)\\n ratio = (ratio * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128;\\n if (absTick & 0x20000 != 0)\\n ratio = (ratio * 0x5d6af8dedb81196699c329225ee604) >> 128;\\n if (absTick & 0x40000 != 0)\\n ratio = (ratio * 0x2216e584f5fa1ea926041bedfe98) >> 128;\\n if (absTick & 0x80000 != 0)\\n ratio = (ratio * 0x48a170391f7dc42444e8fa2) >> 128;\\n\\n if (tick > 0) ratio = type(uint256).max / ratio;\\n\\n // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96.\\n // we then downcast because we know the result always fits within 160 bits due to our tick input constraint\\n // we round up in the division so getTickAtSqrtRatio of the output price is always consistent\\n sqrtPriceX96 = uint160(\\n (ratio >> 32) + (ratio % (1 << 32) == 0 ? 0 : 1)\\n );\\n }\\n\\n /// @notice Calculates the greatest tick value such that getRatioAtTick(tick) <= ratio\\n /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_RATIO, as MIN_SQRT_RATIO is the lowest value getRatioAtTick may\\n /// ever return.\\n /// @param sqrtPriceX96 The sqrt ratio for which to compute the tick as a Q64.96\\n /// @return tick The greatest tick for which the ratio is less than or equal to the input ratio\\n function getTickAtSqrtRatio(uint160 sqrtPriceX96)\\n internal\\n pure\\n returns (int24 tick)\\n {\\n // second inequality must be < because the price can never reach the price at the max tick\\n require(\\n sqrtPriceX96 >= MIN_SQRT_RATIO && sqrtPriceX96 < MAX_SQRT_RATIO,\\n \\\"R\\\"\\n );\\n uint256 ratio = uint256(sqrtPriceX96) << 32;\\n\\n uint256 r = ratio;\\n uint256 msb = 0;\\n\\n assembly {\\n let f := shl(7, gt(r, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(6, gt(r, 0xFFFFFFFFFFFFFFFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(5, gt(r, 0xFFFFFFFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(4, gt(r, 0xFFFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(3, gt(r, 0xFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(2, gt(r, 0xF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(1, gt(r, 0x3))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := gt(r, 0x1)\\n msb := or(msb, f)\\n }\\n\\n if (msb >= 128) r = ratio >> (msb - 127);\\n else r = ratio << (127 - msb);\\n\\n int256 log_2 = (int256(msb) - 128) << 64;\\n\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(63, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(62, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(61, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(60, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(59, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(58, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(57, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(56, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(55, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(54, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(53, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(52, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(51, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(50, f))\\n }\\n\\n int256 log_sqrt10001 = log_2 * 255738958999603826347141; // 128.128 number\\n\\n int24 tickLow =\\n int24(\\n (log_sqrt10001 - 3402992956809132418596140100660247210) >> 128\\n );\\n int24 tickHi =\\n int24(\\n (log_sqrt10001 + 291339464771989622907027621153398088495) >> 128\\n );\\n\\n tick = tickLow == tickHi\\n ? tickLow\\n : getSqrtRatioAtTick(tickHi) <= sqrtPriceX96\\n ? tickHi\\n : tickLow;\\n }\\n}\\n\",\"keccak256\":\"0x589b6104fd07d2e56e5b52edcfa53e6e47e2c38cace38025c16278ca73413f2d\",\"license\":\"GPL-3.0\"}},\"version\":1}", + "bytecode": "0x60a06040523480156200001157600080fd5b5060405162005e0e38038062005e0e833981016040819052620000349162000046565b6001600160a01b031660805262000078565b6000602082840312156200005957600080fd5b81516001600160a01b03811681146200007157600080fd5b9392505050565b608051615d3b620000d3600039600081816105f801528181610ce301528181610dcc01528181610e06015281816114a7015281816116d50152818161170f015281816117e20152818161185901526118960152615d3b6000f3fe608060405234801561001057600080fd5b50600436106102255760003560e01c8063065756db1461022a57806306fdde0314610246578063095ea7b31461025b5780630dfe16811461027e5780631322d9541461029e57806316f0115b146102b457806318160ddd146102c757806323b872dd146102cf57806324b8fd1b146102e257806331366be4146102f7578063313ce5671461031257806339509351146103215780633d8b30e11461033457806342fb9d4414610349578063481c6a751461035257806354fd4d501461035a578063672152bd1461037e57806370a08231146103a3578063715018a6146103cc578063727dd228146103d457806378ac6357146103f557806394bf804d1461040857806395d89b411461043f5780639894f21a1461044757806399fd808c146104755780639b1344ac14610488578063a457c2d71461049c578063a50b1fe7146104af578063a9059cbb146104c4578063b135c99f146104d7578063b536bd12146104ea578063b670ed7d146104f3578063be93dd5f14610506578063c345445914610519578063cc95353e14610522578063ccdf7a021461053c578063d21220a714610551578063d348799714610564578063d6e7ff3914610577578063dd62ed3e1461058c578063df28408a146105c5578063e25e15e3146105cd578063e4077894146105e0578063eff557a7146105f3578063f2fde38b1461061a578063fa461e331461062d578063fcd3533c14610640575b600080fd5b61023360995481565b6040519081526020015b60405180910390f35b61024e610653565b60405161023d9190614dc5565b61026e610269366004614e0d565b6106e5565b604051901515815260200161023d565b609e54610291906001600160a01b031681565b60405161023d9190614e39565b6102a66106fc565b60405161023d929190614e4d565b609d54610291906001600160a01b031681565b603554610233565b61026e6102dd366004614e5b565b610796565b6102f56102f0366004614eb9565b61084e565b005b6102ff600081565b60405161ffff909116815260200161023d565b6040516012815260200161023d565b61026e61032f366004614e0d565b610c3a565b6097546102ff90600160e01b900461ffff1681565b610233609a5481565b610291610c71565b61024e604051806040016040528060058152602001640312e302e360dc1b81525081565b60985461038e9063ffffffff1681565b60405163ffffffff909116815260200161023d565b6102336103b1366004614f21565b6001600160a01b031660009081526033602052604090205490565b6102f5610c80565b6097546103e890600160b81b900460020b81565b60405161023d9190614f3e565b6102f5610403366004614f4c565b610cd6565b61041b610416366004614f4c565b610e31565b6040805193845260208401929092526001600160801b03169082015260600161023d565b61024e6110ea565b61045a610455366004614f7c565b6110f9565b6040805193845260208401929092529082015260600161023d565b6102f5610483366004614fc0565b611232565b6097546103e890600160a01b900460020b81565b61026e6104aa366004614e0d565b6113f2565b6097546102ff90600160d01b900461ffff1681565b61026e6104d2366004614e0d565b61148d565b6102f56104e5366004615023565b61149a565b610233609b5481565b6102a6610501366004614f21565b61173d565b6102f5610514366004614f4c565b6117d5565b610233609c5481565b60985461029190600160301b90046001600160a01b031681565b6098546102ff90600160201b900461ffff1681565b609f54610291906001600160a01b031681565b6102f56105723660046150bc565b6118bb565b6097546102ff90600160f01b900461ffff1681565b61023361059a36600461510e565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b61023361191f565b6102f56105db3660046151f1565b61192e565b6102f56105ee3660046152b3565b611ba3565b6102917f000000000000000000000000000000000000000000000000000000000000000081565b6102f5610628366004614f21565b611cb0565b6102f561063b3660046150bc565b611d90565b61041b61064e366004614f4c565b611dfa565b606060368054610662906152d0565b80601f016020809104026020016040519081016040528092919081815260200182805461068e906152d0565b80156106db5780601f106106b0576101008083540402835291602001916106db565b820191906000526020600020905b8154815290600101906020018083116106be57829003601f168201915b5050505050905090565b60006106f2338484612114565b5060015b92915050565b600080600080609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610755573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610779919061530a565b50505050509150915061078c8282612239565b9350935050509091565b60006107a38484846124b9565b6001600160a01b03841660009081526034602090815260408083203384529091529020548281101561082d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610841853361083c86856153b2565b612114565b60019150505b9392505050565b33610857610c71565b6001600160a01b03161461087d5760405162461bcd60e51b8152600401610824906153c5565b600080600061088b60355490565b1115610bca57609d546001600160a01b031663514ea4bf6108aa61267f565b6040518263ffffffff1660e01b81526004016108c891815260200190565b60a060405180830381865afa1580156108e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610909919061541e565b5092945050506001600160801b03831615905061099257609754600090819061094890600160a01b8104600290810b91600160b81b9004900b866126da565b9350935050506109588282612a0d565b6109628282612ae6565b6040519193509150600080516020615ce6833981519152906109879084908490614e4d565b60405180910390a150505b6097805462ffffff888116600160b81b0262ffffff60b81b19918b16600160a01b029190911665ffffffffffff60a01b1990921691909117179055609b54609954609e546040516370a0823160e01b815260009392916001600160a01b0316906370a0823190610a06903090600401614e39565b602060405180830381865afa158015610a23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a479190615475565b610a5191906153b2565b610a5b91906153b2565b609c54609a54609f546040516370a0823160e01b81529394506000936001600160a01b03909116906370a0823190610a97903090600401614e39565b602060405180830381865afa158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad89190615475565b610ae291906153b2565b610aec91906153b2565b9050610afd898984848b8b8b612b80565b609d546001600160a01b031663514ea4bf610b1661267f565b6040518263ffffffff1660e01b8152600401610b3491815260200190565b60a060405180830381865afa158015610b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b75919061541e565b509295505050506001600160801b038316610bc35760405162461bcd60e51b815260206004820152600e60248201526d06e657720706f736974696f6e20360941b6044820152606401610824565b5050610c06565b6097805462ffffff888116600160b81b0262ffffff60b81b19918b16600160a01b029190911665ffffffffffff60a01b19909216919091171790555b600080516020615c8683398151915287878484604051610c29949392919061548e565b60405180910390a150505050505050565b3360008181526034602090815260408083206001600160a01b038716845290915281205490916106f291859061083c9086906154bc565b6097546001600160a01b031690565b33610c89610c71565b6001600160a01b031614610caf5760405162461bcd60e51b8152600401610824906153c5565b60988054600160201b600160d01b031916905560006099819055609a55610cd4612d21565b565b8181336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610d205760405162461bcd60e51b8152600401610824906154cf565b600080610d33609954609a548888612d88565b60006099819055609a5590925090508115610d6d57609854609e54610d6d916001600160a01b0391821691600160301b9091041684612eac565b8015610d9857609854609f54610d98916001600160a01b0391821691600160301b9091041683612eac565b505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601610df757610df26001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683612f14565b610e2b565b610e2b6001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612eac565b50505050565b6000806000600260655403610e585760405162461bcd60e51b815260040161082490615500565b600260655584610e7a5760405162461bcd60e51b815260040161082490615537565b6000610e8560355490565b90506000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610edc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f00919061530a565b50505050505090506000821115610f4157600080610f1c6106fc565b91509150610f2b828a8661302a565b9650610f38818a8661302a565b95505050610f87565b609754610f81908290610f5d90600160a01b900460020b613073565b609754610f7390600160b81b900460020b613073565b610f7c8b613488565b6134f1565b90955093505b8415610fa557609e54610fa5906001600160a01b031633308861358c565b8315610fc357609f54610fc3906001600160a01b031633308761358c565b609754610ffc908290610fdf90600160a01b900460020b613073565b609754610ff590600160b81b900460020b613073565b88886135c4565b609d54609754604051633c8a7d8d60e01b81529295506001600160a01b0390911691633c8a7d8d9161104c913091600160a01b8104600290810b92600160b81b909204900b908990600401615557565b60408051808303816000875af115801561106a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108e9190615599565b505061109a8688613686565b7f55801cfe493000b734571da1694b21e7f66b11e8ce9fdaa0524ecb59105e73e786888787876040516110d19594939291906155bd565b60405180910390a1505060016065819055509250925092565b606060378054610662906152d0565b60008060008061110860355490565b905080156111275761111b818787613753565b9195509350915061122a565b609d5460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e09291908290030181865afa158015611171573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611195919061530a565b505050505050905060006111db826111be609760149054906101000a900460020b60020b613073565b6097546111d490600160b81b900460020b613073565b8b8b6135c4565b6097546001600160801b038216955090915061122290839061120690600160a01b900460020b613073565b60975461121c90600160b81b900460020b613073565b846134f1565b909650945050505b509250925092565b3361123b610c71565b6001600160a01b0316146112615760405162461bcd60e51b8152600401610824906153c5565b6127108461ffff1611156112875760405162461bcd60e51b8152600401610824906155f4565b6127108561ffff1611156112ad5760405162461bcd60e51b8152600401610824906155f4565b6127108361ffff1611156112d35760405162461bcd60e51b8152600401610824906155f4565b6040805161ffff8781168252868116602083015285168183015263ffffffff8416606082015290517f0b7615006627cf7664941bc288d4641731f895e102f95cb8690583ad7508faa89181900360800190a161ffff85161561134a576097805461ffff60d01b1916600160d01b61ffff8816021790555b61ffff84161561136f576097805461ffff60e01b1916600160e01b61ffff8716021790555b61ffff83161561139557609780546001600160f01b0316600160f01b61ffff8616021790555b63ffffffff8216156113b7576098805463ffffffff191663ffffffff84161790555b6001600160a01b038116156113eb5760988054600160301b600160d01b031916600160301b6001600160a01b038416021790555b5050505050565b3360009081526034602090815260408083206001600160a01b0386168452909152812054828110156114745760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610824565b611483338561083c86856153b2565b5060019392505050565b60006106f23384846124b9565b8181336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114e45760405162461bcd60e51b8152600401610824906154cf565b85156114f4576114f48786613862565b609d546000906001600160a01b031663514ea4bf61151061267f565b6040518263ffffffff1660e01b815260040161152e91815260200190565b60a060405180830381865afa15801561154b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156f919061541e565b505050509050611583818989898989613abb565b609d546000906001600160a01b031663514ea4bf61159f61267f565b6040518263ffffffff1660e01b81526004016115bd91815260200190565b60a060405180830381865afa1580156115da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fe919061541e565b505050509050816001600160801b0316816001600160801b03161161165f5760405162461bcd60e51b81526020600482015260176024820152766c6971756964697479206d75737420696e63726561736560481b6044820152606401610824565b609754604051600080516020615c868339815191529161169991600160a01b8204600290810b92600160b81b9004900b908690869061548e565b60405180910390a1505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601611700576116fb6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683612f14565b611734565b6117346001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612eac565b50505050505050565b6000806000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015611795573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b9919061530a565b50505050509150506117cb8482612239565b9250925050915091565b8181336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461181f5760405162461bcd60e51b8152600401610824906154cf565b600080611832609b54609c548888612d88565b6000609b819055609c559092509050811561187e57609e5461187e906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000084612eac565b8015610d9857609f54610d98906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000083612eac565b609d546001600160a01b031633146118e55760405162461bcd60e51b815260040161082490615611565b831561190257609e54611902906001600160a01b03163386612eac565b8215610e2b57609f54610e2b906001600160a01b03163385612eac565b600061192961267f565b905090565b600054610100900460ff1680611947575060005460ff16155b6119635760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015611985576000805461ffff19166101011790555b6119926000612710615688565b61ffff168561ffff1611156119b95760405162461bcd60e51b8152600401610824906156aa565b609d80546001600160a01b0319166001600160a01b03881690811790915560408051630dfe168160e01b81529051630dfe1681916004808201926020929091908290030181865afa158015611a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a3691906156c8565b609e80546001600160a01b0319166001600160a01b03928316179055609d546040805163d21220a760e01b81529051919092169163d21220a79160048083019260209291908290030181865afa158015611a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab891906156c8565b609f80546001600160a01b039283166001600160a01b0319918216179091556098805460978054948716600160301b8102600160301b600160d01b031963ffffffff1961ffff8e16600160201b021665ffffffffffff199095169490941761012c17939093169290921790925562ffffff878116600160b81b02909316600165ffffff00000160a01b0319938916600160a01b02600165ffffff00000160a01b0390951694909417643e800c801960d31b179290921692909217179055611b7f8888613f83565b611b87614002565b8015611b99576000805461ff00191690555b5050505050505050565b33611bac610c71565b6001600160a01b031614611bd25760405162461bcd60e51b8152600401610824906153c5565b609854600160201b900461ffff1615611c135760405162461bcd60e51b815260206004820152600360248201526266656560e81b6044820152606401610824565b60008161ffff16118015611c3b5750611c2f6000612710615688565b61ffff168161ffff1611155b611c575760405162461bcd60e51b8152600401610824906156aa565b60405161ffff821681527f8a1ffb520c943072e654fc414750dbefad5b6d6311339d041901c4752782fad39060200160405180910390a16098805461ffff909216600160201b0261ffff60201b19909216919091179055565b33611cb9610c71565b6001600160a01b031614611cdf5760405162461bcd60e51b8152600401610824906153c5565b6001600160a01b038116611d465760405162461bcd60e51b815260206004820152602860248201527f4f776e61626c653a206e6577206d616e6167657220697320746865207a65726f604482015267206164647265737360c01b6064820152608401610824565b6097546040516001600160a01b03808416921690600080516020615ca683398151915290600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b609d546001600160a01b03163314611dba5760405162461bcd60e51b815260040161082490615611565b6000841315611dda57609e54610df2906001600160a01b03163386612eac565b6000831315610e2b57609f54610e2b906001600160a01b03163385612eac565b6000806000600260655403611e215760405162461bcd60e51b815260040161082490615500565b600260655584611e5c5760405162461bcd60e51b815260206004820152600660248201526506275726e20360d41b6044820152606401610824565b6000611e6760355490565b609d549091506000906001600160a01b031663514ea4bf611e8661267f565b6040518263ffffffff1660e01b8152600401611ea491815260200190565b60a060405180830381865afa158015611ec1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee5919061541e565b505050509050611ef53388614076565b6000611f0b88836001600160801b0316856141b3565b9050611f1681613488565b609754909450600090819081908190611f4590600160a01b8104600290810b91600160b81b9004900b8a6126da565b9350935093509350611f578282612a0d565b611f618282612ae6565b6040519193509150600080516020615ce683398151915290611f869084908490614e4d565b60405180910390a1609b54609954609e546040516370a0823160e01b815261203293929188916001600160a01b03909116906370a0823190611fcc903090600401614e39565b602060405180830381865afa158015611fe9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200d9190615475565b61201791906153b2565b61202191906153b2565b61202b91906153b2565b8d896141b3565b61203c90856154bc565b609c54609a54609f546040516370a0823160e01b8152939d506120799387916001600160a01b0316906370a0823190611fcc903090600401614e39565b61208390846154bc565b985089156120a257609e546120a2906001600160a01b03168c8c612eac565b88156120bf57609f546120bf906001600160a01b03168c8b612eac565b7f7239dff1718b550db7f36cbf69c665cfeb56d0e96b4fb76a5cba712961b655098b8d8c8c8c6040516120f69594939291906155bd565b60405180910390a15050505050505060016065819055509250925092565b6001600160a01b0383166121765760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610824565b6001600160a01b0382166121d75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610824565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b609d546000908190819081908190819081906001600160a01b031663514ea4bf61226161267f565b6040518263ffffffff1660e01b815260040161227f91815260200190565b60a060405180830381865afa15801561229c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c0919061541e565b94509450945094509450612305896122e9609760149054906101000a900460020b60020b613073565b6097546122ff90600160b81b900460020b613073565b886134f1565b909750955060006001600160801b0383166123236001878c8a614261565b61232d91906154bc565b90506000826001600160801b03166123486000878d8b614261565b61235291906154bc565b905061235e8282612ae6565b609b54609954609e546040516370a0823160e01b8152949650929450909290916001600160a01b0316906370a082319061239c903090600401614e39565b602060405180830381865afa1580156123b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123dd9190615475565b6123e790856154bc565b6123f191906153b2565b6123fb91906153b2565b612405908a6154bc565b609c54609a54609f546040516370a0823160e01b8152939c50919290916001600160a01b0316906370a0823190612440903090600401614e39565b602060405180830381865afa15801561245d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124819190615475565b61248b90846154bc565b61249591906153b2565b61249f91906153b2565b6124a990896154bc565b9750505050505050509250929050565b6001600160a01b03831661251d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610824565b6001600160a01b03821661257f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610824565b6001600160a01b038316600090815260336020526040902054818110156125f75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610824565b61260182826153b2565b6001600160a01b0380861660009081526033602052604080822093909355908516815290812080548492906126379084906154bc565b92505081905550826001600160a01b0316846001600160a01b0316600080516020615cc68339815191528460405161267191815260200190565b60405180910390a350505050565b6097546040516001600160601b03193060601b166020820152600160a01b820460e890811b6034830152600160b81b90920490911b6037820152600090603a0160405160208183030381529060405280519060200120905090565b609e546040516370a0823160e01b815260009182918291829182916001600160a01b0316906370a0823190612713903090600401614e39565b602060405180830381865afa158015612730573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127549190615475565b609f546040516370a0823160e01b81529192506000916001600160a01b03909116906370a082319061278a903090600401614e39565b602060405180830381865afa1580156127a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127cb9190615475565b609d5460405163a34123a760e01b815260028c810b60048301528b900b60248201526001600160801b038a1660448201529192506001600160a01b03169063a34123a79060640160408051808303816000875af1158015612830573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128549190615599565b609d546040516309e3d67b60e31b815230600482015260028d810b60248301528c900b60448201526001600160801b036064820181905260848201529298509096506001600160a01b031690634f1eb3d89060a40160408051808303816000875af11580156128c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128eb91906156e5565b5050609e546040516370a0823160e01b8152879184916001600160a01b03909116906370a0823190612921903090600401614e39565b602060405180830381865afa15801561293e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129629190615475565b61296c91906153b2565b61297691906153b2565b609f546040516370a0823160e01b8152919550869183916001600160a01b0316906370a08231906129ab903090600401614e39565b602060405180830381865afa1580156129c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ec9190615475565b6129f691906153b2565b612a0091906153b2565b9250505093509350935093565b612710612a1b600084615718565b612a259190615745565b609b6000828254612a3691906154bc565b909155506127109050612a4a600083615718565b612a549190615745565b609c6000828254612a6591906154bc565b909155505060985461271090612a8690600160201b900461ffff1684615718565b612a909190615745565b60996000828254612aa191906154bc565b909155505060985461271090612ac290600160201b900461ffff1683615718565b612acc9190615745565b609a6000828254612add91906154bc565b90915550505050565b6000806000612710609860049054906101000a900461ffff166000612b0b9190615759565b612b199061ffff1687615718565b612b239190615745565b60985490915060009061271090612b4590600160201b900461ffff1683615759565b612b539061ffff1687615718565b612b5d9190615745565b9050612b6982876153b2565b9350612b7581866153b2565b925050509250929050565b609d5460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e09291908290030181865afa158015612bca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bee919061530a565b50505050505090506000612c1b82612c088b60020b613073565b612c148b60020b613073565b8a8a6135c4565b90506001600160801b03811615612cc957609d54604051633c8a7d8d60e01b815260009182916001600160a01b0390911690633c8a7d8d90612c679030908f908f908990600401615557565b60408051808303816000875af1158015612c85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ca99190615599565b9092509050612cb8828a6153b2565b9850612cc481896153b2565b975050505b6000612cf86127108686612cdd5789612cdf565b8a5b612ce99190615718565b612cf39190615745565b61460d565b90506000811315612d1557612d128a8a8a8a858b8a614673565b50505b50505050505050505050565b33612d2a610c71565b6001600160a01b031614612d505760405162461bcd60e51b8152600401610824906153c5565b6097546040516000916001600160a01b031690600080516020615ca6833981519152908390a3609780546001600160a01b0319169055565b609e5460009081906001600160a01b0390811690841603612dfd57609754849061271090612dc190600160e01b900461ffff1689615718565b612dcb9190615745565b1015612de95760405162461bcd60e51b815260040161082490615774565b612df384876153b2565b9150849050612ea3565b609f546001600160a01b0390811690841603612e6d57609754849061271090612e3190600160e01b900461ffff1688615718565b612e3b9190615745565b1015612e595760405162461bcd60e51b815260040161082490615774565b612e6384866153b2565b9050859150612ea3565b60405162461bcd60e51b815260206004820152600b60248201526a3bb937b733903a37b5b2b760a91b6044820152606401610824565b94509492505050565b6040516001600160a01b038316602482015260448101829052612f0f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261488f565b505050565b80471015612f645760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610824565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612fb1576040519150601f19603f3d011682016040523d82523d6000602084013e612fb6565b606091505b5050905080612f0f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152608401610824565b60006130378484846141b3565b9050600082806130495761304961572f565b848609111561084757600019811061306057600080fd5b8061306a81615796565b95945050505050565b60008060008360020b1261308a578260020b613097565b8260020b613097906157af565b90506130a6620d89e7196157cb565b60020b8111156130dc5760405162461bcd60e51b81526020600482015260016024820152601560fa1b6044820152606401610824565b6000816001166000036130f357600160801b613105565b6ffffcb933bd6fad37aa2d162d1a5940015b6001600160881b03169050600282161561313a576080613135826ffff97272373d413259a46990580e213a615718565b901c90505b600482161561316457608061315f826ffff2e50f5f656932ef12357cf3c7fdcc615718565b901c90505b600882161561318e576080613189826fffe5caca7e10e4e61c3624eaa0941cd0615718565b901c90505b60108216156131b85760806131b3826fffcb9843d60f6159c9db58835c926644615718565b901c90505b60208216156131e25760806131dd826fff973b41fa98c081472e6896dfb254c0615718565b901c90505b604082161561320c576080613207826fff2ea16466c96a3843ec78b326b52861615718565b901c90505b6080821615613236576080613231826ffe5dee046a99a2a811c461f1969c3053615718565b901c90505b61010082161561326157608061325c826ffcbe86c7900a88aedcffc83b479aa3a4615718565b901c90505b61020082161561328c576080613287826ff987a7253ac413176f2b074cf7815e54615718565b901c90505b6104008216156132b75760806132b2826ff3392b0822b70005940c7a398e4b70f3615718565b901c90505b6108008216156132e25760806132dd826fe7159475a2c29b7443b29c7fa6e889d9615718565b901c90505b61100082161561330d576080613308826fd097f3bdfd2022b8845ad8f792aa5825615718565b901c90505b612000821615613338576080613333826fa9f746462d870fdf8a65dc1f90e061e5615718565b901c90505b61400082161561336357608061335e826f70d869a156d2a1b890bb3df62baf32f7615718565b901c90505b61800082161561338e576080613389826f31be135f97d08fd981231505542fcfa6615718565b901c90505b620100008216156133ba5760806133b5826f09aa508b5b7a84e1c677de54f3e99bc9615718565b901c90505b620200008216156133e55760806133e0826e5d6af8dedb81196699c329225ee604615718565b901c90505b6204000082161561340f57608061340a826d2216e584f5fa1ea926041bedfe98615718565b901c90505b62080000821615613437576080613432826b048a170391f7dc42444e8fa2615718565b901c90505b60008460020b13156134525761344f81600019615745565b90505b613460600160201b826157ed565b1561346c57600161346f565b60005b6134809060ff16602083901c6154bc565b949350505050565b6000600160801b82106134ed5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663238206269747360c81b6064820152608401610824565b5090565b600080836001600160a01b0316856001600160a01b03161115613512579293925b846001600160a01b0316866001600160a01b03161161353d57613536858585614961565b9150612ea3565b836001600160a01b0316866001600160a01b0316101561357657613562868585614961565b915061356f8587856149cb565b9050612ea3565b6135818585856149cb565b905094509492505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610e2b9085906323b872dd60e01b90608401612ed8565b6000836001600160a01b0316856001600160a01b031611156135e4579293925b846001600160a01b0316866001600160a01b03161161360f57613608858585614a15565b905061306a565b836001600160a01b0316866001600160a01b03161015613671576000613636878686614a15565b90506000613645878986614a7f565b9050806001600160801b0316826001600160801b0316106136665780613668565b815b9250505061306a565b61367c858584614a7f565b9695505050505050565b6001600160a01b0382166136dc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610824565b80603560008282546136ee91906154bc565b90915550506001600160a01b0382166000908152603360205260408120805483929061371b9084906154bc565b90915550506040518181526001600160a01b03831690600090600080516020615cc68339815191529060200160405180910390a35050565b60008060008060006137636106fc565b915091508160001480156137775750600081115b1561378e576137878689836141b3565b925061383d565b8015801561379c5750600082115b156137ac576137878789846141b3565b811580156137b8575080155b156137df5760405162461bcd60e51b81526020600482015260006024820152604401610824565b60006137ec888a856141b3565b905060006137fb888b856141b3565b905060008211801561380d5750600081115b6138295760405162461bcd60e51b815260040161082490615537565b8082106138365780613838565b815b945050505b61384883838a61302a565b945061385583828a61302a565b9350505093509350939050565b6040805160028082526060820183526000926020830190803683375050609854825192935063ffffffff16918391506000906138a0576138a0615801565b602002602001019063ffffffff16908163ffffffff16815250506000816001815181106138cf576138cf615801565b63ffffffff90921660209283029190910190910152609d5460405163883bdbfd60e01b81526000916001600160a01b03169063883bdbfd90613915908590600401615817565b600060405180830381865afa158015613932573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261395a919081019061590a565b509050805160021461399a5760405162461bcd60e51b815260206004820152600960248201526830b93930bc903632b760b91b6044820152606401610824565b6098548151600091829163ffffffff90911660060b90849083906139c0576139c0615801565b6020026020010151846001815181106139db576139db615801565b60200260200101510360060b816139f4576139f461572f565b059050613a038160020b613073565b6097549092506000915061271090613a2690600160f01b900461ffff16846159cc565b613a3091906159fe565b90508415613a7857613a428183615a24565b6001600160a01b0316866001600160a01b03161015613a735760405162461bcd60e51b815260040161082490615a44565b613ab3565b613a828183615a6b565b6001600160a01b0316866001600160a01b03161115613ab35760405162461bcd60e51b815260040161082490615a44565b505050505050565b609b54609954609e546040516370a0823160e01b815260009392916001600160a01b0316906370a0823190613af4903090600401614e39565b602060405180830381865afa158015613b11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b359190615475565b613b3f91906153b2565b613b4991906153b2565b609c54609a54609f546040516370a0823160e01b81529394506000936001600160a01b03909116906370a0823190613b85903090600401614e39565b602060405180830381865afa158015613ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bc69190615475565b613bd091906153b2565b613bda91906153b2565b6097549091506000908190613c0590600160a01b8104600290810b91600160b81b9004900b8c6126da565b935093505050613c158282612a0d565b613c1f8282612ae6565b6040519193509150600080516020615ce683398151915290613c449084908490614e4d565b60405180910390a1613c5684836154bc565b9150613c6283826154bc565b609e549091506001600160a01b0390811690861603613def57609754869061271090613c9990600160d01b900461ffff1685615718565b613ca39190615745565b1015613cc15760405162461bcd60e51b815260040161082490615774565b609b54609954609e546040516370a0823160e01b8152899392916001600160a01b0316906370a0823190613cf9903090600401614e39565b602060405180830381865afa158015613d16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d3a9190615475565b613d4491906153b2565b613d4e91906153b2565b613d5891906153b2565b609c54609a54609f546040516370a0823160e01b8152939750919290916001600160a01b0316906370a0823190613d93903090600401614e39565b602060405180830381865afa158015613db0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dd49190615475565b613dde91906153b2565b613de891906153b2565b9250613f5c565b609f546001600160a01b0390811690861603612e6d57609754869061271090613e2390600160d01b900461ffff1684615718565b613e2d9190615745565b1015613e4b5760405162461bcd60e51b815260040161082490615774565b609b54609954609e546040516370a0823160e01b81526001600160a01b03909116906370a0823190613e81903090600401614e39565b602060405180830381865afa158015613e9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ec29190615475565b613ecc91906153b2565b613ed691906153b2565b609c54609a54609f546040516370a0823160e01b815293975089936001600160a01b03909116906370a0823190613f11903090600401614e39565b602060405180830381865afa158015613f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f529190615475565b613dd491906153b2565b609754612d1590600160a01b8104600290810b91600160b81b9004900b86868d8d8d612b80565b600054610100900460ff1680613f9c575060005460ff16155b613fb85760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015613fda576000805461ffff19166101011790555b613fe2614ab5565b613fec8383614b1f565b8015612f0f576000805461ff0019169055505050565b600054610100900460ff168061401b575060005460ff16155b6140375760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614059576000805461ffff19166101011790555b614061614ba6565b8015614073576000805461ff00191690555b50565b6001600160a01b0382166140d65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610824565b6001600160a01b0382166000908152603360205260409020548181101561414a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610824565b61415482826153b2565b6001600160a01b038416600090815260336020526040812091909155603580548492906141829084906153b2565b90915550506040518281526000906001600160a01b03851690600080516020615cc68339815191529060200161222c565b60008080600019858709858702925082811083820303915050806000036141ec57600084116141e157600080fd5b508290049050610847565b8084116141f857600080fd5b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b600080600080871561440157609d60009054906101000a90046001600160a01b03166001600160a01b031663f30583996040518163ffffffff1660e01b8152600401602060405180830381865afa1580156142c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142e49190615475565b609d5460975460405163f30dba9360e01b81529293506001600160a01b039091169163f30dba939161432491600160a01b90910460020b90600401614f3e565b61010060405180830381865afa158015614342573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143669190615a8b565b5050609d5460975460405163f30dba9360e01b8152959a506001600160a01b03909116965063f30dba9395506143af94600160b81b90910460020b93506004019150614f3e9050565b61010060405180830381865afa1580156143cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143f19190615a8b565b5093975061458f95505050505050565b609d60009054906101000a90046001600160a01b03166001600160a01b031663461413196040518163ffffffff1660e01b8152600401602060405180830381865afa158015614454573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144789190615475565b609d5460975460405163f30dba9360e01b81529293506001600160a01b039091169163f30dba93916144b891600160a01b90910460020b90600401614f3e565b61010060405180830381865afa1580156144d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144fa9190615a8b565b5050609d5460975460405163f30dba9360e01b8152949a506001600160a01b03909116965063f30dba9395506145429450600160b81b900460020b926004019150614f3e9050565b61010060405180830381865afa158015614560573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145849190615a8b565b509297505050505050505b609754600090600160a01b9004600290810b9088900b126145b15750826145b6565b508281035b609754600090600160b81b9004600290810b9089900b12156145d95750826145de565b508282035b8183038190036145fe6001600160801b0389168b8303600160801b6141b3565b9b9a5050505050505050505050565b6000600160ff1b82106134ed5760405162461bcd60e51b815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604482015267371034b73a191a9b60c11b6064820152608401610824565b609d54604051630251596160e31b81523060048201528215156024820152604481018590526001600160a01b03848116606483015260a06084830152600060a4830181905292839283928392169063128acb089060c40160408051808303816000875af11580156146e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061470c9190615599565b915091508161471a8a61460d565b6147249190615b27565b9350806147308961460d565b61473a9190615b27565b92506000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015614791573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147b5919061530a565b505050505050905060006147e2826147cf8f60020b613073565b6147db8f60020b613073565b89896135c4565b90506001600160801b0381161561487f57609d60009054906101000a90046001600160a01b03166001600160a01b0316633c8a7d8d308f8f856040518563ffffffff1660e01b815260040161483a9493929190615557565b60408051808303816000875af1158015614858573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061487c9190615599565b50505b5050505097509795505050505050565b60006148e4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614c169092919063ffffffff16565b805190915015612f0f57808060200190518101906149029190615b47565b612f0f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610824565b6000826001600160a01b0316846001600160a01b03161115614981579192915b6001600160a01b0384166149c1600160601b600160e01b03606085901b166149a98787615a24565b6001600160a01b0316866001600160a01b03166141b3565b6134809190615745565b6000826001600160a01b0316846001600160a01b031611156149eb579192915b6134806001600160801b038316614a028686615a24565b6001600160a01b0316600160601b6141b3565b6000826001600160a01b0316846001600160a01b03161115614a35579192915b6000614a58856001600160a01b0316856001600160a01b0316600160601b6141b3565b905061306a614a7a8483614a6c8989615a24565b6001600160a01b03166141b3565b614c25565b6000826001600160a01b0316846001600160a01b03161115614a9f579192915b613480614a7a83600160601b614a6c8888615a24565b600054610100900460ff1680614ace575060005460ff16155b614aea5760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614061576000805461ffff19166101011790558015614073576000805461ff001916905550565b600054610100900460ff1680614b38575060005460ff16155b614b545760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614b76576000805461ffff19166101011790555b6036614b828482615baa565b506037614b8f8382615baa565b508015612f0f576000805461ff0019169055505050565b600054610100900460ff1680614bbf575060005460ff16155b614bdb5760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614bfd576000805461ffff19166101011790555b60016065558015614073576000805461ff001916905550565b60606134808484600085614c40565b806001600160801b0381168114614c3b57600080fd5b919050565b606082471015614ca15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610824565b843b614cef5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610824565b600080866001600160a01b03168587604051614d0b9190615c69565b60006040518083038185875af1925050503d8060008114614d48576040519150601f19603f3d011682016040523d82523d6000602084013e614d4d565b606091505b5091509150614d5d828286614d68565b979650505050505050565b60608315614d77575081610847565b825115614d875782518084602001fd5b8160405162461bcd60e51b81526004016108249190614dc5565b60005b83811015614dbc578181015183820152602001614da4565b50506000910152565b6020815260008251806020840152614de4816040850160208701614da1565b601f01601f19169190910160400192915050565b6001600160a01b038116811461407357600080fd5b60008060408385031215614e2057600080fd5b8235614e2b81614df8565b946020939093013593505050565b6001600160a01b0391909116815260200190565b918252602082015260400190565b600080600060608486031215614e7057600080fd5b8335614e7b81614df8565b92506020840135614e8b81614df8565b929592945050506040919091013590565b8060020b811461407357600080fd5b801515811461407357600080fd5b600080600080600060a08688031215614ed157600080fd5b8535614edc81614e9c565b94506020860135614eec81614e9c565b93506040860135614efc81614df8565b9250606086013591506080860135614f1381614eab565b809150509295509295909350565b600060208284031215614f3357600080fd5b813561084781614df8565b60029190910b815260200190565b60008060408385031215614f5f57600080fd5b823591506020830135614f7181614df8565b809150509250929050565b60008060408385031215614f8f57600080fd5b50508035926020909101359150565b61ffff8116811461407357600080fd5b63ffffffff8116811461407357600080fd5b600080600080600060a08688031215614fd857600080fd5b8535614fe381614f9e565b94506020860135614ff381614f9e565b9350604086013561500381614f9e565b9250606086013561501381614fae565b91506080860135614f1381614df8565b600080600080600060a0868803121561503b57600080fd5b853561504681614df8565b945060208601359350604086013561505d81614eab565b9250606086013591506080860135614f1381614df8565b60008083601f84011261508657600080fd5b5081356001600160401b0381111561509d57600080fd5b6020830191508360208285010111156150b557600080fd5b9250929050565b600080600080606085870312156150d257600080fd5b843593506020850135925060408501356001600160401b038111156150f657600080fd5b61510287828801615074565b95989497509550505050565b6000806040838503121561512157600080fd5b823561512c81614df8565b91506020830135614f7181614df8565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561517a5761517a61513c565b604052919050565b600082601f83011261519357600080fd5b81356001600160401b038111156151ac576151ac61513c565b6151bf601f8201601f1916602001615152565b8181528460208386010111156151d457600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060e0888a03121561520c57600080fd5b87356001600160401b038082111561522357600080fd5b61522f8b838c01615182565b985060208a013591508082111561524557600080fd5b506152528a828b01615182565b965050604088013561526381614df8565b9450606088013561527381614f9e565b9350608088013561528381614e9c565b925060a088013561529381614e9c565b915060c08801356152a381614df8565b8091505092959891949750929550565b6000602082840312156152c557600080fd5b813561084781614f9e565b600181811c908216806152e457607f821691505b60208210810361530457634e487b7160e01b600052602260045260246000fd5b50919050565b600080600080600080600060e0888a03121561532557600080fd5b875161533081614df8565b602089015190975061534181614e9c565b604089015190965061535281614f9e565b606089015190955061536381614f9e565b608089015190945061537481614f9e565b60a089015190935060ff8116811461538b57600080fd5b60c08901519092506152a381614eab565b634e487b7160e01b600052601160045260246000fd5b818103818111156106f6576106f661539c565b60208082526022908201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d616e616760408201526132b960f11b606082015260800190565b80516001600160801b0381168114614c3b57600080fd5b600080600080600060a0868803121561543657600080fd5b61543f86615407565b9450602086015193506040860151925061545b60608701615407565b915061546960808701615407565b90509295509295909350565b60006020828403121561548757600080fd5b5051919050565b600294850b81529290930b60208301526001600160801b039081166040830152909116606082015260800190565b808201808211156106f6576106f661539c565b60208082526017908201527647656c61746f666965643a204f6e6c792067656c61746f60481b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526006908201526506d696e7420360d41b604082015260600190565b6001600160a01b03949094168452600292830b6020850152910b60408301526001600160801b0316606082015260a06080820181905260009082015260c00190565b600080604083850312156155ac57600080fd5b505080516020909101519092909150565b6001600160a01b039590951685526020850193909352604084019190915260608301526001600160801b0316608082015260a00190565b60208082526003908201526242505360e81b604082015260600190565b6020808252600f908201526e31b0b6363130b1b59031b0b63632b960891b604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b61ffff8281168282160390808211156156a3576156a361539c565b5092915050565b6020808252600490820152636d42505360e01b604082015260600190565b6000602082840312156156da57600080fd5b815161084781614df8565b600080604083850312156156f857600080fd5b61570183615407565b915061570f60208401615407565b90509250929050565b80820281158282048414176106f6576106f661539c565b634e487b7160e01b600052601260045260246000fd5b6000826157545761575461572f565b500490565b61ffff8181168382160190808211156156a3576156a361539c565b602080825260089082015267686967682066656560c01b604082015260600190565b6000600182016157a8576157a861539c565b5060010190565b6000600160ff1b82016157c4576157c461539c565b5060000390565b60008160020b627fffff1981036157e4576157e461539c565b60000392915050565b6000826157fc576157fc61572f565b500690565b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561585557835163ffffffff1683529284019291840191600101615833565b50909695505050505050565b60006001600160401b0382111561587a5761587a61513c565b5060051b60200190565b8051600681900b8114614c3b57600080fd5b600082601f8301126158a757600080fd5b815160206158bc6158b783615861565b615152565b82815260059290921b840181019181810190868411156158db57600080fd5b8286015b848110156158ff5780516158f281614df8565b83529183019183016158df565b509695505050505050565b6000806040838503121561591d57600080fd5b82516001600160401b038082111561593457600080fd5b818501915085601f83011261594857600080fd5b815160206159586158b783615861565b82815260059290921b8401810191818101908984111561597757600080fd5b948201945b8386101561599c5761598d86615884565b8252948201949082019061597c565b918801519196509093505050808211156159b557600080fd5b506159c285828601615896565b9150509250929050565b6001600160a01b038281168282168181028316929181158285048214176159f5576159f561539c565b50505092915050565b60006001600160a01b0383811680615a1857615a1861572f565b92169190910492915050565b6001600160a01b038281168282160390808211156156a3576156a361539c565b6020808252600d908201526c6869676820736c69707061676560981b604082015260600190565b6001600160a01b038181168382160190808211156156a3576156a361539c565b600080600080600080600080610100898b031215615aa857600080fd5b615ab189615407565b9750602089015180600f0b8114615ac757600080fd5b60408a015160608b015191985096509450615ae460808a01615884565b935060a0890151615af481614df8565b60c08a0151909350615b0581614fae565b60e08a0151909250615b1681614eab565b809150509295985092959890939650565b81810360008312801583831316838312821617156156a3576156a361539c565b600060208284031215615b5957600080fd5b815161084781614eab565b601f821115612f0f57600081815260208120601f850160051c81016020861015615b8b5750805b601f850160051c820191505b81811015613ab357828155600101615b97565b81516001600160401b03811115615bc357615bc361513c565b615bd781615bd184546152d0565b84615b64565b602080601f831160018114615c0c5760008415615bf45750858301515b600019600386901b1c1916600185901b178555613ab3565b600085815260208120601f198616915b82811015615c3b57888601518255948401946001909101908401615c1c565b5085821015615c595787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008251615c7b818460208701614da1565b919091019291505056fec749f9ae947d4734cf1569606a8a347391ae94a063478aa853aeff48ac5f99e88be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efc28ad1de9c0c32e5394ba60323e44d8d9536312236a47231772e448a3e49de42a2646970667358221220a11bde499516b0a2e8e737821292815fcefc66549a9729f24ea128d34ed6027364736f6c63430008130033", + "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106102255760003560e01c8063065756db1461022a57806306fdde0314610246578063095ea7b31461025b5780630dfe16811461027e5780631322d9541461029e57806316f0115b146102b457806318160ddd146102c757806323b872dd146102cf57806324b8fd1b146102e257806331366be4146102f7578063313ce5671461031257806339509351146103215780633d8b30e11461033457806342fb9d4414610349578063481c6a751461035257806354fd4d501461035a578063672152bd1461037e57806370a08231146103a3578063715018a6146103cc578063727dd228146103d457806378ac6357146103f557806394bf804d1461040857806395d89b411461043f5780639894f21a1461044757806399fd808c146104755780639b1344ac14610488578063a457c2d71461049c578063a50b1fe7146104af578063a9059cbb146104c4578063b135c99f146104d7578063b536bd12146104ea578063b670ed7d146104f3578063be93dd5f14610506578063c345445914610519578063cc95353e14610522578063ccdf7a021461053c578063d21220a714610551578063d348799714610564578063d6e7ff3914610577578063dd62ed3e1461058c578063df28408a146105c5578063e25e15e3146105cd578063e4077894146105e0578063eff557a7146105f3578063f2fde38b1461061a578063fa461e331461062d578063fcd3533c14610640575b600080fd5b61023360995481565b6040519081526020015b60405180910390f35b61024e610653565b60405161023d9190614dc5565b61026e610269366004614e0d565b6106e5565b604051901515815260200161023d565b609e54610291906001600160a01b031681565b60405161023d9190614e39565b6102a66106fc565b60405161023d929190614e4d565b609d54610291906001600160a01b031681565b603554610233565b61026e6102dd366004614e5b565b610796565b6102f56102f0366004614eb9565b61084e565b005b6102ff600081565b60405161ffff909116815260200161023d565b6040516012815260200161023d565b61026e61032f366004614e0d565b610c3a565b6097546102ff90600160e01b900461ffff1681565b610233609a5481565b610291610c71565b61024e604051806040016040528060058152602001640312e302e360dc1b81525081565b60985461038e9063ffffffff1681565b60405163ffffffff909116815260200161023d565b6102336103b1366004614f21565b6001600160a01b031660009081526033602052604090205490565b6102f5610c80565b6097546103e890600160b81b900460020b81565b60405161023d9190614f3e565b6102f5610403366004614f4c565b610cd6565b61041b610416366004614f4c565b610e31565b6040805193845260208401929092526001600160801b03169082015260600161023d565b61024e6110ea565b61045a610455366004614f7c565b6110f9565b6040805193845260208401929092529082015260600161023d565b6102f5610483366004614fc0565b611232565b6097546103e890600160a01b900460020b81565b61026e6104aa366004614e0d565b6113f2565b6097546102ff90600160d01b900461ffff1681565b61026e6104d2366004614e0d565b61148d565b6102f56104e5366004615023565b61149a565b610233609b5481565b6102a6610501366004614f21565b61173d565b6102f5610514366004614f4c565b6117d5565b610233609c5481565b60985461029190600160301b90046001600160a01b031681565b6098546102ff90600160201b900461ffff1681565b609f54610291906001600160a01b031681565b6102f56105723660046150bc565b6118bb565b6097546102ff90600160f01b900461ffff1681565b61023361059a36600461510e565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b61023361191f565b6102f56105db3660046151f1565b61192e565b6102f56105ee3660046152b3565b611ba3565b6102917f000000000000000000000000000000000000000000000000000000000000000081565b6102f5610628366004614f21565b611cb0565b6102f561063b3660046150bc565b611d90565b61041b61064e366004614f4c565b611dfa565b606060368054610662906152d0565b80601f016020809104026020016040519081016040528092919081815260200182805461068e906152d0565b80156106db5780601f106106b0576101008083540402835291602001916106db565b820191906000526020600020905b8154815290600101906020018083116106be57829003601f168201915b5050505050905090565b60006106f2338484612114565b5060015b92915050565b600080600080609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610755573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610779919061530a565b50505050509150915061078c8282612239565b9350935050509091565b60006107a38484846124b9565b6001600160a01b03841660009081526034602090815260408083203384529091529020548281101561082d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610841853361083c86856153b2565b612114565b60019150505b9392505050565b33610857610c71565b6001600160a01b03161461087d5760405162461bcd60e51b8152600401610824906153c5565b600080600061088b60355490565b1115610bca57609d546001600160a01b031663514ea4bf6108aa61267f565b6040518263ffffffff1660e01b81526004016108c891815260200190565b60a060405180830381865afa1580156108e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610909919061541e565b5092945050506001600160801b03831615905061099257609754600090819061094890600160a01b8104600290810b91600160b81b9004900b866126da565b9350935050506109588282612a0d565b6109628282612ae6565b6040519193509150600080516020615ce6833981519152906109879084908490614e4d565b60405180910390a150505b6097805462ffffff888116600160b81b0262ffffff60b81b19918b16600160a01b029190911665ffffffffffff60a01b1990921691909117179055609b54609954609e546040516370a0823160e01b815260009392916001600160a01b0316906370a0823190610a06903090600401614e39565b602060405180830381865afa158015610a23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a479190615475565b610a5191906153b2565b610a5b91906153b2565b609c54609a54609f546040516370a0823160e01b81529394506000936001600160a01b03909116906370a0823190610a97903090600401614e39565b602060405180830381865afa158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad89190615475565b610ae291906153b2565b610aec91906153b2565b9050610afd898984848b8b8b612b80565b609d546001600160a01b031663514ea4bf610b1661267f565b6040518263ffffffff1660e01b8152600401610b3491815260200190565b60a060405180830381865afa158015610b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b75919061541e565b509295505050506001600160801b038316610bc35760405162461bcd60e51b815260206004820152600e60248201526d06e657720706f736974696f6e20360941b6044820152606401610824565b5050610c06565b6097805462ffffff888116600160b81b0262ffffff60b81b19918b16600160a01b029190911665ffffffffffff60a01b19909216919091171790555b600080516020615c8683398151915287878484604051610c29949392919061548e565b60405180910390a150505050505050565b3360008181526034602090815260408083206001600160a01b038716845290915281205490916106f291859061083c9086906154bc565b6097546001600160a01b031690565b33610c89610c71565b6001600160a01b031614610caf5760405162461bcd60e51b8152600401610824906153c5565b60988054600160201b600160d01b031916905560006099819055609a55610cd4612d21565b565b8181336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610d205760405162461bcd60e51b8152600401610824906154cf565b600080610d33609954609a548888612d88565b60006099819055609a5590925090508115610d6d57609854609e54610d6d916001600160a01b0391821691600160301b9091041684612eac565b8015610d9857609854609f54610d98916001600160a01b0391821691600160301b9091041683612eac565b505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601610df757610df26001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683612f14565b610e2b565b610e2b6001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612eac565b50505050565b6000806000600260655403610e585760405162461bcd60e51b815260040161082490615500565b600260655584610e7a5760405162461bcd60e51b815260040161082490615537565b6000610e8560355490565b90506000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610edc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f00919061530a565b50505050505090506000821115610f4157600080610f1c6106fc565b91509150610f2b828a8661302a565b9650610f38818a8661302a565b95505050610f87565b609754610f81908290610f5d90600160a01b900460020b613073565b609754610f7390600160b81b900460020b613073565b610f7c8b613488565b6134f1565b90955093505b8415610fa557609e54610fa5906001600160a01b031633308861358c565b8315610fc357609f54610fc3906001600160a01b031633308761358c565b609754610ffc908290610fdf90600160a01b900460020b613073565b609754610ff590600160b81b900460020b613073565b88886135c4565b609d54609754604051633c8a7d8d60e01b81529295506001600160a01b0390911691633c8a7d8d9161104c913091600160a01b8104600290810b92600160b81b909204900b908990600401615557565b60408051808303816000875af115801561106a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108e9190615599565b505061109a8688613686565b7f55801cfe493000b734571da1694b21e7f66b11e8ce9fdaa0524ecb59105e73e786888787876040516110d19594939291906155bd565b60405180910390a1505060016065819055509250925092565b606060378054610662906152d0565b60008060008061110860355490565b905080156111275761111b818787613753565b9195509350915061122a565b609d5460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e09291908290030181865afa158015611171573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611195919061530a565b505050505050905060006111db826111be609760149054906101000a900460020b60020b613073565b6097546111d490600160b81b900460020b613073565b8b8b6135c4565b6097546001600160801b038216955090915061122290839061120690600160a01b900460020b613073565b60975461121c90600160b81b900460020b613073565b846134f1565b909650945050505b509250925092565b3361123b610c71565b6001600160a01b0316146112615760405162461bcd60e51b8152600401610824906153c5565b6127108461ffff1611156112875760405162461bcd60e51b8152600401610824906155f4565b6127108561ffff1611156112ad5760405162461bcd60e51b8152600401610824906155f4565b6127108361ffff1611156112d35760405162461bcd60e51b8152600401610824906155f4565b6040805161ffff8781168252868116602083015285168183015263ffffffff8416606082015290517f0b7615006627cf7664941bc288d4641731f895e102f95cb8690583ad7508faa89181900360800190a161ffff85161561134a576097805461ffff60d01b1916600160d01b61ffff8816021790555b61ffff84161561136f576097805461ffff60e01b1916600160e01b61ffff8716021790555b61ffff83161561139557609780546001600160f01b0316600160f01b61ffff8616021790555b63ffffffff8216156113b7576098805463ffffffff191663ffffffff84161790555b6001600160a01b038116156113eb5760988054600160301b600160d01b031916600160301b6001600160a01b038416021790555b5050505050565b3360009081526034602090815260408083206001600160a01b0386168452909152812054828110156114745760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610824565b611483338561083c86856153b2565b5060019392505050565b60006106f23384846124b9565b8181336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114e45760405162461bcd60e51b8152600401610824906154cf565b85156114f4576114f48786613862565b609d546000906001600160a01b031663514ea4bf61151061267f565b6040518263ffffffff1660e01b815260040161152e91815260200190565b60a060405180830381865afa15801561154b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156f919061541e565b505050509050611583818989898989613abb565b609d546000906001600160a01b031663514ea4bf61159f61267f565b6040518263ffffffff1660e01b81526004016115bd91815260200190565b60a060405180830381865afa1580156115da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fe919061541e565b505050509050816001600160801b0316816001600160801b03161161165f5760405162461bcd60e51b81526020600482015260176024820152766c6971756964697479206d75737420696e63726561736560481b6044820152606401610824565b609754604051600080516020615c868339815191529161169991600160a01b8204600290810b92600160b81b9004900b908690869061548e565b60405180910390a1505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601611700576116fb6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683612f14565b611734565b6117346001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612eac565b50505050505050565b6000806000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015611795573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b9919061530a565b50505050509150506117cb8482612239565b9250925050915091565b8181336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461181f5760405162461bcd60e51b8152600401610824906154cf565b600080611832609b54609c548888612d88565b6000609b819055609c559092509050811561187e57609e5461187e906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000084612eac565b8015610d9857609f54610d98906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000083612eac565b609d546001600160a01b031633146118e55760405162461bcd60e51b815260040161082490615611565b831561190257609e54611902906001600160a01b03163386612eac565b8215610e2b57609f54610e2b906001600160a01b03163385612eac565b600061192961267f565b905090565b600054610100900460ff1680611947575060005460ff16155b6119635760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015611985576000805461ffff19166101011790555b6119926000612710615688565b61ffff168561ffff1611156119b95760405162461bcd60e51b8152600401610824906156aa565b609d80546001600160a01b0319166001600160a01b03881690811790915560408051630dfe168160e01b81529051630dfe1681916004808201926020929091908290030181865afa158015611a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a3691906156c8565b609e80546001600160a01b0319166001600160a01b03928316179055609d546040805163d21220a760e01b81529051919092169163d21220a79160048083019260209291908290030181865afa158015611a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab891906156c8565b609f80546001600160a01b039283166001600160a01b0319918216179091556098805460978054948716600160301b8102600160301b600160d01b031963ffffffff1961ffff8e16600160201b021665ffffffffffff199095169490941761012c17939093169290921790925562ffffff878116600160b81b02909316600165ffffff00000160a01b0319938916600160a01b02600165ffffff00000160a01b0390951694909417643e800c801960d31b179290921692909217179055611b7f8888613f83565b611b87614002565b8015611b99576000805461ff00191690555b5050505050505050565b33611bac610c71565b6001600160a01b031614611bd25760405162461bcd60e51b8152600401610824906153c5565b609854600160201b900461ffff1615611c135760405162461bcd60e51b815260206004820152600360248201526266656560e81b6044820152606401610824565b60008161ffff16118015611c3b5750611c2f6000612710615688565b61ffff168161ffff1611155b611c575760405162461bcd60e51b8152600401610824906156aa565b60405161ffff821681527f8a1ffb520c943072e654fc414750dbefad5b6d6311339d041901c4752782fad39060200160405180910390a16098805461ffff909216600160201b0261ffff60201b19909216919091179055565b33611cb9610c71565b6001600160a01b031614611cdf5760405162461bcd60e51b8152600401610824906153c5565b6001600160a01b038116611d465760405162461bcd60e51b815260206004820152602860248201527f4f776e61626c653a206e6577206d616e6167657220697320746865207a65726f604482015267206164647265737360c01b6064820152608401610824565b6097546040516001600160a01b03808416921690600080516020615ca683398151915290600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b609d546001600160a01b03163314611dba5760405162461bcd60e51b815260040161082490615611565b6000841315611dda57609e54610df2906001600160a01b03163386612eac565b6000831315610e2b57609f54610e2b906001600160a01b03163385612eac565b6000806000600260655403611e215760405162461bcd60e51b815260040161082490615500565b600260655584611e5c5760405162461bcd60e51b815260206004820152600660248201526506275726e20360d41b6044820152606401610824565b6000611e6760355490565b609d549091506000906001600160a01b031663514ea4bf611e8661267f565b6040518263ffffffff1660e01b8152600401611ea491815260200190565b60a060405180830381865afa158015611ec1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee5919061541e565b505050509050611ef53388614076565b6000611f0b88836001600160801b0316856141b3565b9050611f1681613488565b609754909450600090819081908190611f4590600160a01b8104600290810b91600160b81b9004900b8a6126da565b9350935093509350611f578282612a0d565b611f618282612ae6565b6040519193509150600080516020615ce683398151915290611f869084908490614e4d565b60405180910390a1609b54609954609e546040516370a0823160e01b815261203293929188916001600160a01b03909116906370a0823190611fcc903090600401614e39565b602060405180830381865afa158015611fe9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200d9190615475565b61201791906153b2565b61202191906153b2565b61202b91906153b2565b8d896141b3565b61203c90856154bc565b609c54609a54609f546040516370a0823160e01b8152939d506120799387916001600160a01b0316906370a0823190611fcc903090600401614e39565b61208390846154bc565b985089156120a257609e546120a2906001600160a01b03168c8c612eac565b88156120bf57609f546120bf906001600160a01b03168c8b612eac565b7f7239dff1718b550db7f36cbf69c665cfeb56d0e96b4fb76a5cba712961b655098b8d8c8c8c6040516120f69594939291906155bd565b60405180910390a15050505050505060016065819055509250925092565b6001600160a01b0383166121765760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610824565b6001600160a01b0382166121d75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610824565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b609d546000908190819081908190819081906001600160a01b031663514ea4bf61226161267f565b6040518263ffffffff1660e01b815260040161227f91815260200190565b60a060405180830381865afa15801561229c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c0919061541e565b94509450945094509450612305896122e9609760149054906101000a900460020b60020b613073565b6097546122ff90600160b81b900460020b613073565b886134f1565b909750955060006001600160801b0383166123236001878c8a614261565b61232d91906154bc565b90506000826001600160801b03166123486000878d8b614261565b61235291906154bc565b905061235e8282612ae6565b609b54609954609e546040516370a0823160e01b8152949650929450909290916001600160a01b0316906370a082319061239c903090600401614e39565b602060405180830381865afa1580156123b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123dd9190615475565b6123e790856154bc565b6123f191906153b2565b6123fb91906153b2565b612405908a6154bc565b609c54609a54609f546040516370a0823160e01b8152939c50919290916001600160a01b0316906370a0823190612440903090600401614e39565b602060405180830381865afa15801561245d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124819190615475565b61248b90846154bc565b61249591906153b2565b61249f91906153b2565b6124a990896154bc565b9750505050505050509250929050565b6001600160a01b03831661251d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610824565b6001600160a01b03821661257f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610824565b6001600160a01b038316600090815260336020526040902054818110156125f75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610824565b61260182826153b2565b6001600160a01b0380861660009081526033602052604080822093909355908516815290812080548492906126379084906154bc565b92505081905550826001600160a01b0316846001600160a01b0316600080516020615cc68339815191528460405161267191815260200190565b60405180910390a350505050565b6097546040516001600160601b03193060601b166020820152600160a01b820460e890811b6034830152600160b81b90920490911b6037820152600090603a0160405160208183030381529060405280519060200120905090565b609e546040516370a0823160e01b815260009182918291829182916001600160a01b0316906370a0823190612713903090600401614e39565b602060405180830381865afa158015612730573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127549190615475565b609f546040516370a0823160e01b81529192506000916001600160a01b03909116906370a082319061278a903090600401614e39565b602060405180830381865afa1580156127a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127cb9190615475565b609d5460405163a34123a760e01b815260028c810b60048301528b900b60248201526001600160801b038a1660448201529192506001600160a01b03169063a34123a79060640160408051808303816000875af1158015612830573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128549190615599565b609d546040516309e3d67b60e31b815230600482015260028d810b60248301528c900b60448201526001600160801b036064820181905260848201529298509096506001600160a01b031690634f1eb3d89060a40160408051808303816000875af11580156128c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128eb91906156e5565b5050609e546040516370a0823160e01b8152879184916001600160a01b03909116906370a0823190612921903090600401614e39565b602060405180830381865afa15801561293e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129629190615475565b61296c91906153b2565b61297691906153b2565b609f546040516370a0823160e01b8152919550869183916001600160a01b0316906370a08231906129ab903090600401614e39565b602060405180830381865afa1580156129c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ec9190615475565b6129f691906153b2565b612a0091906153b2565b9250505093509350935093565b612710612a1b600084615718565b612a259190615745565b609b6000828254612a3691906154bc565b909155506127109050612a4a600083615718565b612a549190615745565b609c6000828254612a6591906154bc565b909155505060985461271090612a8690600160201b900461ffff1684615718565b612a909190615745565b60996000828254612aa191906154bc565b909155505060985461271090612ac290600160201b900461ffff1683615718565b612acc9190615745565b609a6000828254612add91906154bc565b90915550505050565b6000806000612710609860049054906101000a900461ffff166000612b0b9190615759565b612b199061ffff1687615718565b612b239190615745565b60985490915060009061271090612b4590600160201b900461ffff1683615759565b612b539061ffff1687615718565b612b5d9190615745565b9050612b6982876153b2565b9350612b7581866153b2565b925050509250929050565b609d5460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e09291908290030181865afa158015612bca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bee919061530a565b50505050505090506000612c1b82612c088b60020b613073565b612c148b60020b613073565b8a8a6135c4565b90506001600160801b03811615612cc957609d54604051633c8a7d8d60e01b815260009182916001600160a01b0390911690633c8a7d8d90612c679030908f908f908990600401615557565b60408051808303816000875af1158015612c85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ca99190615599565b9092509050612cb8828a6153b2565b9850612cc481896153b2565b975050505b6000612cf86127108686612cdd5789612cdf565b8a5b612ce99190615718565b612cf39190615745565b61460d565b90506000811315612d1557612d128a8a8a8a858b8a614673565b50505b50505050505050505050565b33612d2a610c71565b6001600160a01b031614612d505760405162461bcd60e51b8152600401610824906153c5565b6097546040516000916001600160a01b031690600080516020615ca6833981519152908390a3609780546001600160a01b0319169055565b609e5460009081906001600160a01b0390811690841603612dfd57609754849061271090612dc190600160e01b900461ffff1689615718565b612dcb9190615745565b1015612de95760405162461bcd60e51b815260040161082490615774565b612df384876153b2565b9150849050612ea3565b609f546001600160a01b0390811690841603612e6d57609754849061271090612e3190600160e01b900461ffff1688615718565b612e3b9190615745565b1015612e595760405162461bcd60e51b815260040161082490615774565b612e6384866153b2565b9050859150612ea3565b60405162461bcd60e51b815260206004820152600b60248201526a3bb937b733903a37b5b2b760a91b6044820152606401610824565b94509492505050565b6040516001600160a01b038316602482015260448101829052612f0f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261488f565b505050565b80471015612f645760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610824565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612fb1576040519150601f19603f3d011682016040523d82523d6000602084013e612fb6565b606091505b5050905080612f0f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152608401610824565b60006130378484846141b3565b9050600082806130495761304961572f565b848609111561084757600019811061306057600080fd5b8061306a81615796565b95945050505050565b60008060008360020b1261308a578260020b613097565b8260020b613097906157af565b90506130a6620d89e7196157cb565b60020b8111156130dc5760405162461bcd60e51b81526020600482015260016024820152601560fa1b6044820152606401610824565b6000816001166000036130f357600160801b613105565b6ffffcb933bd6fad37aa2d162d1a5940015b6001600160881b03169050600282161561313a576080613135826ffff97272373d413259a46990580e213a615718565b901c90505b600482161561316457608061315f826ffff2e50f5f656932ef12357cf3c7fdcc615718565b901c90505b600882161561318e576080613189826fffe5caca7e10e4e61c3624eaa0941cd0615718565b901c90505b60108216156131b85760806131b3826fffcb9843d60f6159c9db58835c926644615718565b901c90505b60208216156131e25760806131dd826fff973b41fa98c081472e6896dfb254c0615718565b901c90505b604082161561320c576080613207826fff2ea16466c96a3843ec78b326b52861615718565b901c90505b6080821615613236576080613231826ffe5dee046a99a2a811c461f1969c3053615718565b901c90505b61010082161561326157608061325c826ffcbe86c7900a88aedcffc83b479aa3a4615718565b901c90505b61020082161561328c576080613287826ff987a7253ac413176f2b074cf7815e54615718565b901c90505b6104008216156132b75760806132b2826ff3392b0822b70005940c7a398e4b70f3615718565b901c90505b6108008216156132e25760806132dd826fe7159475a2c29b7443b29c7fa6e889d9615718565b901c90505b61100082161561330d576080613308826fd097f3bdfd2022b8845ad8f792aa5825615718565b901c90505b612000821615613338576080613333826fa9f746462d870fdf8a65dc1f90e061e5615718565b901c90505b61400082161561336357608061335e826f70d869a156d2a1b890bb3df62baf32f7615718565b901c90505b61800082161561338e576080613389826f31be135f97d08fd981231505542fcfa6615718565b901c90505b620100008216156133ba5760806133b5826f09aa508b5b7a84e1c677de54f3e99bc9615718565b901c90505b620200008216156133e55760806133e0826e5d6af8dedb81196699c329225ee604615718565b901c90505b6204000082161561340f57608061340a826d2216e584f5fa1ea926041bedfe98615718565b901c90505b62080000821615613437576080613432826b048a170391f7dc42444e8fa2615718565b901c90505b60008460020b13156134525761344f81600019615745565b90505b613460600160201b826157ed565b1561346c57600161346f565b60005b6134809060ff16602083901c6154bc565b949350505050565b6000600160801b82106134ed5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663238206269747360c81b6064820152608401610824565b5090565b600080836001600160a01b0316856001600160a01b03161115613512579293925b846001600160a01b0316866001600160a01b03161161353d57613536858585614961565b9150612ea3565b836001600160a01b0316866001600160a01b0316101561357657613562868585614961565b915061356f8587856149cb565b9050612ea3565b6135818585856149cb565b905094509492505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610e2b9085906323b872dd60e01b90608401612ed8565b6000836001600160a01b0316856001600160a01b031611156135e4579293925b846001600160a01b0316866001600160a01b03161161360f57613608858585614a15565b905061306a565b836001600160a01b0316866001600160a01b03161015613671576000613636878686614a15565b90506000613645878986614a7f565b9050806001600160801b0316826001600160801b0316106136665780613668565b815b9250505061306a565b61367c858584614a7f565b9695505050505050565b6001600160a01b0382166136dc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610824565b80603560008282546136ee91906154bc565b90915550506001600160a01b0382166000908152603360205260408120805483929061371b9084906154bc565b90915550506040518181526001600160a01b03831690600090600080516020615cc68339815191529060200160405180910390a35050565b60008060008060006137636106fc565b915091508160001480156137775750600081115b1561378e576137878689836141b3565b925061383d565b8015801561379c5750600082115b156137ac576137878789846141b3565b811580156137b8575080155b156137df5760405162461bcd60e51b81526020600482015260006024820152604401610824565b60006137ec888a856141b3565b905060006137fb888b856141b3565b905060008211801561380d5750600081115b6138295760405162461bcd60e51b815260040161082490615537565b8082106138365780613838565b815b945050505b61384883838a61302a565b945061385583828a61302a565b9350505093509350939050565b6040805160028082526060820183526000926020830190803683375050609854825192935063ffffffff16918391506000906138a0576138a0615801565b602002602001019063ffffffff16908163ffffffff16815250506000816001815181106138cf576138cf615801565b63ffffffff90921660209283029190910190910152609d5460405163883bdbfd60e01b81526000916001600160a01b03169063883bdbfd90613915908590600401615817565b600060405180830381865afa158015613932573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261395a919081019061590a565b509050805160021461399a5760405162461bcd60e51b815260206004820152600960248201526830b93930bc903632b760b91b6044820152606401610824565b6098548151600091829163ffffffff90911660060b90849083906139c0576139c0615801565b6020026020010151846001815181106139db576139db615801565b60200260200101510360060b816139f4576139f461572f565b059050613a038160020b613073565b6097549092506000915061271090613a2690600160f01b900461ffff16846159cc565b613a3091906159fe565b90508415613a7857613a428183615a24565b6001600160a01b0316866001600160a01b03161015613a735760405162461bcd60e51b815260040161082490615a44565b613ab3565b613a828183615a6b565b6001600160a01b0316866001600160a01b03161115613ab35760405162461bcd60e51b815260040161082490615a44565b505050505050565b609b54609954609e546040516370a0823160e01b815260009392916001600160a01b0316906370a0823190613af4903090600401614e39565b602060405180830381865afa158015613b11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b359190615475565b613b3f91906153b2565b613b4991906153b2565b609c54609a54609f546040516370a0823160e01b81529394506000936001600160a01b03909116906370a0823190613b85903090600401614e39565b602060405180830381865afa158015613ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bc69190615475565b613bd091906153b2565b613bda91906153b2565b6097549091506000908190613c0590600160a01b8104600290810b91600160b81b9004900b8c6126da565b935093505050613c158282612a0d565b613c1f8282612ae6565b6040519193509150600080516020615ce683398151915290613c449084908490614e4d565b60405180910390a1613c5684836154bc565b9150613c6283826154bc565b609e549091506001600160a01b0390811690861603613def57609754869061271090613c9990600160d01b900461ffff1685615718565b613ca39190615745565b1015613cc15760405162461bcd60e51b815260040161082490615774565b609b54609954609e546040516370a0823160e01b8152899392916001600160a01b0316906370a0823190613cf9903090600401614e39565b602060405180830381865afa158015613d16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d3a9190615475565b613d4491906153b2565b613d4e91906153b2565b613d5891906153b2565b609c54609a54609f546040516370a0823160e01b8152939750919290916001600160a01b0316906370a0823190613d93903090600401614e39565b602060405180830381865afa158015613db0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dd49190615475565b613dde91906153b2565b613de891906153b2565b9250613f5c565b609f546001600160a01b0390811690861603612e6d57609754869061271090613e2390600160d01b900461ffff1684615718565b613e2d9190615745565b1015613e4b5760405162461bcd60e51b815260040161082490615774565b609b54609954609e546040516370a0823160e01b81526001600160a01b03909116906370a0823190613e81903090600401614e39565b602060405180830381865afa158015613e9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ec29190615475565b613ecc91906153b2565b613ed691906153b2565b609c54609a54609f546040516370a0823160e01b815293975089936001600160a01b03909116906370a0823190613f11903090600401614e39565b602060405180830381865afa158015613f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f529190615475565b613dd491906153b2565b609754612d1590600160a01b8104600290810b91600160b81b9004900b86868d8d8d612b80565b600054610100900460ff1680613f9c575060005460ff16155b613fb85760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015613fda576000805461ffff19166101011790555b613fe2614ab5565b613fec8383614b1f565b8015612f0f576000805461ff0019169055505050565b600054610100900460ff168061401b575060005460ff16155b6140375760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614059576000805461ffff19166101011790555b614061614ba6565b8015614073576000805461ff00191690555b50565b6001600160a01b0382166140d65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610824565b6001600160a01b0382166000908152603360205260409020548181101561414a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610824565b61415482826153b2565b6001600160a01b038416600090815260336020526040812091909155603580548492906141829084906153b2565b90915550506040518281526000906001600160a01b03851690600080516020615cc68339815191529060200161222c565b60008080600019858709858702925082811083820303915050806000036141ec57600084116141e157600080fd5b508290049050610847565b8084116141f857600080fd5b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b600080600080871561440157609d60009054906101000a90046001600160a01b03166001600160a01b031663f30583996040518163ffffffff1660e01b8152600401602060405180830381865afa1580156142c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142e49190615475565b609d5460975460405163f30dba9360e01b81529293506001600160a01b039091169163f30dba939161432491600160a01b90910460020b90600401614f3e565b61010060405180830381865afa158015614342573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143669190615a8b565b5050609d5460975460405163f30dba9360e01b8152959a506001600160a01b03909116965063f30dba9395506143af94600160b81b90910460020b93506004019150614f3e9050565b61010060405180830381865afa1580156143cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143f19190615a8b565b5093975061458f95505050505050565b609d60009054906101000a90046001600160a01b03166001600160a01b031663461413196040518163ffffffff1660e01b8152600401602060405180830381865afa158015614454573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144789190615475565b609d5460975460405163f30dba9360e01b81529293506001600160a01b039091169163f30dba93916144b891600160a01b90910460020b90600401614f3e565b61010060405180830381865afa1580156144d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144fa9190615a8b565b5050609d5460975460405163f30dba9360e01b8152949a506001600160a01b03909116965063f30dba9395506145429450600160b81b900460020b926004019150614f3e9050565b61010060405180830381865afa158015614560573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145849190615a8b565b509297505050505050505b609754600090600160a01b9004600290810b9088900b126145b15750826145b6565b508281035b609754600090600160b81b9004600290810b9089900b12156145d95750826145de565b508282035b8183038190036145fe6001600160801b0389168b8303600160801b6141b3565b9b9a5050505050505050505050565b6000600160ff1b82106134ed5760405162461bcd60e51b815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604482015267371034b73a191a9b60c11b6064820152608401610824565b609d54604051630251596160e31b81523060048201528215156024820152604481018590526001600160a01b03848116606483015260a06084830152600060a4830181905292839283928392169063128acb089060c40160408051808303816000875af11580156146e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061470c9190615599565b915091508161471a8a61460d565b6147249190615b27565b9350806147308961460d565b61473a9190615b27565b92506000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015614791573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147b5919061530a565b505050505050905060006147e2826147cf8f60020b613073565b6147db8f60020b613073565b89896135c4565b90506001600160801b0381161561487f57609d60009054906101000a90046001600160a01b03166001600160a01b0316633c8a7d8d308f8f856040518563ffffffff1660e01b815260040161483a9493929190615557565b60408051808303816000875af1158015614858573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061487c9190615599565b50505b5050505097509795505050505050565b60006148e4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614c169092919063ffffffff16565b805190915015612f0f57808060200190518101906149029190615b47565b612f0f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610824565b6000826001600160a01b0316846001600160a01b03161115614981579192915b6001600160a01b0384166149c1600160601b600160e01b03606085901b166149a98787615a24565b6001600160a01b0316866001600160a01b03166141b3565b6134809190615745565b6000826001600160a01b0316846001600160a01b031611156149eb579192915b6134806001600160801b038316614a028686615a24565b6001600160a01b0316600160601b6141b3565b6000826001600160a01b0316846001600160a01b03161115614a35579192915b6000614a58856001600160a01b0316856001600160a01b0316600160601b6141b3565b905061306a614a7a8483614a6c8989615a24565b6001600160a01b03166141b3565b614c25565b6000826001600160a01b0316846001600160a01b03161115614a9f579192915b613480614a7a83600160601b614a6c8888615a24565b600054610100900460ff1680614ace575060005460ff16155b614aea5760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614061576000805461ffff19166101011790558015614073576000805461ff001916905550565b600054610100900460ff1680614b38575060005460ff16155b614b545760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614b76576000805461ffff19166101011790555b6036614b828482615baa565b506037614b8f8382615baa565b508015612f0f576000805461ff0019169055505050565b600054610100900460ff1680614bbf575060005460ff16155b614bdb5760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614bfd576000805461ffff19166101011790555b60016065558015614073576000805461ff001916905550565b60606134808484600085614c40565b806001600160801b0381168114614c3b57600080fd5b919050565b606082471015614ca15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610824565b843b614cef5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610824565b600080866001600160a01b03168587604051614d0b9190615c69565b60006040518083038185875af1925050503d8060008114614d48576040519150601f19603f3d011682016040523d82523d6000602084013e614d4d565b606091505b5091509150614d5d828286614d68565b979650505050505050565b60608315614d77575081610847565b825115614d875782518084602001fd5b8160405162461bcd60e51b81526004016108249190614dc5565b60005b83811015614dbc578181015183820152602001614da4565b50506000910152565b6020815260008251806020840152614de4816040850160208701614da1565b601f01601f19169190910160400192915050565b6001600160a01b038116811461407357600080fd5b60008060408385031215614e2057600080fd5b8235614e2b81614df8565b946020939093013593505050565b6001600160a01b0391909116815260200190565b918252602082015260400190565b600080600060608486031215614e7057600080fd5b8335614e7b81614df8565b92506020840135614e8b81614df8565b929592945050506040919091013590565b8060020b811461407357600080fd5b801515811461407357600080fd5b600080600080600060a08688031215614ed157600080fd5b8535614edc81614e9c565b94506020860135614eec81614e9c565b93506040860135614efc81614df8565b9250606086013591506080860135614f1381614eab565b809150509295509295909350565b600060208284031215614f3357600080fd5b813561084781614df8565b60029190910b815260200190565b60008060408385031215614f5f57600080fd5b823591506020830135614f7181614df8565b809150509250929050565b60008060408385031215614f8f57600080fd5b50508035926020909101359150565b61ffff8116811461407357600080fd5b63ffffffff8116811461407357600080fd5b600080600080600060a08688031215614fd857600080fd5b8535614fe381614f9e565b94506020860135614ff381614f9e565b9350604086013561500381614f9e565b9250606086013561501381614fae565b91506080860135614f1381614df8565b600080600080600060a0868803121561503b57600080fd5b853561504681614df8565b945060208601359350604086013561505d81614eab565b9250606086013591506080860135614f1381614df8565b60008083601f84011261508657600080fd5b5081356001600160401b0381111561509d57600080fd5b6020830191508360208285010111156150b557600080fd5b9250929050565b600080600080606085870312156150d257600080fd5b843593506020850135925060408501356001600160401b038111156150f657600080fd5b61510287828801615074565b95989497509550505050565b6000806040838503121561512157600080fd5b823561512c81614df8565b91506020830135614f7181614df8565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561517a5761517a61513c565b604052919050565b600082601f83011261519357600080fd5b81356001600160401b038111156151ac576151ac61513c565b6151bf601f8201601f1916602001615152565b8181528460208386010111156151d457600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060e0888a03121561520c57600080fd5b87356001600160401b038082111561522357600080fd5b61522f8b838c01615182565b985060208a013591508082111561524557600080fd5b506152528a828b01615182565b965050604088013561526381614df8565b9450606088013561527381614f9e565b9350608088013561528381614e9c565b925060a088013561529381614e9c565b915060c08801356152a381614df8565b8091505092959891949750929550565b6000602082840312156152c557600080fd5b813561084781614f9e565b600181811c908216806152e457607f821691505b60208210810361530457634e487b7160e01b600052602260045260246000fd5b50919050565b600080600080600080600060e0888a03121561532557600080fd5b875161533081614df8565b602089015190975061534181614e9c565b604089015190965061535281614f9e565b606089015190955061536381614f9e565b608089015190945061537481614f9e565b60a089015190935060ff8116811461538b57600080fd5b60c08901519092506152a381614eab565b634e487b7160e01b600052601160045260246000fd5b818103818111156106f6576106f661539c565b60208082526022908201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d616e616760408201526132b960f11b606082015260800190565b80516001600160801b0381168114614c3b57600080fd5b600080600080600060a0868803121561543657600080fd5b61543f86615407565b9450602086015193506040860151925061545b60608701615407565b915061546960808701615407565b90509295509295909350565b60006020828403121561548757600080fd5b5051919050565b600294850b81529290930b60208301526001600160801b039081166040830152909116606082015260800190565b808201808211156106f6576106f661539c565b60208082526017908201527647656c61746f666965643a204f6e6c792067656c61746f60481b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526006908201526506d696e7420360d41b604082015260600190565b6001600160a01b03949094168452600292830b6020850152910b60408301526001600160801b0316606082015260a06080820181905260009082015260c00190565b600080604083850312156155ac57600080fd5b505080516020909101519092909150565b6001600160a01b039590951685526020850193909352604084019190915260608301526001600160801b0316608082015260a00190565b60208082526003908201526242505360e81b604082015260600190565b6020808252600f908201526e31b0b6363130b1b59031b0b63632b960891b604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b61ffff8281168282160390808211156156a3576156a361539c565b5092915050565b6020808252600490820152636d42505360e01b604082015260600190565b6000602082840312156156da57600080fd5b815161084781614df8565b600080604083850312156156f857600080fd5b61570183615407565b915061570f60208401615407565b90509250929050565b80820281158282048414176106f6576106f661539c565b634e487b7160e01b600052601260045260246000fd5b6000826157545761575461572f565b500490565b61ffff8181168382160190808211156156a3576156a361539c565b602080825260089082015267686967682066656560c01b604082015260600190565b6000600182016157a8576157a861539c565b5060010190565b6000600160ff1b82016157c4576157c461539c565b5060000390565b60008160020b627fffff1981036157e4576157e461539c565b60000392915050565b6000826157fc576157fc61572f565b500690565b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561585557835163ffffffff1683529284019291840191600101615833565b50909695505050505050565b60006001600160401b0382111561587a5761587a61513c565b5060051b60200190565b8051600681900b8114614c3b57600080fd5b600082601f8301126158a757600080fd5b815160206158bc6158b783615861565b615152565b82815260059290921b840181019181810190868411156158db57600080fd5b8286015b848110156158ff5780516158f281614df8565b83529183019183016158df565b509695505050505050565b6000806040838503121561591d57600080fd5b82516001600160401b038082111561593457600080fd5b818501915085601f83011261594857600080fd5b815160206159586158b783615861565b82815260059290921b8401810191818101908984111561597757600080fd5b948201945b8386101561599c5761598d86615884565b8252948201949082019061597c565b918801519196509093505050808211156159b557600080fd5b506159c285828601615896565b9150509250929050565b6001600160a01b038281168282168181028316929181158285048214176159f5576159f561539c565b50505092915050565b60006001600160a01b0383811680615a1857615a1861572f565b92169190910492915050565b6001600160a01b038281168282160390808211156156a3576156a361539c565b6020808252600d908201526c6869676820736c69707061676560981b604082015260600190565b6001600160a01b038181168382160190808211156156a3576156a361539c565b600080600080600080600080610100898b031215615aa857600080fd5b615ab189615407565b9750602089015180600f0b8114615ac757600080fd5b60408a015160608b015191985096509450615ae460808a01615884565b935060a0890151615af481614df8565b60c08a0151909350615b0581614fae565b60e08a0151909250615b1681614eab565b809150509295985092959890939650565b81810360008312801583831316838312821617156156a3576156a361539c565b600060208284031215615b5957600080fd5b815161084781614eab565b601f821115612f0f57600081815260208120601f850160051c81016020861015615b8b5750805b601f850160051c820191505b81811015613ab357828155600101615b97565b81516001600160401b03811115615bc357615bc361513c565b615bd781615bd184546152d0565b84615b64565b602080601f831160018114615c0c5760008415615bf45750858301515b600019600386901b1c1916600185901b178555613ab3565b600085815260208120601f198616915b82811015615c3b57888601518255948401946001909101908401615c1c565b5085821015615c595787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008251615c7b818460208701614da1565b919091019291505056fec749f9ae947d4734cf1569606a8a347391ae94a063478aa853aeff48ac5f99e88be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efc28ad1de9c0c32e5394ba60323e44d8d9536312236a47231772e448a3e49de42a2646970667358221220a11bde499516b0a2e8e737821292815fcefc66549a9729f24ea128d34ed6027364736f6c63430008130033", + "devdoc": { + "events": { + "Approval(address,address,uint256)": { + "details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance." + }, + "Transfer(address,address,uint256)": { + "details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero." + } + }, + "kind": "dev", + "methods": { + "allowance(address,address)": { + "details": "See {IERC20-allowance}." + }, + "approve(address,uint256)": { + "details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address." + }, + "balanceOf(address)": { + "details": "See {IERC20-balanceOf}." + }, + "burn(uint256,address)": { + "params": { + "burnAmount": "The number of G-UNI tokens to burn", + "receiver": "The account to receive the underlying amounts of token0 and token1" + }, + "returns": { + "amount0": "amount of token0 transferred to receiver for burning `burnAmount`", + "amount1": "amount of token1 transferred to receiver for burning `burnAmount`", + "liquidityBurned": "amount of liquidity removed from the underlying Uniswap V3 position" + } + }, + "decimals()": { + "details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}." + }, + "decreaseAllowance(address,uint256)": { + "details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`." + }, + "executiveRebalance(int24,int24,uint160,uint256,bool)": { + "details": "When changing the range the inventory of token0 and token1 may be rebalanced with a swap to deposit as much liquidity as possible into the new position. Swap parameters can be computed by simulating the whole operation: remove all liquidity, deposit as much as possible into new position, then observe how much of token0 or token1 is leftover. Swap a proportion of this leftover to deposit more liquidity into the position, since any leftover will be unused and sit idle until the next rebalance.", + "params": { + "newLowerTick": "The new lower bound of the position's range", + "newUpperTick": "The new upper bound of the position's range", + "swapAmountBPS": "amount of token to swap as proportion of total. Pass 0 to ignore swap.", + "swapThresholdPrice": "slippage parameter on the swap as a max or min sqrtPriceX96", + "zeroForOne": "Which token to input into the swap (true = token0, false = token1)" + } + }, + "getMintAmounts(uint256,uint256)": { + "params": { + "amount0Max": "The maximum amount of token1 to forward on mint" + }, + "returns": { + "amount0": "actual amount of token0 to forward when minting `mintAmount`", + "amount1": "actual amount of token1 to forward when minting `mintAmount`", + "mintAmount": "maximum number of G-UNI tokens to mint" + } + }, + "getUnderlyingBalances()": { + "returns": { + "amount0Current": "current total underlying balance of token0", + "amount1Current": "current total underlying balance of token1" + } + }, + "increaseAllowance(address,uint256)": { + "details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address." + }, + "initialize(string,string,address,uint16,int24,int24,address)": { + "params": { + "_lowerTick": "initial upperTick (only changeable with executiveRebalance)", + "_managerFeeBPS": "proportion of fees earned that go to manager treasury note that the 4 above params are NOT UPDATEABLE AFTER INILIALIZATION", + "_manager_": "address of manager (ownership can be transferred)", + "_name": "name of G-UNI token", + "_pool": "address of Uniswap V3 pool", + "_symbol": "symbol of G-UNI token" + } + }, + "initializeManagerFee(uint16)": { + "params": { + "_managerFeeBPS": "proportion of fees earned that are credited to manager in Basis Points" + } + }, + "manager()": { + "details": "Returns the address of the current manager." + }, + "mint(uint256,address)": { + "details": "to compute the amouint of tokens necessary to mint `mintAmount` see getMintAmounts", + "params": { + "mintAmount": "The number of G-UNI tokens to mint", + "receiver": "The account to receive the minted tokens" + }, + "returns": { + "amount0": "amount of token0 transferred from msg.sender to mint `mintAmount`", + "amount1": "amount of token1 transferred from msg.sender to mint `mintAmount`", + "liquidityMinted": "amount of liquidity added to the underlying Uniswap V3 position" + } + }, + "name()": { + "details": "Returns the name of the token." + }, + "renounceOwnership()": { + "details": "Leaves the contract without manager. It will not be possible to call `onlyManager` functions anymore. Can only be called by the current manager. NOTE: Renouncing ownership will leave the contract without an manager, thereby removing any functionality that is only available to the manager." + }, + "symbol()": { + "details": "Returns the symbol of the token, usually a shorter version of the name." + }, + "totalSupply()": { + "details": "See {IERC20-totalSupply}." + }, + "transfer(address,uint256)": { + "details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`." + }, + "transferFrom(address,address,uint256)": { + "details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`." + }, + "transferOwnership(address)": { + "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current manager." + }, + "updateGelatoParams(uint16,uint16,uint16,uint32,address)": { + "params": { + "newRebalanceBPS": "controls frequency of gelato rebalances: gas fee to execute rebalance can be gelatoRebalanceBPS proportion of fees earned since last rebalance", + "newSlippageBPS": "maximum slippage on swaps during gelato rebalance", + "newSlippageInterval": "length of time for TWAP used in computing slippage on swaps", + "newTreasury": "address where managerFee withdrawals are sent", + "newWithdrawBPS": "controls frequency of gelato withdrawals: gas fee to execute withdrawal can be gelatoWithdrawBPS proportion of fees accrued since last withdraw" + } + } + }, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "burn(uint256,address)": { + "notice": "burn G-UNI tokens (fractional shares of a Uniswap V3 position) and receive tokens" + }, + "executiveRebalance(int24,int24,uint160,uint256,bool)": { + "notice": "Change the range of underlying UniswapV3 position, only manager can call" + }, + "getMintAmounts(uint256,uint256)": { + "notice": "compute maximum G-UNI tokens that can be minted from `amount0Max` and `amount1Max`" + }, + "getUnderlyingBalances()": { + "notice": "compute total underlying holdings of the G-UNI token supply includes current liquidity invested in uniswap position, current fees earned and any uninvested leftover (but does not include manager or gelato fees accrued)" + }, + "initialize(string,string,address,uint16,int24,int24,address)": { + "notice": "initialize storage variables on a new G-UNI pool, only called once" + }, + "initializeManagerFee(uint16)": { + "notice": "initializeManagerFee sets a managerFee, only manager can call. If a manager fee was not set in the initialize function it can be set here but ONLY ONCE- after it is set to a non-zero value, managerFee can never be set again." + }, + "mint(uint256,address)": { + "notice": "mint fungible G-UNI tokens, fractional shares of a Uniswap V3 position" + }, + "rebalance(uint160,uint256,bool,uint256,address)": { + "notice": "Reinvest fees earned into underlying position, only gelato executors can call Position bounds CANNOT be altered by gelato, only manager may via executiveRebalance. Frequency of rebalance configured with gelatoRebalanceBPS, alterable by manager." + }, + "uniswapV3MintCallback(uint256,uint256,bytes)": { + "notice": "Uniswap V3 callback fn, called back on pool.mint" + }, + "uniswapV3SwapCallback(int256,int256,bytes)": { + "notice": "Uniswap v3 callback fn, called back on pool.swap" + }, + "updateGelatoParams(uint16,uint16,uint16,uint32,address)": { + "notice": "change configurable parameters, only manager can call" + }, + "withdrawGelatoBalance(uint256,address)": { + "notice": "withdraw gelato fees accrued, only gelato executors can call. Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager." + }, + "withdrawManagerBalance(uint256,address)": { + "notice": "withdraw manager fees accrued, only gelato executors can call. Target account to receive fees is managerTreasury, alterable by manager. Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager." + } + }, + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 5, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_bool" + }, + { + "astId": 8, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool" + }, + { + "astId": 784, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 122, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_balances", + "offset": 0, + "slot": "51", + "type": "t_mapping(t_address,t_uint256)" + }, + { + "astId": 128, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_allowances", + "offset": 0, + "slot": "52", + "type": "t_mapping(t_address,t_mapping(t_address,t_uint256))" + }, + { + "astId": 130, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_totalSupply", + "offset": 0, + "slot": "53", + "type": "t_uint256" + }, + { + "astId": 132, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_name", + "offset": 0, + "slot": "54", + "type": "t_string_storage" + }, + { + "astId": 134, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_symbol", + "offset": 0, + "slot": "55", + "type": "t_string_storage" + }, + { + "astId": 636, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "__gap", + "offset": 0, + "slot": "56", + "type": "t_array(t_uint256)45_storage" + }, + { + "astId": 59, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_status", + "offset": 0, + "slot": "101", + "type": "t_uint256" + }, + { + "astId": 102, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "__gap", + "offset": 0, + "slot": "102", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 6441, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_manager", + "offset": 0, + "slot": "151", + "type": "t_address" + }, + { + "astId": 6031, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "lowerTick", + "offset": 20, + "slot": "151", + "type": "t_int24" + }, + { + "astId": 6033, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "upperTick", + "offset": 23, + "slot": "151", + "type": "t_int24" + }, + { + "astId": 6035, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoRebalanceBPS", + "offset": 26, + "slot": "151", + "type": "t_uint16" + }, + { + "astId": 6037, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoWithdrawBPS", + "offset": 28, + "slot": "151", + "type": "t_uint16" + }, + { + "astId": 6039, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoSlippageBPS", + "offset": 30, + "slot": "151", + "type": "t_uint16" + }, + { + "astId": 6041, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoSlippageInterval", + "offset": 0, + "slot": "152", + "type": "t_uint32" + }, + { + "astId": 6043, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "managerFeeBPS", + "offset": 4, + "slot": "152", + "type": "t_uint16" + }, + { + "astId": 6045, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "managerTreasury", + "offset": 6, + "slot": "152", + "type": "t_address" + }, + { + "astId": 6047, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "managerBalance0", + "offset": 0, + "slot": "153", + "type": "t_uint256" + }, + { + "astId": 6049, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "managerBalance1", + "offset": 0, + "slot": "154", + "type": "t_uint256" + }, + { + "astId": 6051, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoBalance0", + "offset": 0, + "slot": "155", + "type": "t_uint256" + }, + { + "astId": 6053, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoBalance1", + "offset": 0, + "slot": "156", + "type": "t_uint256" + }, + { + "astId": 6056, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "pool", + "offset": 0, + "slot": "157", + "type": "t_contract(IUniswapV3Pool)2339" + }, + { + "astId": 6059, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "token0", + "offset": 0, + "slot": "158", + "type": "t_contract(IERC20)863" + }, + { + "astId": 6062, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "token1", + "offset": 0, + "slot": "159", + "type": "t_contract(IERC20)863" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)45_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[45]", + "numberOfBytes": "1440" + }, + "t_array(t_uint256)49_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_contract(IERC20)863": { + "encoding": "inplace", + "label": "contract IERC20", + "numberOfBytes": "20" + }, + "t_contract(IUniswapV3Pool)2339": { + "encoding": "inplace", + "label": "contract IUniswapV3Pool", + "numberOfBytes": "20" + }, + "t_int24": { + "encoding": "inplace", + "label": "int24", + "numberOfBytes": "3" + }, + "t_mapping(t_address,t_mapping(t_address,t_uint256))": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => mapping(address => uint256))", + "numberOfBytes": "32", + "value": "t_mapping(t_address,t_uint256)" + }, + "t_mapping(t_address,t_uint256)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_string_storage": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_uint16": { + "encoding": "inplace", + "label": "uint16", + "numberOfBytes": "2" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint32": { + "encoding": "inplace", + "label": "uint32", + "numberOfBytes": "4" + } + } + } +} \ No newline at end of file diff --git a/lib/g-uni-v1-core/deployments/modeSepolia/GUniPool.json b/lib/g-uni-v1-core/deployments/modeSepolia/GUniPool.json new file mode 100644 index 00000000..574d3ddb --- /dev/null +++ b/lib/g-uni-v1-core/deployments/modeSepolia/GUniPool.json @@ -0,0 +1,1649 @@ +{ + "address": "0xe1B83edA3399A2c9B8265215EA21042C9b918dc5", + "abi": [ + { + "inputs": [ + { + "internalType": "address payable", + "name": "_gelato", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "receiver", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "burnAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount0Out", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount1Out", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidityBurned", + "type": "uint128" + } + ], + "name": "Burned", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "feesEarned0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "feesEarned1", + "type": "uint256" + } + ], + "name": "FeesEarned", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "receiver", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "mintAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount0In", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount1In", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidityMinted", + "type": "uint128" + } + ], + "name": "Minted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousManager", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newManager", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "int24", + "name": "lowerTick_", + "type": "int24" + }, + { + "indexed": false, + "internalType": "int24", + "name": "upperTick_", + "type": "int24" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidityBefore", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidityAfter", + "type": "uint128" + } + ], + "name": "Rebalance", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint16", + "name": "managerFee", + "type": "uint16" + } + ], + "name": "SetManagerFee", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oldAdminTreasury", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdminTreasury", + "type": "address" + } + ], + "name": "UpdateAdminTreasury", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint16", + "name": "gelatoRebalanceBPS", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "gelatoWithdrawBPS", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "gelatoSlippageBPS", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "gelatoSlippageInterval", + "type": "uint32" + } + ], + "name": "UpdateGelatoParams", + "type": "event" + }, + { + "inputs": [], + "name": "GELATO", + "outputs": [ + { + "internalType": "address payable", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "spender", + "type": "address" + } + ], + "name": "allowance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "burnAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "receiver", + "type": "address" + } + ], + "name": "burn", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + }, + { + "internalType": "uint128", + "name": "liquidityBurned", + "type": "uint128" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "decimals", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "subtractedValue", + "type": "uint256" + } + ], + "name": "decreaseAllowance", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int24", + "name": "newLowerTick", + "type": "int24" + }, + { + "internalType": "int24", + "name": "newUpperTick", + "type": "int24" + }, + { + "internalType": "uint160", + "name": "swapThresholdPrice", + "type": "uint160" + }, + { + "internalType": "uint256", + "name": "swapAmountBPS", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "zeroForOne", + "type": "bool" + } + ], + "name": "executiveRebalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoBalance0", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoBalance1", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoFeeBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoRebalanceBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoSlippageBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoSlippageInterval", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gelatoWithdrawBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount0Max", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1Max", + "type": "uint256" + } + ], + "name": "getMintAmounts", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "mintAmount", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getPositionID", + "outputs": [ + { + "internalType": "bytes32", + "name": "positionID", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getUnderlyingBalances", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0Current", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1Current", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint160", + "name": "sqrtRatioX96", + "type": "uint160" + } + ], + "name": "getUnderlyingBalancesAtPrice", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0Current", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1Current", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "addedValue", + "type": "uint256" + } + ], + "name": "increaseAllowance", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "_name", + "type": "string" + }, + { + "internalType": "string", + "name": "_symbol", + "type": "string" + }, + { + "internalType": "address", + "name": "_pool", + "type": "address" + }, + { + "internalType": "uint16", + "name": "_managerFeeBPS", + "type": "uint16" + }, + { + "internalType": "int24", + "name": "_lowerTick", + "type": "int24" + }, + { + "internalType": "int24", + "name": "_upperTick", + "type": "int24" + }, + { + "internalType": "address", + "name": "_manager_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint16", + "name": "_managerFeeBPS", + "type": "uint16" + } + ], + "name": "initializeManagerFee", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "lowerTick", + "outputs": [ + { + "internalType": "int24", + "name": "", + "type": "int24" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "manager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "managerBalance0", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "managerBalance1", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "managerFeeBPS", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "managerTreasury", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "mintAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "receiver", + "type": "address" + } + ], + "name": "mint", + "outputs": [ + { + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + }, + { + "internalType": "uint128", + "name": "liquidityMinted", + "type": "uint128" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pool", + "outputs": [ + { + "internalType": "contract IUniswapV3Pool", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint160", + "name": "swapThresholdPrice", + "type": "uint160" + }, + { + "internalType": "uint256", + "name": "swapAmountBPS", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "zeroForOne", + "type": "bool" + }, + { + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "paymentToken", + "type": "address" + } + ], + "name": "rebalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "token0", + "outputs": [ + { + "internalType": "contract IERC20", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "token1", + "outputs": [ + { + "internalType": "contract IERC20", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transfer", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount0Owed", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount1Owed", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "uniswapV3MintCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int256", + "name": "amount0Delta", + "type": "int256" + }, + { + "internalType": "int256", + "name": "amount1Delta", + "type": "int256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "uniswapV3SwapCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint16", + "name": "newRebalanceBPS", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "newWithdrawBPS", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "newSlippageBPS", + "type": "uint16" + }, + { + "internalType": "uint32", + "name": "newSlippageInterval", + "type": "uint32" + }, + { + "internalType": "address", + "name": "newTreasury", + "type": "address" + } + ], + "name": "updateGelatoParams", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "upperTick", + "outputs": [ + { + "internalType": "int24", + "name": "", + "type": "int24" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "feeToken", + "type": "address" + } + ], + "name": "withdrawGelatoBalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "feeToken", + "type": "address" + } + ], + "name": "withdrawManagerBalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "transactionHash": "0x9598de42fd9366e0c83dede9e3f2e4266b2fd226a7481da1e2186aebe5eebe2a", + "receipt": { + "to": null, + "from": "0xB47C8e4bEb28af80eDe5E5bF474927b110Ef2c0e", + "contractAddress": "0xe1B83edA3399A2c9B8265215EA21042C9b918dc5", + "transactionIndex": 1, + "gasUsed": "5209546", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x32c6236cf9c11262a001973f3f0c797bdfec48929c1ea276c0aea0361f9466eb", + "transactionHash": "0x9598de42fd9366e0c83dede9e3f2e4266b2fd226a7481da1e2186aebe5eebe2a", + "logs": [], + "blockNumber": 15254909, + "cumulativeGasUsed": "5253409", + "status": 1, + "byzantium": true + }, + "args": [ + "0xB47C8e4bEb28af80eDe5E5bF474927b110Ef2c0e" + ], + "solcInputHash": "f1f932b5297d788fce5c0abb03e1e395", + "metadata": "{\"compiler\":{\"version\":\"0.8.19+commit.7dd6d404\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"_gelato\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"burnAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0Out\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1Out\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityBurned\",\"type\":\"uint128\"}],\"name\":\"Burned\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feesEarned0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feesEarned1\",\"type\":\"uint256\"}],\"name\":\"FeesEarned\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"mintAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityMinted\",\"type\":\"uint128\"}],\"name\":\"Minted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousManager\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newManager\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"lowerTick_\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"upperTick_\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityBefore\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityAfter\",\"type\":\"uint128\"}],\"name\":\"Rebalance\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"managerFee\",\"type\":\"uint16\"}],\"name\":\"SetManagerFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldAdminTreasury\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdminTreasury\",\"type\":\"address\"}],\"name\":\"UpdateAdminTreasury\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"gelatoRebalanceBPS\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"gelatoWithdrawBPS\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"gelatoSlippageBPS\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"gelatoSlippageInterval\",\"type\":\"uint32\"}],\"name\":\"UpdateGelatoParams\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"GELATO\",\"outputs\":[{\"internalType\":\"address payable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"burnAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"liquidityBurned\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"newLowerTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"newUpperTick\",\"type\":\"int24\"},{\"internalType\":\"uint160\",\"name\":\"swapThresholdPrice\",\"type\":\"uint160\"},{\"internalType\":\"uint256\",\"name\":\"swapAmountBPS\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"zeroForOne\",\"type\":\"bool\"}],\"name\":\"executiveRebalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoBalance0\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoBalance1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoFeeBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoRebalanceBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoSlippageBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoSlippageInterval\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoWithdrawBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Max\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Max\",\"type\":\"uint256\"}],\"name\":\"getMintAmounts\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"mintAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPositionID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"positionID\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getUnderlyingBalances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Current\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Current\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"sqrtRatioX96\",\"type\":\"uint160\"}],\"name\":\"getUnderlyingBalancesAtPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Current\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Current\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_pool\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_managerFeeBPS\",\"type\":\"uint16\"},{\"internalType\":\"int24\",\"name\":\"_lowerTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"_upperTick\",\"type\":\"int24\"},{\"internalType\":\"address\",\"name\":\"_manager_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_managerFeeBPS\",\"type\":\"uint16\"}],\"name\":\"initializeManagerFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lowerTick\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"managerBalance0\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"managerBalance1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"managerFeeBPS\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"managerTreasury\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"mintAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"liquidityMinted\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pool\",\"outputs\":[{\"internalType\":\"contract IUniswapV3Pool\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"swapThresholdPrice\",\"type\":\"uint160\"},{\"internalType\":\"uint256\",\"name\":\"swapAmountBPS\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"zeroForOne\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"paymentToken\",\"type\":\"address\"}],\"name\":\"rebalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Owed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Owed\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"uniswapV3MintCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"uniswapV3SwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newRebalanceBPS\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"newWithdrawBPS\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"newSlippageBPS\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"newSlippageInterval\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"newTreasury\",\"type\":\"address\"}],\"name\":\"updateGelatoParams\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"upperTick\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"feeToken\",\"type\":\"address\"}],\"name\":\"withdrawGelatoBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"feeToken\",\"type\":\"address\"}],\"name\":\"withdrawManagerBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"burn(uint256,address)\":{\"params\":{\"burnAmount\":\"The number of G-UNI tokens to burn\",\"receiver\":\"The account to receive the underlying amounts of token0 and token1\"},\"returns\":{\"amount0\":\"amount of token0 transferred to receiver for burning `burnAmount`\",\"amount1\":\"amount of token1 transferred to receiver for burning `burnAmount`\",\"liquidityBurned\":\"amount of liquidity removed from the underlying Uniswap V3 position\"}},\"decimals()\":{\"details\":\"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.\"},\"executiveRebalance(int24,int24,uint160,uint256,bool)\":{\"details\":\"When changing the range the inventory of token0 and token1 may be rebalanced with a swap to deposit as much liquidity as possible into the new position. Swap parameters can be computed by simulating the whole operation: remove all liquidity, deposit as much as possible into new position, then observe how much of token0 or token1 is leftover. Swap a proportion of this leftover to deposit more liquidity into the position, since any leftover will be unused and sit idle until the next rebalance.\",\"params\":{\"newLowerTick\":\"The new lower bound of the position's range\",\"newUpperTick\":\"The new upper bound of the position's range\",\"swapAmountBPS\":\"amount of token to swap as proportion of total. Pass 0 to ignore swap.\",\"swapThresholdPrice\":\"slippage parameter on the swap as a max or min sqrtPriceX96\",\"zeroForOne\":\"Which token to input into the swap (true = token0, false = token1)\"}},\"getMintAmounts(uint256,uint256)\":{\"params\":{\"amount0Max\":\"The maximum amount of token1 to forward on mint\"},\"returns\":{\"amount0\":\"actual amount of token0 to forward when minting `mintAmount`\",\"amount1\":\"actual amount of token1 to forward when minting `mintAmount`\",\"mintAmount\":\"maximum number of G-UNI tokens to mint\"}},\"getUnderlyingBalances()\":{\"returns\":{\"amount0Current\":\"current total underlying balance of token0\",\"amount1Current\":\"current total underlying balance of token1\"}},\"increaseAllowance(address,uint256)\":{\"details\":\"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address.\"},\"initialize(string,string,address,uint16,int24,int24,address)\":{\"params\":{\"_lowerTick\":\"initial upperTick (only changeable with executiveRebalance)\",\"_managerFeeBPS\":\"proportion of fees earned that go to manager treasury note that the 4 above params are NOT UPDATEABLE AFTER INILIALIZATION\",\"_manager_\":\"address of manager (ownership can be transferred)\",\"_name\":\"name of G-UNI token\",\"_pool\":\"address of Uniswap V3 pool\",\"_symbol\":\"symbol of G-UNI token\"}},\"initializeManagerFee(uint16)\":{\"params\":{\"_managerFeeBPS\":\"proportion of fees earned that are credited to manager in Basis Points\"}},\"manager()\":{\"details\":\"Returns the address of the current manager.\"},\"mint(uint256,address)\":{\"details\":\"to compute the amouint of tokens necessary to mint `mintAmount` see getMintAmounts\",\"params\":{\"mintAmount\":\"The number of G-UNI tokens to mint\",\"receiver\":\"The account to receive the minted tokens\"},\"returns\":{\"amount0\":\"amount of token0 transferred from msg.sender to mint `mintAmount`\",\"amount1\":\"amount of token1 transferred from msg.sender to mint `mintAmount`\",\"liquidityMinted\":\"amount of liquidity added to the underlying Uniswap V3 position\"}},\"name()\":{\"details\":\"Returns the name of the token.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without manager. It will not be possible to call `onlyManager` functions anymore. Can only be called by the current manager. NOTE: Renouncing ownership will leave the contract without an manager, thereby removing any functionality that is only available to the manager.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}.\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current manager.\"},\"updateGelatoParams(uint16,uint16,uint16,uint32,address)\":{\"params\":{\"newRebalanceBPS\":\"controls frequency of gelato rebalances: gas fee to execute rebalance can be gelatoRebalanceBPS proportion of fees earned since last rebalance\",\"newSlippageBPS\":\"maximum slippage on swaps during gelato rebalance\",\"newSlippageInterval\":\"length of time for TWAP used in computing slippage on swaps\",\"newTreasury\":\"address where managerFee withdrawals are sent\",\"newWithdrawBPS\":\"controls frequency of gelato withdrawals: gas fee to execute withdrawal can be gelatoWithdrawBPS proportion of fees accrued since last withdraw\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"burn(uint256,address)\":{\"notice\":\"burn G-UNI tokens (fractional shares of a Uniswap V3 position) and receive tokens\"},\"executiveRebalance(int24,int24,uint160,uint256,bool)\":{\"notice\":\"Change the range of underlying UniswapV3 position, only manager can call\"},\"getMintAmounts(uint256,uint256)\":{\"notice\":\"compute maximum G-UNI tokens that can be minted from `amount0Max` and `amount1Max`\"},\"getUnderlyingBalances()\":{\"notice\":\"compute total underlying holdings of the G-UNI token supply includes current liquidity invested in uniswap position, current fees earned and any uninvested leftover (but does not include manager or gelato fees accrued)\"},\"initialize(string,string,address,uint16,int24,int24,address)\":{\"notice\":\"initialize storage variables on a new G-UNI pool, only called once\"},\"initializeManagerFee(uint16)\":{\"notice\":\"initializeManagerFee sets a managerFee, only manager can call. If a manager fee was not set in the initialize function it can be set here but ONLY ONCE- after it is set to a non-zero value, managerFee can never be set again.\"},\"mint(uint256,address)\":{\"notice\":\"mint fungible G-UNI tokens, fractional shares of a Uniswap V3 position\"},\"rebalance(uint160,uint256,bool,uint256,address)\":{\"notice\":\"Reinvest fees earned into underlying position, only gelato executors can call Position bounds CANNOT be altered by gelato, only manager may via executiveRebalance. Frequency of rebalance configured with gelatoRebalanceBPS, alterable by manager.\"},\"uniswapV3MintCallback(uint256,uint256,bytes)\":{\"notice\":\"Uniswap V3 callback fn, called back on pool.mint\"},\"uniswapV3SwapCallback(int256,int256,bytes)\":{\"notice\":\"Uniswap v3 callback fn, called back on pool.swap\"},\"updateGelatoParams(uint16,uint16,uint16,uint32,address)\":{\"notice\":\"change configurable parameters, only manager can call\"},\"withdrawGelatoBalance(uint256,address)\":{\"notice\":\"withdraw gelato fees accrued, only gelato executors can call. Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager.\"},\"withdrawManagerBalance(uint256,address)\":{\"notice\":\"withdraw manager fees accrued, only gelato executors can call. Target account to receive fees is managerTreasury, alterable by manager. Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/GUniPool.sol\":\"GUniPool\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\n// solhint-disable-next-line compiler-version\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n */\\nabstract contract Initializable {\\n\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n bool private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Modifier to protect an initializer function from being invoked twice.\\n */\\n modifier initializer() {\\n require(_initializing || !_initialized, \\\"Initializable: contract is already initialized\\\");\\n\\n bool isTopLevelCall = !_initializing;\\n if (isTopLevelCall) {\\n _initializing = true;\\n _initialized = true;\\n }\\n\\n _;\\n\\n if (isTopLevelCall) {\\n _initializing = false;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67d2f282a9678e58e878a0b774041ba7a01e2740a262aea97a3f681339914713\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuardUpgradeable is Initializable {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n function __ReentrancyGuard_init() internal initializer {\\n __ReentrancyGuard_init_unchained();\\n }\\n\\n function __ReentrancyGuard_init_unchained() internal initializer {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and make it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n // On the first call to nonReentrant, _notEntered will be true\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n\\n _;\\n\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x89fa60d14355f7ae06af11e28fce2bb90c5c6186645d681a30e1b36234a4c210\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC20Upgradeable.sol\\\";\\nimport \\\"./extensions/IERC20MetadataUpgradeable.sol\\\";\\nimport \\\"../../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * We have followed general OpenZeppelin guidelines: functions revert instead\\n * of returning `false` on failure. This behavior is nonetheless conventional\\n * and does not conflict with the expectations of ERC20 applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {\\n mapping (address => uint256) private _balances;\\n\\n mapping (address => mapping (address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}.\\n *\\n * The defaut value of {decimals} is 18. To select a different value for\\n * {decimals} you should overload it.\\n *\\n * All two of these values are immutable: they can only be set once during\\n * construction.\\n */\\n function __ERC20_init(string memory name_, string memory symbol_) internal initializer {\\n __Context_init_unchained();\\n __ERC20_init_unchained(name_, symbol_);\\n }\\n\\n function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {\\n _name = name_;\\n _symbol = symbol_;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual override returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual override returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5,05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the value {ERC20} uses, unless this function is\\n * overridden;\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual override returns (uint8) {\\n return 18;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `recipient` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\\n _transfer(_msgSender(), recipient, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n _approve(_msgSender(), spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * Requirements:\\n *\\n * - `sender` and `recipient` cannot be the zero address.\\n * - `sender` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``sender``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {\\n _transfer(sender, recipient, amount);\\n\\n uint256 currentAllowance = _allowances[sender][_msgSender()];\\n require(currentAllowance >= amount, \\\"ERC20: transfer amount exceeds allowance\\\");\\n _approve(sender, _msgSender(), currentAllowance - amount);\\n\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n uint256 currentAllowance = _allowances[_msgSender()][spender];\\n require(currentAllowance >= subtractedValue, \\\"ERC20: decreased allowance below zero\\\");\\n _approve(_msgSender(), spender, currentAllowance - subtractedValue);\\n\\n return true;\\n }\\n\\n /**\\n * @dev Moves tokens `amount` from `sender` to `recipient`.\\n *\\n * This is internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `sender` cannot be the zero address.\\n * - `recipient` cannot be the zero address.\\n * - `sender` must have a balance of at least `amount`.\\n */\\n function _transfer(address sender, address recipient, uint256 amount) internal virtual {\\n require(sender != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(recipient != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(sender, recipient, amount);\\n\\n uint256 senderBalance = _balances[sender];\\n require(senderBalance >= amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n _balances[sender] = senderBalance - amount;\\n _balances[recipient] += amount;\\n\\n emit Transfer(sender, recipient, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply += amount;\\n _balances[account] += amount;\\n emit Transfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n uint256 accountBalance = _balances[account];\\n require(accountBalance >= amount, \\\"ERC20: burn amount exceeds balance\\\");\\n _balances[account] = accountBalance - amount;\\n _totalSupply -= amount;\\n\\n emit Transfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(address owner, address spender, uint256 amount) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be to transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }\\n uint256[45] private __gap;\\n}\\n\",\"keccak256\":\"0x9c2d7425f3343ea340d6ea67e9d90109d4d846bb013c2572096ec88c9e74946b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\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 `recipient`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address recipient, 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 `sender` to `recipient` 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(address sender, address recipient, uint256 amount) external returns (bool);\\n\\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\",\"keccak256\":\"0x8d4a0f2b5b760b5e2c19ed3c108d83897a4dfd5bfed97a93867918df19191e5e\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20Upgradeable.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20MetadataUpgradeable is IERC20Upgradeable {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x6795c369a4eefa78468e38966f7851fbc2dda5e5b9ccd3fa2b45970e2e4d3abd\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\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 ContextUpgradeable is Initializable {\\n function __Context_init() internal initializer {\\n __Context_init_unchained();\\n }\\n\\n function __Context_init_unchained() internal initializer {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\\n return msg.data;\\n }\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x8e9eb503de1189f50c5f16fef327da310b11898d6b9ab3ca937df07c35233b9e\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\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 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 `recipient`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address recipient, 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 `sender` to `recipient` 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(address sender, address recipient, uint256 amount) external returns (bool);\\n\\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\",\"keccak256\":\"0xf8e8d118a7a8b2e134181f7da655f6266aa3a0f9134b2605747139fcb0c5d835\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.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(IERC20 token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) 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(IERC20 token, address spender, uint256 value) 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 // solhint-disable-next-line max-line-length\\n require((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(IERC20 token, address spender, uint256 value) 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(IERC20 token, address spender, uint256 value) 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 /**\\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) { // Return data is optional\\n // solhint-disable-next-line max-line-length\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0x99f5c21018d796db7833a2100bb0e7411999e248a3c950fb526eee5d2bf47cb7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\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 function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize, which returns 0 for contracts in\\n // construction, since the code is only stored at the end of the\\n // constructor execution.\\n\\n uint256 size;\\n // solhint-disable-next-line no-inline-assembly\\n assembly { size := extcodesize(account) }\\n return size > 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 // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\\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 functionCall(target, data, \\\"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(address target, bytes memory data, string memory errorMessage) 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(address target, bytes memory data, uint256 value) 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(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.call{ value: value }(data);\\n return _verifyCallResult(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(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return _verifyCallResult(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(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\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\\n // solhint-disable-next-line no-inline-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}\\n\",\"keccak256\":\"0x069b2631bb5b5193a58ccf7a06266c7361bd2c20095667af4402817605627f45\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n *\\n * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\\n * all math on `uint256` and `int256` and then downcasting.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n require(value < 2**128, \\\"SafeCast: value doesn\\\\'t fit in 128 bits\\\");\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n require(value < 2**64, \\\"SafeCast: value doesn\\\\'t fit in 64 bits\\\");\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n require(value < 2**32, \\\"SafeCast: value doesn\\\\'t fit in 32 bits\\\");\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n require(value < 2**16, \\\"SafeCast: value doesn\\\\'t fit in 16 bits\\\");\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits.\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n require(value < 2**8, \\\"SafeCast: value doesn\\\\'t fit in 8 bits\\\");\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n require(value >= 0, \\\"SafeCast: value must be positive\\\");\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt128(int256 value) internal pure returns (int128) {\\n require(value >= -2**127 && value < 2**127, \\\"SafeCast: value doesn\\\\'t fit in 128 bits\\\");\\n return int128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt64(int256 value) internal pure returns (int64) {\\n require(value >= -2**63 && value < 2**63, \\\"SafeCast: value doesn\\\\'t fit in 64 bits\\\");\\n return int64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt32(int256 value) internal pure returns (int32) {\\n require(value >= -2**31 && value < 2**31, \\\"SafeCast: value doesn\\\\'t fit in 32 bits\\\");\\n return int32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt16(int256 value) internal pure returns (int16) {\\n require(value >= -2**15 && value < 2**15, \\\"SafeCast: value doesn\\\\'t fit in 16 bits\\\");\\n return int16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits.\\n *\\n * _Available since v3.1._\\n */\\n function toInt8(int256 value) internal pure returns (int8) {\\n require(value >= -2**7 && value < 2**7, \\\"SafeCast: value doesn\\\\'t fit in 8 bits\\\");\\n return int8(value);\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n require(value < 2**255, \\\"SafeCast: value doesn't fit in an int256\\\");\\n return int256(value);\\n }\\n}\\n\",\"keccak256\":\"0xc37d85b96c2a8d7bc09f25958e0a81394bf5780286444147ddf875fa628d53ce\",\"license\":\"MIT\"},\"@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\nimport './pool/IUniswapV3PoolImmutables.sol';\\nimport './pool/IUniswapV3PoolState.sol';\\nimport './pool/IUniswapV3PoolDerivedState.sol';\\nimport './pool/IUniswapV3PoolActions.sol';\\nimport './pool/IUniswapV3PoolOwnerActions.sol';\\nimport './pool/IUniswapV3PoolEvents.sol';\\n\\n/// @title The interface for a Uniswap V3 Pool\\n/// @notice A Uniswap pool facilitates swapping and automated market making between any two assets that strictly conform\\n/// to the ERC20 specification\\n/// @dev The pool interface is broken up into many smaller pieces\\ninterface IUniswapV3Pool is\\n IUniswapV3PoolImmutables,\\n IUniswapV3PoolState,\\n IUniswapV3PoolDerivedState,\\n IUniswapV3PoolActions,\\n IUniswapV3PoolOwnerActions,\\n IUniswapV3PoolEvents\\n{\\n\\n}\\n\",\"keccak256\":\"0xfe6113d518466cd6652c85b111e01f33eb62157f49ae5ed7d5a3947a2044adb1\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3MintCallback.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Callback for IUniswapV3PoolActions#mint\\n/// @notice Any contract that calls IUniswapV3PoolActions#mint must implement this interface\\ninterface IUniswapV3MintCallback {\\n /// @notice Called to `msg.sender` after minting liquidity to a position from IUniswapV3Pool#mint.\\n /// @dev In the implementation you must pay the pool tokens owed for the minted liquidity.\\n /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.\\n /// @param amount0Owed The amount of token0 due to the pool for the minted liquidity\\n /// @param amount1Owed The amount of token1 due to the pool for the minted liquidity\\n /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#mint call\\n function uniswapV3MintCallback(\\n uint256 amount0Owed,\\n uint256 amount1Owed,\\n bytes calldata data\\n ) external;\\n}\\n\",\"keccak256\":\"0x27a9725b8f831a92d16380860c3d348a0b926a7f01b34a54ea6eea78cbdbcd6a\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Callback for IUniswapV3PoolActions#swap\\n/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface\\ninterface IUniswapV3SwapCallback {\\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}\\n\",\"keccak256\":\"0x3f485fb1a44e8fbeadefb5da07d66edab3cfe809f0ac4074b1e54e3eb3c4cf69\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Permissionless pool actions\\n/// @notice Contains pool methods that can be called by anyone\\ninterface IUniswapV3PoolActions {\\n /// @notice Sets the initial price for the pool\\n /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value\\n /// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96\\n function initialize(uint160 sqrtPriceX96) external;\\n\\n /// @notice Adds liquidity for the given recipient/tickLower/tickUpper position\\n /// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback\\n /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends\\n /// on tickLower, tickUpper, the amount of liquidity, and the current price.\\n /// @param recipient The address for which the liquidity will be created\\n /// @param tickLower The lower tick of the position in which to add liquidity\\n /// @param tickUpper The upper tick of the position in which to add liquidity\\n /// @param amount The amount of liquidity to mint\\n /// @param data Any data that should be passed through to the callback\\n /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback\\n /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback\\n function mint(\\n address recipient,\\n int24 tickLower,\\n int24 tickUpper,\\n uint128 amount,\\n bytes calldata data\\n ) external returns (uint256 amount0, uint256 amount1);\\n\\n /// @notice Collects tokens owed to a position\\n /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity.\\n /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or\\n /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the\\n /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.\\n /// @param recipient The address which should receive the fees collected\\n /// @param tickLower The lower tick of the position for which to collect fees\\n /// @param tickUpper The upper tick of the position for which to collect fees\\n /// @param amount0Requested How much token0 should be withdrawn from the fees owed\\n /// @param amount1Requested How much token1 should be withdrawn from the fees owed\\n /// @return amount0 The amount of fees collected in token0\\n /// @return amount1 The amount of fees collected in token1\\n function collect(\\n address recipient,\\n int24 tickLower,\\n int24 tickUpper,\\n uint128 amount0Requested,\\n uint128 amount1Requested\\n ) external returns (uint128 amount0, uint128 amount1);\\n\\n /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position\\n /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0\\n /// @dev Fees must be collected separately via a call to #collect\\n /// @param tickLower The lower tick of the position for which to burn liquidity\\n /// @param tickUpper The upper tick of the position for which to burn liquidity\\n /// @param amount How much liquidity to burn\\n /// @return amount0 The amount of token0 sent to the recipient\\n /// @return amount1 The amount of token1 sent to the recipient\\n function burn(\\n int24 tickLower,\\n int24 tickUpper,\\n uint128 amount\\n ) external returns (uint256 amount0, uint256 amount1);\\n\\n /// @notice Swap token0 for token1, or token1 for token0\\n /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback\\n /// @param recipient The address to receive the output of the swap\\n /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0\\n /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\\n /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\\n /// value after the swap. If one for zero, the price cannot be greater than this value after the swap\\n /// @param data Any data to be passed through to the callback\\n /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive\\n /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive\\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 /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback\\n /// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback\\n /// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling\\n /// with 0 amount{0,1} and sending the donation amount(s) from the callback\\n /// @param recipient The address which will receive the token0 and token1 amounts\\n /// @param amount0 The amount of token0 to send\\n /// @param amount1 The amount of token1 to send\\n /// @param data Any data to be passed through to the callback\\n function flash(\\n address recipient,\\n uint256 amount0,\\n uint256 amount1,\\n bytes calldata data\\n ) external;\\n\\n /// @notice Increase the maximum number of price and liquidity observations that this pool will store\\n /// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to\\n /// the input observationCardinalityNext.\\n /// @param observationCardinalityNext The desired minimum number of observations for the pool to store\\n function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external;\\n}\\n\",\"keccak256\":\"0x9453dd0e7442188667d01d9b65de3f1e14e9511ff3e303179a15f6fc267f7634\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Pool state that is not stored\\n/// @notice Contains view functions to provide information about the pool that is computed rather than stored on the\\n/// blockchain. The functions here may have variable gas costs.\\ninterface IUniswapV3PoolDerivedState {\\n /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp\\n /// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing\\n /// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick,\\n /// you must call it with secondsAgos = [3600, 0].\\n /// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in\\n /// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio.\\n /// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned\\n /// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp\\n /// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block\\n /// timestamp\\n function observe(uint32[] calldata secondsAgos)\\n external\\n view\\n returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s);\\n\\n /// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range\\n /// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed.\\n /// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first\\n /// snapshot is taken and the second snapshot is taken.\\n /// @param tickLower The lower tick of the range\\n /// @param tickUpper The upper tick of the range\\n /// @return tickCumulativeInside The snapshot of the tick accumulator for the range\\n /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range\\n /// @return secondsInside The snapshot of seconds per liquidity for the range\\n function snapshotCumulativesInside(int24 tickLower, int24 tickUpper)\\n external\\n view\\n returns (\\n int56 tickCumulativeInside,\\n uint160 secondsPerLiquidityInsideX128,\\n uint32 secondsInside\\n );\\n}\\n\",\"keccak256\":\"0xe603ac5b17ecdee73ba2b27efdf386c257a19c14206e87eee77e2017b742d9e5\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Events emitted by a pool\\n/// @notice Contains all events emitted by the pool\\ninterface IUniswapV3PoolEvents {\\n /// @notice Emitted exactly once by a pool when #initialize is first called on the pool\\n /// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize\\n /// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96\\n /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool\\n event Initialize(uint160 sqrtPriceX96, int24 tick);\\n\\n /// @notice Emitted when liquidity is minted for a given position\\n /// @param sender The address that minted the liquidity\\n /// @param owner The owner of the position and recipient of any minted liquidity\\n /// @param tickLower The lower tick of the position\\n /// @param tickUpper The upper tick of the position\\n /// @param amount The amount of liquidity minted to the position range\\n /// @param amount0 How much token0 was required for the minted liquidity\\n /// @param amount1 How much token1 was required for the minted liquidity\\n event Mint(\\n address sender,\\n address indexed owner,\\n int24 indexed tickLower,\\n int24 indexed tickUpper,\\n uint128 amount,\\n uint256 amount0,\\n uint256 amount1\\n );\\n\\n /// @notice Emitted when fees are collected by the owner of a position\\n /// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees\\n /// @param owner The owner of the position for which fees are collected\\n /// @param tickLower The lower tick of the position\\n /// @param tickUpper The upper tick of the position\\n /// @param amount0 The amount of token0 fees collected\\n /// @param amount1 The amount of token1 fees collected\\n event Collect(\\n address indexed owner,\\n address recipient,\\n int24 indexed tickLower,\\n int24 indexed tickUpper,\\n uint128 amount0,\\n uint128 amount1\\n );\\n\\n /// @notice Emitted when a position's liquidity is removed\\n /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect\\n /// @param owner The owner of the position for which liquidity is removed\\n /// @param tickLower The lower tick of the position\\n /// @param tickUpper The upper tick of the position\\n /// @param amount The amount of liquidity to remove\\n /// @param amount0 The amount of token0 withdrawn\\n /// @param amount1 The amount of token1 withdrawn\\n event Burn(\\n address indexed owner,\\n int24 indexed tickLower,\\n int24 indexed tickUpper,\\n uint128 amount,\\n uint256 amount0,\\n uint256 amount1\\n );\\n\\n /// @notice Emitted by the pool for any swaps between token0 and token1\\n /// @param sender The address that initiated the swap call, and that received the callback\\n /// @param recipient The address that received the output of the swap\\n /// @param amount0 The delta of the token0 balance of the pool\\n /// @param amount1 The delta of the token1 balance of the pool\\n /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96\\n /// @param liquidity The liquidity of the pool after the swap\\n /// @param tick The log base 1.0001 of price of the pool after the swap\\n event Swap(\\n address indexed sender,\\n address indexed recipient,\\n int256 amount0,\\n int256 amount1,\\n uint160 sqrtPriceX96,\\n uint128 liquidity,\\n int24 tick\\n );\\n\\n /// @notice Emitted by the pool for any flashes of token0/token1\\n /// @param sender The address that initiated the swap call, and that received the callback\\n /// @param recipient The address that received the tokens from flash\\n /// @param amount0 The amount of token0 that was flashed\\n /// @param amount1 The amount of token1 that was flashed\\n /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee\\n /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee\\n event Flash(\\n address indexed sender,\\n address indexed recipient,\\n uint256 amount0,\\n uint256 amount1,\\n uint256 paid0,\\n uint256 paid1\\n );\\n\\n /// @notice Emitted by the pool for increases to the number of observations that can be stored\\n /// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index\\n /// just before a mint/swap/burn.\\n /// @param observationCardinalityNextOld The previous value of the next observation cardinality\\n /// @param observationCardinalityNextNew The updated value of the next observation cardinality\\n event IncreaseObservationCardinalityNext(\\n uint16 observationCardinalityNextOld,\\n uint16 observationCardinalityNextNew\\n );\\n\\n /// @notice Emitted when the protocol fee is changed by the pool\\n /// @param feeProtocol0Old The previous value of the token0 protocol fee\\n /// @param feeProtocol1Old The previous value of the token1 protocol fee\\n /// @param feeProtocol0New The updated value of the token0 protocol fee\\n /// @param feeProtocol1New The updated value of the token1 protocol fee\\n event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New);\\n\\n /// @notice Emitted when the collected protocol fees are withdrawn by the factory owner\\n /// @param sender The address that collects the protocol fees\\n /// @param recipient The address that receives the collected protocol fees\\n /// @param amount0 The amount of token0 protocol fees that is withdrawn\\n /// @param amount0 The amount of token1 protocol fees that is withdrawn\\n event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1);\\n}\\n\",\"keccak256\":\"0x8071514d0fe5d17d6fbd31c191cdfb703031c24e0ece3621d88ab10e871375cd\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Pool state that never changes\\n/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values\\ninterface IUniswapV3PoolImmutables {\\n /// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface\\n /// @return The contract address\\n function factory() external view returns (address);\\n\\n /// @notice The first of the two tokens of the pool, sorted by address\\n /// @return The token contract address\\n function token0() external view returns (address);\\n\\n /// @notice The second of the two tokens of the pool, sorted by address\\n /// @return The token contract address\\n function token1() external view returns (address);\\n\\n /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6\\n /// @return The fee\\n function fee() external view returns (uint24);\\n\\n /// @notice The pool tick spacing\\n /// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive\\n /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ...\\n /// This value is an int24 to avoid casting even though it is always positive.\\n /// @return The tick spacing\\n function tickSpacing() external view returns (int24);\\n\\n /// @notice The maximum amount of position liquidity that can use any tick in the range\\n /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and\\n /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool\\n /// @return The max amount of liquidity per tick\\n function maxLiquidityPerTick() external view returns (uint128);\\n}\\n\",\"keccak256\":\"0xf6e5d2cd1139c4c276bdbc8e1d2b256e456c866a91f1b868da265c6d2685c3f7\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Permissioned pool actions\\n/// @notice Contains pool methods that may only be called by the factory owner\\ninterface IUniswapV3PoolOwnerActions {\\n /// @notice Set the denominator of the protocol's % share of the fees\\n /// @param feeProtocol0 new protocol fee for token0 of the pool\\n /// @param feeProtocol1 new protocol fee for token1 of the pool\\n function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external;\\n\\n /// @notice Collect the protocol fee accrued to the pool\\n /// @param recipient The address to which collected protocol fees should be sent\\n /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1\\n /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0\\n /// @return amount0 The protocol fee collected in token0\\n /// @return amount1 The protocol fee collected in token1\\n function collectProtocol(\\n address recipient,\\n uint128 amount0Requested,\\n uint128 amount1Requested\\n ) external returns (uint128 amount0, uint128 amount1);\\n}\\n\",\"keccak256\":\"0x759b78a2918af9e99e246dc3af084f654e48ef32bb4e4cb8a966aa3dcaece235\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.5.0;\\n\\n/// @title Pool state that can change\\n/// @notice These methods compose the pool's state, and can change with any frequency including multiple times\\n/// per transaction\\ninterface IUniswapV3PoolState {\\n /// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas\\n /// when accessed externally.\\n /// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value\\n /// tick The current tick of the pool, i.e. according to the last tick transition that was run.\\n /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick\\n /// boundary.\\n /// observationIndex The index of the last oracle observation that was written,\\n /// observationCardinality The current maximum number of observations stored in the pool,\\n /// observationCardinalityNext The next maximum number of observations, to be updated when the observation.\\n /// feeProtocol The protocol fee for both tokens of the pool.\\n /// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0\\n /// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee.\\n /// unlocked Whether the pool is currently locked to reentrancy\\n function slot0()\\n external\\n view\\n returns (\\n uint160 sqrtPriceX96,\\n int24 tick,\\n uint16 observationIndex,\\n uint16 observationCardinality,\\n uint16 observationCardinalityNext,\\n uint8 feeProtocol,\\n bool unlocked\\n );\\n\\n /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool\\n /// @dev This value can overflow the uint256\\n function feeGrowthGlobal0X128() external view returns (uint256);\\n\\n /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool\\n /// @dev This value can overflow the uint256\\n function feeGrowthGlobal1X128() external view returns (uint256);\\n\\n /// @notice The amounts of token0 and token1 that are owed to the protocol\\n /// @dev Protocol fees will never exceed uint128 max in either token\\n function protocolFees() external view returns (uint128 token0, uint128 token1);\\n\\n /// @notice The currently in range liquidity available to the pool\\n /// @dev This value has no relationship to the total liquidity across all ticks\\n function liquidity() external view returns (uint128);\\n\\n /// @notice Look up information about a specific tick in the pool\\n /// @param tick The tick to look up\\n /// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or\\n /// tick upper,\\n /// liquidityNet how much liquidity changes when the pool price crosses the tick,\\n /// feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0,\\n /// feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1,\\n /// tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick\\n /// secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick,\\n /// secondsOutside the seconds spent on the other side of the tick from the current tick,\\n /// initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false.\\n /// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0.\\n /// In addition, these values are only relative and must be used only in comparison to previous snapshots for\\n /// a specific position.\\n function ticks(int24 tick)\\n external\\n view\\n returns (\\n uint128 liquidityGross,\\n int128 liquidityNet,\\n uint256 feeGrowthOutside0X128,\\n uint256 feeGrowthOutside1X128,\\n int56 tickCumulativeOutside,\\n uint160 secondsPerLiquidityOutsideX128,\\n uint32 secondsOutside,\\n bool initialized\\n );\\n\\n /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information\\n function tickBitmap(int16 wordPosition) external view returns (uint256);\\n\\n /// @notice Returns the information about a position by the position's key\\n /// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper\\n /// @return _liquidity The amount of liquidity in the position,\\n /// Returns feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke,\\n /// Returns feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke,\\n /// Returns tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke,\\n /// Returns tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke\\n function positions(bytes32 key)\\n external\\n view\\n returns (\\n uint128 _liquidity,\\n uint256 feeGrowthInside0LastX128,\\n uint256 feeGrowthInside1LastX128,\\n uint128 tokensOwed0,\\n uint128 tokensOwed1\\n );\\n\\n /// @notice Returns data about a specific observation index\\n /// @param index The element of the observations array to fetch\\n /// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time\\n /// ago, rather than at a specific index in the array.\\n /// @return blockTimestamp The timestamp of the observation,\\n /// Returns tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp,\\n /// Returns secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp,\\n /// Returns initialized whether the observation has been initialized and the values are safe to use\\n function observations(uint256 index)\\n external\\n view\\n returns (\\n uint32 blockTimestamp,\\n int56 tickCumulative,\\n uint160 secondsPerLiquidityCumulativeX128,\\n bool initialized\\n );\\n}\\n\",\"keccak256\":\"0x852dc1f5df7dcf7f11e7bb3eed79f0cea72ad4b25f6a9d2c35aafb48925fd49f\",\"license\":\"GPL-2.0-or-later\"},\"@uniswap/v3-core/contracts/libraries/FixedPoint96.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-2.0-or-later\\npragma solidity >=0.4.0;\\n\\n/// @title FixedPoint96\\n/// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)\\n/// @dev Used in SqrtPriceMath.sol\\nlibrary FixedPoint96 {\\n uint8 internal constant RESOLUTION = 96;\\n uint256 internal constant Q96 = 0x1000000000000000000000000;\\n}\\n\",\"keccak256\":\"0x0ba8a9b95a956a4050749c0158e928398c447c91469682ca8a7cc7e77a7fe032\",\"license\":\"GPL-2.0-or-later\"},\"contracts/GUniPool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\nimport {\\n IUniswapV3MintCallback\\n} from \\\"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3MintCallback.sol\\\";\\nimport {\\n IUniswapV3SwapCallback\\n} from \\\"@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol\\\";\\nimport {GUniPoolStorage} from \\\"./abstract/GUniPoolStorage.sol\\\";\\nimport {\\n IUniswapV3Pool\\n} from \\\"@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol\\\";\\nimport {TickMath} from \\\"./vendor/uniswap/TickMath.sol\\\";\\nimport {\\n IERC20,\\n SafeERC20\\n} from \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\nimport {SafeCast} from \\\"@openzeppelin/contracts/utils/math/SafeCast.sol\\\";\\nimport {\\n FullMath,\\n LiquidityAmounts\\n} from \\\"./vendor/uniswap/LiquidityAmounts.sol\\\";\\n\\ncontract GUniPool is\\n IUniswapV3MintCallback,\\n IUniswapV3SwapCallback,\\n GUniPoolStorage\\n{\\n using SafeERC20 for IERC20;\\n using TickMath for int24;\\n\\n event Minted(\\n address receiver,\\n uint256 mintAmount,\\n uint256 amount0In,\\n uint256 amount1In,\\n uint128 liquidityMinted\\n );\\n\\n event Burned(\\n address receiver,\\n uint256 burnAmount,\\n uint256 amount0Out,\\n uint256 amount1Out,\\n uint128 liquidityBurned\\n );\\n\\n event Rebalance(\\n int24 lowerTick_,\\n int24 upperTick_,\\n uint128 liquidityBefore,\\n uint128 liquidityAfter\\n );\\n\\n event FeesEarned(uint256 feesEarned0, uint256 feesEarned1);\\n\\n // solhint-disable-next-line max-line-length\\n constructor(address payable _gelato) GUniPoolStorage(_gelato) {} // solhint-disable-line no-empty-blocks\\n\\n /// @notice Uniswap V3 callback fn, called back on pool.mint\\n function uniswapV3MintCallback(\\n uint256 amount0Owed,\\n uint256 amount1Owed,\\n bytes calldata /*_data*/\\n ) external override {\\n require(msg.sender == address(pool), \\\"callback caller\\\");\\n\\n if (amount0Owed > 0) token0.safeTransfer(msg.sender, amount0Owed);\\n if (amount1Owed > 0) token1.safeTransfer(msg.sender, amount1Owed);\\n }\\n\\n /// @notice Uniswap v3 callback fn, called back on pool.swap\\n function uniswapV3SwapCallback(\\n int256 amount0Delta,\\n int256 amount1Delta,\\n bytes calldata /*data*/\\n ) external override {\\n require(msg.sender == address(pool), \\\"callback caller\\\");\\n\\n if (amount0Delta > 0)\\n token0.safeTransfer(msg.sender, uint256(amount0Delta));\\n else if (amount1Delta > 0)\\n token1.safeTransfer(msg.sender, uint256(amount1Delta));\\n }\\n\\n // User functions => Should be called via a Router\\n\\n /// @notice mint fungible G-UNI tokens, fractional shares of a Uniswap V3 position\\n /// @dev to compute the amouint of tokens necessary to mint `mintAmount` see getMintAmounts\\n /// @param mintAmount The number of G-UNI tokens to mint\\n /// @param receiver The account to receive the minted tokens\\n /// @return amount0 amount of token0 transferred from msg.sender to mint `mintAmount`\\n /// @return amount1 amount of token1 transferred from msg.sender to mint `mintAmount`\\n /// @return liquidityMinted amount of liquidity added to the underlying Uniswap V3 position\\n // solhint-disable-next-line function-max-lines, code-complexity\\n function mint(uint256 mintAmount, address receiver)\\n external\\n nonReentrant\\n returns (\\n uint256 amount0,\\n uint256 amount1,\\n uint128 liquidityMinted\\n )\\n {\\n require(mintAmount > 0, \\\"mint 0\\\");\\n\\n uint256 totalSupply = totalSupply();\\n\\n (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();\\n\\n if (totalSupply > 0) {\\n (uint256 amount0Current, uint256 amount1Current) =\\n getUnderlyingBalances();\\n\\n amount0 = FullMath.mulDivRoundingUp(\\n amount0Current,\\n mintAmount,\\n totalSupply\\n );\\n amount1 = FullMath.mulDivRoundingUp(\\n amount1Current,\\n mintAmount,\\n totalSupply\\n );\\n } else {\\n // if supply is 0 mintAmount == liquidity to deposit\\n (amount0, amount1) = LiquidityAmounts.getAmountsForLiquidity(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n SafeCast.toUint128(mintAmount)\\n );\\n }\\n\\n // transfer amounts owed to contract\\n if (amount0 > 0) {\\n token0.safeTransferFrom(msg.sender, address(this), amount0);\\n }\\n if (amount1 > 0) {\\n token1.safeTransferFrom(msg.sender, address(this), amount1);\\n }\\n\\n // deposit as much new liquidity as possible\\n liquidityMinted = LiquidityAmounts.getLiquidityForAmounts(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n amount0,\\n amount1\\n );\\n\\n pool.mint(address(this), lowerTick, upperTick, liquidityMinted, \\\"\\\");\\n\\n _mint(receiver, mintAmount);\\n emit Minted(receiver, mintAmount, amount0, amount1, liquidityMinted);\\n }\\n\\n /// @notice burn G-UNI tokens (fractional shares of a Uniswap V3 position) and receive tokens\\n /// @param burnAmount The number of G-UNI tokens to burn\\n /// @param receiver The account to receive the underlying amounts of token0 and token1\\n /// @return amount0 amount of token0 transferred to receiver for burning `burnAmount`\\n /// @return amount1 amount of token1 transferred to receiver for burning `burnAmount`\\n /// @return liquidityBurned amount of liquidity removed from the underlying Uniswap V3 position\\n // solhint-disable-next-line function-max-lines\\n function burn(uint256 burnAmount, address receiver)\\n external\\n nonReentrant\\n returns (\\n uint256 amount0,\\n uint256 amount1,\\n uint128 liquidityBurned\\n )\\n {\\n require(burnAmount > 0, \\\"burn 0\\\");\\n\\n uint256 totalSupply = totalSupply();\\n\\n (uint128 liquidity, , , , ) = pool.positions(_getPositionID());\\n\\n _burn(msg.sender, burnAmount);\\n\\n uint256 liquidityBurned_ =\\n FullMath.mulDiv(burnAmount, liquidity, totalSupply);\\n liquidityBurned = SafeCast.toUint128(liquidityBurned_);\\n (uint256 burn0, uint256 burn1, uint256 fee0, uint256 fee1) =\\n _withdraw(lowerTick, upperTick, liquidityBurned);\\n _applyFees(fee0, fee1);\\n (fee0, fee1) = _subtractAdminFees(fee0, fee1);\\n emit FeesEarned(fee0, fee1);\\n\\n amount0 =\\n burn0 +\\n FullMath.mulDiv(\\n token0.balanceOf(address(this)) -\\n burn0 -\\n managerBalance0 -\\n gelatoBalance0,\\n burnAmount,\\n totalSupply\\n );\\n amount1 =\\n burn1 +\\n FullMath.mulDiv(\\n token1.balanceOf(address(this)) -\\n burn1 -\\n managerBalance1 -\\n gelatoBalance1,\\n burnAmount,\\n totalSupply\\n );\\n\\n if (amount0 > 0) {\\n token0.safeTransfer(receiver, amount0);\\n }\\n\\n if (amount1 > 0) {\\n token1.safeTransfer(receiver, amount1);\\n }\\n\\n emit Burned(receiver, burnAmount, amount0, amount1, liquidityBurned);\\n }\\n\\n // Manager Functions => Called by Pool Manager\\n\\n /// @notice Change the range of underlying UniswapV3 position, only manager can call\\n /// @dev When changing the range the inventory of token0 and token1 may be rebalanced\\n /// with a swap to deposit as much liquidity as possible into the new position. Swap parameters\\n /// can be computed by simulating the whole operation: remove all liquidity, deposit as much\\n /// as possible into new position, then observe how much of token0 or token1 is leftover.\\n /// Swap a proportion of this leftover to deposit more liquidity into the position, since\\n /// any leftover will be unused and sit idle until the next rebalance.\\n /// @param newLowerTick The new lower bound of the position's range\\n /// @param newUpperTick The new upper bound of the position's range\\n /// @param swapThresholdPrice slippage parameter on the swap as a max or min sqrtPriceX96\\n /// @param swapAmountBPS amount of token to swap as proportion of total. Pass 0 to ignore swap.\\n /// @param zeroForOne Which token to input into the swap (true = token0, false = token1)\\n // solhint-disable-next-line function-max-lines\\n function executiveRebalance(\\n int24 newLowerTick,\\n int24 newUpperTick,\\n uint160 swapThresholdPrice,\\n uint256 swapAmountBPS,\\n bool zeroForOne\\n ) external onlyManager {\\n uint128 liquidity;\\n uint128 newLiquidity;\\n if (totalSupply() > 0) {\\n (liquidity, , , , ) = pool.positions(_getPositionID());\\n if (liquidity > 0) {\\n (, , uint256 fee0, uint256 fee1) =\\n _withdraw(lowerTick, upperTick, liquidity);\\n\\n _applyFees(fee0, fee1);\\n (fee0, fee1) = _subtractAdminFees(fee0, fee1);\\n emit FeesEarned(fee0, fee1);\\n }\\n\\n lowerTick = newLowerTick;\\n upperTick = newUpperTick;\\n\\n uint256 reinvest0 =\\n token0.balanceOf(address(this)) -\\n managerBalance0 -\\n gelatoBalance0;\\n uint256 reinvest1 =\\n token1.balanceOf(address(this)) -\\n managerBalance1 -\\n gelatoBalance1;\\n\\n _deposit(\\n newLowerTick,\\n newUpperTick,\\n reinvest0,\\n reinvest1,\\n swapThresholdPrice,\\n swapAmountBPS,\\n zeroForOne\\n );\\n\\n (newLiquidity, , , , ) = pool.positions(_getPositionID());\\n require(newLiquidity > 0, \\\"new position 0\\\");\\n } else {\\n lowerTick = newLowerTick;\\n upperTick = newUpperTick;\\n }\\n\\n emit Rebalance(newLowerTick, newUpperTick, liquidity, newLiquidity);\\n }\\n\\n // Gelatofied functions => Automatically called by Gelato\\n\\n /// @notice Reinvest fees earned into underlying position, only gelato executors can call\\n /// Position bounds CANNOT be altered by gelato, only manager may via executiveRebalance.\\n /// Frequency of rebalance configured with gelatoRebalanceBPS, alterable by manager.\\n function rebalance(\\n uint160 swapThresholdPrice,\\n uint256 swapAmountBPS,\\n bool zeroForOne,\\n uint256 feeAmount,\\n address paymentToken\\n ) external gelatofy(feeAmount, paymentToken) {\\n if (swapAmountBPS > 0) {\\n _checkSlippage(swapThresholdPrice, zeroForOne);\\n }\\n (uint128 liquidity, , , , ) = pool.positions(_getPositionID());\\n _rebalance(\\n liquidity,\\n swapThresholdPrice,\\n swapAmountBPS,\\n zeroForOne,\\n feeAmount,\\n paymentToken\\n );\\n\\n (uint128 newLiquidity, , , , ) = pool.positions(_getPositionID());\\n require(newLiquidity > liquidity, \\\"liquidity must increase\\\");\\n\\n emit Rebalance(lowerTick, upperTick, liquidity, newLiquidity);\\n }\\n\\n /// @notice withdraw manager fees accrued, only gelato executors can call.\\n /// Target account to receive fees is managerTreasury, alterable by manager.\\n /// Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager.\\n function withdrawManagerBalance(uint256 feeAmount, address feeToken)\\n external\\n gelatofy(feeAmount, feeToken)\\n {\\n (uint256 amount0, uint256 amount1) =\\n _balancesToWithdraw(\\n managerBalance0,\\n managerBalance1,\\n feeAmount,\\n feeToken\\n );\\n\\n managerBalance0 = 0;\\n managerBalance1 = 0;\\n\\n if (amount0 > 0) {\\n token0.safeTransfer(managerTreasury, amount0);\\n }\\n\\n if (amount1 > 0) {\\n token1.safeTransfer(managerTreasury, amount1);\\n }\\n }\\n\\n /// @notice withdraw gelato fees accrued, only gelato executors can call.\\n /// Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager.\\n function withdrawGelatoBalance(uint256 feeAmount, address feeToken)\\n external\\n gelatofy(feeAmount, feeToken)\\n {\\n (uint256 amount0, uint256 amount1) =\\n _balancesToWithdraw(\\n gelatoBalance0,\\n gelatoBalance1,\\n feeAmount,\\n feeToken\\n );\\n\\n gelatoBalance0 = 0;\\n gelatoBalance1 = 0;\\n\\n if (amount0 > 0) {\\n token0.safeTransfer(GELATO, amount0);\\n }\\n\\n if (amount1 > 0) {\\n token1.safeTransfer(GELATO, amount1);\\n }\\n }\\n\\n function _balancesToWithdraw(\\n uint256 balance0,\\n uint256 balance1,\\n uint256 feeAmount,\\n address feeToken\\n ) internal view returns (uint256 amount0, uint256 amount1) {\\n if (feeToken == address(token0)) {\\n require(\\n (balance0 * gelatoWithdrawBPS) / 10000 >= feeAmount,\\n \\\"high fee\\\"\\n );\\n amount0 = balance0 - feeAmount;\\n amount1 = balance1;\\n } else if (feeToken == address(token1)) {\\n require(\\n (balance1 * gelatoWithdrawBPS) / 10000 >= feeAmount,\\n \\\"high fee\\\"\\n );\\n amount1 = balance1 - feeAmount;\\n amount0 = balance0;\\n } else {\\n revert(\\\"wrong token\\\");\\n }\\n }\\n\\n // View functions\\n\\n /// @notice compute maximum G-UNI tokens that can be minted from `amount0Max` and `amount1Max`\\n /// @param amount0Max The maximum amount of token0 to forward on mint\\n /// @param amount0Max The maximum amount of token1 to forward on mint\\n /// @return amount0 actual amount of token0 to forward when minting `mintAmount`\\n /// @return amount1 actual amount of token1 to forward when minting `mintAmount`\\n /// @return mintAmount maximum number of G-UNI tokens to mint\\n function getMintAmounts(uint256 amount0Max, uint256 amount1Max)\\n external\\n view\\n returns (\\n uint256 amount0,\\n uint256 amount1,\\n uint256 mintAmount\\n )\\n {\\n uint256 totalSupply = totalSupply();\\n if (totalSupply > 0) {\\n (amount0, amount1, mintAmount) = _computeMintAmounts(\\n totalSupply,\\n amount0Max,\\n amount1Max\\n );\\n } else {\\n (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();\\n uint128 newLiquidity =\\n LiquidityAmounts.getLiquidityForAmounts(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n amount0Max,\\n amount1Max\\n );\\n mintAmount = uint256(newLiquidity);\\n (amount0, amount1) = LiquidityAmounts.getAmountsForLiquidity(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n newLiquidity\\n );\\n }\\n }\\n\\n /// @notice compute total underlying holdings of the G-UNI token supply\\n /// includes current liquidity invested in uniswap position, current fees earned\\n /// and any uninvested leftover (but does not include manager or gelato fees accrued)\\n /// @return amount0Current current total underlying balance of token0\\n /// @return amount1Current current total underlying balance of token1\\n function getUnderlyingBalances()\\n public\\n view\\n returns (uint256 amount0Current, uint256 amount1Current)\\n {\\n (uint160 sqrtRatioX96, int24 tick, , , , , ) = pool.slot0();\\n return _getUnderlyingBalances(sqrtRatioX96, tick);\\n }\\n\\n function getUnderlyingBalancesAtPrice(uint160 sqrtRatioX96)\\n external\\n view\\n returns (uint256 amount0Current, uint256 amount1Current)\\n {\\n (, int24 tick, , , , , ) = pool.slot0();\\n return _getUnderlyingBalances(sqrtRatioX96, tick);\\n }\\n\\n // solhint-disable-next-line function-max-lines\\n function _getUnderlyingBalances(uint160 sqrtRatioX96, int24 tick)\\n internal\\n view\\n returns (uint256 amount0Current, uint256 amount1Current)\\n {\\n (\\n uint128 liquidity,\\n uint256 feeGrowthInside0Last,\\n uint256 feeGrowthInside1Last,\\n uint128 tokensOwed0,\\n uint128 tokensOwed1\\n ) = pool.positions(_getPositionID());\\n\\n // compute current holdings from liquidity\\n (amount0Current, amount1Current) = LiquidityAmounts\\n .getAmountsForLiquidity(\\n sqrtRatioX96,\\n lowerTick.getSqrtRatioAtTick(),\\n upperTick.getSqrtRatioAtTick(),\\n liquidity\\n );\\n\\n // compute current fees earned\\n uint256 fee0 =\\n _computeFeesEarned(true, feeGrowthInside0Last, tick, liquidity) +\\n uint256(tokensOwed0);\\n uint256 fee1 =\\n _computeFeesEarned(false, feeGrowthInside1Last, tick, liquidity) +\\n uint256(tokensOwed1);\\n\\n (fee0, fee1) = _subtractAdminFees(fee0, fee1);\\n\\n // add any leftover in contract to current holdings\\n amount0Current +=\\n fee0 +\\n token0.balanceOf(address(this)) -\\n managerBalance0 -\\n gelatoBalance0;\\n amount1Current +=\\n fee1 +\\n token1.balanceOf(address(this)) -\\n managerBalance1 -\\n gelatoBalance1;\\n }\\n\\n // Private functions\\n\\n // solhint-disable-next-line function-max-lines\\n function _rebalance(\\n uint128 liquidity,\\n uint160 swapThresholdPrice,\\n uint256 swapAmountBPS,\\n bool zeroForOne,\\n uint256 feeAmount,\\n address paymentToken\\n ) private {\\n uint256 leftover0 =\\n token0.balanceOf(address(this)) - managerBalance0 - gelatoBalance0;\\n uint256 leftover1 =\\n token1.balanceOf(address(this)) - managerBalance1 - gelatoBalance1;\\n\\n (, , uint256 feesEarned0, uint256 feesEarned1) =\\n _withdraw(lowerTick, upperTick, liquidity);\\n _applyFees(feesEarned0, feesEarned1);\\n (feesEarned0, feesEarned1) = _subtractAdminFees(\\n feesEarned0,\\n feesEarned1\\n );\\n emit FeesEarned(feesEarned0, feesEarned1);\\n feesEarned0 += leftover0;\\n feesEarned1 += leftover1;\\n\\n if (paymentToken == address(token0)) {\\n require(\\n (feesEarned0 * gelatoRebalanceBPS) / 10000 >= feeAmount,\\n \\\"high fee\\\"\\n );\\n leftover0 =\\n token0.balanceOf(address(this)) -\\n managerBalance0 -\\n gelatoBalance0 -\\n feeAmount;\\n leftover1 =\\n token1.balanceOf(address(this)) -\\n managerBalance1 -\\n gelatoBalance1;\\n } else if (paymentToken == address(token1)) {\\n require(\\n (feesEarned1 * gelatoRebalanceBPS) / 10000 >= feeAmount,\\n \\\"high fee\\\"\\n );\\n leftover0 =\\n token0.balanceOf(address(this)) -\\n managerBalance0 -\\n gelatoBalance0;\\n leftover1 =\\n token1.balanceOf(address(this)) -\\n managerBalance1 -\\n gelatoBalance1 -\\n feeAmount;\\n } else {\\n revert(\\\"wrong token\\\");\\n }\\n\\n _deposit(\\n lowerTick,\\n upperTick,\\n leftover0,\\n leftover1,\\n swapThresholdPrice,\\n swapAmountBPS,\\n zeroForOne\\n );\\n }\\n\\n // solhint-disable-next-line function-max-lines\\n function _withdraw(\\n int24 lowerTick_,\\n int24 upperTick_,\\n uint128 liquidity\\n )\\n private\\n returns (\\n uint256 burn0,\\n uint256 burn1,\\n uint256 fee0,\\n uint256 fee1\\n )\\n {\\n uint256 preBalance0 = token0.balanceOf(address(this));\\n uint256 preBalance1 = token1.balanceOf(address(this));\\n\\n (burn0, burn1) = pool.burn(lowerTick_, upperTick_, liquidity);\\n\\n pool.collect(\\n address(this),\\n lowerTick_,\\n upperTick_,\\n type(uint128).max,\\n type(uint128).max\\n );\\n\\n fee0 = token0.balanceOf(address(this)) - preBalance0 - burn0;\\n fee1 = token1.balanceOf(address(this)) - preBalance1 - burn1;\\n }\\n\\n // solhint-disable-next-line function-max-lines\\n function _deposit(\\n int24 lowerTick_,\\n int24 upperTick_,\\n uint256 amount0,\\n uint256 amount1,\\n uint160 swapThresholdPrice,\\n uint256 swapAmountBPS,\\n bool zeroForOne\\n ) private {\\n (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();\\n // First, deposit as much as we can\\n uint128 baseLiquidity =\\n LiquidityAmounts.getLiquidityForAmounts(\\n sqrtRatioX96,\\n lowerTick_.getSqrtRatioAtTick(),\\n upperTick_.getSqrtRatioAtTick(),\\n amount0,\\n amount1\\n );\\n if (baseLiquidity > 0) {\\n (uint256 amountDeposited0, uint256 amountDeposited1) =\\n pool.mint(\\n address(this),\\n lowerTick_,\\n upperTick_,\\n baseLiquidity,\\n \\\"\\\"\\n );\\n\\n amount0 -= amountDeposited0;\\n amount1 -= amountDeposited1;\\n }\\n int256 swapAmount =\\n SafeCast.toInt256(\\n ((zeroForOne ? amount0 : amount1) * swapAmountBPS) / 10000\\n );\\n if (swapAmount > 0) {\\n _swapAndDeposit(\\n lowerTick_,\\n upperTick_,\\n amount0,\\n amount1,\\n swapAmount,\\n swapThresholdPrice,\\n zeroForOne\\n );\\n }\\n }\\n\\n function _swapAndDeposit(\\n int24 lowerTick_,\\n int24 upperTick_,\\n uint256 amount0,\\n uint256 amount1,\\n int256 swapAmount,\\n uint160 swapThresholdPrice,\\n bool zeroForOne\\n ) private returns (uint256 finalAmount0, uint256 finalAmount1) {\\n (int256 amount0Delta, int256 amount1Delta) =\\n pool.swap(\\n address(this),\\n zeroForOne,\\n swapAmount,\\n swapThresholdPrice,\\n \\\"\\\"\\n );\\n finalAmount0 = uint256(SafeCast.toInt256(amount0) - amount0Delta);\\n finalAmount1 = uint256(SafeCast.toInt256(amount1) - amount1Delta);\\n\\n // Add liquidity a second time\\n (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();\\n uint128 liquidityAfterSwap =\\n LiquidityAmounts.getLiquidityForAmounts(\\n sqrtRatioX96,\\n lowerTick_.getSqrtRatioAtTick(),\\n upperTick_.getSqrtRatioAtTick(),\\n finalAmount0,\\n finalAmount1\\n );\\n if (liquidityAfterSwap > 0) {\\n pool.mint(\\n address(this),\\n lowerTick_,\\n upperTick_,\\n liquidityAfterSwap,\\n \\\"\\\"\\n );\\n }\\n }\\n\\n // solhint-disable-next-line function-max-lines, code-complexity\\n function _computeMintAmounts(\\n uint256 totalSupply,\\n uint256 amount0Max,\\n uint256 amount1Max\\n )\\n private\\n view\\n returns (\\n uint256 amount0,\\n uint256 amount1,\\n uint256 mintAmount\\n )\\n {\\n (uint256 amount0Current, uint256 amount1Current) =\\n getUnderlyingBalances();\\n\\n // compute proportional amount of tokens to mint\\n if (amount0Current == 0 && amount1Current > 0) {\\n mintAmount = FullMath.mulDiv(\\n amount1Max,\\n totalSupply,\\n amount1Current\\n );\\n } else if (amount1Current == 0 && amount0Current > 0) {\\n mintAmount = FullMath.mulDiv(\\n amount0Max,\\n totalSupply,\\n amount0Current\\n );\\n } else if (amount0Current == 0 && amount1Current == 0) {\\n revert(\\\"\\\");\\n } else {\\n // only if both are non-zero\\n uint256 amount0Mint =\\n FullMath.mulDiv(amount0Max, totalSupply, amount0Current);\\n uint256 amount1Mint =\\n FullMath.mulDiv(amount1Max, totalSupply, amount1Current);\\n require(amount0Mint > 0 && amount1Mint > 0, \\\"mint 0\\\");\\n\\n mintAmount = amount0Mint < amount1Mint ? amount0Mint : amount1Mint;\\n }\\n\\n // compute amounts owed to contract\\n amount0 = FullMath.mulDivRoundingUp(\\n mintAmount,\\n amount0Current,\\n totalSupply\\n );\\n amount1 = FullMath.mulDivRoundingUp(\\n mintAmount,\\n amount1Current,\\n totalSupply\\n );\\n }\\n\\n // solhint-disable-next-line function-max-lines\\n function _computeFeesEarned(\\n bool isZero,\\n uint256 feeGrowthInsideLast,\\n int24 tick,\\n uint128 liquidity\\n ) private view returns (uint256 fee) {\\n uint256 feeGrowthOutsideLower;\\n uint256 feeGrowthOutsideUpper;\\n uint256 feeGrowthGlobal;\\n if (isZero) {\\n feeGrowthGlobal = pool.feeGrowthGlobal0X128();\\n (, , feeGrowthOutsideLower, , , , , ) = pool.ticks(lowerTick);\\n (, , feeGrowthOutsideUpper, , , , , ) = pool.ticks(upperTick);\\n } else {\\n feeGrowthGlobal = pool.feeGrowthGlobal1X128();\\n (, , , feeGrowthOutsideLower, , , , ) = pool.ticks(lowerTick);\\n (, , , feeGrowthOutsideUpper, , , , ) = pool.ticks(upperTick);\\n }\\n\\n unchecked {\\n // calculate fee growth below\\n uint256 feeGrowthBelow;\\n if (tick >= lowerTick) {\\n feeGrowthBelow = feeGrowthOutsideLower;\\n } else {\\n feeGrowthBelow = feeGrowthGlobal - feeGrowthOutsideLower;\\n }\\n\\n // calculate fee growth above\\n uint256 feeGrowthAbove;\\n if (tick < upperTick) {\\n feeGrowthAbove = feeGrowthOutsideUpper;\\n } else {\\n feeGrowthAbove = feeGrowthGlobal - feeGrowthOutsideUpper;\\n }\\n\\n uint256 feeGrowthInside =\\n feeGrowthGlobal - feeGrowthBelow - feeGrowthAbove;\\n fee = FullMath.mulDiv(\\n liquidity,\\n feeGrowthInside - feeGrowthInsideLast,\\n 0x100000000000000000000000000000000\\n );\\n }\\n }\\n\\n function _applyFees(uint256 _fee0, uint256 _fee1) private {\\n gelatoBalance0 += (_fee0 * gelatoFeeBPS) / 10000;\\n gelatoBalance1 += (_fee1 * gelatoFeeBPS) / 10000;\\n managerBalance0 += (_fee0 * managerFeeBPS) / 10000;\\n managerBalance1 += (_fee1 * managerFeeBPS) / 10000;\\n }\\n\\n function _subtractAdminFees(uint256 rawFee0, uint256 rawFee1)\\n private\\n view\\n returns (uint256 fee0, uint256 fee1)\\n {\\n uint256 deduct0 = (rawFee0 * (gelatoFeeBPS + managerFeeBPS)) / 10000;\\n uint256 deduct1 = (rawFee1 * (gelatoFeeBPS + managerFeeBPS)) / 10000;\\n fee0 = rawFee0 - deduct0;\\n fee1 = rawFee1 - deduct1;\\n }\\n\\n function _checkSlippage(uint160 swapThresholdPrice, bool zeroForOne)\\n private\\n view\\n {\\n uint32[] memory secondsAgo = new uint32[](2);\\n secondsAgo[0] = gelatoSlippageInterval;\\n secondsAgo[1] = 0;\\n\\n (int56[] memory tickCumulatives, ) = pool.observe(secondsAgo);\\n\\n require(tickCumulatives.length == 2, \\\"array len\\\");\\n uint160 avgSqrtRatioX96;\\n unchecked {\\n int24 avgTick =\\n int24(\\n (tickCumulatives[1] - tickCumulatives[0]) /\\n int56(uint56(gelatoSlippageInterval))\\n );\\n avgSqrtRatioX96 = avgTick.getSqrtRatioAtTick();\\n }\\n\\n uint160 maxSlippage = (avgSqrtRatioX96 * gelatoSlippageBPS) / 10000;\\n if (zeroForOne) {\\n require(\\n swapThresholdPrice >= avgSqrtRatioX96 - maxSlippage,\\n \\\"high slippage\\\"\\n );\\n } else {\\n require(\\n swapThresholdPrice <= avgSqrtRatioX96 + maxSlippage,\\n \\\"high slippage\\\"\\n );\\n }\\n }\\n}\\n\",\"keccak256\":\"0xdd382818c81f34c434bb3d4235ac9ff39034cb68e1b87244837d9250878d9fa0\",\"license\":\"GPL-3.0\"},\"contracts/abstract/GUniPoolStorage.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\nimport {Gelatofied} from \\\"./Gelatofied.sol\\\";\\nimport {OwnableUninitialized} from \\\"./OwnableUninitialized.sol\\\";\\nimport {\\n IUniswapV3Pool\\n} from \\\"@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol\\\";\\nimport {IERC20} from \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport {\\n ReentrancyGuardUpgradeable\\n} from \\\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\\\";\\nimport {\\n ERC20Upgradeable\\n} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol\\\";\\n\\n/// @dev Single Global upgradeable state var storage base: APPEND ONLY\\n/// @dev Add all inherited contracts with state vars here: APPEND ONLY\\n/// @dev ERC20Upgradable Includes Initialize\\n// solhint-disable-next-line max-states-count\\n/// @dev Modified to support 0.8.19\\n/// @dev Modified to set the gelatoFeeBPS to 0\\nabstract contract GUniPoolStorage is\\n ERC20Upgradeable, /* XXXX DONT MODIFY ORDERING XXXX */\\n ReentrancyGuardUpgradeable,\\n OwnableUninitialized,\\n Gelatofied\\n // APPEND ADDITIONAL BASE WITH STATE VARS BELOW:\\n // XXXX DONT MODIFY ORDERING XXXX\\n{\\n // solhint-disable-next-line const-name-snakecase\\n string public constant version = \\\"1.0.0\\\";\\n // solhint-disable-next-line const-name-snakecase\\n uint16 public constant gelatoFeeBPS = 0;\\n\\n // XXXXXXXX DO NOT MODIFY ORDERING XXXXXXXX\\n int24 public lowerTick;\\n int24 public upperTick;\\n\\n uint16 public gelatoRebalanceBPS;\\n uint16 public gelatoWithdrawBPS;\\n uint16 public gelatoSlippageBPS;\\n uint32 public gelatoSlippageInterval;\\n\\n uint16 public managerFeeBPS;\\n address public managerTreasury;\\n\\n uint256 public managerBalance0;\\n uint256 public managerBalance1;\\n uint256 public gelatoBalance0;\\n uint256 public gelatoBalance1;\\n\\n IUniswapV3Pool public pool;\\n IERC20 public token0;\\n IERC20 public token1;\\n // APPPEND ADDITIONAL STATE VARS BELOW:\\n // XXXXXXXX DO NOT MODIFY ORDERING XXXXXXXX\\n\\n event UpdateAdminTreasury(\\n address oldAdminTreasury,\\n address newAdminTreasury\\n );\\n\\n event UpdateGelatoParams(\\n uint16 gelatoRebalanceBPS,\\n uint16 gelatoWithdrawBPS,\\n uint16 gelatoSlippageBPS,\\n uint32 gelatoSlippageInterval\\n );\\n\\n event SetManagerFee(uint16 managerFee);\\n\\n // solhint-disable-next-line max-line-length\\n constructor(address payable _gelato) Gelatofied(_gelato) {} // solhint-disable-line no-empty-blocks\\n\\n /// @notice initialize storage variables on a new G-UNI pool, only called once\\n /// @param _name name of G-UNI token\\n /// @param _symbol symbol of G-UNI token\\n /// @param _pool address of Uniswap V3 pool\\n /// @param _managerFeeBPS proportion of fees earned that go to manager treasury\\n /// note that the 4 above params are NOT UPDATEABLE AFTER INILIALIZATION\\n /// @param _lowerTick initial lowerTick (only changeable with executiveRebalance)\\n /// @param _lowerTick initial upperTick (only changeable with executiveRebalance)\\n /// @param _manager_ address of manager (ownership can be transferred)\\n function initialize(\\n string memory _name,\\n string memory _symbol,\\n address _pool,\\n uint16 _managerFeeBPS,\\n int24 _lowerTick,\\n int24 _upperTick,\\n address _manager_\\n ) external initializer {\\n require(_managerFeeBPS <= 10000 - gelatoFeeBPS, \\\"mBPS\\\");\\n\\n // these variables are immutable after initialization\\n pool = IUniswapV3Pool(_pool);\\n token0 = IERC20(pool.token0());\\n token1 = IERC20(pool.token1());\\n managerFeeBPS = _managerFeeBPS; // if set to 0 here manager can still initialize later\\n\\n // these variables can be udpated by the manager\\n gelatoSlippageInterval = 5 minutes; // default: last five minutes;\\n gelatoSlippageBPS = 500; // default: 5% slippage\\n gelatoWithdrawBPS = 100; // default: only auto withdraw if tx fee is lt 1% withdrawn\\n gelatoRebalanceBPS = 200; // default: only rebalance if tx fee is lt 2% reinvested\\n managerTreasury = _manager_; // default: treasury is admin\\n lowerTick = _lowerTick;\\n upperTick = _upperTick;\\n _manager = _manager_;\\n\\n // e.g. \\\"Gelato Uniswap V3 USDC/DAI LP\\\" and \\\"G-UNI\\\"\\n __ERC20_init(_name, _symbol);\\n __ReentrancyGuard_init();\\n }\\n\\n /// @notice change configurable parameters, only manager can call\\n /// @param newRebalanceBPS controls frequency of gelato rebalances: gas fee to execute\\n /// rebalance can be gelatoRebalanceBPS proportion of fees earned since last rebalance\\n /// @param newWithdrawBPS controls frequency of gelato withdrawals: gas fee to execute\\n /// withdrawal can be gelatoWithdrawBPS proportion of fees accrued since last withdraw\\n /// @param newSlippageBPS maximum slippage on swaps during gelato rebalance\\n /// @param newSlippageInterval length of time for TWAP used in computing slippage on swaps\\n /// @param newTreasury address where managerFee withdrawals are sent\\n // solhint-disable-next-line code-complexity\\n function updateGelatoParams(\\n uint16 newRebalanceBPS,\\n uint16 newWithdrawBPS,\\n uint16 newSlippageBPS,\\n uint32 newSlippageInterval,\\n address newTreasury\\n ) external onlyManager {\\n require(newWithdrawBPS <= 10000, \\\"BPS\\\");\\n require(newRebalanceBPS <= 10000, \\\"BPS\\\");\\n require(newSlippageBPS <= 10000, \\\"BPS\\\");\\n emit UpdateGelatoParams(\\n newRebalanceBPS,\\n newWithdrawBPS,\\n newSlippageBPS,\\n newSlippageInterval\\n );\\n if (newRebalanceBPS != 0) gelatoRebalanceBPS = newRebalanceBPS;\\n if (newWithdrawBPS != 0) gelatoWithdrawBPS = newWithdrawBPS;\\n if (newSlippageBPS != 0) gelatoSlippageBPS = newSlippageBPS;\\n if (newSlippageInterval != 0)\\n gelatoSlippageInterval = newSlippageInterval;\\n if (newTreasury != address(0)) managerTreasury = newTreasury;\\n }\\n\\n /// @notice initializeManagerFee sets a managerFee, only manager can call.\\n /// If a manager fee was not set in the initialize function it can be set here\\n /// but ONLY ONCE- after it is set to a non-zero value, managerFee can never be set again.\\n /// @param _managerFeeBPS proportion of fees earned that are credited to manager in Basis Points\\n function initializeManagerFee(uint16 _managerFeeBPS) external onlyManager {\\n require(managerFeeBPS == 0, \\\"fee\\\");\\n require(\\n _managerFeeBPS > 0 && _managerFeeBPS <= 10000 - gelatoFeeBPS,\\n \\\"mBPS\\\"\\n );\\n emit SetManagerFee(_managerFeeBPS);\\n managerFeeBPS = _managerFeeBPS;\\n }\\n\\n function renounceOwnership() public virtual override onlyManager {\\n managerTreasury = address(0);\\n managerFeeBPS = 0;\\n managerBalance0 = 0;\\n managerBalance1 = 0;\\n super.renounceOwnership();\\n }\\n\\n function getPositionID() external view returns (bytes32 positionID) {\\n return _getPositionID();\\n }\\n\\n function _getPositionID() internal view returns (bytes32 positionID) {\\n return keccak256(abi.encodePacked(address(this), lowerTick, upperTick));\\n }\\n}\\n\",\"keccak256\":\"0xd1ad805a13c7cd73554b1e3cc3735f3f369d759f8e0b9188977b85295456d033\",\"license\":\"GPL-3.0\"},\"contracts/abstract/Gelatofied.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\nimport {Address} from \\\"@openzeppelin/contracts/utils/Address.sol\\\";\\nimport {\\n IERC20,\\n SafeERC20\\n} from \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\n\\n/// @dev DO NOT ADD STATE VARIABLES - APPEND THEM TO GelatoUniV3PoolStorage\\n/// @dev DO NOT ADD BASE CONTRACTS WITH STATE VARS - APPEND THEM TO GelatoUniV3PoolStorage\\nabstract contract Gelatofied {\\n using Address for address payable;\\n using SafeERC20 for IERC20;\\n\\n // solhint-disable-next-line var-name-mixedcase\\n address payable public immutable GELATO;\\n\\n address private constant _ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\\n\\n constructor(address payable _gelato) {\\n GELATO = _gelato;\\n }\\n\\n modifier gelatofy(uint256 _amount, address _paymentToken) {\\n require(msg.sender == GELATO, \\\"Gelatofied: Only gelato\\\");\\n _;\\n if (_paymentToken == _ETH) GELATO.sendValue(_amount);\\n else IERC20(_paymentToken).safeTransfer(GELATO, _amount);\\n }\\n}\\n\",\"keccak256\":\"0x264bc07e6e1b80c454c311ecf4b56afe245ddde31151ed9bcc4cb9ad25bec46a\",\"license\":\"GPL-3.0\"},\"contracts/abstract/OwnableUninitialized.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an manager) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the manager 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 * `onlyManager`, which can be applied to your functions to restrict their use to\\n * the manager.\\n */\\n/// @dev DO NOT ADD STATE VARIABLES - APPEND THEM TO GelatoUniV3PoolStorage\\n/// @dev DO NOT ADD BASE CONTRACTS WITH STATE VARS - APPEND THEM TO GelatoUniV3PoolStorage\\nabstract contract OwnableUninitialized {\\n address internal _manager;\\n\\n event OwnershipTransferred(\\n address indexed previousManager,\\n address indexed newManager\\n );\\n\\n /// @dev Initializes the contract setting the deployer as the initial manager.\\n /// CONSTRUCTOR EMPTY - USE INITIALIZIABLE INSTEAD\\n // solhint-disable-next-line no-empty-blocks\\n constructor() {}\\n\\n /**\\n * @dev Returns the address of the current manager.\\n */\\n function manager() public view virtual returns (address) {\\n return _manager;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the manager.\\n */\\n modifier onlyManager() {\\n require(manager() == msg.sender, \\\"Ownable: caller is not the manager\\\");\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without manager. It will not be possible to call\\n * `onlyManager` functions anymore. Can only be called by the current manager.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an manager,\\n * thereby removing any functionality that is only available to the manager.\\n */\\n function renounceOwnership() public virtual onlyManager {\\n emit OwnershipTransferred(_manager, address(0));\\n _manager = 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 manager.\\n */\\n function transferOwnership(address newOwner) public virtual onlyManager {\\n require(\\n newOwner != address(0),\\n \\\"Ownable: new manager is the zero address\\\"\\n );\\n emit OwnershipTransferred(_manager, newOwner);\\n _manager = newOwner;\\n }\\n}\\n\",\"keccak256\":\"0xb6016d5611f38fbd516a84ea2e56794cb76a8d61c40f6716d5f0133f195759bd\",\"license\":\"GPL-3.0\"},\"contracts/vendor/uniswap/FullMath.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity ^0.8.4;\\n\\n/// @title Contains 512-bit math functions\\n/// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision\\n/// @dev Handles \\\"phantom overflow\\\" i.e., allows multiplication and division where an intermediate value overflows 256 bits\\nlibrary FullMath {\\n /// @notice Calculates floor(a\\u00d7b\\u00f7denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n /// @param a The multiplicand\\n /// @param b The multiplier\\n /// @param denominator The divisor\\n /// @return result The 256-bit result\\n /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv\\n function mulDiv(\\n uint256 a,\\n uint256 b,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = a * b\\n // Compute the product mod 2**256 and mod 2**256 - 1\\n // then use the Chinese Remainder Theorem to reconstruct\\n // the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2**256 + prod0\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(a, b, not(0))\\n prod0 := mul(a, b)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division\\n if (prod1 == 0) {\\n require(denominator > 0);\\n assembly {\\n result := div(prod0, denominator)\\n }\\n return result;\\n }\\n\\n // Make sure the result is less than 2**256.\\n // Also prevents denominator == 0\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0]\\n // Compute remainder using mulmod\\n uint256 remainder;\\n assembly {\\n remainder := mulmod(a, b, denominator)\\n }\\n // Subtract 256 bit number from 512 bit number\\n assembly {\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator\\n // Compute largest power of two divisor of denominator.\\n // Always >= 1.\\n // EDIT for 0.8 compatibility:\\n // see: https://ethereum.stackexchange.com/questions/96642/unary-operator-cannot-be-applied-to-type-uint256\\n uint256 twos = denominator & (~denominator + 1);\\n\\n // Divide denominator by power of two\\n assembly {\\n denominator := div(denominator, twos)\\n }\\n\\n // Divide [prod1 prod0] by the factors of two\\n assembly {\\n prod0 := div(prod0, twos)\\n }\\n // Shift in bits from prod1 into prod0. For this we need\\n // to flip `twos` such that it is 2**256 / twos.\\n // If twos is zero, then it becomes one\\n assembly {\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2**256\\n // Now that denominator is an odd number, it has an inverse\\n // modulo 2**256 such that denominator * inv = 1 mod 2**256.\\n // Compute the inverse by starting with a seed that is correct\\n // correct for four bits. That is, denominator * inv = 1 mod 2**4\\n uint256 inv = (3 * denominator) ^ 2;\\n // Now use Newton-Raphson iteration to improve the precision.\\n // Thanks to Hensel's lifting lemma, this also works in modular\\n // arithmetic, doubling the correct bits in each step.\\n inv *= 2 - denominator * inv; // inverse mod 2**8\\n inv *= 2 - denominator * inv; // inverse mod 2**16\\n inv *= 2 - denominator * inv; // inverse mod 2**32\\n inv *= 2 - denominator * inv; // inverse mod 2**64\\n inv *= 2 - denominator * inv; // inverse mod 2**128\\n inv *= 2 - denominator * inv; // inverse mod 2**256\\n\\n // Because the division is now exact we can divide by multiplying\\n // with the modular inverse of denominator. This will give us the\\n // correct result modulo 2**256. Since the precoditions guarantee\\n // that the outcome is less than 2**256, this is the final result.\\n // We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inv;\\n return result;\\n }\\n }\\n\\n /// @notice Calculates ceil(a\\u00d7b\\u00f7denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n /// @param a The multiplicand\\n /// @param b The multiplier\\n /// @param denominator The divisor\\n /// @return result The 256-bit result\\n function mulDivRoundingUp(\\n uint256 a,\\n uint256 b,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n result = mulDiv(a, b, denominator);\\n if (mulmod(a, b, denominator) > 0) {\\n require(result < type(uint256).max);\\n result++;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3fa0efa3eea2a84bd6ab7e55badd61f97069a6c50780059b036c810427a9740c\",\"license\":\"GPL-3.0\"},\"contracts/vendor/uniswap/LiquidityAmounts.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity >=0.5.0;\\n\\nimport {FullMath} from \\\"./FullMath.sol\\\";\\nimport \\\"@uniswap/v3-core/contracts/libraries/FixedPoint96.sol\\\";\\n\\n/// @title Liquidity amount functions\\n/// @notice Provides functions for computing liquidity amounts from token amounts and prices\\nlibrary LiquidityAmounts {\\n function toUint128(uint256 x) private pure returns (uint128 y) {\\n require((y = uint128(x)) == x);\\n }\\n\\n /// @notice Computes the amount of liquidity received for a given amount of token0 and price range\\n /// @dev Calculates amount0 * (sqrt(upper) * sqrt(lower)) / (sqrt(upper) - sqrt(lower)).\\n /// @param sqrtRatioAX96 A sqrt price\\n /// @param sqrtRatioBX96 Another sqrt price\\n /// @param amount0 The amount0 being sent in\\n /// @return liquidity The amount of returned liquidity\\n function getLiquidityForAmount0(\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint256 amount0\\n ) internal pure returns (uint128 liquidity) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n uint256 intermediate =\\n FullMath.mulDiv(sqrtRatioAX96, sqrtRatioBX96, FixedPoint96.Q96);\\n return\\n toUint128(\\n FullMath.mulDiv(\\n amount0,\\n intermediate,\\n sqrtRatioBX96 - sqrtRatioAX96\\n )\\n );\\n }\\n\\n /// @notice Computes the amount of liquidity received for a given amount of token1 and price range\\n /// @dev Calculates amount1 / (sqrt(upper) - sqrt(lower)).\\n /// @param sqrtRatioAX96 A sqrt price\\n /// @param sqrtRatioBX96 Another sqrt price\\n /// @param amount1 The amount1 being sent in\\n /// @return liquidity The amount of returned liquidity\\n function getLiquidityForAmount1(\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint256 amount1\\n ) internal pure returns (uint128 liquidity) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n return\\n toUint128(\\n FullMath.mulDiv(\\n amount1,\\n FixedPoint96.Q96,\\n sqrtRatioBX96 - sqrtRatioAX96\\n )\\n );\\n }\\n\\n /// @notice Computes the maximum amount of liquidity received for a given amount of token0, token1, the current\\n /// pool prices and the prices at the tick boundaries\\n function getLiquidityForAmounts(\\n uint160 sqrtRatioX96,\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint256 amount0,\\n uint256 amount1\\n ) internal pure returns (uint128 liquidity) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n\\n if (sqrtRatioX96 <= sqrtRatioAX96) {\\n liquidity = getLiquidityForAmount0(\\n sqrtRatioAX96,\\n sqrtRatioBX96,\\n amount0\\n );\\n } else if (sqrtRatioX96 < sqrtRatioBX96) {\\n uint128 liquidity0 =\\n getLiquidityForAmount0(sqrtRatioX96, sqrtRatioBX96, amount0);\\n uint128 liquidity1 =\\n getLiquidityForAmount1(sqrtRatioAX96, sqrtRatioX96, amount1);\\n\\n liquidity = liquidity0 < liquidity1 ? liquidity0 : liquidity1;\\n } else {\\n liquidity = getLiquidityForAmount1(\\n sqrtRatioAX96,\\n sqrtRatioBX96,\\n amount1\\n );\\n }\\n }\\n\\n /// @notice Computes the amount of token0 for a given amount of liquidity and a price range\\n /// @param sqrtRatioAX96 A sqrt price\\n /// @param sqrtRatioBX96 Another sqrt price\\n /// @param liquidity The liquidity being valued\\n /// @return amount0 The amount0\\n function getAmount0ForLiquidity(\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint128 liquidity\\n ) internal pure returns (uint256 amount0) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n\\n return\\n FullMath.mulDiv(\\n uint256(liquidity) << FixedPoint96.RESOLUTION,\\n sqrtRatioBX96 - sqrtRatioAX96,\\n sqrtRatioBX96\\n ) / sqrtRatioAX96;\\n }\\n\\n /// @notice Computes the amount of token1 for a given amount of liquidity and a price range\\n /// @param sqrtRatioAX96 A sqrt price\\n /// @param sqrtRatioBX96 Another sqrt price\\n /// @param liquidity The liquidity being valued\\n /// @return amount1 The amount1\\n function getAmount1ForLiquidity(\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint128 liquidity\\n ) internal pure returns (uint256 amount1) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n\\n return\\n FullMath.mulDiv(\\n liquidity,\\n sqrtRatioBX96 - sqrtRatioAX96,\\n FixedPoint96.Q96\\n );\\n }\\n\\n /// @notice Computes the token0 and token1 value for a given amount of liquidity, the current\\n /// pool prices and the prices at the tick boundaries\\n function getAmountsForLiquidity(\\n uint160 sqrtRatioX96,\\n uint160 sqrtRatioAX96,\\n uint160 sqrtRatioBX96,\\n uint128 liquidity\\n ) internal pure returns (uint256 amount0, uint256 amount1) {\\n if (sqrtRatioAX96 > sqrtRatioBX96)\\n (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);\\n\\n if (sqrtRatioX96 <= sqrtRatioAX96) {\\n amount0 = getAmount0ForLiquidity(\\n sqrtRatioAX96,\\n sqrtRatioBX96,\\n liquidity\\n );\\n } else if (sqrtRatioX96 < sqrtRatioBX96) {\\n amount0 = getAmount0ForLiquidity(\\n sqrtRatioX96,\\n sqrtRatioBX96,\\n liquidity\\n );\\n amount1 = getAmount1ForLiquidity(\\n sqrtRatioAX96,\\n sqrtRatioX96,\\n liquidity\\n );\\n } else {\\n amount1 = getAmount1ForLiquidity(\\n sqrtRatioAX96,\\n sqrtRatioBX96,\\n liquidity\\n );\\n }\\n }\\n}\\n\",\"keccak256\":\"0x6205f6409d42fc9565530d2a69819bf8c4e4c66b7a4c61d0827e81c084df6832\",\"license\":\"GPL-3.0\"},\"contracts/vendor/uniswap/TickMath.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity 0.8.19;\\n\\n/// @title Math library for computing sqrt prices from ticks and vice versa\\n/// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports\\n/// prices between 2**-128 and 2**128\\nlibrary TickMath {\\n /// @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128\\n int24 internal constant MIN_TICK = -887272;\\n /// @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128\\n int24 internal constant MAX_TICK = -MIN_TICK;\\n\\n /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)\\n uint160 internal constant MIN_SQRT_RATIO = 4295128739;\\n /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)\\n uint160 internal constant MAX_SQRT_RATIO =\\n 1461446703485210103287273052203988822378723970342;\\n\\n /// @notice Calculates sqrt(1.0001^tick) * 2^96\\n /// @dev Throws if |tick| > max tick\\n /// @param tick The input tick for the above formula\\n /// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0)\\n /// at the given tick\\n function getSqrtRatioAtTick(int24 tick)\\n internal\\n pure\\n returns (uint160 sqrtPriceX96)\\n {\\n uint256 absTick =\\n tick < 0 ? uint256(-int256(tick)) : uint256(int256(tick));\\n\\n // EDIT: 0.8 compatibility\\n require(absTick <= uint256(int256(MAX_TICK)), \\\"T\\\");\\n\\n uint256 ratio =\\n absTick & 0x1 != 0\\n ? 0xfffcb933bd6fad37aa2d162d1a594001\\n : 0x100000000000000000000000000000000;\\n if (absTick & 0x2 != 0)\\n ratio = (ratio * 0xfff97272373d413259a46990580e213a) >> 128;\\n if (absTick & 0x4 != 0)\\n ratio = (ratio * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128;\\n if (absTick & 0x8 != 0)\\n ratio = (ratio * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128;\\n if (absTick & 0x10 != 0)\\n ratio = (ratio * 0xffcb9843d60f6159c9db58835c926644) >> 128;\\n if (absTick & 0x20 != 0)\\n ratio = (ratio * 0xff973b41fa98c081472e6896dfb254c0) >> 128;\\n if (absTick & 0x40 != 0)\\n ratio = (ratio * 0xff2ea16466c96a3843ec78b326b52861) >> 128;\\n if (absTick & 0x80 != 0)\\n ratio = (ratio * 0xfe5dee046a99a2a811c461f1969c3053) >> 128;\\n if (absTick & 0x100 != 0)\\n ratio = (ratio * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128;\\n if (absTick & 0x200 != 0)\\n ratio = (ratio * 0xf987a7253ac413176f2b074cf7815e54) >> 128;\\n if (absTick & 0x400 != 0)\\n ratio = (ratio * 0xf3392b0822b70005940c7a398e4b70f3) >> 128;\\n if (absTick & 0x800 != 0)\\n ratio = (ratio * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128;\\n if (absTick & 0x1000 != 0)\\n ratio = (ratio * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128;\\n if (absTick & 0x2000 != 0)\\n ratio = (ratio * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128;\\n if (absTick & 0x4000 != 0)\\n ratio = (ratio * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128;\\n if (absTick & 0x8000 != 0)\\n ratio = (ratio * 0x31be135f97d08fd981231505542fcfa6) >> 128;\\n if (absTick & 0x10000 != 0)\\n ratio = (ratio * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128;\\n if (absTick & 0x20000 != 0)\\n ratio = (ratio * 0x5d6af8dedb81196699c329225ee604) >> 128;\\n if (absTick & 0x40000 != 0)\\n ratio = (ratio * 0x2216e584f5fa1ea926041bedfe98) >> 128;\\n if (absTick & 0x80000 != 0)\\n ratio = (ratio * 0x48a170391f7dc42444e8fa2) >> 128;\\n\\n if (tick > 0) ratio = type(uint256).max / ratio;\\n\\n // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96.\\n // we then downcast because we know the result always fits within 160 bits due to our tick input constraint\\n // we round up in the division so getTickAtSqrtRatio of the output price is always consistent\\n sqrtPriceX96 = uint160(\\n (ratio >> 32) + (ratio % (1 << 32) == 0 ? 0 : 1)\\n );\\n }\\n\\n /// @notice Calculates the greatest tick value such that getRatioAtTick(tick) <= ratio\\n /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_RATIO, as MIN_SQRT_RATIO is the lowest value getRatioAtTick may\\n /// ever return.\\n /// @param sqrtPriceX96 The sqrt ratio for which to compute the tick as a Q64.96\\n /// @return tick The greatest tick for which the ratio is less than or equal to the input ratio\\n function getTickAtSqrtRatio(uint160 sqrtPriceX96)\\n internal\\n pure\\n returns (int24 tick)\\n {\\n // second inequality must be < because the price can never reach the price at the max tick\\n require(\\n sqrtPriceX96 >= MIN_SQRT_RATIO && sqrtPriceX96 < MAX_SQRT_RATIO,\\n \\\"R\\\"\\n );\\n uint256 ratio = uint256(sqrtPriceX96) << 32;\\n\\n uint256 r = ratio;\\n uint256 msb = 0;\\n\\n assembly {\\n let f := shl(7, gt(r, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(6, gt(r, 0xFFFFFFFFFFFFFFFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(5, gt(r, 0xFFFFFFFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(4, gt(r, 0xFFFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(3, gt(r, 0xFF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(2, gt(r, 0xF))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := shl(1, gt(r, 0x3))\\n msb := or(msb, f)\\n r := shr(f, r)\\n }\\n assembly {\\n let f := gt(r, 0x1)\\n msb := or(msb, f)\\n }\\n\\n if (msb >= 128) r = ratio >> (msb - 127);\\n else r = ratio << (127 - msb);\\n\\n int256 log_2 = (int256(msb) - 128) << 64;\\n\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(63, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(62, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(61, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(60, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(59, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(58, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(57, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(56, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(55, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(54, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(53, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(52, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(51, f))\\n r := shr(f, r)\\n }\\n assembly {\\n r := shr(127, mul(r, r))\\n let f := shr(128, r)\\n log_2 := or(log_2, shl(50, f))\\n }\\n\\n int256 log_sqrt10001 = log_2 * 255738958999603826347141; // 128.128 number\\n\\n int24 tickLow =\\n int24(\\n (log_sqrt10001 - 3402992956809132418596140100660247210) >> 128\\n );\\n int24 tickHi =\\n int24(\\n (log_sqrt10001 + 291339464771989622907027621153398088495) >> 128\\n );\\n\\n tick = tickLow == tickHi\\n ? tickLow\\n : getSqrtRatioAtTick(tickHi) <= sqrtPriceX96\\n ? tickHi\\n : tickLow;\\n }\\n}\\n\",\"keccak256\":\"0x589b6104fd07d2e56e5b52edcfa53e6e47e2c38cace38025c16278ca73413f2d\",\"license\":\"GPL-3.0\"}},\"version\":1}", + "bytecode": "0x60a06040523480156200001157600080fd5b5060405162005e0e38038062005e0e833981016040819052620000349162000046565b6001600160a01b031660805262000078565b6000602082840312156200005957600080fd5b81516001600160a01b03811681146200007157600080fd5b9392505050565b608051615d3b620000d3600039600081816105f801528181610ce301528181610dcc01528181610e06015281816114a7015281816116d50152818161170f015281816117e20152818161185901526118960152615d3b6000f3fe608060405234801561001057600080fd5b50600436106102255760003560e01c8063065756db1461022a57806306fdde0314610246578063095ea7b31461025b5780630dfe16811461027e5780631322d9541461029e57806316f0115b146102b457806318160ddd146102c757806323b872dd146102cf57806324b8fd1b146102e257806331366be4146102f7578063313ce5671461031257806339509351146103215780633d8b30e11461033457806342fb9d4414610349578063481c6a751461035257806354fd4d501461035a578063672152bd1461037e57806370a08231146103a3578063715018a6146103cc578063727dd228146103d457806378ac6357146103f557806394bf804d1461040857806395d89b411461043f5780639894f21a1461044757806399fd808c146104755780639b1344ac14610488578063a457c2d71461049c578063a50b1fe7146104af578063a9059cbb146104c4578063b135c99f146104d7578063b536bd12146104ea578063b670ed7d146104f3578063be93dd5f14610506578063c345445914610519578063cc95353e14610522578063ccdf7a021461053c578063d21220a714610551578063d348799714610564578063d6e7ff3914610577578063dd62ed3e1461058c578063df28408a146105c5578063e25e15e3146105cd578063e4077894146105e0578063eff557a7146105f3578063f2fde38b1461061a578063fa461e331461062d578063fcd3533c14610640575b600080fd5b61023360995481565b6040519081526020015b60405180910390f35b61024e610653565b60405161023d9190614dc5565b61026e610269366004614e0d565b6106e5565b604051901515815260200161023d565b609e54610291906001600160a01b031681565b60405161023d9190614e39565b6102a66106fc565b60405161023d929190614e4d565b609d54610291906001600160a01b031681565b603554610233565b61026e6102dd366004614e5b565b610796565b6102f56102f0366004614eb9565b61084e565b005b6102ff600081565b60405161ffff909116815260200161023d565b6040516012815260200161023d565b61026e61032f366004614e0d565b610c3a565b6097546102ff90600160e01b900461ffff1681565b610233609a5481565b610291610c71565b61024e604051806040016040528060058152602001640312e302e360dc1b81525081565b60985461038e9063ffffffff1681565b60405163ffffffff909116815260200161023d565b6102336103b1366004614f21565b6001600160a01b031660009081526033602052604090205490565b6102f5610c80565b6097546103e890600160b81b900460020b81565b60405161023d9190614f3e565b6102f5610403366004614f4c565b610cd6565b61041b610416366004614f4c565b610e31565b6040805193845260208401929092526001600160801b03169082015260600161023d565b61024e6110ea565b61045a610455366004614f7c565b6110f9565b6040805193845260208401929092529082015260600161023d565b6102f5610483366004614fc0565b611232565b6097546103e890600160a01b900460020b81565b61026e6104aa366004614e0d565b6113f2565b6097546102ff90600160d01b900461ffff1681565b61026e6104d2366004614e0d565b61148d565b6102f56104e5366004615023565b61149a565b610233609b5481565b6102a6610501366004614f21565b61173d565b6102f5610514366004614f4c565b6117d5565b610233609c5481565b60985461029190600160301b90046001600160a01b031681565b6098546102ff90600160201b900461ffff1681565b609f54610291906001600160a01b031681565b6102f56105723660046150bc565b6118bb565b6097546102ff90600160f01b900461ffff1681565b61023361059a36600461510e565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b61023361191f565b6102f56105db3660046151f1565b61192e565b6102f56105ee3660046152b3565b611ba3565b6102917f000000000000000000000000000000000000000000000000000000000000000081565b6102f5610628366004614f21565b611cb0565b6102f561063b3660046150bc565b611d90565b61041b61064e366004614f4c565b611dfa565b606060368054610662906152d0565b80601f016020809104026020016040519081016040528092919081815260200182805461068e906152d0565b80156106db5780601f106106b0576101008083540402835291602001916106db565b820191906000526020600020905b8154815290600101906020018083116106be57829003601f168201915b5050505050905090565b60006106f2338484612114565b5060015b92915050565b600080600080609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610755573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610779919061530a565b50505050509150915061078c8282612239565b9350935050509091565b60006107a38484846124b9565b6001600160a01b03841660009081526034602090815260408083203384529091529020548281101561082d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610841853361083c86856153b2565b612114565b60019150505b9392505050565b33610857610c71565b6001600160a01b03161461087d5760405162461bcd60e51b8152600401610824906153c5565b600080600061088b60355490565b1115610bca57609d546001600160a01b031663514ea4bf6108aa61267f565b6040518263ffffffff1660e01b81526004016108c891815260200190565b60a060405180830381865afa1580156108e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610909919061541e565b5092945050506001600160801b03831615905061099257609754600090819061094890600160a01b8104600290810b91600160b81b9004900b866126da565b9350935050506109588282612a0d565b6109628282612ae6565b6040519193509150600080516020615ce6833981519152906109879084908490614e4d565b60405180910390a150505b6097805462ffffff888116600160b81b0262ffffff60b81b19918b16600160a01b029190911665ffffffffffff60a01b1990921691909117179055609b54609954609e546040516370a0823160e01b815260009392916001600160a01b0316906370a0823190610a06903090600401614e39565b602060405180830381865afa158015610a23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a479190615475565b610a5191906153b2565b610a5b91906153b2565b609c54609a54609f546040516370a0823160e01b81529394506000936001600160a01b03909116906370a0823190610a97903090600401614e39565b602060405180830381865afa158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad89190615475565b610ae291906153b2565b610aec91906153b2565b9050610afd898984848b8b8b612b80565b609d546001600160a01b031663514ea4bf610b1661267f565b6040518263ffffffff1660e01b8152600401610b3491815260200190565b60a060405180830381865afa158015610b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b75919061541e565b509295505050506001600160801b038316610bc35760405162461bcd60e51b815260206004820152600e60248201526d06e657720706f736974696f6e20360941b6044820152606401610824565b5050610c06565b6097805462ffffff888116600160b81b0262ffffff60b81b19918b16600160a01b029190911665ffffffffffff60a01b19909216919091171790555b600080516020615c8683398151915287878484604051610c29949392919061548e565b60405180910390a150505050505050565b3360008181526034602090815260408083206001600160a01b038716845290915281205490916106f291859061083c9086906154bc565b6097546001600160a01b031690565b33610c89610c71565b6001600160a01b031614610caf5760405162461bcd60e51b8152600401610824906153c5565b60988054600160201b600160d01b031916905560006099819055609a55610cd4612d21565b565b8181336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610d205760405162461bcd60e51b8152600401610824906154cf565b600080610d33609954609a548888612d88565b60006099819055609a5590925090508115610d6d57609854609e54610d6d916001600160a01b0391821691600160301b9091041684612eac565b8015610d9857609854609f54610d98916001600160a01b0391821691600160301b9091041683612eac565b505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601610df757610df26001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683612f14565b610e2b565b610e2b6001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612eac565b50505050565b6000806000600260655403610e585760405162461bcd60e51b815260040161082490615500565b600260655584610e7a5760405162461bcd60e51b815260040161082490615537565b6000610e8560355490565b90506000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610edc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f00919061530a565b50505050505090506000821115610f4157600080610f1c6106fc565b91509150610f2b828a8661302a565b9650610f38818a8661302a565b95505050610f87565b609754610f81908290610f5d90600160a01b900460020b613073565b609754610f7390600160b81b900460020b613073565b610f7c8b613488565b6134f1565b90955093505b8415610fa557609e54610fa5906001600160a01b031633308861358c565b8315610fc357609f54610fc3906001600160a01b031633308761358c565b609754610ffc908290610fdf90600160a01b900460020b613073565b609754610ff590600160b81b900460020b613073565b88886135c4565b609d54609754604051633c8a7d8d60e01b81529295506001600160a01b0390911691633c8a7d8d9161104c913091600160a01b8104600290810b92600160b81b909204900b908990600401615557565b60408051808303816000875af115801561106a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108e9190615599565b505061109a8688613686565b7f55801cfe493000b734571da1694b21e7f66b11e8ce9fdaa0524ecb59105e73e786888787876040516110d19594939291906155bd565b60405180910390a1505060016065819055509250925092565b606060378054610662906152d0565b60008060008061110860355490565b905080156111275761111b818787613753565b9195509350915061122a565b609d5460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e09291908290030181865afa158015611171573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611195919061530a565b505050505050905060006111db826111be609760149054906101000a900460020b60020b613073565b6097546111d490600160b81b900460020b613073565b8b8b6135c4565b6097546001600160801b038216955090915061122290839061120690600160a01b900460020b613073565b60975461121c90600160b81b900460020b613073565b846134f1565b909650945050505b509250925092565b3361123b610c71565b6001600160a01b0316146112615760405162461bcd60e51b8152600401610824906153c5565b6127108461ffff1611156112875760405162461bcd60e51b8152600401610824906155f4565b6127108561ffff1611156112ad5760405162461bcd60e51b8152600401610824906155f4565b6127108361ffff1611156112d35760405162461bcd60e51b8152600401610824906155f4565b6040805161ffff8781168252868116602083015285168183015263ffffffff8416606082015290517f0b7615006627cf7664941bc288d4641731f895e102f95cb8690583ad7508faa89181900360800190a161ffff85161561134a576097805461ffff60d01b1916600160d01b61ffff8816021790555b61ffff84161561136f576097805461ffff60e01b1916600160e01b61ffff8716021790555b61ffff83161561139557609780546001600160f01b0316600160f01b61ffff8616021790555b63ffffffff8216156113b7576098805463ffffffff191663ffffffff84161790555b6001600160a01b038116156113eb5760988054600160301b600160d01b031916600160301b6001600160a01b038416021790555b5050505050565b3360009081526034602090815260408083206001600160a01b0386168452909152812054828110156114745760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610824565b611483338561083c86856153b2565b5060019392505050565b60006106f23384846124b9565b8181336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114e45760405162461bcd60e51b8152600401610824906154cf565b85156114f4576114f48786613862565b609d546000906001600160a01b031663514ea4bf61151061267f565b6040518263ffffffff1660e01b815260040161152e91815260200190565b60a060405180830381865afa15801561154b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156f919061541e565b505050509050611583818989898989613abb565b609d546000906001600160a01b031663514ea4bf61159f61267f565b6040518263ffffffff1660e01b81526004016115bd91815260200190565b60a060405180830381865afa1580156115da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fe919061541e565b505050509050816001600160801b0316816001600160801b03161161165f5760405162461bcd60e51b81526020600482015260176024820152766c6971756964697479206d75737420696e63726561736560481b6044820152606401610824565b609754604051600080516020615c868339815191529161169991600160a01b8204600290810b92600160b81b9004900b908690869061548e565b60405180910390a1505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601611700576116fb6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683612f14565b611734565b6117346001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612eac565b50505050505050565b6000806000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015611795573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b9919061530a565b50505050509150506117cb8482612239565b9250925050915091565b8181336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461181f5760405162461bcd60e51b8152600401610824906154cf565b600080611832609b54609c548888612d88565b6000609b819055609c559092509050811561187e57609e5461187e906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000084612eac565b8015610d9857609f54610d98906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000083612eac565b609d546001600160a01b031633146118e55760405162461bcd60e51b815260040161082490615611565b831561190257609e54611902906001600160a01b03163386612eac565b8215610e2b57609f54610e2b906001600160a01b03163385612eac565b600061192961267f565b905090565b600054610100900460ff1680611947575060005460ff16155b6119635760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015611985576000805461ffff19166101011790555b6119926000612710615688565b61ffff168561ffff1611156119b95760405162461bcd60e51b8152600401610824906156aa565b609d80546001600160a01b0319166001600160a01b03881690811790915560408051630dfe168160e01b81529051630dfe1681916004808201926020929091908290030181865afa158015611a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a3691906156c8565b609e80546001600160a01b0319166001600160a01b03928316179055609d546040805163d21220a760e01b81529051919092169163d21220a79160048083019260209291908290030181865afa158015611a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab891906156c8565b609f80546001600160a01b039283166001600160a01b0319918216179091556098805460978054948716600160301b8102600160301b600160d01b031963ffffffff1961ffff8e16600160201b021665ffffffffffff199095169490941761012c17939093169290921790925562ffffff878116600160b81b02909316600165ffffff00000160a01b0319938916600160a01b02600165ffffff00000160a01b0390951694909417643e800c801960d31b179290921692909217179055611b7f8888613f83565b611b87614002565b8015611b99576000805461ff00191690555b5050505050505050565b33611bac610c71565b6001600160a01b031614611bd25760405162461bcd60e51b8152600401610824906153c5565b609854600160201b900461ffff1615611c135760405162461bcd60e51b815260206004820152600360248201526266656560e81b6044820152606401610824565b60008161ffff16118015611c3b5750611c2f6000612710615688565b61ffff168161ffff1611155b611c575760405162461bcd60e51b8152600401610824906156aa565b60405161ffff821681527f8a1ffb520c943072e654fc414750dbefad5b6d6311339d041901c4752782fad39060200160405180910390a16098805461ffff909216600160201b0261ffff60201b19909216919091179055565b33611cb9610c71565b6001600160a01b031614611cdf5760405162461bcd60e51b8152600401610824906153c5565b6001600160a01b038116611d465760405162461bcd60e51b815260206004820152602860248201527f4f776e61626c653a206e6577206d616e6167657220697320746865207a65726f604482015267206164647265737360c01b6064820152608401610824565b6097546040516001600160a01b03808416921690600080516020615ca683398151915290600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b609d546001600160a01b03163314611dba5760405162461bcd60e51b815260040161082490615611565b6000841315611dda57609e54610df2906001600160a01b03163386612eac565b6000831315610e2b57609f54610e2b906001600160a01b03163385612eac565b6000806000600260655403611e215760405162461bcd60e51b815260040161082490615500565b600260655584611e5c5760405162461bcd60e51b815260206004820152600660248201526506275726e20360d41b6044820152606401610824565b6000611e6760355490565b609d549091506000906001600160a01b031663514ea4bf611e8661267f565b6040518263ffffffff1660e01b8152600401611ea491815260200190565b60a060405180830381865afa158015611ec1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee5919061541e565b505050509050611ef53388614076565b6000611f0b88836001600160801b0316856141b3565b9050611f1681613488565b609754909450600090819081908190611f4590600160a01b8104600290810b91600160b81b9004900b8a6126da565b9350935093509350611f578282612a0d565b611f618282612ae6565b6040519193509150600080516020615ce683398151915290611f869084908490614e4d565b60405180910390a1609b54609954609e546040516370a0823160e01b815261203293929188916001600160a01b03909116906370a0823190611fcc903090600401614e39565b602060405180830381865afa158015611fe9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200d9190615475565b61201791906153b2565b61202191906153b2565b61202b91906153b2565b8d896141b3565b61203c90856154bc565b609c54609a54609f546040516370a0823160e01b8152939d506120799387916001600160a01b0316906370a0823190611fcc903090600401614e39565b61208390846154bc565b985089156120a257609e546120a2906001600160a01b03168c8c612eac565b88156120bf57609f546120bf906001600160a01b03168c8b612eac565b7f7239dff1718b550db7f36cbf69c665cfeb56d0e96b4fb76a5cba712961b655098b8d8c8c8c6040516120f69594939291906155bd565b60405180910390a15050505050505060016065819055509250925092565b6001600160a01b0383166121765760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610824565b6001600160a01b0382166121d75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610824565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b609d546000908190819081908190819081906001600160a01b031663514ea4bf61226161267f565b6040518263ffffffff1660e01b815260040161227f91815260200190565b60a060405180830381865afa15801561229c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c0919061541e565b94509450945094509450612305896122e9609760149054906101000a900460020b60020b613073565b6097546122ff90600160b81b900460020b613073565b886134f1565b909750955060006001600160801b0383166123236001878c8a614261565b61232d91906154bc565b90506000826001600160801b03166123486000878d8b614261565b61235291906154bc565b905061235e8282612ae6565b609b54609954609e546040516370a0823160e01b8152949650929450909290916001600160a01b0316906370a082319061239c903090600401614e39565b602060405180830381865afa1580156123b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123dd9190615475565b6123e790856154bc565b6123f191906153b2565b6123fb91906153b2565b612405908a6154bc565b609c54609a54609f546040516370a0823160e01b8152939c50919290916001600160a01b0316906370a0823190612440903090600401614e39565b602060405180830381865afa15801561245d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124819190615475565b61248b90846154bc565b61249591906153b2565b61249f91906153b2565b6124a990896154bc565b9750505050505050509250929050565b6001600160a01b03831661251d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610824565b6001600160a01b03821661257f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610824565b6001600160a01b038316600090815260336020526040902054818110156125f75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610824565b61260182826153b2565b6001600160a01b0380861660009081526033602052604080822093909355908516815290812080548492906126379084906154bc565b92505081905550826001600160a01b0316846001600160a01b0316600080516020615cc68339815191528460405161267191815260200190565b60405180910390a350505050565b6097546040516001600160601b03193060601b166020820152600160a01b820460e890811b6034830152600160b81b90920490911b6037820152600090603a0160405160208183030381529060405280519060200120905090565b609e546040516370a0823160e01b815260009182918291829182916001600160a01b0316906370a0823190612713903090600401614e39565b602060405180830381865afa158015612730573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127549190615475565b609f546040516370a0823160e01b81529192506000916001600160a01b03909116906370a082319061278a903090600401614e39565b602060405180830381865afa1580156127a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127cb9190615475565b609d5460405163a34123a760e01b815260028c810b60048301528b900b60248201526001600160801b038a1660448201529192506001600160a01b03169063a34123a79060640160408051808303816000875af1158015612830573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128549190615599565b609d546040516309e3d67b60e31b815230600482015260028d810b60248301528c900b60448201526001600160801b036064820181905260848201529298509096506001600160a01b031690634f1eb3d89060a40160408051808303816000875af11580156128c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128eb91906156e5565b5050609e546040516370a0823160e01b8152879184916001600160a01b03909116906370a0823190612921903090600401614e39565b602060405180830381865afa15801561293e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129629190615475565b61296c91906153b2565b61297691906153b2565b609f546040516370a0823160e01b8152919550869183916001600160a01b0316906370a08231906129ab903090600401614e39565b602060405180830381865afa1580156129c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ec9190615475565b6129f691906153b2565b612a0091906153b2565b9250505093509350935093565b612710612a1b600084615718565b612a259190615745565b609b6000828254612a3691906154bc565b909155506127109050612a4a600083615718565b612a549190615745565b609c6000828254612a6591906154bc565b909155505060985461271090612a8690600160201b900461ffff1684615718565b612a909190615745565b60996000828254612aa191906154bc565b909155505060985461271090612ac290600160201b900461ffff1683615718565b612acc9190615745565b609a6000828254612add91906154bc565b90915550505050565b6000806000612710609860049054906101000a900461ffff166000612b0b9190615759565b612b199061ffff1687615718565b612b239190615745565b60985490915060009061271090612b4590600160201b900461ffff1683615759565b612b539061ffff1687615718565b612b5d9190615745565b9050612b6982876153b2565b9350612b7581866153b2565b925050509250929050565b609d5460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e09291908290030181865afa158015612bca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bee919061530a565b50505050505090506000612c1b82612c088b60020b613073565b612c148b60020b613073565b8a8a6135c4565b90506001600160801b03811615612cc957609d54604051633c8a7d8d60e01b815260009182916001600160a01b0390911690633c8a7d8d90612c679030908f908f908990600401615557565b60408051808303816000875af1158015612c85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ca99190615599565b9092509050612cb8828a6153b2565b9850612cc481896153b2565b975050505b6000612cf86127108686612cdd5789612cdf565b8a5b612ce99190615718565b612cf39190615745565b61460d565b90506000811315612d1557612d128a8a8a8a858b8a614673565b50505b50505050505050505050565b33612d2a610c71565b6001600160a01b031614612d505760405162461bcd60e51b8152600401610824906153c5565b6097546040516000916001600160a01b031690600080516020615ca6833981519152908390a3609780546001600160a01b0319169055565b609e5460009081906001600160a01b0390811690841603612dfd57609754849061271090612dc190600160e01b900461ffff1689615718565b612dcb9190615745565b1015612de95760405162461bcd60e51b815260040161082490615774565b612df384876153b2565b9150849050612ea3565b609f546001600160a01b0390811690841603612e6d57609754849061271090612e3190600160e01b900461ffff1688615718565b612e3b9190615745565b1015612e595760405162461bcd60e51b815260040161082490615774565b612e6384866153b2565b9050859150612ea3565b60405162461bcd60e51b815260206004820152600b60248201526a3bb937b733903a37b5b2b760a91b6044820152606401610824565b94509492505050565b6040516001600160a01b038316602482015260448101829052612f0f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261488f565b505050565b80471015612f645760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610824565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612fb1576040519150601f19603f3d011682016040523d82523d6000602084013e612fb6565b606091505b5050905080612f0f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152608401610824565b60006130378484846141b3565b9050600082806130495761304961572f565b848609111561084757600019811061306057600080fd5b8061306a81615796565b95945050505050565b60008060008360020b1261308a578260020b613097565b8260020b613097906157af565b90506130a6620d89e7196157cb565b60020b8111156130dc5760405162461bcd60e51b81526020600482015260016024820152601560fa1b6044820152606401610824565b6000816001166000036130f357600160801b613105565b6ffffcb933bd6fad37aa2d162d1a5940015b6001600160881b03169050600282161561313a576080613135826ffff97272373d413259a46990580e213a615718565b901c90505b600482161561316457608061315f826ffff2e50f5f656932ef12357cf3c7fdcc615718565b901c90505b600882161561318e576080613189826fffe5caca7e10e4e61c3624eaa0941cd0615718565b901c90505b60108216156131b85760806131b3826fffcb9843d60f6159c9db58835c926644615718565b901c90505b60208216156131e25760806131dd826fff973b41fa98c081472e6896dfb254c0615718565b901c90505b604082161561320c576080613207826fff2ea16466c96a3843ec78b326b52861615718565b901c90505b6080821615613236576080613231826ffe5dee046a99a2a811c461f1969c3053615718565b901c90505b61010082161561326157608061325c826ffcbe86c7900a88aedcffc83b479aa3a4615718565b901c90505b61020082161561328c576080613287826ff987a7253ac413176f2b074cf7815e54615718565b901c90505b6104008216156132b75760806132b2826ff3392b0822b70005940c7a398e4b70f3615718565b901c90505b6108008216156132e25760806132dd826fe7159475a2c29b7443b29c7fa6e889d9615718565b901c90505b61100082161561330d576080613308826fd097f3bdfd2022b8845ad8f792aa5825615718565b901c90505b612000821615613338576080613333826fa9f746462d870fdf8a65dc1f90e061e5615718565b901c90505b61400082161561336357608061335e826f70d869a156d2a1b890bb3df62baf32f7615718565b901c90505b61800082161561338e576080613389826f31be135f97d08fd981231505542fcfa6615718565b901c90505b620100008216156133ba5760806133b5826f09aa508b5b7a84e1c677de54f3e99bc9615718565b901c90505b620200008216156133e55760806133e0826e5d6af8dedb81196699c329225ee604615718565b901c90505b6204000082161561340f57608061340a826d2216e584f5fa1ea926041bedfe98615718565b901c90505b62080000821615613437576080613432826b048a170391f7dc42444e8fa2615718565b901c90505b60008460020b13156134525761344f81600019615745565b90505b613460600160201b826157ed565b1561346c57600161346f565b60005b6134809060ff16602083901c6154bc565b949350505050565b6000600160801b82106134ed5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663238206269747360c81b6064820152608401610824565b5090565b600080836001600160a01b0316856001600160a01b03161115613512579293925b846001600160a01b0316866001600160a01b03161161353d57613536858585614961565b9150612ea3565b836001600160a01b0316866001600160a01b0316101561357657613562868585614961565b915061356f8587856149cb565b9050612ea3565b6135818585856149cb565b905094509492505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610e2b9085906323b872dd60e01b90608401612ed8565b6000836001600160a01b0316856001600160a01b031611156135e4579293925b846001600160a01b0316866001600160a01b03161161360f57613608858585614a15565b905061306a565b836001600160a01b0316866001600160a01b03161015613671576000613636878686614a15565b90506000613645878986614a7f565b9050806001600160801b0316826001600160801b0316106136665780613668565b815b9250505061306a565b61367c858584614a7f565b9695505050505050565b6001600160a01b0382166136dc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610824565b80603560008282546136ee91906154bc565b90915550506001600160a01b0382166000908152603360205260408120805483929061371b9084906154bc565b90915550506040518181526001600160a01b03831690600090600080516020615cc68339815191529060200160405180910390a35050565b60008060008060006137636106fc565b915091508160001480156137775750600081115b1561378e576137878689836141b3565b925061383d565b8015801561379c5750600082115b156137ac576137878789846141b3565b811580156137b8575080155b156137df5760405162461bcd60e51b81526020600482015260006024820152604401610824565b60006137ec888a856141b3565b905060006137fb888b856141b3565b905060008211801561380d5750600081115b6138295760405162461bcd60e51b815260040161082490615537565b8082106138365780613838565b815b945050505b61384883838a61302a565b945061385583828a61302a565b9350505093509350939050565b6040805160028082526060820183526000926020830190803683375050609854825192935063ffffffff16918391506000906138a0576138a0615801565b602002602001019063ffffffff16908163ffffffff16815250506000816001815181106138cf576138cf615801565b63ffffffff90921660209283029190910190910152609d5460405163883bdbfd60e01b81526000916001600160a01b03169063883bdbfd90613915908590600401615817565b600060405180830381865afa158015613932573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261395a919081019061590a565b509050805160021461399a5760405162461bcd60e51b815260206004820152600960248201526830b93930bc903632b760b91b6044820152606401610824565b6098548151600091829163ffffffff90911660060b90849083906139c0576139c0615801565b6020026020010151846001815181106139db576139db615801565b60200260200101510360060b816139f4576139f461572f565b059050613a038160020b613073565b6097549092506000915061271090613a2690600160f01b900461ffff16846159cc565b613a3091906159fe565b90508415613a7857613a428183615a24565b6001600160a01b0316866001600160a01b03161015613a735760405162461bcd60e51b815260040161082490615a44565b613ab3565b613a828183615a6b565b6001600160a01b0316866001600160a01b03161115613ab35760405162461bcd60e51b815260040161082490615a44565b505050505050565b609b54609954609e546040516370a0823160e01b815260009392916001600160a01b0316906370a0823190613af4903090600401614e39565b602060405180830381865afa158015613b11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b359190615475565b613b3f91906153b2565b613b4991906153b2565b609c54609a54609f546040516370a0823160e01b81529394506000936001600160a01b03909116906370a0823190613b85903090600401614e39565b602060405180830381865afa158015613ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bc69190615475565b613bd091906153b2565b613bda91906153b2565b6097549091506000908190613c0590600160a01b8104600290810b91600160b81b9004900b8c6126da565b935093505050613c158282612a0d565b613c1f8282612ae6565b6040519193509150600080516020615ce683398151915290613c449084908490614e4d565b60405180910390a1613c5684836154bc565b9150613c6283826154bc565b609e549091506001600160a01b0390811690861603613def57609754869061271090613c9990600160d01b900461ffff1685615718565b613ca39190615745565b1015613cc15760405162461bcd60e51b815260040161082490615774565b609b54609954609e546040516370a0823160e01b8152899392916001600160a01b0316906370a0823190613cf9903090600401614e39565b602060405180830381865afa158015613d16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d3a9190615475565b613d4491906153b2565b613d4e91906153b2565b613d5891906153b2565b609c54609a54609f546040516370a0823160e01b8152939750919290916001600160a01b0316906370a0823190613d93903090600401614e39565b602060405180830381865afa158015613db0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dd49190615475565b613dde91906153b2565b613de891906153b2565b9250613f5c565b609f546001600160a01b0390811690861603612e6d57609754869061271090613e2390600160d01b900461ffff1684615718565b613e2d9190615745565b1015613e4b5760405162461bcd60e51b815260040161082490615774565b609b54609954609e546040516370a0823160e01b81526001600160a01b03909116906370a0823190613e81903090600401614e39565b602060405180830381865afa158015613e9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ec29190615475565b613ecc91906153b2565b613ed691906153b2565b609c54609a54609f546040516370a0823160e01b815293975089936001600160a01b03909116906370a0823190613f11903090600401614e39565b602060405180830381865afa158015613f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f529190615475565b613dd491906153b2565b609754612d1590600160a01b8104600290810b91600160b81b9004900b86868d8d8d612b80565b600054610100900460ff1680613f9c575060005460ff16155b613fb85760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015613fda576000805461ffff19166101011790555b613fe2614ab5565b613fec8383614b1f565b8015612f0f576000805461ff0019169055505050565b600054610100900460ff168061401b575060005460ff16155b6140375760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614059576000805461ffff19166101011790555b614061614ba6565b8015614073576000805461ff00191690555b50565b6001600160a01b0382166140d65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610824565b6001600160a01b0382166000908152603360205260409020548181101561414a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610824565b61415482826153b2565b6001600160a01b038416600090815260336020526040812091909155603580548492906141829084906153b2565b90915550506040518281526000906001600160a01b03851690600080516020615cc68339815191529060200161222c565b60008080600019858709858702925082811083820303915050806000036141ec57600084116141e157600080fd5b508290049050610847565b8084116141f857600080fd5b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b600080600080871561440157609d60009054906101000a90046001600160a01b03166001600160a01b031663f30583996040518163ffffffff1660e01b8152600401602060405180830381865afa1580156142c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142e49190615475565b609d5460975460405163f30dba9360e01b81529293506001600160a01b039091169163f30dba939161432491600160a01b90910460020b90600401614f3e565b61010060405180830381865afa158015614342573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143669190615a8b565b5050609d5460975460405163f30dba9360e01b8152959a506001600160a01b03909116965063f30dba9395506143af94600160b81b90910460020b93506004019150614f3e9050565b61010060405180830381865afa1580156143cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143f19190615a8b565b5093975061458f95505050505050565b609d60009054906101000a90046001600160a01b03166001600160a01b031663461413196040518163ffffffff1660e01b8152600401602060405180830381865afa158015614454573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144789190615475565b609d5460975460405163f30dba9360e01b81529293506001600160a01b039091169163f30dba93916144b891600160a01b90910460020b90600401614f3e565b61010060405180830381865afa1580156144d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144fa9190615a8b565b5050609d5460975460405163f30dba9360e01b8152949a506001600160a01b03909116965063f30dba9395506145429450600160b81b900460020b926004019150614f3e9050565b61010060405180830381865afa158015614560573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145849190615a8b565b509297505050505050505b609754600090600160a01b9004600290810b9088900b126145b15750826145b6565b508281035b609754600090600160b81b9004600290810b9089900b12156145d95750826145de565b508282035b8183038190036145fe6001600160801b0389168b8303600160801b6141b3565b9b9a5050505050505050505050565b6000600160ff1b82106134ed5760405162461bcd60e51b815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604482015267371034b73a191a9b60c11b6064820152608401610824565b609d54604051630251596160e31b81523060048201528215156024820152604481018590526001600160a01b03848116606483015260a06084830152600060a4830181905292839283928392169063128acb089060c40160408051808303816000875af11580156146e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061470c9190615599565b915091508161471a8a61460d565b6147249190615b27565b9350806147308961460d565b61473a9190615b27565b92506000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015614791573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147b5919061530a565b505050505050905060006147e2826147cf8f60020b613073565b6147db8f60020b613073565b89896135c4565b90506001600160801b0381161561487f57609d60009054906101000a90046001600160a01b03166001600160a01b0316633c8a7d8d308f8f856040518563ffffffff1660e01b815260040161483a9493929190615557565b60408051808303816000875af1158015614858573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061487c9190615599565b50505b5050505097509795505050505050565b60006148e4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614c169092919063ffffffff16565b805190915015612f0f57808060200190518101906149029190615b47565b612f0f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610824565b6000826001600160a01b0316846001600160a01b03161115614981579192915b6001600160a01b0384166149c1600160601b600160e01b03606085901b166149a98787615a24565b6001600160a01b0316866001600160a01b03166141b3565b6134809190615745565b6000826001600160a01b0316846001600160a01b031611156149eb579192915b6134806001600160801b038316614a028686615a24565b6001600160a01b0316600160601b6141b3565b6000826001600160a01b0316846001600160a01b03161115614a35579192915b6000614a58856001600160a01b0316856001600160a01b0316600160601b6141b3565b905061306a614a7a8483614a6c8989615a24565b6001600160a01b03166141b3565b614c25565b6000826001600160a01b0316846001600160a01b03161115614a9f579192915b613480614a7a83600160601b614a6c8888615a24565b600054610100900460ff1680614ace575060005460ff16155b614aea5760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614061576000805461ffff19166101011790558015614073576000805461ff001916905550565b600054610100900460ff1680614b38575060005460ff16155b614b545760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614b76576000805461ffff19166101011790555b6036614b828482615baa565b506037614b8f8382615baa565b508015612f0f576000805461ff0019169055505050565b600054610100900460ff1680614bbf575060005460ff16155b614bdb5760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614bfd576000805461ffff19166101011790555b60016065558015614073576000805461ff001916905550565b60606134808484600085614c40565b806001600160801b0381168114614c3b57600080fd5b919050565b606082471015614ca15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610824565b843b614cef5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610824565b600080866001600160a01b03168587604051614d0b9190615c69565b60006040518083038185875af1925050503d8060008114614d48576040519150601f19603f3d011682016040523d82523d6000602084013e614d4d565b606091505b5091509150614d5d828286614d68565b979650505050505050565b60608315614d77575081610847565b825115614d875782518084602001fd5b8160405162461bcd60e51b81526004016108249190614dc5565b60005b83811015614dbc578181015183820152602001614da4565b50506000910152565b6020815260008251806020840152614de4816040850160208701614da1565b601f01601f19169190910160400192915050565b6001600160a01b038116811461407357600080fd5b60008060408385031215614e2057600080fd5b8235614e2b81614df8565b946020939093013593505050565b6001600160a01b0391909116815260200190565b918252602082015260400190565b600080600060608486031215614e7057600080fd5b8335614e7b81614df8565b92506020840135614e8b81614df8565b929592945050506040919091013590565b8060020b811461407357600080fd5b801515811461407357600080fd5b600080600080600060a08688031215614ed157600080fd5b8535614edc81614e9c565b94506020860135614eec81614e9c565b93506040860135614efc81614df8565b9250606086013591506080860135614f1381614eab565b809150509295509295909350565b600060208284031215614f3357600080fd5b813561084781614df8565b60029190910b815260200190565b60008060408385031215614f5f57600080fd5b823591506020830135614f7181614df8565b809150509250929050565b60008060408385031215614f8f57600080fd5b50508035926020909101359150565b61ffff8116811461407357600080fd5b63ffffffff8116811461407357600080fd5b600080600080600060a08688031215614fd857600080fd5b8535614fe381614f9e565b94506020860135614ff381614f9e565b9350604086013561500381614f9e565b9250606086013561501381614fae565b91506080860135614f1381614df8565b600080600080600060a0868803121561503b57600080fd5b853561504681614df8565b945060208601359350604086013561505d81614eab565b9250606086013591506080860135614f1381614df8565b60008083601f84011261508657600080fd5b5081356001600160401b0381111561509d57600080fd5b6020830191508360208285010111156150b557600080fd5b9250929050565b600080600080606085870312156150d257600080fd5b843593506020850135925060408501356001600160401b038111156150f657600080fd5b61510287828801615074565b95989497509550505050565b6000806040838503121561512157600080fd5b823561512c81614df8565b91506020830135614f7181614df8565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561517a5761517a61513c565b604052919050565b600082601f83011261519357600080fd5b81356001600160401b038111156151ac576151ac61513c565b6151bf601f8201601f1916602001615152565b8181528460208386010111156151d457600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060e0888a03121561520c57600080fd5b87356001600160401b038082111561522357600080fd5b61522f8b838c01615182565b985060208a013591508082111561524557600080fd5b506152528a828b01615182565b965050604088013561526381614df8565b9450606088013561527381614f9e565b9350608088013561528381614e9c565b925060a088013561529381614e9c565b915060c08801356152a381614df8565b8091505092959891949750929550565b6000602082840312156152c557600080fd5b813561084781614f9e565b600181811c908216806152e457607f821691505b60208210810361530457634e487b7160e01b600052602260045260246000fd5b50919050565b600080600080600080600060e0888a03121561532557600080fd5b875161533081614df8565b602089015190975061534181614e9c565b604089015190965061535281614f9e565b606089015190955061536381614f9e565b608089015190945061537481614f9e565b60a089015190935060ff8116811461538b57600080fd5b60c08901519092506152a381614eab565b634e487b7160e01b600052601160045260246000fd5b818103818111156106f6576106f661539c565b60208082526022908201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d616e616760408201526132b960f11b606082015260800190565b80516001600160801b0381168114614c3b57600080fd5b600080600080600060a0868803121561543657600080fd5b61543f86615407565b9450602086015193506040860151925061545b60608701615407565b915061546960808701615407565b90509295509295909350565b60006020828403121561548757600080fd5b5051919050565b600294850b81529290930b60208301526001600160801b039081166040830152909116606082015260800190565b808201808211156106f6576106f661539c565b60208082526017908201527647656c61746f666965643a204f6e6c792067656c61746f60481b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526006908201526506d696e7420360d41b604082015260600190565b6001600160a01b03949094168452600292830b6020850152910b60408301526001600160801b0316606082015260a06080820181905260009082015260c00190565b600080604083850312156155ac57600080fd5b505080516020909101519092909150565b6001600160a01b039590951685526020850193909352604084019190915260608301526001600160801b0316608082015260a00190565b60208082526003908201526242505360e81b604082015260600190565b6020808252600f908201526e31b0b6363130b1b59031b0b63632b960891b604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b61ffff8281168282160390808211156156a3576156a361539c565b5092915050565b6020808252600490820152636d42505360e01b604082015260600190565b6000602082840312156156da57600080fd5b815161084781614df8565b600080604083850312156156f857600080fd5b61570183615407565b915061570f60208401615407565b90509250929050565b80820281158282048414176106f6576106f661539c565b634e487b7160e01b600052601260045260246000fd5b6000826157545761575461572f565b500490565b61ffff8181168382160190808211156156a3576156a361539c565b602080825260089082015267686967682066656560c01b604082015260600190565b6000600182016157a8576157a861539c565b5060010190565b6000600160ff1b82016157c4576157c461539c565b5060000390565b60008160020b627fffff1981036157e4576157e461539c565b60000392915050565b6000826157fc576157fc61572f565b500690565b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561585557835163ffffffff1683529284019291840191600101615833565b50909695505050505050565b60006001600160401b0382111561587a5761587a61513c565b5060051b60200190565b8051600681900b8114614c3b57600080fd5b600082601f8301126158a757600080fd5b815160206158bc6158b783615861565b615152565b82815260059290921b840181019181810190868411156158db57600080fd5b8286015b848110156158ff5780516158f281614df8565b83529183019183016158df565b509695505050505050565b6000806040838503121561591d57600080fd5b82516001600160401b038082111561593457600080fd5b818501915085601f83011261594857600080fd5b815160206159586158b783615861565b82815260059290921b8401810191818101908984111561597757600080fd5b948201945b8386101561599c5761598d86615884565b8252948201949082019061597c565b918801519196509093505050808211156159b557600080fd5b506159c285828601615896565b9150509250929050565b6001600160a01b038281168282168181028316929181158285048214176159f5576159f561539c565b50505092915050565b60006001600160a01b0383811680615a1857615a1861572f565b92169190910492915050565b6001600160a01b038281168282160390808211156156a3576156a361539c565b6020808252600d908201526c6869676820736c69707061676560981b604082015260600190565b6001600160a01b038181168382160190808211156156a3576156a361539c565b600080600080600080600080610100898b031215615aa857600080fd5b615ab189615407565b9750602089015180600f0b8114615ac757600080fd5b60408a015160608b015191985096509450615ae460808a01615884565b935060a0890151615af481614df8565b60c08a0151909350615b0581614fae565b60e08a0151909250615b1681614eab565b809150509295985092959890939650565b81810360008312801583831316838312821617156156a3576156a361539c565b600060208284031215615b5957600080fd5b815161084781614eab565b601f821115612f0f57600081815260208120601f850160051c81016020861015615b8b5750805b601f850160051c820191505b81811015613ab357828155600101615b97565b81516001600160401b03811115615bc357615bc361513c565b615bd781615bd184546152d0565b84615b64565b602080601f831160018114615c0c5760008415615bf45750858301515b600019600386901b1c1916600185901b178555613ab3565b600085815260208120601f198616915b82811015615c3b57888601518255948401946001909101908401615c1c565b5085821015615c595787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008251615c7b818460208701614da1565b919091019291505056fec749f9ae947d4734cf1569606a8a347391ae94a063478aa853aeff48ac5f99e88be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efc28ad1de9c0c32e5394ba60323e44d8d9536312236a47231772e448a3e49de42a2646970667358221220a11bde499516b0a2e8e737821292815fcefc66549a9729f24ea128d34ed6027364736f6c63430008130033", + "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106102255760003560e01c8063065756db1461022a57806306fdde0314610246578063095ea7b31461025b5780630dfe16811461027e5780631322d9541461029e57806316f0115b146102b457806318160ddd146102c757806323b872dd146102cf57806324b8fd1b146102e257806331366be4146102f7578063313ce5671461031257806339509351146103215780633d8b30e11461033457806342fb9d4414610349578063481c6a751461035257806354fd4d501461035a578063672152bd1461037e57806370a08231146103a3578063715018a6146103cc578063727dd228146103d457806378ac6357146103f557806394bf804d1461040857806395d89b411461043f5780639894f21a1461044757806399fd808c146104755780639b1344ac14610488578063a457c2d71461049c578063a50b1fe7146104af578063a9059cbb146104c4578063b135c99f146104d7578063b536bd12146104ea578063b670ed7d146104f3578063be93dd5f14610506578063c345445914610519578063cc95353e14610522578063ccdf7a021461053c578063d21220a714610551578063d348799714610564578063d6e7ff3914610577578063dd62ed3e1461058c578063df28408a146105c5578063e25e15e3146105cd578063e4077894146105e0578063eff557a7146105f3578063f2fde38b1461061a578063fa461e331461062d578063fcd3533c14610640575b600080fd5b61023360995481565b6040519081526020015b60405180910390f35b61024e610653565b60405161023d9190614dc5565b61026e610269366004614e0d565b6106e5565b604051901515815260200161023d565b609e54610291906001600160a01b031681565b60405161023d9190614e39565b6102a66106fc565b60405161023d929190614e4d565b609d54610291906001600160a01b031681565b603554610233565b61026e6102dd366004614e5b565b610796565b6102f56102f0366004614eb9565b61084e565b005b6102ff600081565b60405161ffff909116815260200161023d565b6040516012815260200161023d565b61026e61032f366004614e0d565b610c3a565b6097546102ff90600160e01b900461ffff1681565b610233609a5481565b610291610c71565b61024e604051806040016040528060058152602001640312e302e360dc1b81525081565b60985461038e9063ffffffff1681565b60405163ffffffff909116815260200161023d565b6102336103b1366004614f21565b6001600160a01b031660009081526033602052604090205490565b6102f5610c80565b6097546103e890600160b81b900460020b81565b60405161023d9190614f3e565b6102f5610403366004614f4c565b610cd6565b61041b610416366004614f4c565b610e31565b6040805193845260208401929092526001600160801b03169082015260600161023d565b61024e6110ea565b61045a610455366004614f7c565b6110f9565b6040805193845260208401929092529082015260600161023d565b6102f5610483366004614fc0565b611232565b6097546103e890600160a01b900460020b81565b61026e6104aa366004614e0d565b6113f2565b6097546102ff90600160d01b900461ffff1681565b61026e6104d2366004614e0d565b61148d565b6102f56104e5366004615023565b61149a565b610233609b5481565b6102a6610501366004614f21565b61173d565b6102f5610514366004614f4c565b6117d5565b610233609c5481565b60985461029190600160301b90046001600160a01b031681565b6098546102ff90600160201b900461ffff1681565b609f54610291906001600160a01b031681565b6102f56105723660046150bc565b6118bb565b6097546102ff90600160f01b900461ffff1681565b61023361059a36600461510e565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b61023361191f565b6102f56105db3660046151f1565b61192e565b6102f56105ee3660046152b3565b611ba3565b6102917f000000000000000000000000000000000000000000000000000000000000000081565b6102f5610628366004614f21565b611cb0565b6102f561063b3660046150bc565b611d90565b61041b61064e366004614f4c565b611dfa565b606060368054610662906152d0565b80601f016020809104026020016040519081016040528092919081815260200182805461068e906152d0565b80156106db5780601f106106b0576101008083540402835291602001916106db565b820191906000526020600020905b8154815290600101906020018083116106be57829003601f168201915b5050505050905090565b60006106f2338484612114565b5060015b92915050565b600080600080609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610755573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610779919061530a565b50505050509150915061078c8282612239565b9350935050509091565b60006107a38484846124b9565b6001600160a01b03841660009081526034602090815260408083203384529091529020548281101561082d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610841853361083c86856153b2565b612114565b60019150505b9392505050565b33610857610c71565b6001600160a01b03161461087d5760405162461bcd60e51b8152600401610824906153c5565b600080600061088b60355490565b1115610bca57609d546001600160a01b031663514ea4bf6108aa61267f565b6040518263ffffffff1660e01b81526004016108c891815260200190565b60a060405180830381865afa1580156108e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610909919061541e565b5092945050506001600160801b03831615905061099257609754600090819061094890600160a01b8104600290810b91600160b81b9004900b866126da565b9350935050506109588282612a0d565b6109628282612ae6565b6040519193509150600080516020615ce6833981519152906109879084908490614e4d565b60405180910390a150505b6097805462ffffff888116600160b81b0262ffffff60b81b19918b16600160a01b029190911665ffffffffffff60a01b1990921691909117179055609b54609954609e546040516370a0823160e01b815260009392916001600160a01b0316906370a0823190610a06903090600401614e39565b602060405180830381865afa158015610a23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a479190615475565b610a5191906153b2565b610a5b91906153b2565b609c54609a54609f546040516370a0823160e01b81529394506000936001600160a01b03909116906370a0823190610a97903090600401614e39565b602060405180830381865afa158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad89190615475565b610ae291906153b2565b610aec91906153b2565b9050610afd898984848b8b8b612b80565b609d546001600160a01b031663514ea4bf610b1661267f565b6040518263ffffffff1660e01b8152600401610b3491815260200190565b60a060405180830381865afa158015610b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b75919061541e565b509295505050506001600160801b038316610bc35760405162461bcd60e51b815260206004820152600e60248201526d06e657720706f736974696f6e20360941b6044820152606401610824565b5050610c06565b6097805462ffffff888116600160b81b0262ffffff60b81b19918b16600160a01b029190911665ffffffffffff60a01b19909216919091171790555b600080516020615c8683398151915287878484604051610c29949392919061548e565b60405180910390a150505050505050565b3360008181526034602090815260408083206001600160a01b038716845290915281205490916106f291859061083c9086906154bc565b6097546001600160a01b031690565b33610c89610c71565b6001600160a01b031614610caf5760405162461bcd60e51b8152600401610824906153c5565b60988054600160201b600160d01b031916905560006099819055609a55610cd4612d21565b565b8181336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610d205760405162461bcd60e51b8152600401610824906154cf565b600080610d33609954609a548888612d88565b60006099819055609a5590925090508115610d6d57609854609e54610d6d916001600160a01b0391821691600160301b9091041684612eac565b8015610d9857609854609f54610d98916001600160a01b0391821691600160301b9091041683612eac565b505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601610df757610df26001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683612f14565b610e2b565b610e2b6001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612eac565b50505050565b6000806000600260655403610e585760405162461bcd60e51b815260040161082490615500565b600260655584610e7a5760405162461bcd60e51b815260040161082490615537565b6000610e8560355490565b90506000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015610edc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f00919061530a565b50505050505090506000821115610f4157600080610f1c6106fc565b91509150610f2b828a8661302a565b9650610f38818a8661302a565b95505050610f87565b609754610f81908290610f5d90600160a01b900460020b613073565b609754610f7390600160b81b900460020b613073565b610f7c8b613488565b6134f1565b90955093505b8415610fa557609e54610fa5906001600160a01b031633308861358c565b8315610fc357609f54610fc3906001600160a01b031633308761358c565b609754610ffc908290610fdf90600160a01b900460020b613073565b609754610ff590600160b81b900460020b613073565b88886135c4565b609d54609754604051633c8a7d8d60e01b81529295506001600160a01b0390911691633c8a7d8d9161104c913091600160a01b8104600290810b92600160b81b909204900b908990600401615557565b60408051808303816000875af115801561106a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108e9190615599565b505061109a8688613686565b7f55801cfe493000b734571da1694b21e7f66b11e8ce9fdaa0524ecb59105e73e786888787876040516110d19594939291906155bd565b60405180910390a1505060016065819055509250925092565b606060378054610662906152d0565b60008060008061110860355490565b905080156111275761111b818787613753565b9195509350915061122a565b609d5460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e09291908290030181865afa158015611171573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611195919061530a565b505050505050905060006111db826111be609760149054906101000a900460020b60020b613073565b6097546111d490600160b81b900460020b613073565b8b8b6135c4565b6097546001600160801b038216955090915061122290839061120690600160a01b900460020b613073565b60975461121c90600160b81b900460020b613073565b846134f1565b909650945050505b509250925092565b3361123b610c71565b6001600160a01b0316146112615760405162461bcd60e51b8152600401610824906153c5565b6127108461ffff1611156112875760405162461bcd60e51b8152600401610824906155f4565b6127108561ffff1611156112ad5760405162461bcd60e51b8152600401610824906155f4565b6127108361ffff1611156112d35760405162461bcd60e51b8152600401610824906155f4565b6040805161ffff8781168252868116602083015285168183015263ffffffff8416606082015290517f0b7615006627cf7664941bc288d4641731f895e102f95cb8690583ad7508faa89181900360800190a161ffff85161561134a576097805461ffff60d01b1916600160d01b61ffff8816021790555b61ffff84161561136f576097805461ffff60e01b1916600160e01b61ffff8716021790555b61ffff83161561139557609780546001600160f01b0316600160f01b61ffff8616021790555b63ffffffff8216156113b7576098805463ffffffff191663ffffffff84161790555b6001600160a01b038116156113eb5760988054600160301b600160d01b031916600160301b6001600160a01b038416021790555b5050505050565b3360009081526034602090815260408083206001600160a01b0386168452909152812054828110156114745760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610824565b611483338561083c86856153b2565b5060019392505050565b60006106f23384846124b9565b8181336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114e45760405162461bcd60e51b8152600401610824906154cf565b85156114f4576114f48786613862565b609d546000906001600160a01b031663514ea4bf61151061267f565b6040518263ffffffff1660e01b815260040161152e91815260200190565b60a060405180830381865afa15801561154b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156f919061541e565b505050509050611583818989898989613abb565b609d546000906001600160a01b031663514ea4bf61159f61267f565b6040518263ffffffff1660e01b81526004016115bd91815260200190565b60a060405180830381865afa1580156115da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fe919061541e565b505050509050816001600160801b0316816001600160801b03161161165f5760405162461bcd60e51b81526020600482015260176024820152766c6971756964697479206d75737420696e63726561736560481b6044820152606401610824565b609754604051600080516020615c868339815191529161169991600160a01b8204600290810b92600160b81b9004900b908690869061548e565b60405180910390a1505073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03821601611700576116fb6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683612f14565b611734565b6117346001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612eac565b50505050505050565b6000806000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015611795573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b9919061530a565b50505050509150506117cb8482612239565b9250925050915091565b8181336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461181f5760405162461bcd60e51b8152600401610824906154cf565b600080611832609b54609c548888612d88565b6000609b819055609c559092509050811561187e57609e5461187e906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000084612eac565b8015610d9857609f54610d98906001600160a01b03167f000000000000000000000000000000000000000000000000000000000000000083612eac565b609d546001600160a01b031633146118e55760405162461bcd60e51b815260040161082490615611565b831561190257609e54611902906001600160a01b03163386612eac565b8215610e2b57609f54610e2b906001600160a01b03163385612eac565b600061192961267f565b905090565b600054610100900460ff1680611947575060005460ff16155b6119635760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015611985576000805461ffff19166101011790555b6119926000612710615688565b61ffff168561ffff1611156119b95760405162461bcd60e51b8152600401610824906156aa565b609d80546001600160a01b0319166001600160a01b03881690811790915560408051630dfe168160e01b81529051630dfe1681916004808201926020929091908290030181865afa158015611a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a3691906156c8565b609e80546001600160a01b0319166001600160a01b03928316179055609d546040805163d21220a760e01b81529051919092169163d21220a79160048083019260209291908290030181865afa158015611a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab891906156c8565b609f80546001600160a01b039283166001600160a01b0319918216179091556098805460978054948716600160301b8102600160301b600160d01b031963ffffffff1961ffff8e16600160201b021665ffffffffffff199095169490941761012c17939093169290921790925562ffffff878116600160b81b02909316600165ffffff00000160a01b0319938916600160a01b02600165ffffff00000160a01b0390951694909417643e800c801960d31b179290921692909217179055611b7f8888613f83565b611b87614002565b8015611b99576000805461ff00191690555b5050505050505050565b33611bac610c71565b6001600160a01b031614611bd25760405162461bcd60e51b8152600401610824906153c5565b609854600160201b900461ffff1615611c135760405162461bcd60e51b815260206004820152600360248201526266656560e81b6044820152606401610824565b60008161ffff16118015611c3b5750611c2f6000612710615688565b61ffff168161ffff1611155b611c575760405162461bcd60e51b8152600401610824906156aa565b60405161ffff821681527f8a1ffb520c943072e654fc414750dbefad5b6d6311339d041901c4752782fad39060200160405180910390a16098805461ffff909216600160201b0261ffff60201b19909216919091179055565b33611cb9610c71565b6001600160a01b031614611cdf5760405162461bcd60e51b8152600401610824906153c5565b6001600160a01b038116611d465760405162461bcd60e51b815260206004820152602860248201527f4f776e61626c653a206e6577206d616e6167657220697320746865207a65726f604482015267206164647265737360c01b6064820152608401610824565b6097546040516001600160a01b03808416921690600080516020615ca683398151915290600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b609d546001600160a01b03163314611dba5760405162461bcd60e51b815260040161082490615611565b6000841315611dda57609e54610df2906001600160a01b03163386612eac565b6000831315610e2b57609f54610e2b906001600160a01b03163385612eac565b6000806000600260655403611e215760405162461bcd60e51b815260040161082490615500565b600260655584611e5c5760405162461bcd60e51b815260206004820152600660248201526506275726e20360d41b6044820152606401610824565b6000611e6760355490565b609d549091506000906001600160a01b031663514ea4bf611e8661267f565b6040518263ffffffff1660e01b8152600401611ea491815260200190565b60a060405180830381865afa158015611ec1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee5919061541e565b505050509050611ef53388614076565b6000611f0b88836001600160801b0316856141b3565b9050611f1681613488565b609754909450600090819081908190611f4590600160a01b8104600290810b91600160b81b9004900b8a6126da565b9350935093509350611f578282612a0d565b611f618282612ae6565b6040519193509150600080516020615ce683398151915290611f869084908490614e4d565b60405180910390a1609b54609954609e546040516370a0823160e01b815261203293929188916001600160a01b03909116906370a0823190611fcc903090600401614e39565b602060405180830381865afa158015611fe9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200d9190615475565b61201791906153b2565b61202191906153b2565b61202b91906153b2565b8d896141b3565b61203c90856154bc565b609c54609a54609f546040516370a0823160e01b8152939d506120799387916001600160a01b0316906370a0823190611fcc903090600401614e39565b61208390846154bc565b985089156120a257609e546120a2906001600160a01b03168c8c612eac565b88156120bf57609f546120bf906001600160a01b03168c8b612eac565b7f7239dff1718b550db7f36cbf69c665cfeb56d0e96b4fb76a5cba712961b655098b8d8c8c8c6040516120f69594939291906155bd565b60405180910390a15050505050505060016065819055509250925092565b6001600160a01b0383166121765760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610824565b6001600160a01b0382166121d75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610824565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b609d546000908190819081908190819081906001600160a01b031663514ea4bf61226161267f565b6040518263ffffffff1660e01b815260040161227f91815260200190565b60a060405180830381865afa15801561229c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c0919061541e565b94509450945094509450612305896122e9609760149054906101000a900460020b60020b613073565b6097546122ff90600160b81b900460020b613073565b886134f1565b909750955060006001600160801b0383166123236001878c8a614261565b61232d91906154bc565b90506000826001600160801b03166123486000878d8b614261565b61235291906154bc565b905061235e8282612ae6565b609b54609954609e546040516370a0823160e01b8152949650929450909290916001600160a01b0316906370a082319061239c903090600401614e39565b602060405180830381865afa1580156123b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123dd9190615475565b6123e790856154bc565b6123f191906153b2565b6123fb91906153b2565b612405908a6154bc565b609c54609a54609f546040516370a0823160e01b8152939c50919290916001600160a01b0316906370a0823190612440903090600401614e39565b602060405180830381865afa15801561245d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124819190615475565b61248b90846154bc565b61249591906153b2565b61249f91906153b2565b6124a990896154bc565b9750505050505050509250929050565b6001600160a01b03831661251d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610824565b6001600160a01b03821661257f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610824565b6001600160a01b038316600090815260336020526040902054818110156125f75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610824565b61260182826153b2565b6001600160a01b0380861660009081526033602052604080822093909355908516815290812080548492906126379084906154bc565b92505081905550826001600160a01b0316846001600160a01b0316600080516020615cc68339815191528460405161267191815260200190565b60405180910390a350505050565b6097546040516001600160601b03193060601b166020820152600160a01b820460e890811b6034830152600160b81b90920490911b6037820152600090603a0160405160208183030381529060405280519060200120905090565b609e546040516370a0823160e01b815260009182918291829182916001600160a01b0316906370a0823190612713903090600401614e39565b602060405180830381865afa158015612730573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127549190615475565b609f546040516370a0823160e01b81529192506000916001600160a01b03909116906370a082319061278a903090600401614e39565b602060405180830381865afa1580156127a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127cb9190615475565b609d5460405163a34123a760e01b815260028c810b60048301528b900b60248201526001600160801b038a1660448201529192506001600160a01b03169063a34123a79060640160408051808303816000875af1158015612830573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128549190615599565b609d546040516309e3d67b60e31b815230600482015260028d810b60248301528c900b60448201526001600160801b036064820181905260848201529298509096506001600160a01b031690634f1eb3d89060a40160408051808303816000875af11580156128c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128eb91906156e5565b5050609e546040516370a0823160e01b8152879184916001600160a01b03909116906370a0823190612921903090600401614e39565b602060405180830381865afa15801561293e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129629190615475565b61296c91906153b2565b61297691906153b2565b609f546040516370a0823160e01b8152919550869183916001600160a01b0316906370a08231906129ab903090600401614e39565b602060405180830381865afa1580156129c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ec9190615475565b6129f691906153b2565b612a0091906153b2565b9250505093509350935093565b612710612a1b600084615718565b612a259190615745565b609b6000828254612a3691906154bc565b909155506127109050612a4a600083615718565b612a549190615745565b609c6000828254612a6591906154bc565b909155505060985461271090612a8690600160201b900461ffff1684615718565b612a909190615745565b60996000828254612aa191906154bc565b909155505060985461271090612ac290600160201b900461ffff1683615718565b612acc9190615745565b609a6000828254612add91906154bc565b90915550505050565b6000806000612710609860049054906101000a900461ffff166000612b0b9190615759565b612b199061ffff1687615718565b612b239190615745565b60985490915060009061271090612b4590600160201b900461ffff1683615759565b612b539061ffff1687615718565b612b5d9190615745565b9050612b6982876153b2565b9350612b7581866153b2565b925050509250929050565b609d5460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e09291908290030181865afa158015612bca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bee919061530a565b50505050505090506000612c1b82612c088b60020b613073565b612c148b60020b613073565b8a8a6135c4565b90506001600160801b03811615612cc957609d54604051633c8a7d8d60e01b815260009182916001600160a01b0390911690633c8a7d8d90612c679030908f908f908990600401615557565b60408051808303816000875af1158015612c85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ca99190615599565b9092509050612cb8828a6153b2565b9850612cc481896153b2565b975050505b6000612cf86127108686612cdd5789612cdf565b8a5b612ce99190615718565b612cf39190615745565b61460d565b90506000811315612d1557612d128a8a8a8a858b8a614673565b50505b50505050505050505050565b33612d2a610c71565b6001600160a01b031614612d505760405162461bcd60e51b8152600401610824906153c5565b6097546040516000916001600160a01b031690600080516020615ca6833981519152908390a3609780546001600160a01b0319169055565b609e5460009081906001600160a01b0390811690841603612dfd57609754849061271090612dc190600160e01b900461ffff1689615718565b612dcb9190615745565b1015612de95760405162461bcd60e51b815260040161082490615774565b612df384876153b2565b9150849050612ea3565b609f546001600160a01b0390811690841603612e6d57609754849061271090612e3190600160e01b900461ffff1688615718565b612e3b9190615745565b1015612e595760405162461bcd60e51b815260040161082490615774565b612e6384866153b2565b9050859150612ea3565b60405162461bcd60e51b815260206004820152600b60248201526a3bb937b733903a37b5b2b760a91b6044820152606401610824565b94509492505050565b6040516001600160a01b038316602482015260448101829052612f0f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261488f565b505050565b80471015612f645760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610824565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612fb1576040519150601f19603f3d011682016040523d82523d6000602084013e612fb6565b606091505b5050905080612f0f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152608401610824565b60006130378484846141b3565b9050600082806130495761304961572f565b848609111561084757600019811061306057600080fd5b8061306a81615796565b95945050505050565b60008060008360020b1261308a578260020b613097565b8260020b613097906157af565b90506130a6620d89e7196157cb565b60020b8111156130dc5760405162461bcd60e51b81526020600482015260016024820152601560fa1b6044820152606401610824565b6000816001166000036130f357600160801b613105565b6ffffcb933bd6fad37aa2d162d1a5940015b6001600160881b03169050600282161561313a576080613135826ffff97272373d413259a46990580e213a615718565b901c90505b600482161561316457608061315f826ffff2e50f5f656932ef12357cf3c7fdcc615718565b901c90505b600882161561318e576080613189826fffe5caca7e10e4e61c3624eaa0941cd0615718565b901c90505b60108216156131b85760806131b3826fffcb9843d60f6159c9db58835c926644615718565b901c90505b60208216156131e25760806131dd826fff973b41fa98c081472e6896dfb254c0615718565b901c90505b604082161561320c576080613207826fff2ea16466c96a3843ec78b326b52861615718565b901c90505b6080821615613236576080613231826ffe5dee046a99a2a811c461f1969c3053615718565b901c90505b61010082161561326157608061325c826ffcbe86c7900a88aedcffc83b479aa3a4615718565b901c90505b61020082161561328c576080613287826ff987a7253ac413176f2b074cf7815e54615718565b901c90505b6104008216156132b75760806132b2826ff3392b0822b70005940c7a398e4b70f3615718565b901c90505b6108008216156132e25760806132dd826fe7159475a2c29b7443b29c7fa6e889d9615718565b901c90505b61100082161561330d576080613308826fd097f3bdfd2022b8845ad8f792aa5825615718565b901c90505b612000821615613338576080613333826fa9f746462d870fdf8a65dc1f90e061e5615718565b901c90505b61400082161561336357608061335e826f70d869a156d2a1b890bb3df62baf32f7615718565b901c90505b61800082161561338e576080613389826f31be135f97d08fd981231505542fcfa6615718565b901c90505b620100008216156133ba5760806133b5826f09aa508b5b7a84e1c677de54f3e99bc9615718565b901c90505b620200008216156133e55760806133e0826e5d6af8dedb81196699c329225ee604615718565b901c90505b6204000082161561340f57608061340a826d2216e584f5fa1ea926041bedfe98615718565b901c90505b62080000821615613437576080613432826b048a170391f7dc42444e8fa2615718565b901c90505b60008460020b13156134525761344f81600019615745565b90505b613460600160201b826157ed565b1561346c57600161346f565b60005b6134809060ff16602083901c6154bc565b949350505050565b6000600160801b82106134ed5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20316044820152663238206269747360c81b6064820152608401610824565b5090565b600080836001600160a01b0316856001600160a01b03161115613512579293925b846001600160a01b0316866001600160a01b03161161353d57613536858585614961565b9150612ea3565b836001600160a01b0316866001600160a01b0316101561357657613562868585614961565b915061356f8587856149cb565b9050612ea3565b6135818585856149cb565b905094509492505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610e2b9085906323b872dd60e01b90608401612ed8565b6000836001600160a01b0316856001600160a01b031611156135e4579293925b846001600160a01b0316866001600160a01b03161161360f57613608858585614a15565b905061306a565b836001600160a01b0316866001600160a01b03161015613671576000613636878686614a15565b90506000613645878986614a7f565b9050806001600160801b0316826001600160801b0316106136665780613668565b815b9250505061306a565b61367c858584614a7f565b9695505050505050565b6001600160a01b0382166136dc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610824565b80603560008282546136ee91906154bc565b90915550506001600160a01b0382166000908152603360205260408120805483929061371b9084906154bc565b90915550506040518181526001600160a01b03831690600090600080516020615cc68339815191529060200160405180910390a35050565b60008060008060006137636106fc565b915091508160001480156137775750600081115b1561378e576137878689836141b3565b925061383d565b8015801561379c5750600082115b156137ac576137878789846141b3565b811580156137b8575080155b156137df5760405162461bcd60e51b81526020600482015260006024820152604401610824565b60006137ec888a856141b3565b905060006137fb888b856141b3565b905060008211801561380d5750600081115b6138295760405162461bcd60e51b815260040161082490615537565b8082106138365780613838565b815b945050505b61384883838a61302a565b945061385583828a61302a565b9350505093509350939050565b6040805160028082526060820183526000926020830190803683375050609854825192935063ffffffff16918391506000906138a0576138a0615801565b602002602001019063ffffffff16908163ffffffff16815250506000816001815181106138cf576138cf615801565b63ffffffff90921660209283029190910190910152609d5460405163883bdbfd60e01b81526000916001600160a01b03169063883bdbfd90613915908590600401615817565b600060405180830381865afa158015613932573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261395a919081019061590a565b509050805160021461399a5760405162461bcd60e51b815260206004820152600960248201526830b93930bc903632b760b91b6044820152606401610824565b6098548151600091829163ffffffff90911660060b90849083906139c0576139c0615801565b6020026020010151846001815181106139db576139db615801565b60200260200101510360060b816139f4576139f461572f565b059050613a038160020b613073565b6097549092506000915061271090613a2690600160f01b900461ffff16846159cc565b613a3091906159fe565b90508415613a7857613a428183615a24565b6001600160a01b0316866001600160a01b03161015613a735760405162461bcd60e51b815260040161082490615a44565b613ab3565b613a828183615a6b565b6001600160a01b0316866001600160a01b03161115613ab35760405162461bcd60e51b815260040161082490615a44565b505050505050565b609b54609954609e546040516370a0823160e01b815260009392916001600160a01b0316906370a0823190613af4903090600401614e39565b602060405180830381865afa158015613b11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b359190615475565b613b3f91906153b2565b613b4991906153b2565b609c54609a54609f546040516370a0823160e01b81529394506000936001600160a01b03909116906370a0823190613b85903090600401614e39565b602060405180830381865afa158015613ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bc69190615475565b613bd091906153b2565b613bda91906153b2565b6097549091506000908190613c0590600160a01b8104600290810b91600160b81b9004900b8c6126da565b935093505050613c158282612a0d565b613c1f8282612ae6565b6040519193509150600080516020615ce683398151915290613c449084908490614e4d565b60405180910390a1613c5684836154bc565b9150613c6283826154bc565b609e549091506001600160a01b0390811690861603613def57609754869061271090613c9990600160d01b900461ffff1685615718565b613ca39190615745565b1015613cc15760405162461bcd60e51b815260040161082490615774565b609b54609954609e546040516370a0823160e01b8152899392916001600160a01b0316906370a0823190613cf9903090600401614e39565b602060405180830381865afa158015613d16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d3a9190615475565b613d4491906153b2565b613d4e91906153b2565b613d5891906153b2565b609c54609a54609f546040516370a0823160e01b8152939750919290916001600160a01b0316906370a0823190613d93903090600401614e39565b602060405180830381865afa158015613db0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dd49190615475565b613dde91906153b2565b613de891906153b2565b9250613f5c565b609f546001600160a01b0390811690861603612e6d57609754869061271090613e2390600160d01b900461ffff1684615718565b613e2d9190615745565b1015613e4b5760405162461bcd60e51b815260040161082490615774565b609b54609954609e546040516370a0823160e01b81526001600160a01b03909116906370a0823190613e81903090600401614e39565b602060405180830381865afa158015613e9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ec29190615475565b613ecc91906153b2565b613ed691906153b2565b609c54609a54609f546040516370a0823160e01b815293975089936001600160a01b03909116906370a0823190613f11903090600401614e39565b602060405180830381865afa158015613f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f529190615475565b613dd491906153b2565b609754612d1590600160a01b8104600290810b91600160b81b9004900b86868d8d8d612b80565b600054610100900460ff1680613f9c575060005460ff16155b613fb85760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015613fda576000805461ffff19166101011790555b613fe2614ab5565b613fec8383614b1f565b8015612f0f576000805461ff0019169055505050565b600054610100900460ff168061401b575060005460ff16155b6140375760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614059576000805461ffff19166101011790555b614061614ba6565b8015614073576000805461ff00191690555b50565b6001600160a01b0382166140d65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610824565b6001600160a01b0382166000908152603360205260409020548181101561414a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610824565b61415482826153b2565b6001600160a01b038416600090815260336020526040812091909155603580548492906141829084906153b2565b90915550506040518281526000906001600160a01b03851690600080516020615cc68339815191529060200161222c565b60008080600019858709858702925082811083820303915050806000036141ec57600084116141e157600080fd5b508290049050610847565b8084116141f857600080fd5b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b600080600080871561440157609d60009054906101000a90046001600160a01b03166001600160a01b031663f30583996040518163ffffffff1660e01b8152600401602060405180830381865afa1580156142c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142e49190615475565b609d5460975460405163f30dba9360e01b81529293506001600160a01b039091169163f30dba939161432491600160a01b90910460020b90600401614f3e565b61010060405180830381865afa158015614342573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143669190615a8b565b5050609d5460975460405163f30dba9360e01b8152959a506001600160a01b03909116965063f30dba9395506143af94600160b81b90910460020b93506004019150614f3e9050565b61010060405180830381865afa1580156143cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143f19190615a8b565b5093975061458f95505050505050565b609d60009054906101000a90046001600160a01b03166001600160a01b031663461413196040518163ffffffff1660e01b8152600401602060405180830381865afa158015614454573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144789190615475565b609d5460975460405163f30dba9360e01b81529293506001600160a01b039091169163f30dba93916144b891600160a01b90910460020b90600401614f3e565b61010060405180830381865afa1580156144d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144fa9190615a8b565b5050609d5460975460405163f30dba9360e01b8152949a506001600160a01b03909116965063f30dba9395506145429450600160b81b900460020b926004019150614f3e9050565b61010060405180830381865afa158015614560573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145849190615a8b565b509297505050505050505b609754600090600160a01b9004600290810b9088900b126145b15750826145b6565b508281035b609754600090600160b81b9004600290810b9089900b12156145d95750826145de565b508282035b8183038190036145fe6001600160801b0389168b8303600160801b6141b3565b9b9a5050505050505050505050565b6000600160ff1b82106134ed5760405162461bcd60e51b815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604482015267371034b73a191a9b60c11b6064820152608401610824565b609d54604051630251596160e31b81523060048201528215156024820152604481018590526001600160a01b03848116606483015260a06084830152600060a4830181905292839283928392169063128acb089060c40160408051808303816000875af11580156146e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061470c9190615599565b915091508161471a8a61460d565b6147249190615b27565b9350806147308961460d565b61473a9190615b27565b92506000609d60009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015614791573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147b5919061530a565b505050505050905060006147e2826147cf8f60020b613073565b6147db8f60020b613073565b89896135c4565b90506001600160801b0381161561487f57609d60009054906101000a90046001600160a01b03166001600160a01b0316633c8a7d8d308f8f856040518563ffffffff1660e01b815260040161483a9493929190615557565b60408051808303816000875af1158015614858573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061487c9190615599565b50505b5050505097509795505050505050565b60006148e4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614c169092919063ffffffff16565b805190915015612f0f57808060200190518101906149029190615b47565b612f0f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610824565b6000826001600160a01b0316846001600160a01b03161115614981579192915b6001600160a01b0384166149c1600160601b600160e01b03606085901b166149a98787615a24565b6001600160a01b0316866001600160a01b03166141b3565b6134809190615745565b6000826001600160a01b0316846001600160a01b031611156149eb579192915b6134806001600160801b038316614a028686615a24565b6001600160a01b0316600160601b6141b3565b6000826001600160a01b0316846001600160a01b03161115614a35579192915b6000614a58856001600160a01b0316856001600160a01b0316600160601b6141b3565b905061306a614a7a8483614a6c8989615a24565b6001600160a01b03166141b3565b614c25565b6000826001600160a01b0316846001600160a01b03161115614a9f579192915b613480614a7a83600160601b614a6c8888615a24565b600054610100900460ff1680614ace575060005460ff16155b614aea5760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614061576000805461ffff19166101011790558015614073576000805461ff001916905550565b600054610100900460ff1680614b38575060005460ff16155b614b545760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614b76576000805461ffff19166101011790555b6036614b828482615baa565b506037614b8f8382615baa565b508015612f0f576000805461ff0019169055505050565b600054610100900460ff1680614bbf575060005460ff16155b614bdb5760405162461bcd60e51b81526004016108249061563a565b600054610100900460ff16158015614bfd576000805461ffff19166101011790555b60016065558015614073576000805461ff001916905550565b60606134808484600085614c40565b806001600160801b0381168114614c3b57600080fd5b919050565b606082471015614ca15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610824565b843b614cef5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610824565b600080866001600160a01b03168587604051614d0b9190615c69565b60006040518083038185875af1925050503d8060008114614d48576040519150601f19603f3d011682016040523d82523d6000602084013e614d4d565b606091505b5091509150614d5d828286614d68565b979650505050505050565b60608315614d77575081610847565b825115614d875782518084602001fd5b8160405162461bcd60e51b81526004016108249190614dc5565b60005b83811015614dbc578181015183820152602001614da4565b50506000910152565b6020815260008251806020840152614de4816040850160208701614da1565b601f01601f19169190910160400192915050565b6001600160a01b038116811461407357600080fd5b60008060408385031215614e2057600080fd5b8235614e2b81614df8565b946020939093013593505050565b6001600160a01b0391909116815260200190565b918252602082015260400190565b600080600060608486031215614e7057600080fd5b8335614e7b81614df8565b92506020840135614e8b81614df8565b929592945050506040919091013590565b8060020b811461407357600080fd5b801515811461407357600080fd5b600080600080600060a08688031215614ed157600080fd5b8535614edc81614e9c565b94506020860135614eec81614e9c565b93506040860135614efc81614df8565b9250606086013591506080860135614f1381614eab565b809150509295509295909350565b600060208284031215614f3357600080fd5b813561084781614df8565b60029190910b815260200190565b60008060408385031215614f5f57600080fd5b823591506020830135614f7181614df8565b809150509250929050565b60008060408385031215614f8f57600080fd5b50508035926020909101359150565b61ffff8116811461407357600080fd5b63ffffffff8116811461407357600080fd5b600080600080600060a08688031215614fd857600080fd5b8535614fe381614f9e565b94506020860135614ff381614f9e565b9350604086013561500381614f9e565b9250606086013561501381614fae565b91506080860135614f1381614df8565b600080600080600060a0868803121561503b57600080fd5b853561504681614df8565b945060208601359350604086013561505d81614eab565b9250606086013591506080860135614f1381614df8565b60008083601f84011261508657600080fd5b5081356001600160401b0381111561509d57600080fd5b6020830191508360208285010111156150b557600080fd5b9250929050565b600080600080606085870312156150d257600080fd5b843593506020850135925060408501356001600160401b038111156150f657600080fd5b61510287828801615074565b95989497509550505050565b6000806040838503121561512157600080fd5b823561512c81614df8565b91506020830135614f7181614df8565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561517a5761517a61513c565b604052919050565b600082601f83011261519357600080fd5b81356001600160401b038111156151ac576151ac61513c565b6151bf601f8201601f1916602001615152565b8181528460208386010111156151d457600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060e0888a03121561520c57600080fd5b87356001600160401b038082111561522357600080fd5b61522f8b838c01615182565b985060208a013591508082111561524557600080fd5b506152528a828b01615182565b965050604088013561526381614df8565b9450606088013561527381614f9e565b9350608088013561528381614e9c565b925060a088013561529381614e9c565b915060c08801356152a381614df8565b8091505092959891949750929550565b6000602082840312156152c557600080fd5b813561084781614f9e565b600181811c908216806152e457607f821691505b60208210810361530457634e487b7160e01b600052602260045260246000fd5b50919050565b600080600080600080600060e0888a03121561532557600080fd5b875161533081614df8565b602089015190975061534181614e9c565b604089015190965061535281614f9e565b606089015190955061536381614f9e565b608089015190945061537481614f9e565b60a089015190935060ff8116811461538b57600080fd5b60c08901519092506152a381614eab565b634e487b7160e01b600052601160045260246000fd5b818103818111156106f6576106f661539c565b60208082526022908201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d616e616760408201526132b960f11b606082015260800190565b80516001600160801b0381168114614c3b57600080fd5b600080600080600060a0868803121561543657600080fd5b61543f86615407565b9450602086015193506040860151925061545b60608701615407565b915061546960808701615407565b90509295509295909350565b60006020828403121561548757600080fd5b5051919050565b600294850b81529290930b60208301526001600160801b039081166040830152909116606082015260800190565b808201808211156106f6576106f661539c565b60208082526017908201527647656c61746f666965643a204f6e6c792067656c61746f60481b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526006908201526506d696e7420360d41b604082015260600190565b6001600160a01b03949094168452600292830b6020850152910b60408301526001600160801b0316606082015260a06080820181905260009082015260c00190565b600080604083850312156155ac57600080fd5b505080516020909101519092909150565b6001600160a01b039590951685526020850193909352604084019190915260608301526001600160801b0316608082015260a00190565b60208082526003908201526242505360e81b604082015260600190565b6020808252600f908201526e31b0b6363130b1b59031b0b63632b960891b604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b61ffff8281168282160390808211156156a3576156a361539c565b5092915050565b6020808252600490820152636d42505360e01b604082015260600190565b6000602082840312156156da57600080fd5b815161084781614df8565b600080604083850312156156f857600080fd5b61570183615407565b915061570f60208401615407565b90509250929050565b80820281158282048414176106f6576106f661539c565b634e487b7160e01b600052601260045260246000fd5b6000826157545761575461572f565b500490565b61ffff8181168382160190808211156156a3576156a361539c565b602080825260089082015267686967682066656560c01b604082015260600190565b6000600182016157a8576157a861539c565b5060010190565b6000600160ff1b82016157c4576157c461539c565b5060000390565b60008160020b627fffff1981036157e4576157e461539c565b60000392915050565b6000826157fc576157fc61572f565b500690565b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561585557835163ffffffff1683529284019291840191600101615833565b50909695505050505050565b60006001600160401b0382111561587a5761587a61513c565b5060051b60200190565b8051600681900b8114614c3b57600080fd5b600082601f8301126158a757600080fd5b815160206158bc6158b783615861565b615152565b82815260059290921b840181019181810190868411156158db57600080fd5b8286015b848110156158ff5780516158f281614df8565b83529183019183016158df565b509695505050505050565b6000806040838503121561591d57600080fd5b82516001600160401b038082111561593457600080fd5b818501915085601f83011261594857600080fd5b815160206159586158b783615861565b82815260059290921b8401810191818101908984111561597757600080fd5b948201945b8386101561599c5761598d86615884565b8252948201949082019061597c565b918801519196509093505050808211156159b557600080fd5b506159c285828601615896565b9150509250929050565b6001600160a01b038281168282168181028316929181158285048214176159f5576159f561539c565b50505092915050565b60006001600160a01b0383811680615a1857615a1861572f565b92169190910492915050565b6001600160a01b038281168282160390808211156156a3576156a361539c565b6020808252600d908201526c6869676820736c69707061676560981b604082015260600190565b6001600160a01b038181168382160190808211156156a3576156a361539c565b600080600080600080600080610100898b031215615aa857600080fd5b615ab189615407565b9750602089015180600f0b8114615ac757600080fd5b60408a015160608b015191985096509450615ae460808a01615884565b935060a0890151615af481614df8565b60c08a0151909350615b0581614fae565b60e08a0151909250615b1681614eab565b809150509295985092959890939650565b81810360008312801583831316838312821617156156a3576156a361539c565b600060208284031215615b5957600080fd5b815161084781614eab565b601f821115612f0f57600081815260208120601f850160051c81016020861015615b8b5750805b601f850160051c820191505b81811015613ab357828155600101615b97565b81516001600160401b03811115615bc357615bc361513c565b615bd781615bd184546152d0565b84615b64565b602080601f831160018114615c0c5760008415615bf45750858301515b600019600386901b1c1916600185901b178555613ab3565b600085815260208120601f198616915b82811015615c3b57888601518255948401946001909101908401615c1c565b5085821015615c595787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008251615c7b818460208701614da1565b919091019291505056fec749f9ae947d4734cf1569606a8a347391ae94a063478aa853aeff48ac5f99e88be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efc28ad1de9c0c32e5394ba60323e44d8d9536312236a47231772e448a3e49de42a2646970667358221220a11bde499516b0a2e8e737821292815fcefc66549a9729f24ea128d34ed6027364736f6c63430008130033", + "devdoc": { + "events": { + "Approval(address,address,uint256)": { + "details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance." + }, + "Transfer(address,address,uint256)": { + "details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero." + } + }, + "kind": "dev", + "methods": { + "allowance(address,address)": { + "details": "See {IERC20-allowance}." + }, + "approve(address,uint256)": { + "details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address." + }, + "balanceOf(address)": { + "details": "See {IERC20-balanceOf}." + }, + "burn(uint256,address)": { + "params": { + "burnAmount": "The number of G-UNI tokens to burn", + "receiver": "The account to receive the underlying amounts of token0 and token1" + }, + "returns": { + "amount0": "amount of token0 transferred to receiver for burning `burnAmount`", + "amount1": "amount of token1 transferred to receiver for burning `burnAmount`", + "liquidityBurned": "amount of liquidity removed from the underlying Uniswap V3 position" + } + }, + "decimals()": { + "details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}." + }, + "decreaseAllowance(address,uint256)": { + "details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`." + }, + "executiveRebalance(int24,int24,uint160,uint256,bool)": { + "details": "When changing the range the inventory of token0 and token1 may be rebalanced with a swap to deposit as much liquidity as possible into the new position. Swap parameters can be computed by simulating the whole operation: remove all liquidity, deposit as much as possible into new position, then observe how much of token0 or token1 is leftover. Swap a proportion of this leftover to deposit more liquidity into the position, since any leftover will be unused and sit idle until the next rebalance.", + "params": { + "newLowerTick": "The new lower bound of the position's range", + "newUpperTick": "The new upper bound of the position's range", + "swapAmountBPS": "amount of token to swap as proportion of total. Pass 0 to ignore swap.", + "swapThresholdPrice": "slippage parameter on the swap as a max or min sqrtPriceX96", + "zeroForOne": "Which token to input into the swap (true = token0, false = token1)" + } + }, + "getMintAmounts(uint256,uint256)": { + "params": { + "amount0Max": "The maximum amount of token1 to forward on mint" + }, + "returns": { + "amount0": "actual amount of token0 to forward when minting `mintAmount`", + "amount1": "actual amount of token1 to forward when minting `mintAmount`", + "mintAmount": "maximum number of G-UNI tokens to mint" + } + }, + "getUnderlyingBalances()": { + "returns": { + "amount0Current": "current total underlying balance of token0", + "amount1Current": "current total underlying balance of token1" + } + }, + "increaseAllowance(address,uint256)": { + "details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address." + }, + "initialize(string,string,address,uint16,int24,int24,address)": { + "params": { + "_lowerTick": "initial upperTick (only changeable with executiveRebalance)", + "_managerFeeBPS": "proportion of fees earned that go to manager treasury note that the 4 above params are NOT UPDATEABLE AFTER INILIALIZATION", + "_manager_": "address of manager (ownership can be transferred)", + "_name": "name of G-UNI token", + "_pool": "address of Uniswap V3 pool", + "_symbol": "symbol of G-UNI token" + } + }, + "initializeManagerFee(uint16)": { + "params": { + "_managerFeeBPS": "proportion of fees earned that are credited to manager in Basis Points" + } + }, + "manager()": { + "details": "Returns the address of the current manager." + }, + "mint(uint256,address)": { + "details": "to compute the amouint of tokens necessary to mint `mintAmount` see getMintAmounts", + "params": { + "mintAmount": "The number of G-UNI tokens to mint", + "receiver": "The account to receive the minted tokens" + }, + "returns": { + "amount0": "amount of token0 transferred from msg.sender to mint `mintAmount`", + "amount1": "amount of token1 transferred from msg.sender to mint `mintAmount`", + "liquidityMinted": "amount of liquidity added to the underlying Uniswap V3 position" + } + }, + "name()": { + "details": "Returns the name of the token." + }, + "renounceOwnership()": { + "details": "Leaves the contract without manager. It will not be possible to call `onlyManager` functions anymore. Can only be called by the current manager. NOTE: Renouncing ownership will leave the contract without an manager, thereby removing any functionality that is only available to the manager." + }, + "symbol()": { + "details": "Returns the symbol of the token, usually a shorter version of the name." + }, + "totalSupply()": { + "details": "See {IERC20-totalSupply}." + }, + "transfer(address,uint256)": { + "details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`." + }, + "transferFrom(address,address,uint256)": { + "details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`." + }, + "transferOwnership(address)": { + "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current manager." + }, + "updateGelatoParams(uint16,uint16,uint16,uint32,address)": { + "params": { + "newRebalanceBPS": "controls frequency of gelato rebalances: gas fee to execute rebalance can be gelatoRebalanceBPS proportion of fees earned since last rebalance", + "newSlippageBPS": "maximum slippage on swaps during gelato rebalance", + "newSlippageInterval": "length of time for TWAP used in computing slippage on swaps", + "newTreasury": "address where managerFee withdrawals are sent", + "newWithdrawBPS": "controls frequency of gelato withdrawals: gas fee to execute withdrawal can be gelatoWithdrawBPS proportion of fees accrued since last withdraw" + } + } + }, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "burn(uint256,address)": { + "notice": "burn G-UNI tokens (fractional shares of a Uniswap V3 position) and receive tokens" + }, + "executiveRebalance(int24,int24,uint160,uint256,bool)": { + "notice": "Change the range of underlying UniswapV3 position, only manager can call" + }, + "getMintAmounts(uint256,uint256)": { + "notice": "compute maximum G-UNI tokens that can be minted from `amount0Max` and `amount1Max`" + }, + "getUnderlyingBalances()": { + "notice": "compute total underlying holdings of the G-UNI token supply includes current liquidity invested in uniswap position, current fees earned and any uninvested leftover (but does not include manager or gelato fees accrued)" + }, + "initialize(string,string,address,uint16,int24,int24,address)": { + "notice": "initialize storage variables on a new G-UNI pool, only called once" + }, + "initializeManagerFee(uint16)": { + "notice": "initializeManagerFee sets a managerFee, only manager can call. If a manager fee was not set in the initialize function it can be set here but ONLY ONCE- after it is set to a non-zero value, managerFee can never be set again." + }, + "mint(uint256,address)": { + "notice": "mint fungible G-UNI tokens, fractional shares of a Uniswap V3 position" + }, + "rebalance(uint160,uint256,bool,uint256,address)": { + "notice": "Reinvest fees earned into underlying position, only gelato executors can call Position bounds CANNOT be altered by gelato, only manager may via executiveRebalance. Frequency of rebalance configured with gelatoRebalanceBPS, alterable by manager." + }, + "uniswapV3MintCallback(uint256,uint256,bytes)": { + "notice": "Uniswap V3 callback fn, called back on pool.mint" + }, + "uniswapV3SwapCallback(int256,int256,bytes)": { + "notice": "Uniswap v3 callback fn, called back on pool.swap" + }, + "updateGelatoParams(uint16,uint16,uint16,uint32,address)": { + "notice": "change configurable parameters, only manager can call" + }, + "withdrawGelatoBalance(uint256,address)": { + "notice": "withdraw gelato fees accrued, only gelato executors can call. Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager." + }, + "withdrawManagerBalance(uint256,address)": { + "notice": "withdraw manager fees accrued, only gelato executors can call. Target account to receive fees is managerTreasury, alterable by manager. Frequency of withdrawals configured with gelatoWithdrawBPS, alterable by manager." + } + }, + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 5, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_initialized", + "offset": 0, + "slot": "0", + "type": "t_bool" + }, + { + "astId": 8, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_initializing", + "offset": 1, + "slot": "0", + "type": "t_bool" + }, + { + "astId": 784, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "__gap", + "offset": 0, + "slot": "1", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 122, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_balances", + "offset": 0, + "slot": "51", + "type": "t_mapping(t_address,t_uint256)" + }, + { + "astId": 128, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_allowances", + "offset": 0, + "slot": "52", + "type": "t_mapping(t_address,t_mapping(t_address,t_uint256))" + }, + { + "astId": 130, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_totalSupply", + "offset": 0, + "slot": "53", + "type": "t_uint256" + }, + { + "astId": 132, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_name", + "offset": 0, + "slot": "54", + "type": "t_string_storage" + }, + { + "astId": 134, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_symbol", + "offset": 0, + "slot": "55", + "type": "t_string_storage" + }, + { + "astId": 636, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "__gap", + "offset": 0, + "slot": "56", + "type": "t_array(t_uint256)45_storage" + }, + { + "astId": 59, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_status", + "offset": 0, + "slot": "101", + "type": "t_uint256" + }, + { + "astId": 102, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "__gap", + "offset": 0, + "slot": "102", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 6441, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "_manager", + "offset": 0, + "slot": "151", + "type": "t_address" + }, + { + "astId": 6031, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "lowerTick", + "offset": 20, + "slot": "151", + "type": "t_int24" + }, + { + "astId": 6033, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "upperTick", + "offset": 23, + "slot": "151", + "type": "t_int24" + }, + { + "astId": 6035, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoRebalanceBPS", + "offset": 26, + "slot": "151", + "type": "t_uint16" + }, + { + "astId": 6037, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoWithdrawBPS", + "offset": 28, + "slot": "151", + "type": "t_uint16" + }, + { + "astId": 6039, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoSlippageBPS", + "offset": 30, + "slot": "151", + "type": "t_uint16" + }, + { + "astId": 6041, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoSlippageInterval", + "offset": 0, + "slot": "152", + "type": "t_uint32" + }, + { + "astId": 6043, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "managerFeeBPS", + "offset": 4, + "slot": "152", + "type": "t_uint16" + }, + { + "astId": 6045, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "managerTreasury", + "offset": 6, + "slot": "152", + "type": "t_address" + }, + { + "astId": 6047, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "managerBalance0", + "offset": 0, + "slot": "153", + "type": "t_uint256" + }, + { + "astId": 6049, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "managerBalance1", + "offset": 0, + "slot": "154", + "type": "t_uint256" + }, + { + "astId": 6051, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoBalance0", + "offset": 0, + "slot": "155", + "type": "t_uint256" + }, + { + "astId": 6053, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "gelatoBalance1", + "offset": 0, + "slot": "156", + "type": "t_uint256" + }, + { + "astId": 6056, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "pool", + "offset": 0, + "slot": "157", + "type": "t_contract(IUniswapV3Pool)2339" + }, + { + "astId": 6059, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "token0", + "offset": 0, + "slot": "158", + "type": "t_contract(IERC20)863" + }, + { + "astId": 6062, + "contract": "contracts/GUniPool.sol:GUniPool", + "label": "token1", + "offset": 0, + "slot": "159", + "type": "t_contract(IERC20)863" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)45_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[45]", + "numberOfBytes": "1440" + }, + "t_array(t_uint256)49_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_contract(IERC20)863": { + "encoding": "inplace", + "label": "contract IERC20", + "numberOfBytes": "20" + }, + "t_contract(IUniswapV3Pool)2339": { + "encoding": "inplace", + "label": "contract IUniswapV3Pool", + "numberOfBytes": "20" + }, + "t_int24": { + "encoding": "inplace", + "label": "int24", + "numberOfBytes": "3" + }, + "t_mapping(t_address,t_mapping(t_address,t_uint256))": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => mapping(address => uint256))", + "numberOfBytes": "32", + "value": "t_mapping(t_address,t_uint256)" + }, + "t_mapping(t_address,t_uint256)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_string_storage": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_uint16": { + "encoding": "inplace", + "label": "uint16", + "numberOfBytes": "2" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint32": { + "encoding": "inplace", + "label": "uint32", + "numberOfBytes": "4" + } + } + } +} \ No newline at end of file diff --git a/lib/g-uni-v1-core/src/addresses.ts b/lib/g-uni-v1-core/src/addresses.ts index d6d1807e..f0e89f9e 100644 --- a/lib/g-uni-v1-core/src/addresses.ts +++ b/lib/g-uni-v1-core/src/addresses.ts @@ -83,7 +83,7 @@ export const getAddresses = (network: string): Addresses => { USDC: "", UniswapV3Factory: "0x84fF29e6321c9dd328B8B383b08dd2815b121243", GUniFactory: "0xED28E5230E934cf9C843C08818D0639176040297", - GUniImplementation: "0x7B19Fe2Fc328d3843973D20a4cb0b5b785b02b8E", + GUniImplementation: "0xdde18C0c3B637F4BA02f5567a671F5e28b7404e7", }; case "arbitrumSepolia": return { @@ -95,7 +95,7 @@ export const getAddresses = (network: string): Addresses => { USDC: "", UniswapV3Factory: "0x2dCC5a88A861FB73613153F82CF801cd09E72a5F", GUniFactory: "0x39AC4439e6CB9427C073259e5742529cE46DD663", - GUniImplementation: "0x90608F57161aC771b28fb0adCd2434cfa1463201", + GUniImplementation: "0xF3e2578C66071a637F06cc02b1c11DeC0784C1A6", }; case "modeSepolia": return { @@ -107,7 +107,7 @@ export const getAddresses = (network: string): Addresses => { USDC: "", UniswapV3Factory: "0x0f88f3f5108eB3BD1A2D411E9a1fD41997811D88", GUniFactory: "0x2dCC5a88A861FB73613153F82CF801cd09E72a5F", - GUniImplementation: "0x909F26919989167d051312fBB0a1Df4CD93Bf70b", + GUniImplementation: "0xe1B83edA3399A2c9B8265215EA21042C9b918dc5", }; case "baseSepolia": return { @@ -119,7 +119,7 @@ export const getAddresses = (network: string): Addresses => { USDC: "", UniswapV3Factory: "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24", GUniFactory: "0x04974BcFC715c148818724d9Caab3Fe8d0391b8b", - GUniImplementation: "0xB1e9E16a40321Fe06Cfd797619C345c143D11Aa7", + GUniImplementation: "0xF5c31d08a71c854A9f607A5992456dBC31B11e16", }; default: throw new Error(`No addresses for Network: ${network}`); diff --git a/script/deploy/sequences/batch-callbacks.json b/script/deploy/sequences/batch-callbacks.json new file mode 100644 index 00000000..6d24632d --- /dev/null +++ b/script/deploy/sequences/batch-callbacks.json @@ -0,0 +1,22 @@ +{ + "sequence": [ + { + "name": "BatchCappedMerkleAllowlist" + }, + { + "name": "BatchMerkleAllowlist" + }, + { + "name": "BatchTokenAllowlist" + }, + { + "name": "BatchAllocatedMerkleAllowlist" + }, + { + "name": "BatchUniswapV2DirectToLiquidity" + }, + { + "name": "BatchUniswapV3DirectToLiquidity" + } + ] +} \ No newline at end of file diff --git a/script/env.json b/script/env.json index b4699155..029777ea 100644 --- a/script/env.json +++ b/script/env.json @@ -36,17 +36,17 @@ "AtomicLinearVesting": "0xA7413717C633175Bc5B669E94625a4d3FE009870", "AtomicUniswapV2DirectToLiquidity": "0x0000000000000000000000000000000000000000", "AtomicUniswapV3DirectToLiquidity": "0x0000000000000000000000000000000000000000", - "BatchAllocatedMerkleAllowlist": "0x98Dd423FD18cfbf34c78E24B8E923dadE7bcFCC0", - "BatchAuctionHouse": "0xBA00003Cc5713c5339f4fD5cA0339D54A88BC87b", - "BatchCappedMerkleAllowlist": "0x98Bc9615c54fA03C7E31cD0e6599938f1a418d1b", - "BatchCatalogue": "0xd3dbab6EeD17f7e4ce64441E79A6e34ef40f2754", - "BatchLinearVesting": "0xC818f1f000f9C24D014BCe2c5334e14B1360d9CD", - "BatchMerkleAllowlist": "0x98Cd72f2271BC8485474E6277eAadA28c8Da4C59", - "BatchTokenAllowlist": "0x98d7b3E03DEAA5039ff06D977EdE2EF2b6cD3169", - "BatchUniswapV2DirectToLiquidity": "0xE681311Ec0Aff9E6aCD03208f366eF4CD06e8215", - "BatchUniswapV3DirectToLiquidity": "0xE6B7D1ba64c03A9e716358D0AfE34A087E3d26B1", - "EncryptedMarginalPrice": "0x87F2a19FBbf9e557a68bD35D85FAd20dEec40494", - "FixedPriceBatch": "0xB24D0b6ae015DC6fd279E330db101bB890d8060c", + "BatchAllocatedMerkleAllowlist": "0x98B59b4BF62b0316D9B0f89D28A28d5D75BB8B46", + "BatchAuctionHouse": "0xBA00002999aBfa63cA25B3A7aD4c8F3a578aBe28", + "BatchCappedMerkleAllowlist": "0x9888DbABd5981763697A4433Cb57E3F9DABEcB6a", + "BatchCatalogue": "0x664268B82971D0c9A4F000a7329a057e85361E83", + "BatchLinearVesting": "0xFB1113E170CA6d95f3a91121BDD2370a822598E9", + "BatchMerkleAllowlist": "0x9837cA34C444cEbd07C699036D1D174C6392D9fa", + "BatchTokenAllowlist": "0x988c61b36F7898e464a0Bf477d2dc06aC4E95F95", + "BatchUniswapV2DirectToLiquidity": "0xE64E0807E5a0d789dB2fABB3345aB763f879521C", + "BatchUniswapV3DirectToLiquidity": "0xE6ECF0f655E642834c79F30323e7ae941883ac00", + "EncryptedMarginalPrice": "0x2Ca8954B468E2FbfE55240B69db937861c12F0d0", + "FixedPriceBatch": "0x8b47F82a58d8AFBE5167feBf0D3F3Bb509aaf2bd", "FixedPriceSale": "0x0A0BA689D2D72D3f376293c534AF299B3C6Dac85", "OWNER": "0xB47C8e4bEb28af80eDe5E5bF474927b110Ef2c0e", "PERMIT2": "0x000000000022D473030F116dDEE9F6B43aC78BA3", @@ -70,17 +70,17 @@ "AtomicLinearVesting": "0x0000000000000000000000000000000000000000", "AtomicUniswapV2DirectToLiquidity": "0x0000000000000000000000000000000000000000", "AtomicUniswapV3DirectToLiquidity": "0x0000000000000000000000000000000000000000", - "BatchAllocatedMerkleAllowlist": "0x98469eF36DDD7bEAF28EDbd3fE2F57bD18A4BF2c", - "BatchAuctionHouse": "0xBA000092028c37fdf4231090D9a0e42B3A983C17", - "BatchCappedMerkleAllowlist": "0x98CcB00c5F9854517DA6ED466b3B391fEF501542", - "BatchCatalogue": "0xD55227c0C37C97Fa2619a9C7F658C173883C1E2a", - "BatchLinearVesting": "0xc20918b09dE9708d2A7997dfFc3c5ACB34d4a15b", - "BatchMerkleAllowlist": "0x98408652D32571BEd7e357D1402A1A8c27B879e7", - "BatchTokenAllowlist": "0x980110C58Ace1FD0422E5c27c7d4e248a547Ec7D", - "BatchUniswapV2DirectToLiquidity": "0xE629a36159C7C6F827DA480DD541009031d50637", - "BatchUniswapV3DirectToLiquidity": "0xE694614675d7b99d53Af80c98E02AAD46cd27183", - "EncryptedMarginalPrice": "0x0599DA010907835037A0beC4525Dc5D600e790EB", - "FixedPriceBatch": "0x71a2946A761FC6ecE1b16cb4517a3E3D7E30Cc92", + "BatchAllocatedMerkleAllowlist": "0x98B59b4BF62b0316D9B0f89D28A28d5D75BB8B46", + "BatchAuctionHouse": "0xBA00002999aBfa63cA25B3A7aD4c8F3a578aBe28", + "BatchCappedMerkleAllowlist": "0x9888DbABd5981763697A4433Cb57E3F9DABEcB6a", + "BatchCatalogue": "0x408fB738592232372069B592022F03BF3a241613", + "BatchLinearVesting": "0x392C629741a0c7350c7181addD5870dE178eeD94", + "BatchMerkleAllowlist": "0x9837cA34C444cEbd07C699036D1D174C6392D9fa", + "BatchTokenAllowlist": "0x988c61b36F7898e464a0Bf477d2dc06aC4E95F95", + "BatchUniswapV2DirectToLiquidity": "0xE650A43485b89F26FB98ad16811BF45BD52ad014", + "BatchUniswapV3DirectToLiquidity": "0xE661c46d94c53584095A8240958695bAD6d6fC2F", + "EncryptedMarginalPrice": "0x02c63F8aE0a8e9D0F7267AA4d0Af0567858188C2", + "FixedPriceBatch": "0x188Ad428c60eADFB0749B2E3A4836D63489304E3", "FixedPriceSale": "0x0000000000000000000000000000000000000000", "OWNER": "0xB47C8e4bEb28af80eDe5E5bF474927b110Ef2c0e", "PERMIT2": "0x000000000022D473030F116dDEE9F6B43aC78BA3", @@ -138,17 +138,17 @@ "AtomicLinearVesting": "0x8270f3e8D874De8b974A0Bf928abDFf92171B1b2", "AtomicUniswapV2DirectToLiquidity": "0x0000000000000000000000000000000000000000", "AtomicUniswapV3DirectToLiquidity": "0x0000000000000000000000000000000000000000", - "BatchAllocatedMerkleAllowlist": "0x98381a5D00a0B6c9Cdd94206F4b2B383457C312e", - "BatchAuctionHouse": "0xBA00001Bd857EFd2dF10Da01DFe3a97CFa836Cc9", - "BatchCappedMerkleAllowlist": "0x987727BD02CBf92B2E2d8e23B69E6FE627c2968e", - "BatchCatalogue": "0x7F6Af3993d64cbC3A97617C98A2BCe03c1f5Ec30", - "BatchLinearVesting": "0xFb1B55504E6f996D192f1F1B8fDfD4E987355552", - "BatchMerkleAllowlist": "0x98d1E5d8961BAfBE848337c723DD3dC590923454", - "BatchTokenAllowlist": "0x98062088FAE9D96C83B3efEbdE473A7C5B18C95F", - "BatchUniswapV2DirectToLiquidity": "0xE6093314BD7496437002B06bd0Cc3B245Adc32aE", - "BatchUniswapV3DirectToLiquidity": "0xE64057e0BbDF8DFaA4cEa25E64391B22e4b55607", - "EncryptedMarginalPrice": "0x96B52Ab3e5CAc0BbF49Be5039F2f9ef5d53bD322", - "FixedPriceBatch": "0xEDa0cC0bbb45D8cd6354755856053d6Ea646E201", + "BatchAllocatedMerkleAllowlist": "0x986455Ab4f64303E8F51e72F6BF1789182563F65", + "BatchAuctionHouse": "0xBA00007A1868f4AEFdd39041327CbC4Ba5bF1632", + "BatchCappedMerkleAllowlist": "0x981d6a6997B23C06f4E95862f72B7C06c039a647", + "BatchCatalogue": "0xC6D5E3A1823304D28cdc6dc23b4117b6cA34C98E", + "BatchLinearVesting": "0xBD0474b8e7b65f3dF35d2817BA09aC864a199e31", + "BatchMerkleAllowlist": "0x9859c6FA2594e93149bd76415cE3982f39888CCb", + "BatchTokenAllowlist": "0x984B6165fC87c682441E81B4aa23A017cdbFba18", + "BatchUniswapV2DirectToLiquidity": "0xE6282DDB61f81F4d769FE511676dC21E570AF815", + "BatchUniswapV3DirectToLiquidity": "0xE6b1113d108f86Fb7eF662ecF235dB6dB8978Cc3", + "EncryptedMarginalPrice": "0x8F34bBB3edd28017f826FE7a73eb9297384BF0d8", + "FixedPriceBatch": "0x87ED152099949F870725bD9517A1697d428ddF74", "FixedPriceSale": "0x3661B7704F7032103B3122C7796B5E03fAC715b5", "OWNER": "0xB47C8e4bEb28af80eDe5E5bF474927b110Ef2c0e", "PERMIT2": "0x000000000022D473030F116dDEE9F6B43aC78BA3", @@ -206,17 +206,17 @@ "AtomicLinearVesting": "0x408fB738592232372069B592022F03BF3a241613", "AtomicUniswapV2DirectToLiquidity": "0x0000000000000000000000000000000000000000", "AtomicUniswapV3DirectToLiquidity": "0x0000000000000000000000000000000000000000", - "BatchAllocatedMerkleAllowlist": "0x98aAA09Fba83eD888Fa57eBb42c2e54fA6BF3611", - "BatchAuctionHouse": "0xBA00003Cc5713c5339f4fD5cA0339D54A88BC87b", - "BatchCappedMerkleAllowlist": "0x98565d59C0E85cB2922822B941342b24e0B36710", - "BatchCatalogue": "0x32273229B482F39f5F8fBfA71569eA743740217c", - "BatchLinearVesting": "0x6CC5b76C2c98cB347F07C07a74a88134265312FF", - "BatchMerkleAllowlist": "0x98281879DF6b77eBfc3c7B584325cFE3cf3a499D", - "BatchTokenAllowlist": "0x98Db66f6F636D6e863229c32662AFF11bE8Ab53F", - "BatchUniswapV2DirectToLiquidity": "0xE688Ee9d0527B4D4e9440619a99F0dADF68B4b26", - "BatchUniswapV3DirectToLiquidity": "0xE68806DB45E015E9476339a3e54c8F2B4D4F7ecA", - "EncryptedMarginalPrice": "0x4e519eEf63b9e127cFCeCA31C8E5485CdA65D355", - "FixedPriceBatch": "0xC818f1f000f9C24D014BCe2c5334e14B1360d9CD", + "BatchAllocatedMerkleAllowlist": "0x98B59b4BF62b0316D9B0f89D28A28d5D75BB8B46", + "BatchAuctionHouse": "0xBA00002999aBfa63cA25B3A7aD4c8F3a578aBe28", + "BatchCappedMerkleAllowlist": "0x9888DbABd5981763697A4433Cb57E3F9DABEcB6a", + "BatchCatalogue": "0x40Efc944A9bDe7Aea4853b435D5517433D02FfF8", + "BatchLinearVesting": "0x90608F57161aC771b28fb0adCd2434cfa1463201", + "BatchMerkleAllowlist": "0x9837cA34C444cEbd07C699036D1D174C6392D9fa", + "BatchTokenAllowlist": "0x988c61b36F7898e464a0Bf477d2dc06aC4E95F95", + "BatchUniswapV2DirectToLiquidity": "0xE60f928d399782836540752Eb3fCfE46b0Cb4E24", + "BatchUniswapV3DirectToLiquidity": "0xE6ce65C413a5Fc10Fa77B26032B33DCD68F8474a", + "EncryptedMarginalPrice": "0x1A6Ba70B8e5957bCd03C20f9CF42D9e6D3d9b514", + "FixedPriceBatch": "0x75DA61536510BA0bCa0C9Af21311A1Fc035DCf4e", "FixedPriceSale": "0xacD10C2B4aA625dd00cba40E4466c8Ff07288a16", "OWNER": "0xB47C8e4bEb28af80eDe5E5bF474927b110Ef2c0e", "PERMIT2": "0x000000000022D473030F116dDEE9F6B43aC78BA3", diff --git a/script/salts/salts.json b/script/salts/salts.json index b1327403..b415c0cc 100644 --- a/script/salts/salts.json +++ b/script/salts/salts.json @@ -1,6 +1,8 @@ { "AllocatedMerkleAllowlist": { "0x109440c1c675388d17f52673a20abbe28dd179642c176d6142dd7f44821be594": "0x5d9938f8fccff4783842cc1c5968240c6d173a447ccf3e11c096c5bb0e7423ec", + "0x30b51492b0fefba6189938e77c04874f66af1ae415576b9a0870e3d831af3aeb": "0xb21446946154104802ca94a722f3d9c017dedcf52633e778343e049f558fc5e5", + "0x829a6a78304229812355cc3fd4ffbb383e35120e39942f1547bce97c9156f204": "0x17ee40dc561a4a9cfcb92fe1ddf4b2b90b51592d244fc8f0818efd797240e3f7", "0x940f58c92177218354ef28efcd7056b131053fc33f27336c68af3eda9b7a537f": "0x9471763f5a9abcd58fee06a10aede685e570750ddc1de9f9e742130bb8f6369c", "0xaa5c1bd02f7b04980f0e4ef0778e9165f8404f41c1c2bc372f2902f80dc646b0": "0x3c781e03bd8272c21052708923b6b00b60d976b84bc792a25a8eeb527d166944", "0xc329d36cea27b1f8e044c99a5eda27503fd6087f50b6d27b7bb12ac4493507e1": "0xb724ad108002e85a8144c2b305013b4d302fb1ef4a39d477f6d18e96bc219a3d" @@ -10,12 +12,14 @@ }, "BatchAuctionHouse": { "0x1d8b7b9cfbd8610a556d5e2e85dcdb25a17d6b5407574aef07970a86e4b0e2c3": "0x06374b73456c869d550c6cb45aff40113752ac3c4dd8efb8185b6da5c898aa82", - "0x4c4d86f9737bd18dab3f6dc74d2f5c610b7169459c90a457e0e126ed42ae3bba": "0xbe4a9dc1b73685497c6104df59c2a3d2c1c5039bd48b1b25e9c0a029f3744311" + "0x4c4d86f9737bd18dab3f6dc74d2f5c610b7169459c90a457e0e126ed42ae3bba": "0xbe4a9dc1b73685497c6104df59c2a3d2c1c5039bd48b1b25e9c0a029f3744311", + "0x926c218dfa94c5d70f80d1833ea9d4c6d581119f856d69e8fcc7e62c69773f4f": "0xb009513c506ae5ea1fd7caa71183203e72a2e197a17ac82f9797621fd7e4fa17" }, "BlastAtomicAuctionHouse": { "0x3d41c1d7705983200681645a648d410d545bba492ad801c3938664a6bf58d882": "0x11f6c4c27a20cd6e6925ddd316451417e2cdf68d28a8bd2be486f9709f89a301" }, "BlastBatchAuctionHouse": { + "0x830d2c24dcae0fce9215903ca9d54cb6789a2ee37db8bc9b5477fa24a9b72db0": "0x386b0b1e66cea083db3427476295fa70b84f5ceb132b9355d90de9aa7c89051d", "0xc640e527fdcd05d6135de917e29082984847300ec6bf4cf38393f8dbfa742b19": "0x1e7690f0ac2409cb3804ffe443d81e9685d882d4d1804c8bfb1056cc624afee8", "0xcad29ef747f1a7ad12c1e5e715ac675f8534c0d3682dfddfa39287ae7b7d7f01": "0x761de87b1ea43dc2f84665b59b2ce8498c1a09458e3a89751578be7c72811114" }, @@ -24,13 +28,17 @@ "0x0ae7777d88dd21a8b9ca3dd9212307295a83aed438fef9dad0b62d57fbaf1025": "0x1de5ae5b126bd2cee8eb4f083080f5c30baa692580cf823fa5f382a7bfc70ac5", "0x3b13d752dd521a5917210eff552f4d0ec3ff4ddb2d194f5d02b7e2247489ebdc": "0xf1ff9fa131a9733c7bdb0d3a3bd2f0ff01a4460e6886df4c7099947ebcfb1ee9", "0x3fc1cd506bf64c403917a5799b49e036dd3aae5428060a18d3c19d6e6065498e": "0xd24c83ddb154d7c984384db1f8da3ab3307028e5f1cc43031c4243a81e25edb6", + "0x41e4959210f69f1bc43a7e525cd5c4d9552ded294727f411ff30fe70c69a4b76": "0x20e7f379ad74ce616829a0e336c3b9c48e0d2a74f219219e32e02fe2a982da7d", "0x7629e3374867d748eaab783ad2eedb4e39634e55428c39713fd82415d41043a3": "0x31246341c7c82c31414f184b807da273fdd6cdf591cb6f997fec41babc279fd9", "0x78ee3a1a70f7e9a784590ca00ef3290f3478105f6338266b9e5f0d10951b4aa9": "0xdb5af3b6d32454d69075509db94196460a19acb9849c5dc0d5ccef5a1b4ab032", - "0xba7c6b1a20d51f9d58af92b2ad7ef3e41e1468b723bedeaa967ad18324a01396": "0x008360de5819a25fa0b4f08212b0b7745df530809622970e4dfefc77cb8c5066" + "0xba7c6b1a20d51f9d58af92b2ad7ef3e41e1468b723bedeaa967ad18324a01396": "0x008360de5819a25fa0b4f08212b0b7745df530809622970e4dfefc77cb8c5066", + "0xbece95cede2c4b6f2712067328ed372606a7ec24649023996465365239ed5c23": "0x43af01d498eaa96528f948867f7b771b700b090e1b1077c95ecc1394265f1af9" }, "MerkleAllowlist": { "0x00e31f39c32ce8511a5db04dec4a0a92b29eb2cb02a965f107dbeb9549517e6a": "0xcfcc4407dd569ab1e457b9d475420c8d10e7db6751646b5aa84cfacf500947ba", "0x13f8dde16815b53fad1d222ffd783f6ed99b01992a48aac29791352ac7578576": "0x605db39e79afd6a7e67bd3055afc358a69143d97544404d75b8091c2d2c82fa1", + "0x2cc37ca69a4e1ef00579453aad3e7dd939350a9b53f3dfa1f20896f0cd1dbddb": "0x87a479d8c7b3a31f53b0ae53979510bcb06d09a2e202432ac40581c6bc37ff08", + "0x772e272fd6e30185ccd0d9d485a87d71b47d93ad31dcdb274bbde5002f12b12d": "0x087a6bed9bb620c899b2520ea860a6737de62d90aee55032be8e9086dcae819d", "0x8dabf7c769c996b5b33b4da1013d93b9daeeb7cf468d179804c9130fd7eaa891": "0x71072df633972dfa166196430a104dbc30b8dc5997a8b965253ca299fd96feaf", "0xb4128aa3cf1f256d76081a556cbe66c83429e49ce28bca3b2e3b07b926f0bda8": "0xcbac00a3b5465e91d8c65d179de9fa8f52be1c99b8ecfd9ce35b51faa0046232", "0xc8e647c61be9e05b08050eb7d8cfc1102b5328d9540b81891da5783ba25d2978": "0x368c44b5208a15f6292a0ac1246d7d6973d5c919d32cebd2f30da0844356e63a", @@ -83,21 +91,31 @@ "TokenAllowlist": { "0x09db47d395a68db033a3b222b9d1a212cec8422b03aeafc313aa4d2813c6dd60": "0xe07a005213f35e1f050a4da040d6bc3cae2ad333647b51a6ffa2e7941980043a", "0x30d8cf89cc8c815884740dc27e72a1f8b5dacbbe39f3d1e35deb436176390b20": "0xaa12d3f9826fbc3d54f789bfc36030a3dfe0ea0a538d4968716e10eecc2b91b2", + "0x48612e5a97a3e434e0158a8ece7bf1c0876f0a82987580936e63084228144cd6": "0xd51382b4a80b7fa68a37f611bf095a15818465788fead6a0a9a0515251cb66e5", + "0x57df0bf7cfe081111b36726104f5bf23ec172de0ba96f2fb36c2e41108989b71": "0x7e184f1697deb99d9bc7ba50324c40e98b987f83a14245174e6eacc6ab240330", "0xa4b72411c68147f4439bf4211d12dfbada62d17aba88a86648226a2cb61feff6": "0x18133c11f2fba3e102d2900a469e89202dd55927014a0a4062f21f2444bfcc9e", "0xcc0cb46859311aa362f48add9ffc284efd8aad3e4ec5a29b68eee7ab1b4cd8c4": "0x99628f6902caaf046d171a8754943a29a3906a9b32f3ee471a12b470363999c7" }, "UniswapV2DirectToLiquidity": { "0x2952f587868594ee4aed1e483cdbb653d4ef61c9c662a737fc6ae8f271225fe1": "0x000174bce07575898f52c13859450718eea202638a7089ff3d358a023b48bbfb", + "0x32dcc0983af67a522f275494ce3a9a2aa88e6402989414825c965c9ca5fba907": "0xf588d14ef594a9c7c4fa378cfdebcbec0356153259bfe8a58d168f4866f7f2fb", + "0x49a44765f82e21a2455ecafadfd36f1dd7066ae8733dab3bf13fa33f271faabe": "0x036007589a41359e5858eddc394a9e4c2fe917360175a38d6139d77c8d8b0a89", + "0x5e493cf7f7157b59101a569467e19f4a2618cb03f6414d4a8b4f1d2b4ac2912e": "0x43996039523bd2f955e18733dafabd2ab45c0e40865e93cca76dd2773c453d97", + "0x60bc649627ebd535e11e848bd93dbbb4dc819e0279d20e1d3088983f65562dbf": "0xc4534d72b992c13813b52daa775c9dbe230eaf0b139a76fdc78baf72487148d0", "0x8b4463835dc772630989c2d09011d747347fc03f6cdf5b4e820ed1ef05f26942": "0xc3a15bdea9242368d2db15a46055a9bf88b551562eda6217f0a02f1d6a93f73b", "0xd1807b8e8fef23d2bd5acb7fe74e7dab661f1ef2f7aaaa66e286398a6d9e8011": "0xec56a79198c3d690cad3e6e39521bd7dd90dc8692cf50a7ab027408d139bd189", "0xe8242d2e1eae0d89d0ca278cea284cd4056496fb12fd0405237827e252efdfea": "0x65a71869dd1c30cc12ac786991b9492a5286c8cd942161d738ca34b3e0e29053", "0xf40b0b3a6c36f510d58633db604bcd978fe1e804891ce9792ac9bbb064cbe97a": "0x4fdd82a331ef80cde3af5905bd2b39c5b1d2f1da38e059fc7e077a355f4caa92" }, "UniswapV3DirectToLiquidity": { + "0x076b93782e37198c2a62c801267d4971c0da2276424f4232d380714790b596fa": "0xb61cd26ee29ace89139c3ac9f8bc6a81a77449e35a3e1929e1bcf58963784719", "0x7994e3c9afaffb722300f0aaa71ebeeceab756245e82e981180edb84fc0896c6": "0xb8ca51788fb6f83a631aa3f288f8976542c83998f4249a948cc9d6cb9eee227f", + "0x9e46c4894fb34752211ed50d65bd9d28c0bc64b05efbfa8bc2016985dcf8c854": "0xe14c04ae17c798f930e1d15f488a9d97d6aab2ad2f031779d332c6e533cd6531", "0xa05e45a45cfefb72dfa29ad3818c1cf08e0bd7fddc447d6c999a8e59249958de": "0xad19f43b52bb1d7c2ed09a095ed50eb1f97d17caaa52965932c0eaeabd38cfeb", "0xa6f487fc2314140d65433ac5c4c88db938b3c5060d2f6606ad5385635960b7df": "0xd6d8d35d364012dc5356867ae1e611cb49a52ff044b669b74038801dc8d38c25", + "0xc0e4ff339d51c71014ab77dd1ea8d79eb1aeb129ef9f2bbdd3b725e95a128a0e": "0x1ce3937a3784e7993ad893daf7368bd17b49721935b92d78caacae70ae31c336", "0xdb1aca9d9d747dbf091b839f28419e861b79502fa4598efd84b9a7857e9c4ad9": "0xf63a1c74edaa9327592fd21199595de6052e34fca6e81a1236ae14e018eaa1a5", - "0xec0f4ce3ca7fd526e8ee9ec1a9d36ecfca69b1725bfcbe2609ade044c4b858bb": "0xb1edac890bf849adfd17886a15f2dd2e41cae91820536c09fa22233333159564" + "0xec0f4ce3ca7fd526e8ee9ec1a9d36ecfca69b1725bfcbe2609ade044c4b858bb": "0xb1edac890bf849adfd17886a15f2dd2e41cae91820536c09fa22233333159564", + "0xf0a5dea336a37fa63979efe11d875ee7fb6453e5d78244d30113a087b7455f61": "0x71f0e171054a9dd4fd79719da9d8d19603ce79b95d8f8f4a29d8a59da612771b" } }