@paraswap/dex-lib 2.17.0 → 2.17.1-pancakeswapv3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/build/abi/pancakeswap-v3/PancakeV3StateMulticall.abi.json +781 -0
  2. package/build/abi/pancakeswap-v3/PancakeswapV3Pool.abi.json +1039 -0
  3. package/build/abi/pancakeswap-v3/PancakeswapV3Quoter.abi.json +285 -0
  4. package/build/abi/pancakeswap-v3/PancakeswapV3Router.abi.json +583 -0
  5. package/build/dex/balancer-v2/balancer-v2.js +8 -6
  6. package/build/dex/balancer-v2/balancer-v2.js.map +1 -1
  7. package/build/dex/balancer-v2/config.js.map +1 -1
  8. package/build/dex/balancer-v2/pools/linear/LinearMath.js.map +1 -1
  9. package/build/dex/balancer-v2/pools/linear/LinearPool.js.map +1 -1
  10. package/build/dex/balancer-v2/pools/phantom-stable/PhantomStableMath.js.map +1 -1
  11. package/build/dex/balancer-v2/pools/phantom-stable/PhantomStablePool.js.map +1 -1
  12. package/build/dex/balancer-v2/pools/stable/StableMath.js +0 -1
  13. package/build/dex/balancer-v2/pools/stable/StableMath.js.map +1 -1
  14. package/build/dex/balancer-v2/pools/stable/StablePool.js +2 -1
  15. package/build/dex/balancer-v2/pools/stable/StablePool.js.map +1 -1
  16. package/build/dex/balancer-v2/pools/weighted/WeightedPool.js.map +1 -1
  17. package/build/dex/index.js +1 -1
  18. package/build/dex/index.js.map +1 -1
  19. package/build/dex/{woo-fi → pancakeswap-v3}/config.d.ts +2 -2
  20. package/build/dex/pancakeswap-v3/config.js +62 -0
  21. package/build/dex/pancakeswap-v3/config.js.map +1 -0
  22. package/build/dex/pancakeswap-v3/constants.d.ts +23 -0
  23. package/build/dex/pancakeswap-v3/constants.js +29 -0
  24. package/build/dex/pancakeswap-v3/constants.js.map +1 -0
  25. package/build/dex/pancakeswap-v3/contract-math/BitMath.d.ts +4 -0
  26. package/build/dex/pancakeswap-v3/contract-math/BitMath.js +93 -0
  27. package/build/dex/pancakeswap-v3/contract-math/BitMath.js.map +1 -0
  28. package/build/dex/pancakeswap-v3/contract-math/FixedPoint128.d.ts +3 -0
  29. package/build/dex/pancakeswap-v3/contract-math/FixedPoint128.js +8 -0
  30. package/build/dex/pancakeswap-v3/contract-math/FixedPoint128.js.map +1 -0
  31. package/build/dex/pancakeswap-v3/contract-math/FixedPoint96.d.ts +4 -0
  32. package/build/dex/pancakeswap-v3/contract-math/FixedPoint96.js +9 -0
  33. package/build/dex/pancakeswap-v3/contract-math/FixedPoint96.js.map +1 -0
  34. package/build/dex/pancakeswap-v3/contract-math/FullMath.d.ts +4 -0
  35. package/build/dex/pancakeswap-v3/contract-math/FullMath.js +19 -0
  36. package/build/dex/pancakeswap-v3/contract-math/FullMath.js.map +1 -0
  37. package/build/dex/pancakeswap-v3/contract-math/LiquidityMath.d.ts +3 -0
  38. package/build/dex/pancakeswap-v3/contract-math/LiquidityMath.js +22 -0
  39. package/build/dex/pancakeswap-v3/contract-math/LiquidityMath.js.map +1 -0
  40. package/build/dex/pancakeswap-v3/contract-math/Oracle.d.ts +10 -0
  41. package/build/dex/pancakeswap-v3/contract-math/Oracle.js +133 -0
  42. package/build/dex/pancakeswap-v3/contract-math/Oracle.js.map +1 -0
  43. package/build/dex/pancakeswap-v3/contract-math/SqrtPriceMath.d.ts +10 -0
  44. package/build/dex/pancakeswap-v3/contract-math/SqrtPriceMath.js +91 -0
  45. package/build/dex/pancakeswap-v3/contract-math/SqrtPriceMath.js.map +1 -0
  46. package/build/dex/pancakeswap-v3/contract-math/SwapMath.d.ts +8 -0
  47. package/build/dex/pancakeswap-v3/contract-math/SwapMath.js +70 -0
  48. package/build/dex/pancakeswap-v3/contract-math/SwapMath.js.map +1 -0
  49. package/build/dex/pancakeswap-v3/contract-math/Tick.d.ts +7 -0
  50. package/build/dex/pancakeswap-v3/contract-math/Tick.js +45 -0
  51. package/build/dex/pancakeswap-v3/contract-math/Tick.js.map +1 -0
  52. package/build/dex/pancakeswap-v3/contract-math/TickBitMap.d.ts +8 -0
  53. package/build/dex/pancakeswap-v3/contract-math/TickBitMap.js +87 -0
  54. package/build/dex/pancakeswap-v3/contract-math/TickBitMap.js.map +1 -0
  55. package/build/dex/pancakeswap-v3/contract-math/TickMath.d.ts +8 -0
  56. package/build/dex/pancakeswap-v3/contract-math/TickMath.js +162 -0
  57. package/build/dex/pancakeswap-v3/contract-math/TickMath.js.map +1 -0
  58. package/build/dex/pancakeswap-v3/contract-math/UnsafeMath.d.ts +3 -0
  59. package/build/dex/pancakeswap-v3/contract-math/UnsafeMath.js +10 -0
  60. package/build/dex/pancakeswap-v3/contract-math/UnsafeMath.js.map +1 -0
  61. package/build/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.d.ts +18 -0
  62. package/build/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.js +407 -0
  63. package/build/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.js.map +1 -0
  64. package/build/dex/pancakeswap-v3/contract-math/utils.d.ts +3 -0
  65. package/build/dex/pancakeswap-v3/contract-math/utils.js +16 -0
  66. package/build/dex/pancakeswap-v3/contract-math/utils.js.map +1 -0
  67. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.d.ts +45 -0
  68. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js +340 -0
  69. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js.map +1 -0
  70. package/build/dex/pancakeswap-v3/pancakeswap-v3.d.ts +55 -0
  71. package/build/dex/pancakeswap-v3/pancakeswap-v3.js +605 -0
  72. package/build/dex/pancakeswap-v3/pancakeswap-v3.js.map +1 -0
  73. package/build/dex/pancakeswap-v3/types.d.ts +137 -0
  74. package/build/dex/pancakeswap-v3/types.js +9 -0
  75. package/build/dex/pancakeswap-v3/types.js.map +1 -0
  76. package/build/dex/pancakeswap-v3/utils.d.ts +6 -0
  77. package/build/dex/pancakeswap-v3/utils.js +65 -0
  78. package/build/dex/pancakeswap-v3/utils.js.map +1 -0
  79. package/build/dex/uniswap-v3/config.js +0 -28
  80. package/build/dex/uniswap-v3/config.js.map +1 -1
  81. package/build/dex/uniswap-v3/uniswap-v3-pool.d.ts +1 -2
  82. package/build/dex/uniswap-v3/uniswap-v3-pool.js +2 -3
  83. package/build/dex/uniswap-v3/uniswap-v3-pool.js.map +1 -1
  84. package/build/dex/uniswap-v3/uniswap-v3.js +1 -1
  85. package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
  86. package/package.json +1 -1
  87. package/src/abi/pancakeswap-v3/PancakeV3StateMulticall.abi.json +781 -0
  88. package/src/abi/pancakeswap-v3/PancakeswapV3Pool.abi.json +1039 -0
  89. package/src/dex/balancer-v2/balancer-v2-e2e.test.ts +13 -19
  90. package/src/dex/balancer-v2/balancer-v2-integration.test.ts +47 -36
  91. package/src/dex/balancer-v2/balancer-v2.ts +46 -24
  92. package/src/dex/balancer-v2/config.ts +1 -1
  93. package/src/dex/balancer-v2/pools/linear/LinearMath.ts +2 -2
  94. package/src/dex/balancer-v2/pools/linear/LinearPool.ts +1 -1
  95. package/src/dex/balancer-v2/pools/phantom-stable/PhantomStableMath.ts +19 -19
  96. package/src/dex/balancer-v2/pools/phantom-stable/PhantomStablePool.ts +0 -1
  97. package/src/dex/balancer-v2/pools/stable/StableMath.ts +13 -14
  98. package/src/dex/balancer-v2/pools/stable/StablePool.ts +4 -2
  99. package/src/dex/balancer-v2/pools/weighted/WeightedPool.ts +0 -1
  100. package/src/dex/index.ts +1 -1
  101. package/src/dex/pancakeswap-v3/config.ts +68 -0
  102. package/src/dex/pancakeswap-v3/constants.ts +35 -0
  103. package/src/dex/pancakeswap-v3/contract-math/BitMath.ts +90 -0
  104. package/src/dex/pancakeswap-v3/contract-math/FixedPoint128.ts +3 -0
  105. package/src/dex/pancakeswap-v3/contract-math/FixedPoint96.ts +4 -0
  106. package/src/dex/pancakeswap-v3/contract-math/FullMath.ts +30 -0
  107. package/src/dex/pancakeswap-v3/contract-math/LiquidityMath.ts +17 -0
  108. package/src/dex/pancakeswap-v3/contract-math/Oracle.ts +226 -0
  109. package/src/dex/pancakeswap-v3/contract-math/SqrtPriceMath.ts +226 -0
  110. package/src/dex/pancakeswap-v3/contract-math/SwapMath.ts +139 -0
  111. package/src/dex/pancakeswap-v3/contract-math/Tick.ts +82 -0
  112. package/src/dex/pancakeswap-v3/contract-math/TickBitMap.ts +128 -0
  113. package/src/dex/pancakeswap-v3/contract-math/TickMath.ts +211 -0
  114. package/src/dex/pancakeswap-v3/contract-math/UnsafeMath.ts +5 -0
  115. package/src/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.ts +691 -0
  116. package/src/dex/pancakeswap-v3/contract-math/utils.ts +11 -0
  117. package/src/dex/pancakeswap-v3/pancakeswap-v3-e2e.test.ts +168 -0
  118. package/src/dex/pancakeswap-v3/pancakeswap-v3-events.test.ts +124 -0
  119. package/src/dex/pancakeswap-v3/pancakeswap-v3-integration.test.ts +460 -0
  120. package/src/dex/pancakeswap-v3/pancakeswap-v3-pool.ts +554 -0
  121. package/src/dex/pancakeswap-v3/pancakeswap-v3.ts +1000 -0
  122. package/src/dex/uniswap-v3/config.ts +0 -32
  123. package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +0 -156
  124. package/src/dex/uniswap-v3/uniswap-v3-events.test.ts +4 -0
  125. package/src/dex/uniswap-v3/uniswap-v3-pool.ts +1 -2
  126. package/src/dex/uniswap-v3/uniswap-v3.ts +0 -1
  127. package/tests/constants-e2e.ts +1 -1
  128. package/.idea/aws.xml +0 -17
  129. package/.idea/codeStyles/Project.xml +0 -19
  130. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  131. package/.idea/misc.xml +0 -6
  132. package/.idea/modules.xml +0 -8
  133. package/.idea/paraswap-dex-lib.iml +0 -9
  134. package/.idea/vcs.xml +0 -6
  135. package/build/abi/woo-fi/WooFeeManager.abi.json +0 -318
  136. package/build/abi/woo-fi/WooPP.abi.json +0 -548
  137. package/build/abi/woo-fi/Wooracle.abi.json +0 -260
  138. package/build/dex/aave-v3/tokens/arbitrum.json +0 -50
  139. package/build/dex/aave-v3/tokens/avalanche.json +0 -74
  140. package/build/dex/aave-v3/tokens/fantom.json +0 -62
  141. package/build/dex/aave-v3/tokens/optimism.json +0 -50
  142. package/build/dex/aave-v3/tokens/polygon.json +0 -116
  143. package/build/dex/quickswap-v3.d.ts +0 -21
  144. package/build/dex/quickswap-v3.js +0 -40
  145. package/build/dex/quickswap-v3.js.map +0 -1
  146. package/build/dex/woo-fi/config.js +0 -141
  147. package/build/dex/woo-fi/config.js.map +0 -1
  148. package/build/dex/woo-fi/constants.d.ts +0 -5
  149. package/build/dex/woo-fi/constants.js +0 -20
  150. package/build/dex/woo-fi/constants.js.map +0 -1
  151. package/build/dex/woo-fi/types.d.ts +0 -48
  152. package/build/dex/woo-fi/types.js +0 -3
  153. package/build/dex/woo-fi/types.js.map +0 -1
  154. package/build/dex/woo-fi/woo-fi-decimal-math.d.ts +0 -14
  155. package/build/dex/woo-fi/woo-fi-decimal-math.js +0 -42
  156. package/build/dex/woo-fi/woo-fi-decimal-math.js.map +0 -1
  157. package/build/dex/woo-fi/woo-fi-math.d.ts +0 -31
  158. package/build/dex/woo-fi/woo-fi-math.js +0 -300
  159. package/build/dex/woo-fi/woo-fi-math.js.map +0 -1
  160. package/build/dex/woo-fi/woo-fi.d.ts +0 -65
  161. package/build/dex/woo-fi/woo-fi.js +0 -480
  162. package/build/dex/woo-fi/woo-fi.js.map +0 -1
  163. package/src/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.ts +0 -28
  164. /package/src/abi/{uniswap-v3/pancakeswap-v3/PancakeswapV3QuoterV2.abi.json → pancakeswap-v3/PancakeswapV3Quoter.abi.json} +0 -0
  165. /package/src/abi/{uniswap-v3/pancakeswap-v3 → pancakeswap-v3}/PancakeswapV3Router.abi.json +0 -0
@@ -4,7 +4,6 @@ import { Network, SwapSide } from '../../constants';
4
4
  import { Address } from '../../types';
5
5
 
6
6
  const SUPPORTED_FEES = [10000n, 3000n, 500n, 100n];
7
- const PANCAKE_SUPPORTED_FEES = [10000n, 2500n, 500n, 100n];
8
7
 
9
8
  // Pools that will be initialized on app startup
10
9
  // They are added for testing
@@ -23,7 +22,6 @@ export const PoolsToPreload: DexConfigMap<
23
22
  },
24
23
  ],
25
24
  },
26
- PancakeswapV3: {},
27
25
  };
28
26
 
29
27
  export const UniswapV3Config: DexConfigMap<DexParams> = {
@@ -88,36 +86,6 @@ export const UniswapV3Config: DexConfigMap<DexParams> = {
88
86
  'https://api.thegraph.com/subgraphs/name/ianlapham/optimism-post-regenesis',
89
87
  },
90
88
  },
91
- PancakeswapV3: {
92
- [Network.MAINNET]: {
93
- factory: '0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865',
94
- deployer: '0x41ff9AA7e16B8B1a8a8dc4f0eFacd93D02d071c9',
95
- quoter: '0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997',
96
- router: '0x1b81D678ffb9C0263b24A97847620C99d213eB14',
97
- supportedFees: PANCAKE_SUPPORTED_FEES,
98
- stateMulticall: '0x80898f80cFA3Fa3AbF410d90e69aDc432AE5D4c2',
99
- uniswapMulticall: '0xac1cE734566f390A94b00eb9bf561c2625BF44ea',
100
- chunksCount: 10,
101
- initHash:
102
- '0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2',
103
- subgraphURL:
104
- 'https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-eth',
105
- },
106
- [Network.BSC]: {
107
- factory: '0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865',
108
- deployer: '0x41ff9AA7e16B8B1a8a8dc4f0eFacd93D02d071c9',
109
- quoter: '0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997',
110
- router: '0x1b81D678ffb9C0263b24A97847620C99d213eB14',
111
- supportedFees: PANCAKE_SUPPORTED_FEES,
112
- stateMulticall: '0x9DAd2ED7ADc6eaacf81589Cd043579c9684E5C81',
113
- uniswapMulticall: '0xac1cE734566f390A94b00eb9bf561c2625BF44ea',
114
- chunksCount: 10,
115
- initHash:
116
- '0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2',
117
- subgraphURL:
118
- 'https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-bsc',
119
- },
120
- },
121
89
  };
122
90
 
123
91
  export const Adapters: Record<number, AdapterMappings> = {
@@ -203,159 +203,3 @@ describe('UniswapV3 E2E', () => {
203
203
  );
204
204
  });
205
205
  });
206
-
207
- describe('PancakeswapV3 E2E', () => {
208
- const dexKey = 'PancakeswapV3';
209
-
210
- describe('PancakeswapV3 MAINNET', () => {
211
- const network = Network.MAINNET;
212
- const tokens = Tokens[network];
213
- const holders = Holders[network];
214
- const provider = new StaticJsonRpcProvider(
215
- generateConfig(network).privateHttpProvider,
216
- network,
217
- );
218
-
219
- const tokenASymbol: string = 'USDT';
220
- const tokenBSymbol: string = 'USDC';
221
- const nativeTokenSymbol = NativeTokenSymbols[network];
222
-
223
- const tokenAAmount: string = '100000000';
224
- const tokenBAmount: string = '100000000';
225
- const nativeTokenAmount = '1000000000000000000';
226
-
227
- const sideToContractMethods = new Map([
228
- [
229
- SwapSide.SELL,
230
- [
231
- ContractMethod.simpleSwap,
232
- ContractMethod.multiSwap,
233
- ContractMethod.megaSwap,
234
- ],
235
- ],
236
- [SwapSide.BUY, [ContractMethod.simpleBuy, ContractMethod.buy]],
237
- ]);
238
-
239
- sideToContractMethods.forEach((contractMethods, side) =>
240
- contractMethods.forEach((contractMethod: ContractMethod) => {
241
- describe(`${contractMethod}`, () => {
242
- it(`${network} ${side} ${contractMethod} ${nativeTokenSymbol} -> ${tokenASymbol}`, async () => {
243
- await testE2E(
244
- tokens[nativeTokenSymbol],
245
- tokens[tokenASymbol],
246
- holders[nativeTokenSymbol],
247
- side === SwapSide.SELL ? nativeTokenAmount : tokenAAmount,
248
- side,
249
- dexKey,
250
- contractMethod,
251
- network,
252
- provider,
253
- );
254
- });
255
- it(`${network} ${side} ${contractMethod} ${tokenASymbol} -> ${nativeTokenSymbol}`, async () => {
256
- await testE2E(
257
- tokens[tokenASymbol],
258
- tokens[nativeTokenSymbol],
259
- holders[tokenASymbol],
260
- side === SwapSide.SELL ? tokenAAmount : nativeTokenAmount,
261
- side,
262
- dexKey,
263
- contractMethod,
264
- network,
265
- provider,
266
- );
267
- });
268
- it(`${network} ${side} ${contractMethod} ${tokenASymbol} -> ${tokenBSymbol}`, async () => {
269
- await testE2E(
270
- tokens[tokenASymbol],
271
- tokens[tokenBSymbol],
272
- holders[tokenASymbol],
273
- side === SwapSide.SELL ? tokenAAmount : tokenBAmount,
274
- side,
275
- dexKey,
276
- contractMethod,
277
- network,
278
- provider,
279
- );
280
- });
281
- });
282
- }),
283
- );
284
- });
285
-
286
- describe('PancakeswapV3 BSC', () => {
287
- const network = Network.BSC;
288
- const tokens = Tokens[network];
289
- const holders = Holders[network];
290
- const provider = new StaticJsonRpcProvider(
291
- generateConfig(network).privateHttpProvider,
292
- network,
293
- );
294
-
295
- const tokenASymbol: string = 'BUSD';
296
- const tokenBSymbol: string = 'WBNB';
297
- const nativeTokenSymbol = NativeTokenSymbols[network];
298
-
299
- const tokenAAmount: string = '100000000000000000000';
300
- const tokenBAmount: string = '1000000000000000000';
301
- const nativeTokenAmount = '1000000000000000000';
302
-
303
- const sideToContractMethods = new Map([
304
- [
305
- SwapSide.SELL,
306
- [
307
- ContractMethod.simpleSwap,
308
- ContractMethod.multiSwap,
309
- ContractMethod.megaSwap,
310
- ],
311
- ],
312
- [SwapSide.BUY, [ContractMethod.simpleBuy, ContractMethod.buy]],
313
- ]);
314
-
315
- sideToContractMethods.forEach((contractMethods, side) =>
316
- contractMethods.forEach((contractMethod: ContractMethod) => {
317
- describe(`${contractMethod}`, () => {
318
- it(`${network} ${side} ${contractMethod} ${nativeTokenSymbol} -> ${tokenASymbol}`, async () => {
319
- await testE2E(
320
- tokens[nativeTokenSymbol],
321
- tokens[tokenASymbol],
322
- holders[nativeTokenSymbol],
323
- side === SwapSide.SELL ? nativeTokenAmount : tokenAAmount,
324
- side,
325
- dexKey,
326
- contractMethod,
327
- network,
328
- provider,
329
- );
330
- });
331
- it(`${network} ${side} ${contractMethod} ${tokenASymbol} -> ${nativeTokenSymbol}`, async () => {
332
- await testE2E(
333
- tokens[tokenASymbol],
334
- tokens[nativeTokenSymbol],
335
- holders[tokenASymbol],
336
- side === SwapSide.SELL ? tokenAAmount : nativeTokenAmount,
337
- side,
338
- dexKey,
339
- contractMethod,
340
- network,
341
- provider,
342
- );
343
- });
344
- it(`${network} ${side} ${contractMethod} ${tokenASymbol} -> ${tokenBSymbol}`, async () => {
345
- await testE2E(
346
- tokens[tokenASymbol],
347
- tokens[tokenBSymbol],
348
- holders[tokenASymbol],
349
- side === SwapSide.SELL ? tokenAAmount : tokenBAmount,
350
- side,
351
- dexKey,
352
- contractMethod,
353
- network,
354
- provider,
355
- );
356
- });
357
- });
358
- }),
359
- );
360
- });
361
- });
@@ -106,6 +106,8 @@ describe('UniswapV3 Event', function () {
106
106
  token0,
107
107
  token1,
108
108
  logger,
109
+ undefined,
110
+ config.initHash,
109
111
  );
110
112
 
111
113
  // It is done in generateState. But here have to make it manually
@@ -159,6 +161,8 @@ describe('UniswapV3 Event', function () {
159
161
  _token0,
160
162
  _token1,
161
163
  logger,
164
+ undefined,
165
+ config.initHash,
162
166
  );
163
167
 
164
168
  // It is done in generateState. But here have to make it manually
@@ -69,7 +69,6 @@ export class UniswapV3EventPool extends StatefulEventSubscriber<PoolState> {
69
69
  logger: Logger,
70
70
  mapKey: string = '',
71
71
  readonly poolInitCodeHash: string,
72
- readonly poolDeployer?: string,
73
72
  ) {
74
73
  super(
75
74
  parentName,
@@ -539,7 +538,7 @@ export class UniswapV3EventPool extends StatefulEventSubscriber<PoolState> {
539
538
  );
540
539
 
541
540
  return ethers.utils.getCreate2Address(
542
- this.poolDeployer ? this.poolDeployer : this.factoryAddress,
541
+ this.factoryAddress,
543
542
  encodedKey,
544
543
  this.poolInitCodeHash,
545
544
  );
@@ -214,7 +214,6 @@ export class UniswapV3
214
214
  this.logger,
215
215
  this.cacheStateKey,
216
216
  this.config.initHash,
217
- this.config.deployer,
218
217
  );
219
218
 
220
219
  try {
@@ -1011,7 +1011,7 @@ export const Holders: {
1011
1011
  aArbUSDC: '0x048BF2F5908e95976CeAD0E47D805b3803E286e2',
1012
1012
  ZYB: '0x3ec0eddcd1e25025077327886a78133589082fb2',
1013
1013
  WBTC: '0xd9d611c6943585bc0e18e51034af8fa28778f7da',
1014
- RDNT: '0x62383739d68dd0f844103db8dfb05a7eded5bbe6'
1014
+ RDNT: '0x62383739d68dd0f844103db8dfb05a7eded5bbe6',
1015
1015
  },
1016
1016
  [Network.OPTIMISM]: {
1017
1017
  ETH: '0x9ef21bE1C270AA1c3c3d750F458442397fBFFCB6',
package/.idea/aws.xml DELETED
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="accountSettings">
4
- <option name="activeProfile" value="profile:default" />
5
- <option name="activeRegion" value="us-east-1" />
6
- <option name="recentlyUsedProfiles">
7
- <list>
8
- <option value="profile:default" />
9
- </list>
10
- </option>
11
- <option name="recentlyUsedRegions">
12
- <list>
13
- <option value="us-east-1" />
14
- </list>
15
- </option>
16
- </component>
17
- </project>
@@ -1,19 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <code_scheme name="Project" version="173">
3
- <ScalaCodeStyleSettings>
4
- <option name="MULTILINE_STRING_CLOSING_QUOTES_ON_NEW_LINE" value="true" />
5
- </ScalaCodeStyleSettings>
6
- <TypeScriptCodeStyleSettings version="0">
7
- <option name="SPACE_WITHIN_ARRAY_INITIALIZER_BRACKETS" value="true" />
8
- <option name="USE_DOUBLE_QUOTES" value="false" />
9
- <option name="SPACES_WITHIN_IMPORTS" value="true" />
10
- </TypeScriptCodeStyleSettings>
11
- <codeStyleSettings language="TypeScript">
12
- <indentOptions>
13
- <option name="INDENT_SIZE" value="2" />
14
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
15
- <option name="TAB_SIZE" value="2" />
16
- </indentOptions>
17
- </codeStyleSettings>
18
- </code_scheme>
19
- </component>
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
4
- </state>
5
- </component>
package/.idea/misc.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectRootManager">
4
- <output url="file://$PROJECT_DIR$/out" />
5
- </component>
6
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/paraswap-dex-lib.iml" filepath="$PROJECT_DIR$/.idea/paraswap-dex-lib.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="JAVA_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$" />
6
- <orderEntry type="inheritedJdk" />
7
- <orderEntry type="sourceFolder" forTests="false" />
8
- </component>
9
- </module>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>
@@ -1,318 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- { "internalType": "address", "name": "newQuoteToken", "type": "address" },
5
- {
6
- "internalType": "address",
7
- "name": "newRebateManager",
8
- "type": "address"
9
- },
10
- {
11
- "internalType": "address",
12
- "name": "newVaultManager",
13
- "type": "address"
14
- },
15
- {
16
- "internalType": "address",
17
- "name": "newAccessManager",
18
- "type": "address"
19
- },
20
- { "internalType": "address", "name": "newTreasury", "type": "address" }
21
- ],
22
- "stateMutability": "nonpayable",
23
- "type": "constructor"
24
- },
25
- {
26
- "anonymous": false,
27
- "inputs": [
28
- {
29
- "indexed": true,
30
- "internalType": "address",
31
- "name": "token",
32
- "type": "address"
33
- },
34
- {
35
- "indexed": false,
36
- "internalType": "uint256",
37
- "name": "newFeeRate",
38
- "type": "uint256"
39
- }
40
- ],
41
- "name": "FeeRateUpdated",
42
- "type": "event"
43
- },
44
- {
45
- "anonymous": false,
46
- "inputs": [
47
- {
48
- "indexed": true,
49
- "internalType": "address",
50
- "name": "previousOwner",
51
- "type": "address"
52
- },
53
- {
54
- "indexed": true,
55
- "internalType": "address",
56
- "name": "newOwner",
57
- "type": "address"
58
- }
59
- ],
60
- "name": "OwnershipTransferPrepared",
61
- "type": "event"
62
- },
63
- {
64
- "anonymous": false,
65
- "inputs": [
66
- {
67
- "indexed": true,
68
- "internalType": "address",
69
- "name": "previousOwner",
70
- "type": "address"
71
- },
72
- {
73
- "indexed": true,
74
- "internalType": "address",
75
- "name": "newOwner",
76
- "type": "address"
77
- }
78
- ],
79
- "name": "OwnershipTransferred",
80
- "type": "event"
81
- },
82
- {
83
- "anonymous": false,
84
- "inputs": [
85
- {
86
- "indexed": true,
87
- "internalType": "address",
88
- "name": "token",
89
- "type": "address"
90
- },
91
- {
92
- "indexed": true,
93
- "internalType": "address",
94
- "name": "to",
95
- "type": "address"
96
- },
97
- {
98
- "indexed": false,
99
- "internalType": "uint256",
100
- "name": "amount",
101
- "type": "uint256"
102
- }
103
- ],
104
- "name": "Withdraw",
105
- "type": "event"
106
- },
107
- {
108
- "inputs": [],
109
- "name": "_NEW_OWNER_",
110
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
111
- "stateMutability": "view",
112
- "type": "function"
113
- },
114
- {
115
- "inputs": [],
116
- "name": "_OWNER_",
117
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
118
- "stateMutability": "view",
119
- "type": "function"
120
- },
121
- {
122
- "inputs": [],
123
- "name": "accessManager",
124
- "outputs": [
125
- {
126
- "internalType": "contract IWooAccessManager",
127
- "name": "",
128
- "type": "address"
129
- }
130
- ],
131
- "stateMutability": "view",
132
- "type": "function"
133
- },
134
- {
135
- "inputs": [],
136
- "name": "claimOwnership",
137
- "outputs": [],
138
- "stateMutability": "nonpayable",
139
- "type": "function"
140
- },
141
- {
142
- "inputs": [
143
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
144
- { "internalType": "address", "name": "brokerAddr", "type": "address" }
145
- ],
146
- "name": "collectFee",
147
- "outputs": [],
148
- "stateMutability": "nonpayable",
149
- "type": "function"
150
- },
151
- {
152
- "inputs": [],
153
- "name": "distributeFees",
154
- "outputs": [],
155
- "stateMutability": "nonpayable",
156
- "type": "function"
157
- },
158
- {
159
- "inputs": [
160
- { "internalType": "address", "name": "token", "type": "address" },
161
- { "internalType": "address", "name": "to", "type": "address" }
162
- ],
163
- "name": "emergencyWithdraw",
164
- "outputs": [],
165
- "stateMutability": "nonpayable",
166
- "type": "function"
167
- },
168
- {
169
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
170
- "name": "feeRate",
171
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
172
- "stateMutability": "view",
173
- "type": "function"
174
- },
175
- {
176
- "inputs": [
177
- { "internalType": "address", "name": "newOwner", "type": "address" }
178
- ],
179
- "name": "initOwner",
180
- "outputs": [],
181
- "stateMutability": "nonpayable",
182
- "type": "function"
183
- },
184
- {
185
- "inputs": [],
186
- "name": "quoteToken",
187
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
188
- "stateMutability": "view",
189
- "type": "function"
190
- },
191
- {
192
- "inputs": [],
193
- "name": "rebateAmount",
194
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
195
- "stateMutability": "view",
196
- "type": "function"
197
- },
198
- {
199
- "inputs": [],
200
- "name": "rebateManager",
201
- "outputs": [
202
- {
203
- "internalType": "contract IWooRebateManager",
204
- "name": "",
205
- "type": "address"
206
- }
207
- ],
208
- "stateMutability": "view",
209
- "type": "function"
210
- },
211
- {
212
- "inputs": [
213
- {
214
- "internalType": "address",
215
- "name": "newAccessManager",
216
- "type": "address"
217
- }
218
- ],
219
- "name": "setAccessManager",
220
- "outputs": [],
221
- "stateMutability": "nonpayable",
222
- "type": "function"
223
- },
224
- {
225
- "inputs": [
226
- { "internalType": "address", "name": "token", "type": "address" },
227
- { "internalType": "uint256", "name": "newFeeRate", "type": "uint256" }
228
- ],
229
- "name": "setFeeRate",
230
- "outputs": [],
231
- "stateMutability": "nonpayable",
232
- "type": "function"
233
- },
234
- {
235
- "inputs": [
236
- {
237
- "internalType": "address",
238
- "name": "newRebateManager",
239
- "type": "address"
240
- }
241
- ],
242
- "name": "setRebateManager",
243
- "outputs": [],
244
- "stateMutability": "nonpayable",
245
- "type": "function"
246
- },
247
- {
248
- "inputs": [
249
- { "internalType": "address", "name": "newTreasury", "type": "address" }
250
- ],
251
- "name": "setTreasury",
252
- "outputs": [],
253
- "stateMutability": "nonpayable",
254
- "type": "function"
255
- },
256
- {
257
- "inputs": [
258
- {
259
- "internalType": "address",
260
- "name": "newVaultManager",
261
- "type": "address"
262
- }
263
- ],
264
- "name": "setVaultManager",
265
- "outputs": [],
266
- "stateMutability": "nonpayable",
267
- "type": "function"
268
- },
269
- {
270
- "inputs": [
271
- {
272
- "internalType": "uint256",
273
- "name": "newVaultRewardRate",
274
- "type": "uint256"
275
- }
276
- ],
277
- "name": "setVaultRewardRate",
278
- "outputs": [],
279
- "stateMutability": "nonpayable",
280
- "type": "function"
281
- },
282
- {
283
- "inputs": [
284
- { "internalType": "address", "name": "newOwner", "type": "address" }
285
- ],
286
- "name": "transferOwnership",
287
- "outputs": [],
288
- "stateMutability": "nonpayable",
289
- "type": "function"
290
- },
291
- {
292
- "inputs": [],
293
- "name": "treasury",
294
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
295
- "stateMutability": "view",
296
- "type": "function"
297
- },
298
- {
299
- "inputs": [],
300
- "name": "vaultManager",
301
- "outputs": [
302
- {
303
- "internalType": "contract IWooVaultManager",
304
- "name": "",
305
- "type": "address"
306
- }
307
- ],
308
- "stateMutability": "view",
309
- "type": "function"
310
- },
311
- {
312
- "inputs": [],
313
- "name": "vaultRewardRate",
314
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
315
- "stateMutability": "view",
316
- "type": "function"
317
- }
318
- ]