@paraswap/dex-lib 4.1.20 → 4.1.21

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 (1211) hide show
  1. package/build/abi/aave-gsm/Pool.json +1459 -0
  2. package/build/dex/aave-gsm/aave-gsm-pool.d.ts +7 -1
  3. package/build/dex/aave-gsm/aave-gsm-pool.js +46 -4
  4. package/build/dex/aave-gsm/aave-gsm-pool.js.map +1 -1
  5. package/build/dex/aave-gsm/aave-gsm.js +37 -30
  6. package/build/dex/aave-gsm/aave-gsm.js.map +1 -1
  7. package/build/dex/aave-gsm/config.js +6 -5
  8. package/build/dex/aave-gsm/config.js.map +1 -1
  9. package/build/dex/aave-gsm/types.d.ts +5 -2
  10. package/build/dex/pancakeswap-v3/config.js +1 -1
  11. package/build/dex/pancakeswap-v3/config.js.map +1 -1
  12. package/build/dex/uniswap-v3/config.js +2 -2
  13. package/build/dex/uniswap-v3/config.js.map +1 -1
  14. package/build/dex/wombat/wombat.d.ts +0 -1
  15. package/build/dex/wombat/wombat.js +2 -44
  16. package/build/dex/wombat/wombat.js.map +1 -1
  17. package/build/dex/woo-fi-v2/config.js +16 -15
  18. package/build/dex/woo-fi-v2/config.js.map +1 -1
  19. package/package.json +1 -1
  20. package/.env.example +0 -15
  21. package/.eslintrc.js +0 -65
  22. package/.github/workflows/ci.yaml +0 -22
  23. package/.husky/pre-commit +0 -4
  24. package/.prettierrc +0 -10
  25. package/dex-template/__DexName__-e2e.test.ts.template +0 -155
  26. package/dex-template/__DexName__-events.test.ts.template +0 -110
  27. package/dex-template/__DexName__-integration.test.ts.template +0 -251
  28. package/dex-template/__DexName__-pool.ts.template +0 -91
  29. package/dex-template/__DexName__.ts.template +0 -156
  30. package/dex-template/config.ts.template +0 -9
  31. package/dex-template/types.ts.template +0 -22
  32. package/funding.json +0 -5
  33. package/jest.config.js +0 -10
  34. package/scripts/dex-integration.ts +0 -164
  35. package/scripts/fetch-event-blocknumber.ts +0 -51
  36. package/scripts/generate-bytecode.ts +0 -11
  37. package/scripts/run-dex-integration-v3.ts +0 -78
  38. package/scripts/run-dex-integration.ts +0 -95
  39. package/src/abi/AaveV2_lending_pool.json +0 -53
  40. package/src/abi/AaveV3_lending_pool.json +0 -1715
  41. package/src/abi/Balancer.json +0 -257
  42. package/src/abi/BalancerCustomMulticall.json +0 -26
  43. package/src/abi/BalancerV1ExchangeProxy.json +0 -377
  44. package/src/abi/BalancerV1Pool.json +0 -1630
  45. package/src/abi/BalancerV2.json +0 -1179
  46. package/src/abi/Bancor.json +0 -392
  47. package/src/abi/Compound_CETH.json +0 -12
  48. package/src/abi/Curve.json +0 -54
  49. package/src/abi/CurveV2.json +0 -700
  50. package/src/abi/DirectSwap.json +0 -1018
  51. package/src/abi/ERC1155.abi.json +0 -459
  52. package/src/abi/ERC1271.abi.json +0 -25
  53. package/src/abi/ERC20.abi.json +0 -288
  54. package/src/abi/ERC4626.json +0 -791
  55. package/src/abi/ERC721.abi.json +0 -165
  56. package/src/abi/IParaswap.json +0 -3059
  57. package/src/abi/RamsesV2Pool.abi.json +0 -1554
  58. package/src/abi/RamsesV2Quoter.abi.json +0 -274
  59. package/src/abi/RamsesV2StateMulticall.abi.json +0 -891
  60. package/src/abi/Redstone.json +0 -739
  61. package/src/abi/SSPM.json +0 -829
  62. package/src/abi/SimpleSwapHelperRouter.json +0 -38
  63. package/src/abi/Smoothy.json +0 -1049
  64. package/src/abi/StablePool.json +0 -1035
  65. package/src/abi/StaderOracle.json +0 -2170
  66. package/src/abi/TraderJoeV21Router.json +0 -1489
  67. package/src/abi/USDM.json +0 -807
  68. package/src/abi/UniswapV2ExchangeRouter.json +0 -84
  69. package/src/abi/UniswapV2Router.json +0 -397
  70. package/src/abi/UniswapV3Router.json +0 -274
  71. package/src/abi/aave-gsm/Aave_GSM.json +0 -751
  72. package/src/abi/aave-gsm/IFeeStrategy.json +0 -78
  73. package/src/abi/aave-v3-weth-gateway.json +0 -290
  74. package/src/abi/aave-weth-gateway-avalanche.json +0 -242
  75. package/src/abi/aave-weth-gateway-polygon.json +0 -242
  76. package/src/abi/aave-weth-gateway.json +0 -38
  77. package/src/abi/aavev3stata/Factory.json +0 -128
  78. package/src/abi/aavev3stata/Token.json +0 -735
  79. package/src/abi/aavev3statav2/Factory.json +0 -131
  80. package/src/abi/aavev3statav2/Pool.json +0 -1459
  81. package/src/abi/aavev3statav2/Token.json +0 -997
  82. package/src/abi/aerodrome/aerodrome-pool-factory.json +0 -586
  83. package/src/abi/algebra/AlgebraFactory-v1_1.abi.json +0 -250
  84. package/src/abi/algebra/AlgebraPool-v1_1.abi.json +0 -727
  85. package/src/abi/algebra/AlgebraPool-v1_9.abi.json +0 -756
  86. package/src/abi/algebra/AlgebraQuoter.abi.json +0 -138
  87. package/src/abi/algebra/AlgebraStateMulticall.abi.json +0 -801
  88. package/src/abi/algebra/SwapRouter.json +0 -281
  89. package/src/abi/angle/stagToken.json +0 -963
  90. package/src/abi/angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json +0 -1246
  91. package/src/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +0 -509
  92. package/src/abi/angle-transmuter/MorphoOracle.json +0 -193
  93. package/src/abi/angle-transmuter/MorphoVault.json +0 -2506
  94. package/src/abi/angle-transmuter/Pyth.json +0 -1534
  95. package/src/abi/angle-transmuter/Transmuter.json +0 -1711
  96. package/src/abi/angle-transmuter/TransmuterSidechain.json +0 -1798
  97. package/src/abi/api3-proxy.json +0 -53
  98. package/src/abi/api3-server-v1.json +0 -463
  99. package/src/abi/augustus-v6/ABI.json +0 -1572
  100. package/src/abi/augustus.json +0 -375
  101. package/src/abi/balancer-v2/ComposableStable.json +0 -1391
  102. package/src/abi/balancer-v2/gyro-e.abi.json +0 -1595
  103. package/src/abi/balancer-v2/linearPoolAbi.json +0 -1062
  104. package/src/abi/balancer-v2/meta-stable-pool.json +0 -1437
  105. package/src/abi/balancer-v2/stable-pool.json +0 -1053
  106. package/src/abi/balancer-v2/vault.json +0 -918
  107. package/src/abi/balancer-v2/weighted-pool.json +0 -1142
  108. package/src/abi/balancer-v3/batch-router.json +0 -989
  109. package/src/abi/balancer-v3/directionalFeeHook.json +0 -684
  110. package/src/abi/balancer-v3/router.json +0 -1792
  111. package/src/abi/balancer-v3/stableSurgeHook.json +0 -976
  112. package/src/abi/balancer-v3/vault-extension.json +0 -2834
  113. package/src/abi/bebop/BebopSettlement.abi.json +0 -2137
  114. package/src/abi/benqi/staked-avax.json +0 -954
  115. package/src/abi/cables/CablesMainnetRFQ.json +0 -1083
  116. package/src/abi/camelot/CamelotFactory.json +0 -494
  117. package/src/abi/camelot/CamelotPair.json +0 -1027
  118. package/src/abi/chainlink.json +0 -323
  119. package/src/abi/concentrator/arUSD.json +0 -568
  120. package/src/abi/concentrator/arUSD5115.json +0 -1746
  121. package/src/abi/curve-v1/CurveBUSDv2.abi.json +0 -1356
  122. package/src/abi/curve-v1/CurveTokenV1.json +0 -305
  123. package/src/abi/curve-v1/CurveTokenV2.json +0 -318
  124. package/src/abi/curve-v1/CurveV1StableNg.json +0 -1452
  125. package/src/abi/curve-v1/CurveV2Swap.json +0 -700
  126. package/src/abi/curve-v1/FactoryCryptoRegistry.json +0 -316
  127. package/src/abi/curve-v1/FactoryRegistry.json +0 -508
  128. package/src/abi/curve-v1/StableSwap3Pool.json +0 -838
  129. package/src/abi/curve-v1/StableSwapAave.json +0 -1152
  130. package/src/abi/curve-v1/StableSwapBBTC.json +0 -1017
  131. package/src/abi/curve-v1/StableSwapBUSD.json +0 -814
  132. package/src/abi/curve-v1/StableSwapCompound.json +0 -814
  133. package/src/abi/curve-v1/StableSwapDUSD.json +0 -1004
  134. package/src/abi/curve-v1/StableSwapEURS.json +0 -868
  135. package/src/abi/curve-v1/StableSwapGUSD.json +0 -1004
  136. package/src/abi/curve-v1/StableSwapHBTC.json +0 -838
  137. package/src/abi/curve-v1/StableSwapHUSD.json +0 -1004
  138. package/src/abi/curve-v1/StableSwapIDLE.json +0 -1253
  139. package/src/abi/curve-v1/StableSwapLinkUSD.json +0 -1004
  140. package/src/abi/curve-v1/StableSwapMUSD.json +0 -1004
  141. package/src/abi/curve-v1/StableSwapOBTC.json +0 -1017
  142. package/src/abi/curve-v1/StableSwapPBTC.json +0 -1017
  143. package/src/abi/curve-v1/StableSwapPax.json +0 -865
  144. package/src/abi/curve-v1/StableSwapRSV.json +0 -1004
  145. package/src/abi/curve-v1/StableSwapRen.json +0 -851
  146. package/src/abi/curve-v1/StableSwapSBTC.json +0 -851
  147. package/src/abi/curve-v1/StableSwapSETH.json +0 -850
  148. package/src/abi/curve-v1/StableSwapSLINK.json +0 -899
  149. package/src/abi/curve-v1/StableSwapSTETH.json +0 -895
  150. package/src/abi/curve-v1/StableSwapSUSD.json +0 -760
  151. package/src/abi/curve-v1/StableSwapSnow.json +0 -900
  152. package/src/abi/curve-v1/StableSwapTBTC.json +0 -1017
  153. package/src/abi/curve-v1/StableSwapUSDK.json +0 -1004
  154. package/src/abi/curve-v1/StableSwapUSDN.json +0 -1004
  155. package/src/abi/curve-v1/StableSwapUSDT.json +0 -814
  156. package/src/abi/curve-v1/StableSwapUST.json +0 -1017
  157. package/src/abi/curve-v1/StableSwapY.json +0 -814
  158. package/src/abi/curve-v1-factory/CurveV1Router.abi.json +0 -331
  159. package/src/abi/curve-v1-factory/FactoryCurveV1.json +0 -508
  160. package/src/abi/curve-v1-factory/ThreePool.json +0 -468
  161. package/src/abi/curve-v2/GenericFactoryZap.json +0 -233
  162. package/src/abi/dexalot/DexalotMainnetRFQ.json +0 -952
  163. package/src/abi/dodo-v2-proxy.json +0 -565
  164. package/src/abi/ekubo/core.json +0 -1266
  165. package/src/abi/ekubo/data-fetcher.json +0 -161
  166. package/src/abi/ekubo/router.json +0 -803
  167. package/src/abi/erc20.json +0 -308
  168. package/src/abi/etherfi/eETHPool.json +0 -9
  169. package/src/abi/etherfi/weETH.json +0 -20
  170. package/src/abi/fluid-dex/dexFactory.abi.json +0 -506
  171. package/src/abi/fluid-dex/fluid-dex.abi.json +0 -1476
  172. package/src/abi/fluid-dex/liquidityUserModule.abi.json +0 -145
  173. package/src/abi/fluid-dex/resolver.abi.json +0 -2030
  174. package/src/abi/fx-protocol/FxMarket.json +0 -1284
  175. package/src/abi/fx-protocol/FxUSD.json +0 -1227
  176. package/src/abi/fx-protocol/weETHOralce.json +0 -676
  177. package/src/abi/gmx/fast-price-events.json +0 -70
  178. package/src/abi/gmx/fast-price-feed.json +0 -748
  179. package/src/abi/gmx/reader.json +0 -337
  180. package/src/abi/gmx/vault-price-feed.json +0 -477
  181. package/src/abi/gmx/vault.json +0 -2002
  182. package/src/abi/hashflow/HashflowRouter.abi.json +0 -1539
  183. package/src/abi/idle-dao/idle-cdo-factory.json +0 -38
  184. package/src/abi/idle-dao/idle-cdo.json +0 -1245
  185. package/src/abi/infusion/InfusionFactory.json +0 -147
  186. package/src/abi/infusion/InfusionPair.json +0 -658
  187. package/src/abi/infusion/InfusionRouter.json +0 -442
  188. package/src/abi/jarvis/ChainlinkAccessControlledOffchainAggregator.json +0 -1009
  189. package/src/abi/jarvis/SynthereumPriceFeed.json +0 -381
  190. package/src/abi/jarvis/jarvis-v6-pool.json +0 -1041
  191. package/src/abi/kyberdmm/kyber-dmm-exchange-router.abi.json +0 -1148
  192. package/src/abi/kyberdmm/kyber-dmm-factory.abi.json +0 -335
  193. package/src/abi/kyberdmm/kyber-dmm-pool.abi.json +0 -803
  194. package/src/abi/kyberdmm/kyber-storage.abi.json +0 -824
  195. package/src/abi/kyberdmm.abi.json +0 -1148
  196. package/src/abi/lite-psm/dai.json +0 -333
  197. package/src/abi/lite-psm/psm.json +0 -468
  198. package/src/abi/lite-psm/usdc.json +0 -814
  199. package/src/abi/lite-psm/usdsPsm.json +0 -163
  200. package/src/abi/m-token/WrappedM.abi.json +0 -1708
  201. package/src/abi/maker-psm/pot.json +0 -322
  202. package/src/abi/maker-psm/psm.json +0 -243
  203. package/src/abi/maker-psm/vat.json +0 -363
  204. package/src/abi/maverick-v1/pool-inspector.json +0 -216
  205. package/src/abi/maverick-v1/pool.json +0 -1111
  206. package/src/abi/maverick-v1/router.json +0 -389
  207. package/src/abi/maverick-v2/MaverickV2Pool.json +0 -1234
  208. package/src/abi/maverick-v2/MaverickV2PoolLens.json +0 -1232
  209. package/src/abi/maverick-v2/MaverickV2Quoter.json +0 -278
  210. package/src/abi/maverick-v2/MaverickV2Router.json +0 -778
  211. package/src/abi/multi-v2.json +0 -313
  212. package/src/abi/nerve/axial-pool.json +0 -693
  213. package/src/abi/nerve/iron-v2-pool.json +0 -785
  214. package/src/abi/nerve/nerve-metapool.json +0 -790
  215. package/src/abi/nerve/nerve-pool.json +0 -1035
  216. package/src/abi/nomiswap-v2/nomiswap-v2-pool.json +0 -773
  217. package/src/abi/oswap/oswap.abi.json +0 -452
  218. package/src/abi/pancakeswap-v3/PancakeV3StateMulticall.abi.json +0 -781
  219. package/src/abi/pancakeswap-v3/PancakeswapV3Factory.abi.json +0 -300
  220. package/src/abi/pancakeswap-v3/PancakeswapV3Pool.abi.json +0 -1039
  221. package/src/abi/pancakeswap-v3/PancakeswapV3Quoter.abi.json +0 -285
  222. package/src/abi/pancakeswap-v3/PancakeswapV3Router.abi.json +0 -583
  223. package/src/abi/paraswap-limit-orders/AugustusRFQ.abi.json +0 -1081
  224. package/src/abi/permit/IERC20Permit.json +0 -45
  225. package/src/abi/permit/IERC20PermitLegacy.json +0 -50
  226. package/src/abi/permit2.json +0 -581
  227. package/src/abi/polygon-migration/PolygonMigration.abi.json +0 -364
  228. package/src/abi/quick-perps/fast-price-events.json +0 -70
  229. package/src/abi/quick-perps/fast-price-feed.json +0 -741
  230. package/src/abi/quick-perps/reader.json +0 -313
  231. package/src/abi/quick-perps/vault-price-feed.json +0 -323
  232. package/src/abi/quick-perps/vault.json +0 -1953
  233. package/src/abi/ramses-v2/RamsesV2Pool.abi.json +0 -1599
  234. package/src/abi/rswETH.json +0 -1142
  235. package/src/abi/sdai/PSM3.abi.json +0 -721
  236. package/src/abi/sdai/SSRAuthOracle.abi.json +0 -522
  237. package/src/abi/sdai/SavingsDai.abi.json +0 -877
  238. package/src/abi/sdai/SavingsUSDS.abi.json +0 -720
  239. package/src/abi/sky-converter/DaiUsdsConverter.json +0 -116
  240. package/src/abi/sky-converter/MkrSkyConverter.json +0 -118
  241. package/src/abi/solidly/SolidlyFactory.json +0 -147
  242. package/src/abi/solidly/SolidlyPair.json +0 -658
  243. package/src/abi/solidly-v3/SolidlyV3Pool.abi.json +0 -738
  244. package/src/abi/solidly-v3/SolidlyV3StateMulticall.abi.json +0 -375
  245. package/src/abi/stETH.json +0 -735
  246. package/src/abi/stkGHO.json +0 -1131
  247. package/src/abi/swETH.json +0 -1086
  248. package/src/abi/swaap-v2/vault.json +0 -918
  249. package/src/abi/synthetix/CombinedSynthetix.abi.json +0 -422
  250. package/src/abi/uniswap-v2/biswap-pool.json +0 -501
  251. package/src/abi/uniswap-v2/excalibur-pool.json +0 -881
  252. package/src/abi/uniswap-v2/mdex-factory.json +0 -759
  253. package/src/abi/uniswap-v2/uniswap-v2-factory.json +0 -125
  254. package/src/abi/uniswap-v2/uniswap-v2-pool.json +0 -461
  255. package/src/abi/uniswap-v3/UniswapMulti.abi.json +0 -52
  256. package/src/abi/uniswap-v3/UniswapV3Factory.abi.json +0 -148
  257. package/src/abi/uniswap-v3/UniswapV3Pool.abi.json +0 -988
  258. package/src/abi/uniswap-v3/UniswapV3Quoter.abi.json +0 -193
  259. package/src/abi/uniswap-v3/UniswapV3QuoterV2.abi.json +0 -155
  260. package/src/abi/uniswap-v3/UniswapV3Router.abi.json +0 -274
  261. package/src/abi/uniswap-v3/UniswapV3StateMulticall.abi.json +0 -781
  262. package/src/abi/usual-bond/usd0pp.abi.json +0 -867
  263. package/src/abi/usual-m-usd0/usualCollateralDao.abi.json +0 -681
  264. package/src/abi/usual-m-wrapped-m/usualM.abi.json +0 -509
  265. package/src/abi/usual-pp/abi.json +0 -750
  266. package/src/abi/velodrome-slipstream/VelodromeSlipstreamFactory.abi.json +0 -579
  267. package/src/abi/velodrome-slipstream/VelodromeSlipstreamPool.abi.json +0 -1275
  268. package/src/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +0 -267
  269. package/src/abi/velodrome-slipstream/VelodromeSlipstreamStateMulticall.abi.json +0 -766
  270. package/src/abi/weth.abi.json +0 -153
  271. package/src/abi/wombat/asset.json +0 -743
  272. package/src/abi/wombat/bmw.json +0 -1247
  273. package/src/abi/wombat/pool-v2.json +0 -1289
  274. package/src/abi/wombat/pool-v3.json +0 -2013
  275. package/src/abi/woo-fi-v2/IntegrationHelper.abi.json +0 -116
  276. package/src/abi/woo-fi-v2/WooOracleV2.abi.json +0 -358
  277. package/src/abi/woo-fi-v2/WooPPV2.abi.json +0 -580
  278. package/src/abi/wstETH.json +0 -252
  279. package/src/bigint-constants.ts +0 -21
  280. package/src/bignumber-constants.ts +0 -20
  281. package/src/calldata-gas-cost.ts +0 -26
  282. package/src/composed-event-subscriber.ts +0 -131
  283. package/src/config.ts +0 -580
  284. package/src/constants.ts +0 -74
  285. package/src/dex/aave-gsm/aave-gsm-e2e.test.ts +0 -110
  286. package/src/dex/aave-gsm/aave-gsm-events.test.ts +0 -82
  287. package/src/dex/aave-gsm/aave-gsm-gas-estimation.test.ts +0 -32
  288. package/src/dex/aave-gsm/aave-gsm-integration.test.ts +0 -522
  289. package/src/dex/aave-gsm/aave-gsm-pool.ts +0 -225
  290. package/src/dex/aave-gsm/aave-gsm.ts +0 -431
  291. package/src/dex/aave-gsm/config.ts +0 -16
  292. package/src/dex/aave-gsm/types.ts +0 -24
  293. package/src/dex/aave-v2/aave-v2-e2e.test.ts +0 -287
  294. package/src/dex/aave-v2/aave-v2-gas-estimation.test.ts +0 -28
  295. package/src/dex/aave-v2/aave-v2-integration.test.ts +0 -100
  296. package/src/dex/aave-v2/aave-v2.ts +0 -409
  297. package/src/dex/aave-v2/config.ts +0 -56
  298. package/src/dex/aave-v2/tokenlist.json +0 -904
  299. package/src/dex/aave-v2/tokens.ts +0 -76
  300. package/src/dex/aave-v2/types.ts +0 -43
  301. package/src/dex/aave-v3/aave-v3-e2e.test.ts +0 -578
  302. package/src/dex/aave-v3/aave-v3-gas-estimation.test.ts +0 -66
  303. package/src/dex/aave-v3/aave-v3-integration.test.ts +0 -148
  304. package/src/dex/aave-v3/aave-v3.ts +0 -331
  305. package/src/dex/aave-v3/config.ts +0 -157
  306. package/src/dex/aave-v3/tokens.ts +0 -68
  307. package/src/dex/aave-v3/types.ts +0 -46
  308. package/src/dex/aave-v3/utils.ts +0 -153
  309. package/src/dex/aave-v3-stata/aave-v3-stata-e2e.test.ts +0 -355
  310. package/src/dex/aave-v3-stata/aave-v3-stata-gas-estimation.test.ts +0 -41
  311. package/src/dex/aave-v3-stata/aave-v3-stata-integration.test.ts +0 -282
  312. package/src/dex/aave-v3-stata/aave-v3-stata.ts +0 -530
  313. package/src/dex/aave-v3-stata/config.ts +0 -61
  314. package/src/dex/aave-v3-stata/tokens.ts +0 -48
  315. package/src/dex/aave-v3-stata/types.ts +0 -69
  316. package/src/dex/aave-v3-stata/utils.ts +0 -84
  317. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2-e2e.test.ts +0 -376
  318. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2-gas-estimation.test.ts +0 -41
  319. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2-integration.test.ts +0 -600
  320. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2.ts +0 -477
  321. package/src/dex/aave-v3-stata-v2/config.ts +0 -47
  322. package/src/dex/aave-v3-stata-v2/tokens.ts +0 -48
  323. package/src/dex/aave-v3-stata-v2/types.ts +0 -42
  324. package/src/dex/aave-v3-stata-v2/utils.ts +0 -96
  325. package/src/dex/algebra/algebra-e2e.test.ts +0 -313
  326. package/src/dex/algebra/algebra-events.test.ts +0 -186
  327. package/src/dex/algebra/algebra-factory.ts +0 -77
  328. package/src/dex/algebra/algebra-integration.test.ts +0 -558
  329. package/src/dex/algebra/algebra-pool-v1_1.ts +0 -853
  330. package/src/dex/algebra/algebra-pool-v1_9.ts +0 -614
  331. package/src/dex/algebra/algebra-pool-v1_9_bidirectional_fee.ts +0 -55
  332. package/src/dex/algebra/algebra.ts +0 -1141
  333. package/src/dex/algebra/config.ts +0 -128
  334. package/src/dex/algebra/constants.ts +0 -17
  335. package/src/dex/algebra/lib/AlgebraMath.ts +0 -706
  336. package/src/dex/algebra/lib/Constants.ts +0 -5
  337. package/src/dex/algebra/lib/TickManager.ts +0 -91
  338. package/src/dex/algebra/lib/TickTable.ts +0 -227
  339. package/src/dex/algebra/lib/yul-helper.ts +0 -29
  340. package/src/dex/algebra/scripts/validate-state.ts +0 -292
  341. package/src/dex/algebra/types.ts +0 -146
  342. package/src/dex/algebra/utils.ts +0 -217
  343. package/src/dex/angle-staked-stable/angle-staked-stable-e2e.test.ts +0 -146
  344. package/src/dex/angle-staked-stable/angle-staked-stable-events.test.ts +0 -95
  345. package/src/dex/angle-staked-stable/angle-staked-stable-gas-estimation.test.ts +0 -29
  346. package/src/dex/angle-staked-stable/angle-staked-stable-integration.test.ts +0 -476
  347. package/src/dex/angle-staked-stable/angle-staked-stable-pool.ts +0 -325
  348. package/src/dex/angle-staked-stable/angle-staked-stable.ts +0 -356
  349. package/src/dex/angle-staked-stable/config.ts +0 -139
  350. package/src/dex/angle-staked-stable/types.ts +0 -16
  351. package/src/dex/angle-transmuter/angle-transmuter-e2e.test.ts +0 -156
  352. package/src/dex/angle-transmuter/angle-transmuter-events.test.ts +0 -365
  353. package/src/dex/angle-transmuter/angle-transmuter-gas-estimation.test.ts +0 -41
  354. package/src/dex/angle-transmuter/angle-transmuter-integration.test.ts +0 -390
  355. package/src/dex/angle-transmuter/angle-transmuter-pool.ts +0 -895
  356. package/src/dex/angle-transmuter/angle-transmuter.ts +0 -407
  357. package/src/dex/angle-transmuter/backedOracle.ts +0 -91
  358. package/src/dex/angle-transmuter/config.ts +0 -50
  359. package/src/dex/angle-transmuter/constants.ts +0 -138
  360. package/src/dex/angle-transmuter/morphoOracle.ts +0 -335
  361. package/src/dex/angle-transmuter/morphoVault.ts +0 -134
  362. package/src/dex/angle-transmuter/pyth.ts +0 -105
  363. package/src/dex/angle-transmuter/redstone.ts +0 -105
  364. package/src/dex/angle-transmuter/transmuter.ts +0 -619
  365. package/src/dex/angle-transmuter/types.ts +0 -203
  366. package/src/dex/angle-transmuter/utils.ts +0 -358
  367. package/src/dex/augustus-approvals.ts +0 -208
  368. package/src/dex/augustus-rfq.ts +0 -180
  369. package/src/dex/balancer-v1/balancer-pools.json +0 -33333
  370. package/src/dex/balancer-v1/balancer-v1-e2e.test.ts +0 -119
  371. package/src/dex/balancer-v1/balancer-v1-events.test.ts +0 -83
  372. package/src/dex/balancer-v1/balancer-v1-gas-estimation.test.ts +0 -29
  373. package/src/dex/balancer-v1/balancer-v1-integration.test.ts +0 -307
  374. package/src/dex/balancer-v1/balancer-v1-math.ts +0 -154
  375. package/src/dex/balancer-v1/balancer-v1-pool.ts +0 -232
  376. package/src/dex/balancer-v1/balancer-v1.ts +0 -578
  377. package/src/dex/balancer-v1/config.ts +0 -29
  378. package/src/dex/balancer-v1/optimizer.ts +0 -76
  379. package/src/dex/balancer-v1/types.ts +0 -100
  380. package/src/dex/balancer-v1/utils.ts +0 -57
  381. package/src/dex/balancer-v2/balancer-v2-e2e.test.ts +0 -1612
  382. package/src/dex/balancer-v2/balancer-v2-events.test.ts +0 -132
  383. package/src/dex/balancer-v2/balancer-v2-gas-estimation.test.ts +0 -98
  384. package/src/dex/balancer-v2/balancer-v2-gyro3.test.ts +0 -268
  385. package/src/dex/balancer-v2/balancer-v2-gyroE.test.ts +0 -401
  386. package/src/dex/balancer-v2/balancer-v2-integration.test.ts +0 -931
  387. package/src/dex/balancer-v2/balancer-v2-math.ts +0 -592
  388. package/src/dex/balancer-v2/balancer-v2.ts +0 -1724
  389. package/src/dex/balancer-v2/config.ts +0 -81
  390. package/src/dex/balancer-v2/constants.ts +0 -20
  391. package/src/dex/balancer-v2/optimizer.ts +0 -70
  392. package/src/dex/balancer-v2/pools/balancer-v2-pool.ts +0 -274
  393. package/src/dex/balancer-v2/pools/gyro/Gyro3Pool.ts +0 -255
  394. package/src/dex/balancer-v2/pools/gyro/GyroEPool.ts +0 -402
  395. package/src/dex/balancer-v2/pools/gyro/gyro-helpers.ts +0 -15
  396. package/src/dex/balancer-v2/pools/linear/LinearMath.ts +0 -286
  397. package/src/dex/balancer-v2/pools/linear/LinearPool.ts +0 -639
  398. package/src/dex/balancer-v2/pools/phantom-stable/PhantomStableMath.ts +0 -494
  399. package/src/dex/balancer-v2/pools/phantom-stable/PhantomStablePool.ts +0 -581
  400. package/src/dex/balancer-v2/pools/stable/StableMath.ts +0 -203
  401. package/src/dex/balancer-v2/pools/stable/StablePool.ts +0 -223
  402. package/src/dex/balancer-v2/pools/weighted/WeightedMath.ts +0 -84
  403. package/src/dex/balancer-v2/pools/weighted/WeightedPool.ts +0 -188
  404. package/src/dex/balancer-v2/queryOnChain.ts +0 -48
  405. package/src/dex/balancer-v2/types.ts +0 -215
  406. package/src/dex/balancer-v2/utils.ts +0 -212
  407. package/src/dex/balancer-v3/balancer-api.test.ts +0 -122
  408. package/src/dex/balancer-v3/balancer-buffer.test.ts +0 -75
  409. package/src/dex/balancer-v3/balancer-gyroECLP.test.ts +0 -76
  410. package/src/dex/balancer-v3/balancer-hooks-events.test.ts +0 -166
  411. package/src/dex/balancer-v3/balancer-stableSurge.test.ts +0 -112
  412. package/src/dex/balancer-v3/balancer-test-helpers.ts +0 -251
  413. package/src/dex/balancer-v3/balancer-test-weighted.test.ts +0 -96
  414. package/src/dex/balancer-v3/balancer-v3-e2e.test.ts +0 -476
  415. package/src/dex/balancer-v3/balancer-v3-events.test.ts +0 -457
  416. package/src/dex/balancer-v3/balancer-v3-gas-estimation.test.ts +0 -30
  417. package/src/dex/balancer-v3/balancer-v3-integration.test.ts +0 -1008
  418. package/src/dex/balancer-v3/balancer-v3-pool.ts +0 -796
  419. package/src/dex/balancer-v3/balancer-v3.ts +0 -665
  420. package/src/dex/balancer-v3/config.ts +0 -100
  421. package/src/dex/balancer-v3/getGasCost.ts +0 -40
  422. package/src/dex/balancer-v3/getOnChainState.ts +0 -486
  423. package/src/dex/balancer-v3/getPoolsApi.ts +0 -191
  424. package/src/dex/balancer-v3/getTopPoolsApi.ts +0 -130
  425. package/src/dex/balancer-v3/gyroECLPPool.ts +0 -17
  426. package/src/dex/balancer-v3/hooks/balancer-hook-event-subscriber.ts +0 -212
  427. package/src/dex/balancer-v3/hooks/directionalFeeHook.ts +0 -53
  428. package/src/dex/balancer-v3/hooks/loadHooksConfig.ts +0 -12
  429. package/src/dex/balancer-v3/hooks/stableSurgeHook.ts +0 -200
  430. package/src/dex/balancer-v3/optimizer.ts +0 -66
  431. package/src/dex/balancer-v3/stablePool.ts +0 -78
  432. package/src/dex/balancer-v3/types.ts +0 -93
  433. package/src/dex/balancer-v3/utils.ts +0 -11
  434. package/src/dex/balancer-v3/weightedPool.ts +0 -2
  435. package/src/dex/bancor/bancor-e2e.test.ts +0 -91
  436. package/src/dex/bancor/bancor-gas-estimation.test.ts +0 -30
  437. package/src/dex/bancor/bancor.ts +0 -128
  438. package/src/dex/bancor/config.ts +0 -9
  439. package/src/dex/bancor/types.ts +0 -19
  440. package/src/dex/bebop/bebop-e2e.test.ts +0 -228
  441. package/src/dex/bebop/bebop-gas-estimation.test.ts +0 -30
  442. package/src/dex/bebop/bebop-integration.test.ts +0 -182
  443. package/src/dex/bebop/bebop.json +0 -72
  444. package/src/dex/bebop/bebop.proto +0 -15
  445. package/src/dex/bebop/bebop.ts +0 -930
  446. package/src/dex/bebop/config.ts +0 -42
  447. package/src/dex/bebop/constants.ts +0 -20
  448. package/src/dex/bebop/rate-fetcher.ts +0 -168
  449. package/src/dex/bebop/types.ts +0 -95
  450. package/src/dex/bebop/validators.ts +0 -39
  451. package/src/dex/cables/cables-e2e.test.ts +0 -207
  452. package/src/dex/cables/cables-integration.test.ts +0 -391
  453. package/src/dex/cables/cables.ts +0 -857
  454. package/src/dex/cables/config.ts +0 -13
  455. package/src/dex/cables/constants.ts +0 -33
  456. package/src/dex/cables/rate-fetcher.ts +0 -212
  457. package/src/dex/cables/types.ts +0 -113
  458. package/src/dex/cables/validators.test.ts +0 -151
  459. package/src/dex/cables/validators.ts +0 -61
  460. package/src/dex/camelot/camelot-e2e.test.ts +0 -161
  461. package/src/dex/camelot/camelot-integration.test.ts +0 -215
  462. package/src/dex/camelot/camelot-pool-discovery.test.ts +0 -149
  463. package/src/dex/camelot/camelot.ts +0 -882
  464. package/src/dex/camelot/config.ts +0 -23
  465. package/src/dex/camelot/types.ts +0 -15
  466. package/src/dex/compound/compound-e2e.test.ts +0 -91
  467. package/src/dex/compound/compound.ts +0 -112
  468. package/src/dex/compound/types.ts +0 -10
  469. package/src/dex/concentrator-arusd/concentrator-arusd-e2e.test.ts +0 -92
  470. package/src/dex/concentrator-arusd/concentrator-arusd-event.ts +0 -100
  471. package/src/dex/concentrator-arusd/concentrator-arusd-gas-estimation.test.ts +0 -29
  472. package/src/dex/concentrator-arusd/concentrator-arusd-integration.test.ts +0 -104
  473. package/src/dex/concentrator-arusd/concentrator-arusd.ts +0 -269
  474. package/src/dex/concentrator-arusd/concetrator-arusd-events.test.ts +0 -97
  475. package/src/dex/concentrator-arusd/config.ts +0 -13
  476. package/src/dex/concentrator-arusd/types.ts +0 -16
  477. package/src/dex/concentrator-arusd/utils.ts +0 -36
  478. package/src/dex/curve-v1/config.ts +0 -1181
  479. package/src/dex/curve-v1/constants.ts +0 -12
  480. package/src/dex/curve-v1/curve-v1-e2e.test.ts +0 -587
  481. package/src/dex/curve-v1/curve-v1-events.test.ts +0 -335
  482. package/src/dex/curve-v1/curve-v1-gas-estimation.test.ts +0 -29
  483. package/src/dex/curve-v1/curve-v1-integration.test.ts +0 -143
  484. package/src/dex/curve-v1/curve-v1.ts +0 -1315
  485. package/src/dex/curve-v1/forks/curve-forks/config.ts +0 -177
  486. package/src/dex/curve-v1/forks/curve-forks/curve-forks.ts +0 -73
  487. package/src/dex/curve-v1/forks/swerve/config.ts +0 -47
  488. package/src/dex/curve-v1/forks/swerve/swerve.ts +0 -68
  489. package/src/dex/curve-v1/packer.ts +0 -17
  490. package/src/dex/curve-v1/pools/3pool.ts +0 -313
  491. package/src/dex/curve-v1/pools/DUSDpool.ts +0 -52
  492. package/src/dex/curve-v1/pools/EURSpool.ts +0 -37
  493. package/src/dex/curve-v1/pools/GUSDpool.ts +0 -52
  494. package/src/dex/curve-v1/pools/HUSDpool.ts +0 -52
  495. package/src/dex/curve-v1/pools/LinkUSDpool.ts +0 -52
  496. package/src/dex/curve-v1/pools/MUSDpool.ts +0 -52
  497. package/src/dex/curve-v1/pools/bBTCpool.ts +0 -52
  498. package/src/dex/curve-v1/pools/curve-metapool.ts +0 -1113
  499. package/src/dex/curve-v1/pools/curve-pool.ts +0 -489
  500. package/src/dex/curve-v1/pools/getstate-multicall.ts +0 -156
  501. package/src/dex/curve-v1/pools/hBTCpool.ts +0 -37
  502. package/src/dex/curve-v1/pools/oBTCpool.ts +0 -52
  503. package/src/dex/curve-v1/pools/pBTCpool.ts +0 -52
  504. package/src/dex/curve-v1/pools/renpool.ts +0 -38
  505. package/src/dex/curve-v1/pools/rsvpool.ts +0 -52
  506. package/src/dex/curve-v1/pools/sBTCpool.ts +0 -38
  507. package/src/dex/curve-v1/pools/sETHpool.ts +0 -69
  508. package/src/dex/curve-v1/pools/sLinkpool.ts +0 -37
  509. package/src/dex/curve-v1/pools/sUSDpool.ts +0 -133
  510. package/src/dex/curve-v1/pools/stETHpool.ts +0 -52
  511. package/src/dex/curve-v1/pools/tBTCpool.ts +0 -52
  512. package/src/dex/curve-v1/pools/usdkpool.ts +0 -52
  513. package/src/dex/curve-v1/pools/usdnpool.ts +0 -59
  514. package/src/dex/curve-v1/pools/ustpool.ts +0 -52
  515. package/src/dex/curve-v1/types.ts +0 -88
  516. package/src/dex/curve-v1-factory/config.ts +0 -1004
  517. package/src/dex/curve-v1-factory/constants.ts +0 -41
  518. package/src/dex/curve-v1-factory/curve-v1-factory-e2e.test.ts +0 -441
  519. package/src/dex/curve-v1-factory/curve-v1-factory-integration.test.ts +0 -827
  520. package/src/dex/curve-v1-factory/curve-v1-factory-node-cache.ts +0 -10
  521. package/src/dex/curve-v1-factory/curve-v1-factory.ts +0 -1567
  522. package/src/dex/curve-v1-factory/curve-v1-pool-manager.ts +0 -449
  523. package/src/dex/curve-v1-factory/optimizer.ts +0 -57
  524. package/src/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.ts +0 -292
  525. package/src/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.ts +0 -103
  526. package/src/dex/curve-v1-factory/price-handlers/functions/_rates.ts +0 -116
  527. package/src/dex/curve-v1-factory/price-handlers/functions/_xp.ts +0 -114
  528. package/src/dex/curve-v1-factory/price-handlers/functions/_xp_mem.ts +0 -103
  529. package/src/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.ts +0 -230
  530. package/src/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.ts +0 -90
  531. package/src/dex/curve-v1-factory/price-handlers/functions/constants.ts +0 -604
  532. package/src/dex/curve-v1-factory/price-handlers/functions/get_D.ts +0 -386
  533. package/src/dex/curve-v1-factory/price-handlers/functions/get_D_mem.ts +0 -148
  534. package/src/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.ts +0 -120
  535. package/src/dex/curve-v1-factory/price-handlers/functions/get_dx.ts +0 -145
  536. package/src/dex/curve-v1-factory/price-handlers/functions/get_dy.ts +0 -327
  537. package/src/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.ts +0 -293
  538. package/src/dex/curve-v1-factory/price-handlers/functions/get_y.ts +0 -262
  539. package/src/dex/curve-v1-factory/price-handlers/functions/get_y_D.ts +0 -183
  540. package/src/dex/curve-v1-factory/price-handlers/functions/utils.ts +0 -76
  541. package/src/dex/curve-v1-factory/price-handlers/price-handler.ts +0 -130
  542. package/src/dex/curve-v1-factory/price-handlers/types.ts +0 -142
  543. package/src/dex/curve-v1-factory/state-polling-pools/custom-pool-polling.ts +0 -301
  544. package/src/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.ts +0 -227
  545. package/src/dex/curve-v1-factory/state-polling-pools/polling-manager.ts +0 -266
  546. package/src/dex/curve-v1-factory/state-polling-pools/pool-polling-base.ts +0 -181
  547. package/src/dex/curve-v1-factory/types.ts +0 -286
  548. package/src/dex/curve-v1-stable-ng/config.ts +0 -315
  549. package/src/dex/curve-v1-stable-ng/curve-v1-stable-ng-e2e.test.ts +0 -219
  550. package/src/dex/curve-v1-stable-ng/curve-v1-stable-ng-integration.test.ts +0 -567
  551. package/src/dex/curve-v1-stable-ng/curve-v1-stable-ng.ts +0 -33
  552. package/src/dex/curve-v2/constants.ts +0 -1
  553. package/src/dex/curve-v2/curve-v2-e2e.test.ts +0 -104
  554. package/src/dex/curve-v2/curve-v2-gas-estimation.test.ts +0 -29
  555. package/src/dex/curve-v2/curve-v2.ts +0 -440
  556. package/src/dex/curve-v2/types.ts +0 -27
  557. package/src/dex/dexalot/config.ts +0 -28
  558. package/src/dex/dexalot/constants.ts +0 -32
  559. package/src/dex/dexalot/dexalot-e2e.test.ts +0 -260
  560. package/src/dex/dexalot/dexalot-integration.test.ts +0 -431
  561. package/src/dex/dexalot/dexalot.ts +0 -1114
  562. package/src/dex/dexalot/rate-fetcher.ts +0 -197
  563. package/src/dex/dexalot/types.ts +0 -131
  564. package/src/dex/dexalot/validators.ts +0 -46
  565. package/src/dex/dodo-v1/config.ts +0 -15
  566. package/src/dex/dodo-v1/dodo-v1-e2e.test.ts +0 -101
  567. package/src/dex/dodo-v1/dodo-v1.ts +0 -132
  568. package/src/dex/dodo-v1/types.ts +0 -25
  569. package/src/dex/dodo-v2.ts +0 -266
  570. package/src/dex/ekubo/config.ts +0 -15
  571. package/src/dex/ekubo/ekubo-e2e.test.ts +0 -124
  572. package/src/dex/ekubo/ekubo-events.test.ts +0 -209
  573. package/src/dex/ekubo/ekubo-integration.test.ts +0 -243
  574. package/src/dex/ekubo/ekubo.ts +0 -628
  575. package/src/dex/ekubo/pools/base-pool.ts +0 -267
  576. package/src/dex/ekubo/pools/math/constants.ts +0 -5
  577. package/src/dex/ekubo/pools/math/delta.test.ts +0 -131
  578. package/src/dex/ekubo/pools/math/delta.ts +0 -68
  579. package/src/dex/ekubo/pools/math/price.test.ts +0 -54
  580. package/src/dex/ekubo/pools/math/price.ts +0 -129
  581. package/src/dex/ekubo/pools/math/swap.test.ts +0 -215
  582. package/src/dex/ekubo/pools/math/swap.ts +0 -161
  583. package/src/dex/ekubo/pools/math/tick.test.ts +0 -72
  584. package/src/dex/ekubo/pools/math/tick.ts +0 -120
  585. package/src/dex/ekubo/pools/oracle-pool.ts +0 -46
  586. package/src/dex/ekubo/pools/pool-utils.ts +0 -348
  587. package/src/dex/ekubo/types.test.ts +0 -552
  588. package/src/dex/ekubo/types.ts +0 -55
  589. package/src/dex/ekubo/utils.ts +0 -34
  590. package/src/dex/erc4626/config.ts +0 -41
  591. package/src/dex/erc4626/constants.ts +0 -6
  592. package/src/dex/erc4626/erc-4626-pool.ts +0 -132
  593. package/src/dex/erc4626/erc4626-e2e.test.ts +0 -224
  594. package/src/dex/erc4626/erc4626-event.test.ts +0 -128
  595. package/src/dex/erc4626/erc4626-gas-estimation.test.ts +0 -41
  596. package/src/dex/erc4626/erc4626-integration.test.ts +0 -164
  597. package/src/dex/erc4626/erc4626.ts +0 -333
  598. package/src/dex/erc4626/types.ts +0 -26
  599. package/src/dex/etherfi.ts +0 -244
  600. package/src/dex/fluid-dex/config.ts +0 -27
  601. package/src/dex/fluid-dex/constants.ts +0 -2
  602. package/src/dex/fluid-dex/fluid-dex-e2e.test.ts +0 -311
  603. package/src/dex/fluid-dex/fluid-dex-events.test.ts +0 -179
  604. package/src/dex/fluid-dex/fluid-dex-factory.ts +0 -151
  605. package/src/dex/fluid-dex/fluid-dex-gas-estimation.test.ts +0 -29
  606. package/src/dex/fluid-dex/fluid-dex-integration.test.ts +0 -355
  607. package/src/dex/fluid-dex/fluid-dex-liquidity-proxy.ts +0 -210
  608. package/src/dex/fluid-dex/fluid-dex-pool.ts +0 -138
  609. package/src/dex/fluid-dex/fluid-dex.ts +0 -1169
  610. package/src/dex/fluid-dex/types.ts +0 -104
  611. package/src/dex/fluid-dex/utils.ts +0 -15
  612. package/src/dex/fx-protocol-rusd/config.ts +0 -14
  613. package/src/dex/fx-protocol-rusd/fx-protocol-e2e.test.ts +0 -96
  614. package/src/dex/fx-protocol-rusd/fx-protocol-events.test.ts +0 -101
  615. package/src/dex/fx-protocol-rusd/fx-protocol-integration.test.ts +0 -104
  616. package/src/dex/fx-protocol-rusd/fx-protocol-rusd-event.ts +0 -112
  617. package/src/dex/fx-protocol-rusd/fx-protocol-rusd-gas-estimation.test.ts +0 -29
  618. package/src/dex/fx-protocol-rusd/fx-protocol-rusd.ts +0 -282
  619. package/src/dex/fx-protocol-rusd/types.ts +0 -16
  620. package/src/dex/fx-protocol-rusd/utils.ts +0 -47
  621. package/src/dex/generic-rfq/e2e-test-config.ts +0 -25
  622. package/src/dex/generic-rfq/example-api.test.ts +0 -233
  623. package/src/dex/generic-rfq/fetch-mm-api.ts +0 -284
  624. package/src/dex/generic-rfq/generic-rfq-e2e.test.ts +0 -118
  625. package/src/dex/generic-rfq/generic-rfq-integration.test.ts +0 -235
  626. package/src/dex/generic-rfq/generic-rfq-local-e2e.test.ts +0 -107
  627. package/src/dex/generic-rfq/generic-rfq.ts +0 -463
  628. package/src/dex/generic-rfq/rate-fetcher.ts +0 -491
  629. package/src/dex/generic-rfq/security.ts +0 -55
  630. package/src/dex/generic-rfq/types.ts +0 -120
  631. package/src/dex/generic-rfq/utils.ts +0 -74
  632. package/src/dex/generic-rfq/validators.test.ts +0 -245
  633. package/src/dex/generic-rfq/validators.ts +0 -189
  634. package/src/dex/gmx/config.ts +0 -81
  635. package/src/dex/gmx/fast-price-feed.ts +0 -279
  636. package/src/dex/gmx/gmx-e2e.test.ts +0 -322
  637. package/src/dex/gmx/gmx-events.test.ts +0 -114
  638. package/src/dex/gmx/gmx-integration.test.ts +0 -211
  639. package/src/dex/gmx/gmx.ts +0 -321
  640. package/src/dex/gmx/pool.ts +0 -360
  641. package/src/dex/gmx/types.ts +0 -94
  642. package/src/dex/gmx/usdg.ts +0 -83
  643. package/src/dex/gmx/vault-price-feed.ts +0 -384
  644. package/src/dex/gmx/vault-utils.ts +0 -53
  645. package/src/dex/gmx/vault.ts +0 -290
  646. package/src/dex/hashflow/config.ts +0 -56
  647. package/src/dex/hashflow/constants.ts +0 -54
  648. package/src/dex/hashflow/hashflow-e2e.test.ts +0 -351
  649. package/src/dex/hashflow/hashflow-gas-estimation.test.ts +0 -30
  650. package/src/dex/hashflow/hashflow-integration.test.ts +0 -157
  651. package/src/dex/hashflow/hashflow.ts +0 -1119
  652. package/src/dex/hashflow/rate-fetcher.ts +0 -118
  653. package/src/dex/hashflow/types.ts +0 -83
  654. package/src/dex/hashflow/validators.ts +0 -38
  655. package/src/dex/idex.ts +0 -268
  656. package/src/dex/idle-dao/config.ts +0 -26
  657. package/src/dex/idle-dao/idle-dao--gas-estimation.test.ts +0 -30
  658. package/src/dex/idle-dao/idle-dao-e2e.test.ts +0 -112
  659. package/src/dex/idle-dao/idle-dao-integration.test.ts +0 -155
  660. package/src/dex/idle-dao/idle-dao.ts +0 -402
  661. package/src/dex/idle-dao/token_list.ts +0 -287
  662. package/src/dex/idle-dao/tokens.ts +0 -99
  663. package/src/dex/idle-dao/types.ts +0 -43
  664. package/src/dex/idle-dao/utils.ts +0 -216
  665. package/src/dex/index.ts +0 -402
  666. package/src/dex/infusion/config.ts +0 -21
  667. package/src/dex/infusion/infusion-e2e.test.ts +0 -110
  668. package/src/dex/infusion/infusion-integration.test.ts +0 -232
  669. package/src/dex/infusion/infusion-stable-pool.ts +0 -91
  670. package/src/dex/infusion/infusion.ts +0 -652
  671. package/src/dex/infusion/types.ts +0 -60
  672. package/src/dex/infusion/utils/isStablePair.ts +0 -18
  673. package/src/dex/jarvis-v6/chainLinkpriceFeed-event.ts +0 -76
  674. package/src/dex/jarvis-v6/config.ts +0 -261
  675. package/src/dex/jarvis-v6/jarvis-v6-e2e.test.ts +0 -113
  676. package/src/dex/jarvis-v6/jarvis-v6-events.test.ts +0 -67
  677. package/src/dex/jarvis-v6/jarvis-v6-events.ts +0 -67
  678. package/src/dex/jarvis-v6/jarvis-v6-integration.test.ts +0 -111
  679. package/src/dex/jarvis-v6/jarvis-v6.ts +0 -509
  680. package/src/dex/jarvis-v6/syntheteumPool-event.ts +0 -68
  681. package/src/dex/jarvis-v6/types.ts +0 -59
  682. package/src/dex/jarvis-v6/utils.ts +0 -127
  683. package/src/dex/kyberdmm/config.ts +0 -61
  684. package/src/dex/kyberdmm/fee-formula.ts +0 -113
  685. package/src/dex/kyberdmm/kyberdmm-e2e.test.ts +0 -325
  686. package/src/dex/kyberdmm/kyberdmm-events.test.ts +0 -123
  687. package/src/dex/kyberdmm/kyberdmm-integration.test.ts +0 -93
  688. package/src/dex/kyberdmm/kyberdmm.ts +0 -649
  689. package/src/dex/kyberdmm/math-ext.ts +0 -29
  690. package/src/dex/kyberdmm/pool.ts +0 -226
  691. package/src/dex/kyberdmm/types.ts +0 -85
  692. package/src/dex/lido/config.ts +0 -5
  693. package/src/dex/lido/lido-e2e.test.ts +0 -81
  694. package/src/dex/lido/lido-gas-estimation.test.ts +0 -29
  695. package/src/dex/lido/lido.ts +0 -110
  696. package/src/dex/lido/types.ts +0 -5
  697. package/src/dex/limit-order-exchange.ts +0 -40
  698. package/src/dex/lite-psm/config.ts +0 -33
  699. package/src/dex/lite-psm/lite-psm-e2e.test.ts +0 -146
  700. package/src/dex/lite-psm/lite-psm-event-pool.ts +0 -216
  701. package/src/dex/lite-psm/lite-psm-events.test.ts +0 -61
  702. package/src/dex/lite-psm/lite-psm-gas-estimation.test.ts +0 -34
  703. package/src/dex/lite-psm/lite-psm-integration.test.ts +0 -99
  704. package/src/dex/lite-psm/lite-psm.ts +0 -540
  705. package/src/dex/lite-psm/types.ts +0 -47
  706. package/src/dex/maker-psm/config.ts +0 -59
  707. package/src/dex/maker-psm/maker-psm-e2e.test.ts +0 -83
  708. package/src/dex/maker-psm/maker-psm-events.test.ts +0 -63
  709. package/src/dex/maker-psm/maker-psm-gas-estimation.test.ts +0 -34
  710. package/src/dex/maker-psm/maker-psm-integration.test.ts +0 -99
  711. package/src/dex/maker-psm/maker-psm.ts +0 -722
  712. package/src/dex/maker-psm/types.ts +0 -45
  713. package/src/dex/maverick-v1/config.ts +0 -33
  714. package/src/dex/maverick-v1/constants.ts +0 -1
  715. package/src/dex/maverick-v1/maverick-math/maverick-basic-math.ts +0 -187
  716. package/src/dex/maverick-v1/maverick-math/maverick-bin-map.ts +0 -182
  717. package/src/dex/maverick-v1/maverick-math/maverick-pool-math.test.ts +0 -680
  718. package/src/dex/maverick-v1/maverick-math/maverick-pool-math.ts +0 -562
  719. package/src/dex/maverick-v1/maverick-v1-e2e.test.ts +0 -346
  720. package/src/dex/maverick-v1/maverick-v1-events.test.ts +0 -112
  721. package/src/dex/maverick-v1/maverick-v1-gas-estimation.test.ts +0 -29
  722. package/src/dex/maverick-v1/maverick-v1-integration.test.ts +0 -170
  723. package/src/dex/maverick-v1/maverick-v1-pool.ts +0 -394
  724. package/src/dex/maverick-v1/maverick-v1.ts +0 -536
  725. package/src/dex/maverick-v1/subgraph-queries.ts +0 -60
  726. package/src/dex/maverick-v1/types.ts +0 -83
  727. package/src/dex/maverick-v2/config.ts +0 -32
  728. package/src/dex/maverick-v2/maverick-math/maverick-basic-math.ts +0 -152
  729. package/src/dex/maverick-v2/maverick-math/maverick-bin-math.ts +0 -288
  730. package/src/dex/maverick-v2/maverick-math/maverick-delta-math.ts +0 -32
  731. package/src/dex/maverick-v2/maverick-math/maverick-math.ts +0 -30
  732. package/src/dex/maverick-v2/maverick-math/maverick-pool-lib.ts +0 -42
  733. package/src/dex/maverick-v2/maverick-math/maverick-pool-math.ts +0 -714
  734. package/src/dex/maverick-v2/maverick-math/maverick-swap-math.ts +0 -199
  735. package/src/dex/maverick-v2/maverick-math/maverick-tick-math.ts +0 -171
  736. package/src/dex/maverick-v2/maverick-math/maverick-twa-math.ts +0 -54
  737. package/src/dex/maverick-v2/maverick-v2-e2e.test.ts +0 -171
  738. package/src/dex/maverick-v2/maverick-v2-events.test.ts +0 -112
  739. package/src/dex/maverick-v2/maverick-v2-gas-estimation.test.ts +0 -29
  740. package/src/dex/maverick-v2/maverick-v2-integration.test.ts +0 -287
  741. package/src/dex/maverick-v2/maverick-v2-pool.ts +0 -369
  742. package/src/dex/maverick-v2/maverick-v2.ts +0 -409
  743. package/src/dex/maverick-v2/types.ts +0 -155
  744. package/src/dex/nerve/config.ts +0 -635
  745. package/src/dex/nerve/nerve-e2e.test.ts +0 -731
  746. package/src/dex/nerve/nerve-events.test.ts +0 -911
  747. package/src/dex/nerve/nerve-integration.test.ts +0 -73
  748. package/src/dex/nerve/nerve-math.ts +0 -304
  749. package/src/dex/nerve/nerve-metapool.ts +0 -203
  750. package/src/dex/nerve/nerve-pool.ts +0 -425
  751. package/src/dex/nerve/nerve.ts +0 -467
  752. package/src/dex/nerve/types.ts +0 -65
  753. package/src/dex/nerve/utils.ts +0 -39
  754. package/src/dex/oswap/config.ts +0 -32
  755. package/src/dex/oswap/oswap-e2e.test.ts +0 -91
  756. package/src/dex/oswap/oswap-events.test.ts +0 -88
  757. package/src/dex/oswap/oswap-integration.test.ts +0 -291
  758. package/src/dex/oswap/oswap-pool.ts +0 -190
  759. package/src/dex/oswap/oswap.ts +0 -414
  760. package/src/dex/oswap/types.ts +0 -29
  761. package/src/dex/pancakeswap-v3/config.ts +0 -119
  762. package/src/dex/pancakeswap-v3/constants.ts +0 -36
  763. package/src/dex/pancakeswap-v3/contract-math/BitMath.ts +0 -90
  764. package/src/dex/pancakeswap-v3/contract-math/FixedPoint128.ts +0 -3
  765. package/src/dex/pancakeswap-v3/contract-math/FixedPoint96.ts +0 -4
  766. package/src/dex/pancakeswap-v3/contract-math/FullMath.ts +0 -30
  767. package/src/dex/pancakeswap-v3/contract-math/LiquidityMath.ts +0 -17
  768. package/src/dex/pancakeswap-v3/contract-math/Oracle.ts +0 -226
  769. package/src/dex/pancakeswap-v3/contract-math/SqrtPriceMath.ts +0 -226
  770. package/src/dex/pancakeswap-v3/contract-math/SwapMath.ts +0 -139
  771. package/src/dex/pancakeswap-v3/contract-math/Tick.ts +0 -82
  772. package/src/dex/pancakeswap-v3/contract-math/TickBitMap.ts +0 -128
  773. package/src/dex/pancakeswap-v3/contract-math/TickMath.ts +0 -211
  774. package/src/dex/pancakeswap-v3/contract-math/UnsafeMath.ts +0 -5
  775. package/src/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.ts +0 -687
  776. package/src/dex/pancakeswap-v3/contract-math/utils.ts +0 -11
  777. package/src/dex/pancakeswap-v3/pancakeswap-v3-e2e.test.ts +0 -459
  778. package/src/dex/pancakeswap-v3/pancakeswap-v3-events.test.ts +0 -124
  779. package/src/dex/pancakeswap-v3/pancakeswap-v3-factory.ts +0 -80
  780. package/src/dex/pancakeswap-v3/pancakeswap-v3-gas-estimation.test.ts +0 -29
  781. package/src/dex/pancakeswap-v3/pancakeswap-v3-integration.test.ts +0 -529
  782. package/src/dex/pancakeswap-v3/pancakeswap-v3-pool.ts +0 -555
  783. package/src/dex/pancakeswap-v3/pancakeswap-v3.ts +0 -1161
  784. package/src/dex/pancakeswap-v3/utils.ts +0 -65
  785. package/src/dex/paraswap-limit-orders/config.ts +0 -60
  786. package/src/dex/paraswap-limit-orders/constant.ts +0 -32
  787. package/src/dex/paraswap-limit-orders/paraswap-limit-orders-e2e.test.ts +0 -221
  788. package/src/dex/paraswap-limit-orders/paraswap-limit-orders-integration.test.ts +0 -328
  789. package/src/dex/paraswap-limit-orders/paraswap-limit-orders.ts +0 -634
  790. package/src/dex/paraswap-limit-orders/types.ts +0 -84
  791. package/src/dex/paraswap-limit-orders/utils.ts +0 -52
  792. package/src/dex/polygon-migrator/config.ts +0 -25
  793. package/src/dex/polygon-migrator/constants.ts +0 -1
  794. package/src/dex/polygon-migrator/polygon-migrator-e2e.test.ts +0 -98
  795. package/src/dex/polygon-migrator/polygon-migrator-gas-estimation.test.ts +0 -41
  796. package/src/dex/polygon-migrator/polygon-migrator-integration.test.ts +0 -139
  797. package/src/dex/polygon-migrator/polygon-migrator.ts +0 -194
  798. package/src/dex/polygon-migrator/types.ts +0 -14
  799. package/src/dex/quick-perps/config.ts +0 -31
  800. package/src/dex/quick-perps/fast-price-feed.ts +0 -279
  801. package/src/dex/quick-perps/pool.ts +0 -407
  802. package/src/dex/quick-perps/quick-perps-e2e.test.ts +0 -66
  803. package/src/dex/quick-perps/quick-perps-events.test.ts +0 -100
  804. package/src/dex/quick-perps/quick-perps-integration.test.ts +0 -153
  805. package/src/dex/quick-perps/quick-perps.ts +0 -337
  806. package/src/dex/quick-perps/types.ts +0 -97
  807. package/src/dex/quick-perps/usdq.ts +0 -83
  808. package/src/dex/quick-perps/vault-price-feed.ts +0 -322
  809. package/src/dex/quick-perps/vault-utils.ts +0 -53
  810. package/src/dex/quick-perps/vault.ts +0 -290
  811. package/src/dex/quickswap/config.ts +0 -16
  812. package/src/dex/quickswap/quickswap-e2e.test.ts +0 -384
  813. package/src/dex/quickswap/quickswap-v3.ts +0 -74
  814. package/src/dex/quickswap/thena-fusion.ts +0 -19
  815. package/src/dex/quickswap/types.ts +0 -5
  816. package/src/dex/simple-exchange.ts +0 -146
  817. package/src/dex/sky-converter/config.ts +0 -31
  818. package/src/dex/sky-converter/sky-converter-e2e.test.ts +0 -113
  819. package/src/dex/sky-converter/sky-converter-gas-estimation.test.ts +0 -78
  820. package/src/dex/sky-converter/sky-converter-integration.test.ts +0 -135
  821. package/src/dex/sky-converter/sky-converter.ts +0 -221
  822. package/src/dex/sky-converter/types.ts +0 -14
  823. package/src/dex/smoothy/smoothy-e2e.test.ts +0 -81
  824. package/src/dex/smoothy/smoothy.ts +0 -110
  825. package/src/dex/smoothy/types.ts +0 -18
  826. package/src/dex/solidly/config.ts +0 -218
  827. package/src/dex/solidly/forks-override/aerodrome.ts +0 -53
  828. package/src/dex/solidly/forks-override/chronos.ts +0 -231
  829. package/src/dex/solidly/forks-override/equalizer.ts +0 -58
  830. package/src/dex/solidly/forks-override/pharaohV1.ts +0 -10
  831. package/src/dex/solidly/forks-override/ramses.ts +0 -253
  832. package/src/dex/solidly/forks-override/spiritSwapV2.ts +0 -61
  833. package/src/dex/solidly/forks-override/thena.ts +0 -58
  834. package/src/dex/solidly/forks-override/usdfi.ts +0 -10
  835. package/src/dex/solidly/forks-override/velocimeter.ts +0 -58
  836. package/src/dex/solidly/forks-override/velodrome.ts +0 -58
  837. package/src/dex/solidly/forks-override/velodromeV2.ts +0 -63
  838. package/src/dex/solidly/solidly-e2e.test.ts +0 -1421
  839. package/src/dex/solidly/solidly-ethereum.ts +0 -61
  840. package/src/dex/solidly/solidly-gas-estimation.test.ts +0 -29
  841. package/src/dex/solidly/solidly-integration.test.ts +0 -1753
  842. package/src/dex/solidly/solidly-stable-pool.ts +0 -91
  843. package/src/dex/solidly/solidly.ts +0 -708
  844. package/src/dex/solidly/types.ts +0 -38
  845. package/src/dex/solidly-v3/config.ts +0 -118
  846. package/src/dex/solidly-v3/constants.ts +0 -42
  847. package/src/dex/solidly-v3/contract-math/BitMath.ts +0 -90
  848. package/src/dex/solidly-v3/contract-math/FixedPoint128.ts +0 -3
  849. package/src/dex/solidly-v3/contract-math/FixedPoint96.ts +0 -4
  850. package/src/dex/solidly-v3/contract-math/FullMath.ts +0 -30
  851. package/src/dex/solidly-v3/contract-math/LiquidityMath.ts +0 -17
  852. package/src/dex/solidly-v3/contract-math/SqrtPriceMath.ts +0 -226
  853. package/src/dex/solidly-v3/contract-math/SwapMath.ts +0 -139
  854. package/src/dex/solidly-v3/contract-math/Tick.ts +0 -63
  855. package/src/dex/solidly-v3/contract-math/TickBitMap.ts +0 -123
  856. package/src/dex/solidly-v3/contract-math/TickMath.ts +0 -211
  857. package/src/dex/solidly-v3/contract-math/UnsafeMath.ts +0 -5
  858. package/src/dex/solidly-v3/contract-math/uniswap-v3-math.ts +0 -562
  859. package/src/dex/solidly-v3/contract-math/utils.ts +0 -50
  860. package/src/dex/solidly-v3/solidly-v3-e2e.test.ts +0 -270
  861. package/src/dex/solidly-v3/solidly-v3-events.test.ts +0 -146
  862. package/src/dex/solidly-v3/solidly-v3-factory.ts +0 -80
  863. package/src/dex/solidly-v3/solidly-v3-gas-estimation.test.ts +0 -29
  864. package/src/dex/solidly-v3/solidly-v3-integration.test.ts +0 -358
  865. package/src/dex/solidly-v3/solidly-v3-pool.ts +0 -502
  866. package/src/dex/solidly-v3/solidly-v3.ts +0 -976
  867. package/src/dex/solidly-v3/types.ts +0 -157
  868. package/src/dex/solidly-v3/utils.ts +0 -71
  869. package/src/dex/spark/config.ts +0 -69
  870. package/src/dex/spark/constants.ts +0 -2
  871. package/src/dex/spark/scripts/validate-state.ts +0 -145
  872. package/src/dex/spark/spark-e2e.test.ts +0 -225
  873. package/src/dex/spark/spark-events.test.ts +0 -214
  874. package/src/dex/spark/spark-gas-estimation.test.ts +0 -29
  875. package/src/dex/spark/spark-integration.test.ts +0 -690
  876. package/src/dex/spark/spark-psm.ts +0 -361
  877. package/src/dex/spark/spark-sdai-pool.ts +0 -116
  878. package/src/dex/spark/spark.ts +0 -323
  879. package/src/dex/spark/types.ts +0 -54
  880. package/src/dex/spark/utils.ts +0 -151
  881. package/src/dex/stable-pool/stable-pool.ts +0 -129
  882. package/src/dex/stable-pool/stablepool-e2e.test.ts +0 -73
  883. package/src/dex/stable-pool/types.ts +0 -20
  884. package/src/dex/stader/config.ts +0 -13
  885. package/src/dex/stader/stader-e2e.test.ts +0 -74
  886. package/src/dex/stader/stader-events.test.ts +0 -64
  887. package/src/dex/stader/stader-gas-estimation.test.ts +0 -29
  888. package/src/dex/stader/stader-integration.test.ts +0 -240
  889. package/src/dex/stader/stader-pool.ts +0 -77
  890. package/src/dex/stader/stader.ts +0 -240
  891. package/src/dex/stader/types.ts +0 -16
  892. package/src/dex/stader/utils.ts +0 -34
  893. package/src/dex/stkgho/config.ts +0 -14
  894. package/src/dex/stkgho/stkgho-e2e.test.ts +0 -77
  895. package/src/dex/stkgho/stkgho-events.test.ts +0 -79
  896. package/src/dex/stkgho/stkgho-gas-estimation.test.ts +0 -29
  897. package/src/dex/stkgho/stkgho-integration.test.ts +0 -226
  898. package/src/dex/stkgho/stkgho-pool.ts +0 -111
  899. package/src/dex/stkgho/stkgho.ts +0 -223
  900. package/src/dex/stkgho/types.ts +0 -14
  901. package/src/dex/swaap-v2/config.ts +0 -42
  902. package/src/dex/swaap-v2/constants.ts +0 -52
  903. package/src/dex/swaap-v2/rate-fetcher.ts +0 -267
  904. package/src/dex/swaap-v2/stable-coins.ts +0 -25
  905. package/src/dex/swaap-v2/swaap-v2-e2e.test.ts +0 -584
  906. package/src/dex/swaap-v2/swaap-v2-estimation.test.ts +0 -29
  907. package/src/dex/swaap-v2/swaap-v2-integration.test.ts +0 -219
  908. package/src/dex/swaap-v2/swaap-v2.ts +0 -1067
  909. package/src/dex/swaap-v2/types.ts +0 -105
  910. package/src/dex/swaap-v2/utils.ts +0 -46
  911. package/src/dex/swaap-v2/validators.ts +0 -131
  912. package/src/dex/swell/config.ts +0 -29
  913. package/src/dex/swell/rsweth-pool.ts +0 -58
  914. package/src/dex/swell/swell-e2e.test.ts +0 -56
  915. package/src/dex/swell/swell-estimation.test.ts +0 -29
  916. package/src/dex/swell/swell.ts +0 -312
  917. package/src/dex/swell/sweth-pool.ts +0 -58
  918. package/src/dex/swell/type.ts +0 -7
  919. package/src/dex/swell/utils.ts +0 -53
  920. package/src/dex/synthetix/config.ts +0 -55
  921. package/src/dex/synthetix/constants.ts +0 -36
  922. package/src/dex/synthetix/contract-math/DexPriceAggregatorUniswapV3.ts +0 -276
  923. package/src/dex/synthetix/contract-math/ExchangeRates.ts +0 -117
  924. package/src/dex/synthetix/contract-math/ExchangeRatesWithDexPricing.ts +0 -278
  925. package/src/dex/synthetix/contract-math/FullMath.ts +0 -17
  926. package/src/dex/synthetix/contract-math/OracleLibrary.ts +0 -109
  927. package/src/dex/synthetix/contract-math/SafeDecimalMath.ts +0 -49
  928. package/src/dex/synthetix/contract-math/TickMath.ts +0 -72
  929. package/src/dex/synthetix/contract-math/synthetix-math.ts +0 -266
  930. package/src/dex/synthetix/synthetix-e2e.test.ts +0 -174
  931. package/src/dex/synthetix/synthetix-integration.test.ts +0 -293
  932. package/src/dex/synthetix/synthetix-state.ts +0 -970
  933. package/src/dex/synthetix/synthetix.ts +0 -420
  934. package/src/dex/synthetix/types.ts +0 -121
  935. package/src/dex/synthetix/utils.ts +0 -125
  936. package/src/dex/trader-joe-v2.1/base.ts +0 -167
  937. package/src/dex/trader-joe-v2.1/config.ts +0 -14
  938. package/src/dex/trader-joe-v2.1/trader-joe-v2.1-e2e.test.ts +0 -101
  939. package/src/dex/trader-joe-v2.1/trader-joe-v2.1-gas-estimation.test.ts +0 -29
  940. package/src/dex/trader-joe-v2.1/trader-joe-v2.1.ts +0 -23
  941. package/src/dex/trader-joe-v2.1/trader-joe-v2.2.ts +0 -23
  942. package/src/dex/trader-joe-v2.1/types.ts +0 -38
  943. package/src/dex/uniswap-v2/biswap.ts +0 -61
  944. package/src/dex/uniswap-v2/config.ts +0 -626
  945. package/src/dex/uniswap-v2/constants.ts +0 -58
  946. package/src/dex/uniswap-v2/dfyn.ts +0 -128
  947. package/src/dex/uniswap-v2/excalibur.ts +0 -63
  948. package/src/dex/uniswap-v2/mdex.ts +0 -66
  949. package/src/dex/uniswap-v2/nomiswap-v2.ts +0 -73
  950. package/src/dex/uniswap-v2/optimizer.ts +0 -66
  951. package/src/dex/uniswap-v2/types.ts +0 -164
  952. package/src/dex/uniswap-v2/uniswap-v2-constant-product-pool.ts +0 -40
  953. package/src/dex/uniswap-v2/uniswap-v2-e2e-arbitrum.test.ts +0 -438
  954. package/src/dex/uniswap-v2/uniswap-v2-e2e-avalanche.test.ts +0 -1361
  955. package/src/dex/uniswap-v2/uniswap-v2-e2e-base.test.ts +0 -42
  956. package/src/dex/uniswap-v2/uniswap-v2-e2e-bsc.test.ts +0 -1295
  957. package/src/dex/uniswap-v2/uniswap-v2-e2e-fantom.test.ts +0 -1428
  958. package/src/dex/uniswap-v2/uniswap-v2-e2e-gnosis.test.ts +0 -283
  959. package/src/dex/uniswap-v2/uniswap-v2-e2e-mainnet.test.ts +0 -1834
  960. package/src/dex/uniswap-v2/uniswap-v2-e2e-optimism.test.ts +0 -282
  961. package/src/dex/uniswap-v2/uniswap-v2-e2e-polygon.test.ts +0 -871
  962. package/src/dex/uniswap-v2/uniswap-v2-factory.ts +0 -70
  963. package/src/dex/uniswap-v2/uniswap-v2-gas-estimation.test.ts +0 -98
  964. package/src/dex/uniswap-v2/uniswap-v2-integration.test.ts +0 -63
  965. package/src/dex/uniswap-v2/uniswap-v2.ts +0 -1122
  966. package/src/dex/uniswap-v3/config.ts +0 -453
  967. package/src/dex/uniswap-v3/constants.ts +0 -56
  968. package/src/dex/uniswap-v3/contract-math/BitMath.ts +0 -90
  969. package/src/dex/uniswap-v3/contract-math/FixedPoint128.ts +0 -3
  970. package/src/dex/uniswap-v3/contract-math/FixedPoint96.ts +0 -4
  971. package/src/dex/uniswap-v3/contract-math/FullMath.ts +0 -30
  972. package/src/dex/uniswap-v3/contract-math/LiquidityMath.ts +0 -17
  973. package/src/dex/uniswap-v3/contract-math/Oracle.ts +0 -226
  974. package/src/dex/uniswap-v3/contract-math/SqrtPriceMath.ts +0 -226
  975. package/src/dex/uniswap-v3/contract-math/SwapMath.ts +0 -139
  976. package/src/dex/uniswap-v3/contract-math/Tick.ts +0 -82
  977. package/src/dex/uniswap-v3/contract-math/TickBitMap.ts +0 -143
  978. package/src/dex/uniswap-v3/contract-math/TickMath.ts +0 -211
  979. package/src/dex/uniswap-v3/contract-math/UnsafeMath.ts +0 -5
  980. package/src/dex/uniswap-v3/contract-math/uniswap-v3-math.ts +0 -668
  981. package/src/dex/uniswap-v3/contract-math/utils.ts +0 -55
  982. package/src/dex/uniswap-v3/forks/ramses-v2/ramses-v2-pool.ts +0 -157
  983. package/src/dex/uniswap-v3/forks/ramses-v2/utils.ts +0 -72
  984. package/src/dex/uniswap-v3/forks/velodrome-slipstream/utils.ts +0 -65
  985. package/src/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-factory.ts +0 -16
  986. package/src/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-pool.ts +0 -198
  987. package/src/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.ts +0 -243
  988. package/src/dex/uniswap-v3/scripts/check-pool-bitmap-ranges.ts +0 -238
  989. package/src/dex/uniswap-v3/scripts/measure-calc-time.ts +0 -172
  990. package/src/dex/uniswap-v3/types.ts +0 -213
  991. package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +0 -1391
  992. package/src/dex/uniswap-v3/uniswap-v3-events.test.ts +0 -185
  993. package/src/dex/uniswap-v3/uniswap-v3-factory.ts +0 -80
  994. package/src/dex/uniswap-v3/uniswap-v3-gas-estimation.test.ts +0 -98
  995. package/src/dex/uniswap-v3/uniswap-v3-integration.test.ts +0 -2734
  996. package/src/dex/uniswap-v3/uniswap-v3-pool.ts +0 -564
  997. package/src/dex/uniswap-v3/uniswap-v3.ts +0 -1493
  998. package/src/dex/uniswap-v3/utils.ts +0 -83
  999. package/src/dex/uniswap-v3.ts +0 -242
  1000. package/src/dex/usual/m-wrapped-m.ts +0 -76
  1001. package/src/dex/usual/types.ts +0 -10
  1002. package/src/dex/usual/usual-bond.ts +0 -69
  1003. package/src/dex/usual/usual-e2e.test.ts +0 -169
  1004. package/src/dex/usual/usual-gas-estimation.test.ts +0 -54
  1005. package/src/dex/usual/usual-integration.test.ts +0 -515
  1006. package/src/dex/usual/usual-m-usd0.ts +0 -76
  1007. package/src/dex/usual/usual-m-wrapped-m.ts +0 -71
  1008. package/src/dex/usual/usual.ts +0 -156
  1009. package/src/dex/usual/wrapped-m-m.ts +0 -76
  1010. package/src/dex/usual-pp/config.ts +0 -18
  1011. package/src/dex/usual-pp/pool.ts +0 -77
  1012. package/src/dex/usual-pp/types.ts +0 -12
  1013. package/src/dex/usual-pp/usual-events.test.ts +0 -70
  1014. package/src/dex/usual-pp/usual-integration.test.ts +0 -143
  1015. package/src/dex/usual-pp/usual-pp-gas-estimation.test.ts +0 -29
  1016. package/src/dex/usual-pp/usual-pp.e2e.test.ts +0 -76
  1017. package/src/dex/usual-pp/usual-pp.ts +0 -207
  1018. package/src/dex/usual-pp/utils.ts +0 -27
  1019. package/src/dex/weth/config.ts +0 -87
  1020. package/src/dex/weth/types.ts +0 -34
  1021. package/src/dex/weth/weth-e2e-v6.test.ts +0 -117
  1022. package/src/dex/weth/weth-e2e.test.ts +0 -1032
  1023. package/src/dex/weth/weth-gas-estimation.test.ts +0 -42
  1024. package/src/dex/weth/weth-integration.test.ts +0 -80
  1025. package/src/dex/weth/weth.ts +0 -232
  1026. package/src/dex/wombat/config.ts +0 -77
  1027. package/src/dex/wombat/types.ts +0 -55
  1028. package/src/dex/wombat/utils.ts +0 -82
  1029. package/src/dex/wombat/wombat-bmw.ts +0 -186
  1030. package/src/dex/wombat/wombat-e2e.test.ts +0 -272
  1031. package/src/dex/wombat/wombat-events.test.ts +0 -147
  1032. package/src/dex/wombat/wombat-gas-estimation.test.ts +0 -29
  1033. package/src/dex/wombat/wombat-integration.test.ts +0 -217
  1034. package/src/dex/wombat/wombat-pool.ts +0 -688
  1035. package/src/dex/wombat/wombat-quoter.ts +0 -269
  1036. package/src/dex/wombat/wombat.ts +0 -467
  1037. package/src/dex/woo-fi-v2/config.ts +0 -100
  1038. package/src/dex/woo-fi-v2/constants.ts +0 -22
  1039. package/src/dex/woo-fi-v2/decoders.ts +0 -45
  1040. package/src/dex/woo-fi-v2/types.ts +0 -64
  1041. package/src/dex/woo-fi-v2/utils.ts +0 -19
  1042. package/src/dex/woo-fi-v2/woo-fi-v2-e2e.test.ts +0 -282
  1043. package/src/dex/woo-fi-v2/woo-fi-v2-integration.test.ts +0 -495
  1044. package/src/dex/woo-fi-v2/woo-fi-v2-math.ts +0 -228
  1045. package/src/dex/woo-fi-v2/woo-fi-v2-pool.ts +0 -143
  1046. package/src/dex/woo-fi-v2/woo-fi-v2.ts +0 -528
  1047. package/src/dex/wsteth/config.ts +0 -16
  1048. package/src/dex/wsteth/types.ts +0 -13
  1049. package/src/dex/wsteth/wsteth-e2e.test.ts +0 -96
  1050. package/src/dex/wsteth/wsteth-gas-estimation.test.ts +0 -41
  1051. package/src/dex/wsteth/wsteth-integration.test.ts +0 -200
  1052. package/src/dex/wsteth/wsteth.ts +0 -304
  1053. package/src/dex-helper/dummy-dex-helper.ts +0 -379
  1054. package/src/dex-helper/dummy-limit-order-provider.ts +0 -74
  1055. package/src/dex-helper/iblock-manager.ts +0 -60
  1056. package/src/dex-helper/icache.ts +0 -85
  1057. package/src/dex-helper/idex-helper.ts +0 -27
  1058. package/src/dex-helper/ilimit-order-provider.ts +0 -27
  1059. package/src/dex-helper/index.ts +0 -16
  1060. package/src/dex-helper/irequest-wrapper.ts +0 -67
  1061. package/src/executor/Executor01BytecodeBuilder.ts +0 -479
  1062. package/src/executor/Executor02BytecodeBuilder.ts +0 -1419
  1063. package/src/executor/Executor03BytecodeBuilder.ts +0 -473
  1064. package/src/executor/ExecutorBytecodeBuilder.ts +0 -453
  1065. package/src/executor/ExecutorDetector.ts +0 -131
  1066. package/src/executor/WETHBytecodeBuilder.ts +0 -58
  1067. package/src/executor/__snapshots__/executor01-bytecode-builder-snapshot.test.ts.snap +0 -35
  1068. package/src/executor/__snapshots__/executor02-bytecode-builder-snapshot.test.ts.snap +0 -23
  1069. package/src/executor/constants.ts +0 -66
  1070. package/src/executor/executor01-bytecode-builder-e2e.test.ts +0 -1503
  1071. package/src/executor/executor01-bytecode-builder-snapshot.test.ts +0 -271
  1072. package/src/executor/executor02-bytecode-builder-e2e.test.ts +0 -1578
  1073. package/src/executor/executor02-bytecode-builder-snapshot.test.ts +0 -188
  1074. package/src/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -16
  1075. package/src/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -16
  1076. package/src/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -16
  1077. package/src/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -16
  1078. package/src/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -16
  1079. package/src/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -16
  1080. package/src/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -16
  1081. package/src/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -16
  1082. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -9
  1083. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -9
  1084. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -9
  1085. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +0 -9
  1086. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +0 -9
  1087. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -9
  1088. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +0 -9
  1089. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +0 -9
  1090. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +0 -9
  1091. package/src/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -12
  1092. package/src/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -7
  1093. package/src/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -7
  1094. package/src/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -7
  1095. package/src/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -7
  1096. package/src/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -12
  1097. package/src/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +0 -7
  1098. package/src/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +0 -7
  1099. package/src/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -78
  1100. package/src/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -81
  1101. package/src/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -78
  1102. package/src/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -78
  1103. package/src/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -81
  1104. package/src/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -81
  1105. package/src/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -81
  1106. package/src/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -81
  1107. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -64
  1108. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -85
  1109. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -64
  1110. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +0 -52
  1111. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +0 -52
  1112. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -52
  1113. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +0 -55
  1114. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +0 -55
  1115. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +0 -55
  1116. package/src/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -23
  1117. package/src/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -37
  1118. package/src/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -23
  1119. package/src/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -23
  1120. package/src/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -51
  1121. package/src/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +0 -58
  1122. package/src/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -23
  1123. package/src/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -23
  1124. package/src/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -9
  1125. package/src/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -16
  1126. package/src/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -23
  1127. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -12
  1128. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -7
  1129. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -12
  1130. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -12
  1131. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -7
  1132. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +0 -7
  1133. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -7
  1134. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -7
  1135. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -7
  1136. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -7
  1137. package/src/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -130
  1138. package/src/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -136
  1139. package/src/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -100
  1140. package/src/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -100
  1141. package/src/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -166
  1142. package/src/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +0 -190
  1143. package/src/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -114
  1144. package/src/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -114
  1145. package/src/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -55
  1146. package/src/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -73
  1147. package/src/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -82
  1148. package/src/executor/types.ts +0 -45
  1149. package/src/executor/utils.ts +0 -62
  1150. package/src/generic-swap-transaction-builder.ts +0 -753
  1151. package/src/implementations/local-paraswap-sdk.ts +0 -342
  1152. package/src/index.ts +0 -38
  1153. package/src/lens.ts +0 -8
  1154. package/src/lib/api3-feed.ts +0 -175
  1155. package/src/lib/benqi/staked-avax.ts +0 -123
  1156. package/src/lib/chainlink.ts +0 -113
  1157. package/src/lib/curve/encoder.ts +0 -19
  1158. package/src/lib/decoders.ts +0 -199
  1159. package/src/lib/erc1271-utils.ts +0 -24
  1160. package/src/lib/fetcher/fetcher.ts +0 -183
  1161. package/src/lib/fetcher/wsFetcher.ts +0 -158
  1162. package/src/lib/generics-events-subscribers/erc20-event-subscriber-factory.ts +0 -18
  1163. package/src/lib/generics-events-subscribers/erc20-event-subscriber.test.ts +0 -126
  1164. package/src/lib/generics-events-subscribers/erc20-event-subscriber.ts +0 -261
  1165. package/src/lib/generics-events-subscribers/types.ts +0 -41
  1166. package/src/lib/generics-events-subscribers/utils.ts +0 -37
  1167. package/src/lib/log-messages-suppressor.ts +0 -173
  1168. package/src/lib/log4js.ts +0 -88
  1169. package/src/lib/multi-wrapper.ts +0 -108
  1170. package/src/lib/promise-scheduler.ts +0 -55
  1171. package/src/lib/pub-sub.ts +0 -232
  1172. package/src/lib/stateful-rpc-poller/state-polling-manager.ts +0 -320
  1173. package/src/lib/stateful-rpc-poller/stateful-rpc-poller.ts +0 -604
  1174. package/src/lib/stateful-rpc-poller/types.ts +0 -66
  1175. package/src/lib/stateful-rpc-poller/utils.ts +0 -23
  1176. package/src/lib/task-scheduler.ts +0 -64
  1177. package/src/lib/token-transfer-fee.ts +0 -42
  1178. package/src/lib/tokens/balancer-fetcher.ts +0 -283
  1179. package/src/lib/tokens/types.ts +0 -102
  1180. package/src/lib/tokens/utils.ts +0 -179
  1181. package/src/lib/utils-interfaces.ts +0 -4
  1182. package/src/lib/validators.ts +0 -34
  1183. package/src/pools-helper.ts +0 -58
  1184. package/src/pricing-helper.ts +0 -328
  1185. package/src/rebase-tokens.json +0 -17
  1186. package/src/router/buy.ts +0 -101
  1187. package/src/router/directswap.ts +0 -101
  1188. package/src/router/index.ts +0 -48
  1189. package/src/router/irouter.ts +0 -20
  1190. package/src/router/megaswap.ts +0 -88
  1191. package/src/router/multiswap.ts +0 -96
  1192. package/src/router/payload-encoder.ts +0 -293
  1193. package/src/router/simpleswap.ts +0 -369
  1194. package/src/router/simpleswapnft.ts +0 -138
  1195. package/src/stateful-event-subscriber.ts +0 -512
  1196. package/src/transaction-builder.ts +0 -129
  1197. package/src/types.ts +0 -357
  1198. package/src/utils.ts +0 -410
  1199. package/tests/constants-e2e.ts +0 -2230
  1200. package/tests/debug-price-route.test.ts +0 -55
  1201. package/tests/generate-new-limit-order.ts +0 -107
  1202. package/tests/payload-encoder.test.ts +0 -49
  1203. package/tests/tenderly-simulation.test.ts +0 -151
  1204. package/tests/tenderly-simulation.ts +0 -698
  1205. package/tests/token-storage-slots.json +0 -738
  1206. package/tests/transaction-builder.test.ts +0 -234
  1207. package/tests/utils-e2e.ts +0 -651
  1208. package/tests/utils-events.ts +0 -186
  1209. package/tests/utils.ts +0 -127
  1210. package/tests/v6/utils-e2e-v6.ts +0 -103
  1211. package/tsconfig.json +0 -23
@@ -1,2002 +0,0 @@
1
- [
2
- { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" },
3
- {
4
- "anonymous": false,
5
- "inputs": [
6
- {
7
- "indexed": false,
8
- "internalType": "address",
9
- "name": "account",
10
- "type": "address"
11
- },
12
- {
13
- "indexed": false,
14
- "internalType": "address",
15
- "name": "token",
16
- "type": "address"
17
- },
18
- {
19
- "indexed": false,
20
- "internalType": "uint256",
21
- "name": "tokenAmount",
22
- "type": "uint256"
23
- },
24
- {
25
- "indexed": false,
26
- "internalType": "uint256",
27
- "name": "usdgAmount",
28
- "type": "uint256"
29
- },
30
- {
31
- "indexed": false,
32
- "internalType": "uint256",
33
- "name": "feeBasisPoints",
34
- "type": "uint256"
35
- }
36
- ],
37
- "name": "BuyUSDG",
38
- "type": "event"
39
- },
40
- {
41
- "anonymous": false,
42
- "inputs": [
43
- {
44
- "indexed": false,
45
- "internalType": "bytes32",
46
- "name": "key",
47
- "type": "bytes32"
48
- },
49
- {
50
- "indexed": false,
51
- "internalType": "uint256",
52
- "name": "size",
53
- "type": "uint256"
54
- },
55
- {
56
- "indexed": false,
57
- "internalType": "uint256",
58
- "name": "collateral",
59
- "type": "uint256"
60
- },
61
- {
62
- "indexed": false,
63
- "internalType": "uint256",
64
- "name": "averagePrice",
65
- "type": "uint256"
66
- },
67
- {
68
- "indexed": false,
69
- "internalType": "uint256",
70
- "name": "entryFundingRate",
71
- "type": "uint256"
72
- },
73
- {
74
- "indexed": false,
75
- "internalType": "uint256",
76
- "name": "reserveAmount",
77
- "type": "uint256"
78
- },
79
- {
80
- "indexed": false,
81
- "internalType": "int256",
82
- "name": "realisedPnl",
83
- "type": "int256"
84
- }
85
- ],
86
- "name": "ClosePosition",
87
- "type": "event"
88
- },
89
- {
90
- "anonymous": false,
91
- "inputs": [
92
- {
93
- "indexed": false,
94
- "internalType": "address",
95
- "name": "token",
96
- "type": "address"
97
- },
98
- {
99
- "indexed": false,
100
- "internalType": "uint256",
101
- "name": "feeUsd",
102
- "type": "uint256"
103
- },
104
- {
105
- "indexed": false,
106
- "internalType": "uint256",
107
- "name": "feeTokens",
108
- "type": "uint256"
109
- }
110
- ],
111
- "name": "CollectMarginFees",
112
- "type": "event"
113
- },
114
- {
115
- "anonymous": false,
116
- "inputs": [
117
- {
118
- "indexed": false,
119
- "internalType": "address",
120
- "name": "token",
121
- "type": "address"
122
- },
123
- {
124
- "indexed": false,
125
- "internalType": "uint256",
126
- "name": "feeUsd",
127
- "type": "uint256"
128
- },
129
- {
130
- "indexed": false,
131
- "internalType": "uint256",
132
- "name": "feeTokens",
133
- "type": "uint256"
134
- }
135
- ],
136
- "name": "CollectSwapFees",
137
- "type": "event"
138
- },
139
- {
140
- "anonymous": false,
141
- "inputs": [
142
- {
143
- "indexed": false,
144
- "internalType": "address",
145
- "name": "token",
146
- "type": "address"
147
- },
148
- {
149
- "indexed": false,
150
- "internalType": "uint256",
151
- "name": "amount",
152
- "type": "uint256"
153
- }
154
- ],
155
- "name": "DecreaseGuaranteedUsd",
156
- "type": "event"
157
- },
158
- {
159
- "anonymous": false,
160
- "inputs": [
161
- {
162
- "indexed": false,
163
- "internalType": "address",
164
- "name": "token",
165
- "type": "address"
166
- },
167
- {
168
- "indexed": false,
169
- "internalType": "uint256",
170
- "name": "amount",
171
- "type": "uint256"
172
- }
173
- ],
174
- "name": "DecreasePoolAmount",
175
- "type": "event"
176
- },
177
- {
178
- "anonymous": false,
179
- "inputs": [
180
- {
181
- "indexed": false,
182
- "internalType": "bytes32",
183
- "name": "key",
184
- "type": "bytes32"
185
- },
186
- {
187
- "indexed": false,
188
- "internalType": "address",
189
- "name": "account",
190
- "type": "address"
191
- },
192
- {
193
- "indexed": false,
194
- "internalType": "address",
195
- "name": "collateralToken",
196
- "type": "address"
197
- },
198
- {
199
- "indexed": false,
200
- "internalType": "address",
201
- "name": "indexToken",
202
- "type": "address"
203
- },
204
- {
205
- "indexed": false,
206
- "internalType": "uint256",
207
- "name": "collateralDelta",
208
- "type": "uint256"
209
- },
210
- {
211
- "indexed": false,
212
- "internalType": "uint256",
213
- "name": "sizeDelta",
214
- "type": "uint256"
215
- },
216
- {
217
- "indexed": false,
218
- "internalType": "bool",
219
- "name": "isLong",
220
- "type": "bool"
221
- },
222
- {
223
- "indexed": false,
224
- "internalType": "uint256",
225
- "name": "price",
226
- "type": "uint256"
227
- },
228
- {
229
- "indexed": false,
230
- "internalType": "uint256",
231
- "name": "fee",
232
- "type": "uint256"
233
- }
234
- ],
235
- "name": "DecreasePosition",
236
- "type": "event"
237
- },
238
- {
239
- "anonymous": false,
240
- "inputs": [
241
- {
242
- "indexed": false,
243
- "internalType": "address",
244
- "name": "token",
245
- "type": "address"
246
- },
247
- {
248
- "indexed": false,
249
- "internalType": "uint256",
250
- "name": "amount",
251
- "type": "uint256"
252
- }
253
- ],
254
- "name": "DecreaseReservedAmount",
255
- "type": "event"
256
- },
257
- {
258
- "anonymous": false,
259
- "inputs": [
260
- {
261
- "indexed": false,
262
- "internalType": "address",
263
- "name": "token",
264
- "type": "address"
265
- },
266
- {
267
- "indexed": false,
268
- "internalType": "uint256",
269
- "name": "amount",
270
- "type": "uint256"
271
- }
272
- ],
273
- "name": "DecreaseUsdgAmount",
274
- "type": "event"
275
- },
276
- {
277
- "anonymous": false,
278
- "inputs": [
279
- {
280
- "indexed": false,
281
- "internalType": "address",
282
- "name": "token",
283
- "type": "address"
284
- },
285
- {
286
- "indexed": false,
287
- "internalType": "uint256",
288
- "name": "amount",
289
- "type": "uint256"
290
- }
291
- ],
292
- "name": "DirectPoolDeposit",
293
- "type": "event"
294
- },
295
- {
296
- "anonymous": false,
297
- "inputs": [
298
- {
299
- "indexed": false,
300
- "internalType": "address",
301
- "name": "token",
302
- "type": "address"
303
- },
304
- {
305
- "indexed": false,
306
- "internalType": "uint256",
307
- "name": "amount",
308
- "type": "uint256"
309
- }
310
- ],
311
- "name": "IncreaseGuaranteedUsd",
312
- "type": "event"
313
- },
314
- {
315
- "anonymous": false,
316
- "inputs": [
317
- {
318
- "indexed": false,
319
- "internalType": "address",
320
- "name": "token",
321
- "type": "address"
322
- },
323
- {
324
- "indexed": false,
325
- "internalType": "uint256",
326
- "name": "amount",
327
- "type": "uint256"
328
- }
329
- ],
330
- "name": "IncreasePoolAmount",
331
- "type": "event"
332
- },
333
- {
334
- "anonymous": false,
335
- "inputs": [
336
- {
337
- "indexed": false,
338
- "internalType": "bytes32",
339
- "name": "key",
340
- "type": "bytes32"
341
- },
342
- {
343
- "indexed": false,
344
- "internalType": "address",
345
- "name": "account",
346
- "type": "address"
347
- },
348
- {
349
- "indexed": false,
350
- "internalType": "address",
351
- "name": "collateralToken",
352
- "type": "address"
353
- },
354
- {
355
- "indexed": false,
356
- "internalType": "address",
357
- "name": "indexToken",
358
- "type": "address"
359
- },
360
- {
361
- "indexed": false,
362
- "internalType": "uint256",
363
- "name": "collateralDelta",
364
- "type": "uint256"
365
- },
366
- {
367
- "indexed": false,
368
- "internalType": "uint256",
369
- "name": "sizeDelta",
370
- "type": "uint256"
371
- },
372
- {
373
- "indexed": false,
374
- "internalType": "bool",
375
- "name": "isLong",
376
- "type": "bool"
377
- },
378
- {
379
- "indexed": false,
380
- "internalType": "uint256",
381
- "name": "price",
382
- "type": "uint256"
383
- },
384
- {
385
- "indexed": false,
386
- "internalType": "uint256",
387
- "name": "fee",
388
- "type": "uint256"
389
- }
390
- ],
391
- "name": "IncreasePosition",
392
- "type": "event"
393
- },
394
- {
395
- "anonymous": false,
396
- "inputs": [
397
- {
398
- "indexed": false,
399
- "internalType": "address",
400
- "name": "token",
401
- "type": "address"
402
- },
403
- {
404
- "indexed": false,
405
- "internalType": "uint256",
406
- "name": "amount",
407
- "type": "uint256"
408
- }
409
- ],
410
- "name": "IncreaseReservedAmount",
411
- "type": "event"
412
- },
413
- {
414
- "anonymous": false,
415
- "inputs": [
416
- {
417
- "indexed": false,
418
- "internalType": "address",
419
- "name": "token",
420
- "type": "address"
421
- },
422
- {
423
- "indexed": false,
424
- "internalType": "uint256",
425
- "name": "amount",
426
- "type": "uint256"
427
- }
428
- ],
429
- "name": "IncreaseUsdgAmount",
430
- "type": "event"
431
- },
432
- {
433
- "anonymous": false,
434
- "inputs": [
435
- {
436
- "indexed": false,
437
- "internalType": "bytes32",
438
- "name": "key",
439
- "type": "bytes32"
440
- },
441
- {
442
- "indexed": false,
443
- "internalType": "address",
444
- "name": "account",
445
- "type": "address"
446
- },
447
- {
448
- "indexed": false,
449
- "internalType": "address",
450
- "name": "collateralToken",
451
- "type": "address"
452
- },
453
- {
454
- "indexed": false,
455
- "internalType": "address",
456
- "name": "indexToken",
457
- "type": "address"
458
- },
459
- {
460
- "indexed": false,
461
- "internalType": "bool",
462
- "name": "isLong",
463
- "type": "bool"
464
- },
465
- {
466
- "indexed": false,
467
- "internalType": "uint256",
468
- "name": "size",
469
- "type": "uint256"
470
- },
471
- {
472
- "indexed": false,
473
- "internalType": "uint256",
474
- "name": "collateral",
475
- "type": "uint256"
476
- },
477
- {
478
- "indexed": false,
479
- "internalType": "uint256",
480
- "name": "reserveAmount",
481
- "type": "uint256"
482
- },
483
- {
484
- "indexed": false,
485
- "internalType": "int256",
486
- "name": "realisedPnl",
487
- "type": "int256"
488
- },
489
- {
490
- "indexed": false,
491
- "internalType": "uint256",
492
- "name": "markPrice",
493
- "type": "uint256"
494
- }
495
- ],
496
- "name": "LiquidatePosition",
497
- "type": "event"
498
- },
499
- {
500
- "anonymous": false,
501
- "inputs": [
502
- {
503
- "indexed": false,
504
- "internalType": "address",
505
- "name": "account",
506
- "type": "address"
507
- },
508
- {
509
- "indexed": false,
510
- "internalType": "address",
511
- "name": "token",
512
- "type": "address"
513
- },
514
- {
515
- "indexed": false,
516
- "internalType": "uint256",
517
- "name": "usdgAmount",
518
- "type": "uint256"
519
- },
520
- {
521
- "indexed": false,
522
- "internalType": "uint256",
523
- "name": "tokenAmount",
524
- "type": "uint256"
525
- },
526
- {
527
- "indexed": false,
528
- "internalType": "uint256",
529
- "name": "feeBasisPoints",
530
- "type": "uint256"
531
- }
532
- ],
533
- "name": "SellUSDG",
534
- "type": "event"
535
- },
536
- {
537
- "anonymous": false,
538
- "inputs": [
539
- {
540
- "indexed": false,
541
- "internalType": "address",
542
- "name": "account",
543
- "type": "address"
544
- },
545
- {
546
- "indexed": false,
547
- "internalType": "address",
548
- "name": "tokenIn",
549
- "type": "address"
550
- },
551
- {
552
- "indexed": false,
553
- "internalType": "address",
554
- "name": "tokenOut",
555
- "type": "address"
556
- },
557
- {
558
- "indexed": false,
559
- "internalType": "uint256",
560
- "name": "amountIn",
561
- "type": "uint256"
562
- },
563
- {
564
- "indexed": false,
565
- "internalType": "uint256",
566
- "name": "amountOut",
567
- "type": "uint256"
568
- },
569
- {
570
- "indexed": false,
571
- "internalType": "uint256",
572
- "name": "amountOutAfterFees",
573
- "type": "uint256"
574
- },
575
- {
576
- "indexed": false,
577
- "internalType": "uint256",
578
- "name": "feeBasisPoints",
579
- "type": "uint256"
580
- }
581
- ],
582
- "name": "Swap",
583
- "type": "event"
584
- },
585
- {
586
- "anonymous": false,
587
- "inputs": [
588
- {
589
- "indexed": false,
590
- "internalType": "address",
591
- "name": "token",
592
- "type": "address"
593
- },
594
- {
595
- "indexed": false,
596
- "internalType": "uint256",
597
- "name": "fundingRate",
598
- "type": "uint256"
599
- }
600
- ],
601
- "name": "UpdateFundingRate",
602
- "type": "event"
603
- },
604
- {
605
- "anonymous": false,
606
- "inputs": [
607
- {
608
- "indexed": false,
609
- "internalType": "bytes32",
610
- "name": "key",
611
- "type": "bytes32"
612
- },
613
- {
614
- "indexed": false,
615
- "internalType": "bool",
616
- "name": "hasProfit",
617
- "type": "bool"
618
- },
619
- {
620
- "indexed": false,
621
- "internalType": "uint256",
622
- "name": "delta",
623
- "type": "uint256"
624
- }
625
- ],
626
- "name": "UpdatePnl",
627
- "type": "event"
628
- },
629
- {
630
- "anonymous": false,
631
- "inputs": [
632
- {
633
- "indexed": false,
634
- "internalType": "bytes32",
635
- "name": "key",
636
- "type": "bytes32"
637
- },
638
- {
639
- "indexed": false,
640
- "internalType": "uint256",
641
- "name": "size",
642
- "type": "uint256"
643
- },
644
- {
645
- "indexed": false,
646
- "internalType": "uint256",
647
- "name": "collateral",
648
- "type": "uint256"
649
- },
650
- {
651
- "indexed": false,
652
- "internalType": "uint256",
653
- "name": "averagePrice",
654
- "type": "uint256"
655
- },
656
- {
657
- "indexed": false,
658
- "internalType": "uint256",
659
- "name": "entryFundingRate",
660
- "type": "uint256"
661
- },
662
- {
663
- "indexed": false,
664
- "internalType": "uint256",
665
- "name": "reserveAmount",
666
- "type": "uint256"
667
- },
668
- {
669
- "indexed": false,
670
- "internalType": "int256",
671
- "name": "realisedPnl",
672
- "type": "int256"
673
- },
674
- {
675
- "indexed": false,
676
- "internalType": "uint256",
677
- "name": "markPrice",
678
- "type": "uint256"
679
- }
680
- ],
681
- "name": "UpdatePosition",
682
- "type": "event"
683
- },
684
- {
685
- "anonymous": false,
686
- "inputs": [
687
- {
688
- "indexed": false,
689
- "internalType": "bytes32",
690
- "name": "key",
691
- "type": "bytes32"
692
- },
693
- {
694
- "indexed": false,
695
- "internalType": "uint256",
696
- "name": "size",
697
- "type": "uint256"
698
- },
699
- {
700
- "indexed": false,
701
- "internalType": "uint256",
702
- "name": "collateral",
703
- "type": "uint256"
704
- },
705
- {
706
- "indexed": false,
707
- "internalType": "uint256",
708
- "name": "averagePrice",
709
- "type": "uint256"
710
- },
711
- {
712
- "indexed": false,
713
- "internalType": "uint256",
714
- "name": "entryFundingRate",
715
- "type": "uint256"
716
- },
717
- {
718
- "indexed": false,
719
- "internalType": "uint256",
720
- "name": "reserveAmount",
721
- "type": "uint256"
722
- },
723
- {
724
- "indexed": false,
725
- "internalType": "int256",
726
- "name": "realisedPnl",
727
- "type": "int256"
728
- }
729
- ],
730
- "name": "UpdatePosition",
731
- "type": "event"
732
- },
733
- {
734
- "inputs": [],
735
- "name": "BASIS_POINTS_DIVISOR",
736
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
737
- "stateMutability": "view",
738
- "type": "function"
739
- },
740
- {
741
- "inputs": [],
742
- "name": "FUNDING_RATE_PRECISION",
743
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
744
- "stateMutability": "view",
745
- "type": "function"
746
- },
747
- {
748
- "inputs": [],
749
- "name": "MAX_FEE_BASIS_POINTS",
750
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
751
- "stateMutability": "view",
752
- "type": "function"
753
- },
754
- {
755
- "inputs": [],
756
- "name": "MAX_FUNDING_RATE_FACTOR",
757
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
758
- "stateMutability": "view",
759
- "type": "function"
760
- },
761
- {
762
- "inputs": [],
763
- "name": "MAX_LIQUIDATION_FEE_USD",
764
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
765
- "stateMutability": "view",
766
- "type": "function"
767
- },
768
- {
769
- "inputs": [],
770
- "name": "MIN_FUNDING_RATE_INTERVAL",
771
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
772
- "stateMutability": "view",
773
- "type": "function"
774
- },
775
- {
776
- "inputs": [],
777
- "name": "MIN_LEVERAGE",
778
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
779
- "stateMutability": "view",
780
- "type": "function"
781
- },
782
- {
783
- "inputs": [],
784
- "name": "PRICE_PRECISION",
785
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
786
- "stateMutability": "view",
787
- "type": "function"
788
- },
789
- {
790
- "inputs": [],
791
- "name": "USDG_DECIMALS",
792
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
793
- "stateMutability": "view",
794
- "type": "function"
795
- },
796
- {
797
- "inputs": [
798
- { "internalType": "address", "name": "_router", "type": "address" }
799
- ],
800
- "name": "addRouter",
801
- "outputs": [],
802
- "stateMutability": "nonpayable",
803
- "type": "function"
804
- },
805
- {
806
- "inputs": [
807
- { "internalType": "uint256", "name": "_amount", "type": "uint256" },
808
- { "internalType": "address", "name": "_tokenDiv", "type": "address" },
809
- { "internalType": "address", "name": "_tokenMul", "type": "address" }
810
- ],
811
- "name": "adjustForDecimals",
812
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
813
- "stateMutability": "view",
814
- "type": "function"
815
- },
816
- {
817
- "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
818
- "name": "allWhitelistedTokens",
819
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
820
- "stateMutability": "view",
821
- "type": "function"
822
- },
823
- {
824
- "inputs": [],
825
- "name": "allWhitelistedTokensLength",
826
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
827
- "stateMutability": "view",
828
- "type": "function"
829
- },
830
- {
831
- "inputs": [
832
- { "internalType": "address", "name": "", "type": "address" },
833
- { "internalType": "address", "name": "", "type": "address" }
834
- ],
835
- "name": "approvedRouters",
836
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
837
- "stateMutability": "view",
838
- "type": "function"
839
- },
840
- {
841
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
842
- "name": "bufferAmounts",
843
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
844
- "stateMutability": "view",
845
- "type": "function"
846
- },
847
- {
848
- "inputs": [
849
- { "internalType": "address", "name": "_token", "type": "address" },
850
- { "internalType": "address", "name": "_receiver", "type": "address" }
851
- ],
852
- "name": "buyUSDG",
853
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
854
- "stateMutability": "nonpayable",
855
- "type": "function"
856
- },
857
- {
858
- "inputs": [
859
- { "internalType": "address", "name": "_token", "type": "address" }
860
- ],
861
- "name": "clearTokenConfig",
862
- "outputs": [],
863
- "stateMutability": "nonpayable",
864
- "type": "function"
865
- },
866
- {
867
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
868
- "name": "cumulativeFundingRates",
869
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
870
- "stateMutability": "view",
871
- "type": "function"
872
- },
873
- {
874
- "inputs": [
875
- { "internalType": "address", "name": "_account", "type": "address" },
876
- {
877
- "internalType": "address",
878
- "name": "_collateralToken",
879
- "type": "address"
880
- },
881
- { "internalType": "address", "name": "_indexToken", "type": "address" },
882
- {
883
- "internalType": "uint256",
884
- "name": "_collateralDelta",
885
- "type": "uint256"
886
- },
887
- { "internalType": "uint256", "name": "_sizeDelta", "type": "uint256" },
888
- { "internalType": "bool", "name": "_isLong", "type": "bool" },
889
- { "internalType": "address", "name": "_receiver", "type": "address" }
890
- ],
891
- "name": "decreasePosition",
892
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
893
- "stateMutability": "nonpayable",
894
- "type": "function"
895
- },
896
- {
897
- "inputs": [
898
- { "internalType": "address", "name": "_token", "type": "address" }
899
- ],
900
- "name": "directPoolDeposit",
901
- "outputs": [],
902
- "stateMutability": "nonpayable",
903
- "type": "function"
904
- },
905
- {
906
- "inputs": [],
907
- "name": "errorController",
908
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
909
- "stateMutability": "view",
910
- "type": "function"
911
- },
912
- {
913
- "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
914
- "name": "errors",
915
- "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
916
- "stateMutability": "view",
917
- "type": "function"
918
- },
919
- {
920
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
921
- "name": "feeReserves",
922
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
923
- "stateMutability": "view",
924
- "type": "function"
925
- },
926
- {
927
- "inputs": [],
928
- "name": "fundingInterval",
929
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
930
- "stateMutability": "view",
931
- "type": "function"
932
- },
933
- {
934
- "inputs": [],
935
- "name": "fundingRateFactor",
936
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
937
- "stateMutability": "view",
938
- "type": "function"
939
- },
940
- {
941
- "inputs": [
942
- { "internalType": "address", "name": "_indexToken", "type": "address" },
943
- { "internalType": "uint256", "name": "_size", "type": "uint256" },
944
- { "internalType": "uint256", "name": "_averagePrice", "type": "uint256" },
945
- { "internalType": "bool", "name": "_isLong", "type": "bool" },
946
- {
947
- "internalType": "uint256",
948
- "name": "_lastIncreasedTime",
949
- "type": "uint256"
950
- }
951
- ],
952
- "name": "getDelta",
953
- "outputs": [
954
- { "internalType": "bool", "name": "", "type": "bool" },
955
- { "internalType": "uint256", "name": "", "type": "uint256" }
956
- ],
957
- "stateMutability": "view",
958
- "type": "function"
959
- },
960
- {
961
- "inputs": [
962
- {
963
- "internalType": "address",
964
- "name": "_collateralToken",
965
- "type": "address"
966
- },
967
- { "internalType": "address", "name": "_indexToken", "type": "address" },
968
- { "internalType": "bool", "name": "_isLong", "type": "bool" }
969
- ],
970
- "name": "getEntryFundingRate",
971
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
972
- "stateMutability": "view",
973
- "type": "function"
974
- },
975
- {
976
- "inputs": [
977
- { "internalType": "address", "name": "_token", "type": "address" },
978
- { "internalType": "uint256", "name": "_usdgDelta", "type": "uint256" },
979
- {
980
- "internalType": "uint256",
981
- "name": "_feeBasisPoints",
982
- "type": "uint256"
983
- },
984
- {
985
- "internalType": "uint256",
986
- "name": "_taxBasisPoints",
987
- "type": "uint256"
988
- },
989
- { "internalType": "bool", "name": "_increment", "type": "bool" }
990
- ],
991
- "name": "getFeeBasisPoints",
992
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
993
- "stateMutability": "view",
994
- "type": "function"
995
- },
996
- {
997
- "inputs": [
998
- { "internalType": "address", "name": "_account", "type": "address" },
999
- {
1000
- "internalType": "address",
1001
- "name": "_collateralToken",
1002
- "type": "address"
1003
- },
1004
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1005
- { "internalType": "bool", "name": "_isLong", "type": "bool" },
1006
- { "internalType": "uint256", "name": "_size", "type": "uint256" },
1007
- {
1008
- "internalType": "uint256",
1009
- "name": "_entryFundingRate",
1010
- "type": "uint256"
1011
- }
1012
- ],
1013
- "name": "getFundingFee",
1014
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1015
- "stateMutability": "view",
1016
- "type": "function"
1017
- },
1018
- {
1019
- "inputs": [
1020
- { "internalType": "address", "name": "_token", "type": "address" }
1021
- ],
1022
- "name": "getGlobalShortDelta",
1023
- "outputs": [
1024
- { "internalType": "bool", "name": "", "type": "bool" },
1025
- { "internalType": "uint256", "name": "", "type": "uint256" }
1026
- ],
1027
- "stateMutability": "view",
1028
- "type": "function"
1029
- },
1030
- {
1031
- "inputs": [
1032
- { "internalType": "address", "name": "_token", "type": "address" }
1033
- ],
1034
- "name": "getMaxPrice",
1035
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1036
- "stateMutability": "view",
1037
- "type": "function"
1038
- },
1039
- {
1040
- "inputs": [
1041
- { "internalType": "address", "name": "_token", "type": "address" }
1042
- ],
1043
- "name": "getMinPrice",
1044
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1045
- "stateMutability": "view",
1046
- "type": "function"
1047
- },
1048
- {
1049
- "inputs": [
1050
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1051
- { "internalType": "uint256", "name": "_size", "type": "uint256" },
1052
- { "internalType": "uint256", "name": "_averagePrice", "type": "uint256" },
1053
- { "internalType": "bool", "name": "_isLong", "type": "bool" },
1054
- { "internalType": "uint256", "name": "_nextPrice", "type": "uint256" },
1055
- { "internalType": "uint256", "name": "_sizeDelta", "type": "uint256" },
1056
- {
1057
- "internalType": "uint256",
1058
- "name": "_lastIncreasedTime",
1059
- "type": "uint256"
1060
- }
1061
- ],
1062
- "name": "getNextAveragePrice",
1063
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1064
- "stateMutability": "view",
1065
- "type": "function"
1066
- },
1067
- {
1068
- "inputs": [
1069
- { "internalType": "address", "name": "_token", "type": "address" }
1070
- ],
1071
- "name": "getNextFundingRate",
1072
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1073
- "stateMutability": "view",
1074
- "type": "function"
1075
- },
1076
- {
1077
- "inputs": [
1078
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1079
- { "internalType": "uint256", "name": "_nextPrice", "type": "uint256" },
1080
- { "internalType": "uint256", "name": "_sizeDelta", "type": "uint256" }
1081
- ],
1082
- "name": "getNextGlobalShortAveragePrice",
1083
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1084
- "stateMutability": "view",
1085
- "type": "function"
1086
- },
1087
- {
1088
- "inputs": [
1089
- { "internalType": "address", "name": "_account", "type": "address" },
1090
- {
1091
- "internalType": "address",
1092
- "name": "_collateralToken",
1093
- "type": "address"
1094
- },
1095
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1096
- { "internalType": "bool", "name": "_isLong", "type": "bool" }
1097
- ],
1098
- "name": "getPosition",
1099
- "outputs": [
1100
- { "internalType": "uint256", "name": "", "type": "uint256" },
1101
- { "internalType": "uint256", "name": "", "type": "uint256" },
1102
- { "internalType": "uint256", "name": "", "type": "uint256" },
1103
- { "internalType": "uint256", "name": "", "type": "uint256" },
1104
- { "internalType": "uint256", "name": "", "type": "uint256" },
1105
- { "internalType": "uint256", "name": "", "type": "uint256" },
1106
- { "internalType": "bool", "name": "", "type": "bool" },
1107
- { "internalType": "uint256", "name": "", "type": "uint256" }
1108
- ],
1109
- "stateMutability": "view",
1110
- "type": "function"
1111
- },
1112
- {
1113
- "inputs": [
1114
- { "internalType": "address", "name": "_account", "type": "address" },
1115
- {
1116
- "internalType": "address",
1117
- "name": "_collateralToken",
1118
- "type": "address"
1119
- },
1120
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1121
- { "internalType": "bool", "name": "_isLong", "type": "bool" }
1122
- ],
1123
- "name": "getPositionDelta",
1124
- "outputs": [
1125
- { "internalType": "bool", "name": "", "type": "bool" },
1126
- { "internalType": "uint256", "name": "", "type": "uint256" }
1127
- ],
1128
- "stateMutability": "view",
1129
- "type": "function"
1130
- },
1131
- {
1132
- "inputs": [
1133
- { "internalType": "address", "name": "_account", "type": "address" },
1134
- {
1135
- "internalType": "address",
1136
- "name": "_collateralToken",
1137
- "type": "address"
1138
- },
1139
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1140
- { "internalType": "bool", "name": "_isLong", "type": "bool" },
1141
- { "internalType": "uint256", "name": "_sizeDelta", "type": "uint256" }
1142
- ],
1143
- "name": "getPositionFee",
1144
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1145
- "stateMutability": "view",
1146
- "type": "function"
1147
- },
1148
- {
1149
- "inputs": [
1150
- { "internalType": "address", "name": "_account", "type": "address" },
1151
- {
1152
- "internalType": "address",
1153
- "name": "_collateralToken",
1154
- "type": "address"
1155
- },
1156
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1157
- { "internalType": "bool", "name": "_isLong", "type": "bool" }
1158
- ],
1159
- "name": "getPositionKey",
1160
- "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
1161
- "stateMutability": "pure",
1162
- "type": "function"
1163
- },
1164
- {
1165
- "inputs": [
1166
- { "internalType": "address", "name": "_account", "type": "address" },
1167
- {
1168
- "internalType": "address",
1169
- "name": "_collateralToken",
1170
- "type": "address"
1171
- },
1172
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1173
- { "internalType": "bool", "name": "_isLong", "type": "bool" }
1174
- ],
1175
- "name": "getPositionLeverage",
1176
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1177
- "stateMutability": "view",
1178
- "type": "function"
1179
- },
1180
- {
1181
- "inputs": [
1182
- { "internalType": "address", "name": "_token", "type": "address" },
1183
- { "internalType": "uint256", "name": "_usdgAmount", "type": "uint256" }
1184
- ],
1185
- "name": "getRedemptionAmount",
1186
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1187
- "stateMutability": "view",
1188
- "type": "function"
1189
- },
1190
- {
1191
- "inputs": [
1192
- { "internalType": "address", "name": "_token", "type": "address" }
1193
- ],
1194
- "name": "getRedemptionCollateral",
1195
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1196
- "stateMutability": "view",
1197
- "type": "function"
1198
- },
1199
- {
1200
- "inputs": [
1201
- { "internalType": "address", "name": "_token", "type": "address" }
1202
- ],
1203
- "name": "getRedemptionCollateralUsd",
1204
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1205
- "stateMutability": "view",
1206
- "type": "function"
1207
- },
1208
- {
1209
- "inputs": [
1210
- { "internalType": "address", "name": "_token", "type": "address" }
1211
- ],
1212
- "name": "getTargetUsdgAmount",
1213
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1214
- "stateMutability": "view",
1215
- "type": "function"
1216
- },
1217
- {
1218
- "inputs": [
1219
- { "internalType": "address", "name": "_token", "type": "address" }
1220
- ],
1221
- "name": "getUtilisation",
1222
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1223
- "stateMutability": "view",
1224
- "type": "function"
1225
- },
1226
- {
1227
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1228
- "name": "globalShortAveragePrices",
1229
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1230
- "stateMutability": "view",
1231
- "type": "function"
1232
- },
1233
- {
1234
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1235
- "name": "globalShortSizes",
1236
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1237
- "stateMutability": "view",
1238
- "type": "function"
1239
- },
1240
- {
1241
- "inputs": [],
1242
- "name": "gov",
1243
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
1244
- "stateMutability": "view",
1245
- "type": "function"
1246
- },
1247
- {
1248
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1249
- "name": "guaranteedUsd",
1250
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1251
- "stateMutability": "view",
1252
- "type": "function"
1253
- },
1254
- {
1255
- "inputs": [],
1256
- "name": "hasDynamicFees",
1257
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1258
- "stateMutability": "view",
1259
- "type": "function"
1260
- },
1261
- {
1262
- "inputs": [],
1263
- "name": "inManagerMode",
1264
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1265
- "stateMutability": "view",
1266
- "type": "function"
1267
- },
1268
- {
1269
- "inputs": [],
1270
- "name": "inPrivateLiquidationMode",
1271
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1272
- "stateMutability": "view",
1273
- "type": "function"
1274
- },
1275
- {
1276
- "inputs": [],
1277
- "name": "includeAmmPrice",
1278
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1279
- "stateMutability": "view",
1280
- "type": "function"
1281
- },
1282
- {
1283
- "inputs": [
1284
- { "internalType": "address", "name": "_account", "type": "address" },
1285
- {
1286
- "internalType": "address",
1287
- "name": "_collateralToken",
1288
- "type": "address"
1289
- },
1290
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1291
- { "internalType": "uint256", "name": "_sizeDelta", "type": "uint256" },
1292
- { "internalType": "bool", "name": "_isLong", "type": "bool" }
1293
- ],
1294
- "name": "increasePosition",
1295
- "outputs": [],
1296
- "stateMutability": "nonpayable",
1297
- "type": "function"
1298
- },
1299
- {
1300
- "inputs": [
1301
- { "internalType": "address", "name": "_router", "type": "address" },
1302
- { "internalType": "address", "name": "_usdg", "type": "address" },
1303
- { "internalType": "address", "name": "_priceFeed", "type": "address" },
1304
- {
1305
- "internalType": "uint256",
1306
- "name": "_liquidationFeeUsd",
1307
- "type": "uint256"
1308
- },
1309
- {
1310
- "internalType": "uint256",
1311
- "name": "_fundingRateFactor",
1312
- "type": "uint256"
1313
- },
1314
- {
1315
- "internalType": "uint256",
1316
- "name": "_stableFundingRateFactor",
1317
- "type": "uint256"
1318
- }
1319
- ],
1320
- "name": "initialize",
1321
- "outputs": [],
1322
- "stateMutability": "nonpayable",
1323
- "type": "function"
1324
- },
1325
- {
1326
- "inputs": [],
1327
- "name": "isInitialized",
1328
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1329
- "stateMutability": "view",
1330
- "type": "function"
1331
- },
1332
- {
1333
- "inputs": [],
1334
- "name": "isLeverageEnabled",
1335
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1336
- "stateMutability": "view",
1337
- "type": "function"
1338
- },
1339
- {
1340
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1341
- "name": "isLiquidator",
1342
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1343
- "stateMutability": "view",
1344
- "type": "function"
1345
- },
1346
- {
1347
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1348
- "name": "isManager",
1349
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1350
- "stateMutability": "view",
1351
- "type": "function"
1352
- },
1353
- {
1354
- "inputs": [],
1355
- "name": "isSwapEnabled",
1356
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1357
- "stateMutability": "view",
1358
- "type": "function"
1359
- },
1360
- {
1361
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1362
- "name": "lastFundingTimes",
1363
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1364
- "stateMutability": "view",
1365
- "type": "function"
1366
- },
1367
- {
1368
- "inputs": [
1369
- { "internalType": "address", "name": "_account", "type": "address" },
1370
- {
1371
- "internalType": "address",
1372
- "name": "_collateralToken",
1373
- "type": "address"
1374
- },
1375
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1376
- { "internalType": "bool", "name": "_isLong", "type": "bool" },
1377
- { "internalType": "address", "name": "_feeReceiver", "type": "address" }
1378
- ],
1379
- "name": "liquidatePosition",
1380
- "outputs": [],
1381
- "stateMutability": "nonpayable",
1382
- "type": "function"
1383
- },
1384
- {
1385
- "inputs": [],
1386
- "name": "liquidationFeeUsd",
1387
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1388
- "stateMutability": "view",
1389
- "type": "function"
1390
- },
1391
- {
1392
- "inputs": [],
1393
- "name": "marginFeeBasisPoints",
1394
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1395
- "stateMutability": "view",
1396
- "type": "function"
1397
- },
1398
- {
1399
- "inputs": [],
1400
- "name": "maxGasPrice",
1401
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1402
- "stateMutability": "view",
1403
- "type": "function"
1404
- },
1405
- {
1406
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1407
- "name": "maxGlobalShortSizes",
1408
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1409
- "stateMutability": "view",
1410
- "type": "function"
1411
- },
1412
- {
1413
- "inputs": [],
1414
- "name": "maxLeverage",
1415
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1416
- "stateMutability": "view",
1417
- "type": "function"
1418
- },
1419
- {
1420
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1421
- "name": "maxUsdgAmounts",
1422
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1423
- "stateMutability": "view",
1424
- "type": "function"
1425
- },
1426
- {
1427
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1428
- "name": "minProfitBasisPoints",
1429
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1430
- "stateMutability": "view",
1431
- "type": "function"
1432
- },
1433
- {
1434
- "inputs": [],
1435
- "name": "minProfitTime",
1436
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1437
- "stateMutability": "view",
1438
- "type": "function"
1439
- },
1440
- {
1441
- "inputs": [],
1442
- "name": "mintBurnFeeBasisPoints",
1443
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1444
- "stateMutability": "view",
1445
- "type": "function"
1446
- },
1447
- {
1448
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1449
- "name": "poolAmounts",
1450
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1451
- "stateMutability": "view",
1452
- "type": "function"
1453
- },
1454
- {
1455
- "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
1456
- "name": "positions",
1457
- "outputs": [
1458
- { "internalType": "uint256", "name": "size", "type": "uint256" },
1459
- { "internalType": "uint256", "name": "collateral", "type": "uint256" },
1460
- { "internalType": "uint256", "name": "averagePrice", "type": "uint256" },
1461
- {
1462
- "internalType": "uint256",
1463
- "name": "entryFundingRate",
1464
- "type": "uint256"
1465
- },
1466
- { "internalType": "uint256", "name": "reserveAmount", "type": "uint256" },
1467
- { "internalType": "int256", "name": "realisedPnl", "type": "int256" },
1468
- {
1469
- "internalType": "uint256",
1470
- "name": "lastIncreasedTime",
1471
- "type": "uint256"
1472
- }
1473
- ],
1474
- "stateMutability": "view",
1475
- "type": "function"
1476
- },
1477
- {
1478
- "inputs": [],
1479
- "name": "priceFeed",
1480
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
1481
- "stateMutability": "view",
1482
- "type": "function"
1483
- },
1484
- {
1485
- "inputs": [
1486
- { "internalType": "address", "name": "_router", "type": "address" }
1487
- ],
1488
- "name": "removeRouter",
1489
- "outputs": [],
1490
- "stateMutability": "nonpayable",
1491
- "type": "function"
1492
- },
1493
- {
1494
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1495
- "name": "reservedAmounts",
1496
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1497
- "stateMutability": "view",
1498
- "type": "function"
1499
- },
1500
- {
1501
- "inputs": [],
1502
- "name": "router",
1503
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
1504
- "stateMutability": "view",
1505
- "type": "function"
1506
- },
1507
- {
1508
- "inputs": [
1509
- { "internalType": "address", "name": "_token", "type": "address" },
1510
- { "internalType": "address", "name": "_receiver", "type": "address" }
1511
- ],
1512
- "name": "sellUSDG",
1513
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1514
- "stateMutability": "nonpayable",
1515
- "type": "function"
1516
- },
1517
- {
1518
- "inputs": [
1519
- { "internalType": "address", "name": "_token", "type": "address" },
1520
- { "internalType": "uint256", "name": "_amount", "type": "uint256" }
1521
- ],
1522
- "name": "setBufferAmount",
1523
- "outputs": [],
1524
- "stateMutability": "nonpayable",
1525
- "type": "function"
1526
- },
1527
- {
1528
- "inputs": [
1529
- { "internalType": "uint256", "name": "_errorCode", "type": "uint256" },
1530
- { "internalType": "string", "name": "_error", "type": "string" }
1531
- ],
1532
- "name": "setError",
1533
- "outputs": [],
1534
- "stateMutability": "nonpayable",
1535
- "type": "function"
1536
- },
1537
- {
1538
- "inputs": [
1539
- {
1540
- "internalType": "address",
1541
- "name": "_errorController",
1542
- "type": "address"
1543
- }
1544
- ],
1545
- "name": "setErrorController",
1546
- "outputs": [],
1547
- "stateMutability": "nonpayable",
1548
- "type": "function"
1549
- },
1550
- {
1551
- "inputs": [
1552
- {
1553
- "internalType": "uint256",
1554
- "name": "_taxBasisPoints",
1555
- "type": "uint256"
1556
- },
1557
- {
1558
- "internalType": "uint256",
1559
- "name": "_stableTaxBasisPoints",
1560
- "type": "uint256"
1561
- },
1562
- {
1563
- "internalType": "uint256",
1564
- "name": "_mintBurnFeeBasisPoints",
1565
- "type": "uint256"
1566
- },
1567
- {
1568
- "internalType": "uint256",
1569
- "name": "_swapFeeBasisPoints",
1570
- "type": "uint256"
1571
- },
1572
- {
1573
- "internalType": "uint256",
1574
- "name": "_stableSwapFeeBasisPoints",
1575
- "type": "uint256"
1576
- },
1577
- {
1578
- "internalType": "uint256",
1579
- "name": "_marginFeeBasisPoints",
1580
- "type": "uint256"
1581
- },
1582
- {
1583
- "internalType": "uint256",
1584
- "name": "_liquidationFeeUsd",
1585
- "type": "uint256"
1586
- },
1587
- {
1588
- "internalType": "uint256",
1589
- "name": "_minProfitTime",
1590
- "type": "uint256"
1591
- },
1592
- { "internalType": "bool", "name": "_hasDynamicFees", "type": "bool" }
1593
- ],
1594
- "name": "setFees",
1595
- "outputs": [],
1596
- "stateMutability": "nonpayable",
1597
- "type": "function"
1598
- },
1599
- {
1600
- "inputs": [
1601
- {
1602
- "internalType": "uint256",
1603
- "name": "_fundingInterval",
1604
- "type": "uint256"
1605
- },
1606
- {
1607
- "internalType": "uint256",
1608
- "name": "_fundingRateFactor",
1609
- "type": "uint256"
1610
- },
1611
- {
1612
- "internalType": "uint256",
1613
- "name": "_stableFundingRateFactor",
1614
- "type": "uint256"
1615
- }
1616
- ],
1617
- "name": "setFundingRate",
1618
- "outputs": [],
1619
- "stateMutability": "nonpayable",
1620
- "type": "function"
1621
- },
1622
- {
1623
- "inputs": [
1624
- { "internalType": "address", "name": "_gov", "type": "address" }
1625
- ],
1626
- "name": "setGov",
1627
- "outputs": [],
1628
- "stateMutability": "nonpayable",
1629
- "type": "function"
1630
- },
1631
- {
1632
- "inputs": [
1633
- { "internalType": "bool", "name": "_inManagerMode", "type": "bool" }
1634
- ],
1635
- "name": "setInManagerMode",
1636
- "outputs": [],
1637
- "stateMutability": "nonpayable",
1638
- "type": "function"
1639
- },
1640
- {
1641
- "inputs": [
1642
- {
1643
- "internalType": "bool",
1644
- "name": "_inPrivateLiquidationMode",
1645
- "type": "bool"
1646
- }
1647
- ],
1648
- "name": "setInPrivateLiquidationMode",
1649
- "outputs": [],
1650
- "stateMutability": "nonpayable",
1651
- "type": "function"
1652
- },
1653
- {
1654
- "inputs": [
1655
- { "internalType": "bool", "name": "_isLeverageEnabled", "type": "bool" }
1656
- ],
1657
- "name": "setIsLeverageEnabled",
1658
- "outputs": [],
1659
- "stateMutability": "nonpayable",
1660
- "type": "function"
1661
- },
1662
- {
1663
- "inputs": [
1664
- { "internalType": "bool", "name": "_isSwapEnabled", "type": "bool" }
1665
- ],
1666
- "name": "setIsSwapEnabled",
1667
- "outputs": [],
1668
- "stateMutability": "nonpayable",
1669
- "type": "function"
1670
- },
1671
- {
1672
- "inputs": [
1673
- { "internalType": "address", "name": "_liquidator", "type": "address" },
1674
- { "internalType": "bool", "name": "_isActive", "type": "bool" }
1675
- ],
1676
- "name": "setLiquidator",
1677
- "outputs": [],
1678
- "stateMutability": "nonpayable",
1679
- "type": "function"
1680
- },
1681
- {
1682
- "inputs": [
1683
- { "internalType": "address", "name": "_manager", "type": "address" },
1684
- { "internalType": "bool", "name": "_isManager", "type": "bool" }
1685
- ],
1686
- "name": "setManager",
1687
- "outputs": [],
1688
- "stateMutability": "nonpayable",
1689
- "type": "function"
1690
- },
1691
- {
1692
- "inputs": [
1693
- { "internalType": "uint256", "name": "_maxGasPrice", "type": "uint256" }
1694
- ],
1695
- "name": "setMaxGasPrice",
1696
- "outputs": [],
1697
- "stateMutability": "nonpayable",
1698
- "type": "function"
1699
- },
1700
- {
1701
- "inputs": [
1702
- { "internalType": "address", "name": "_token", "type": "address" },
1703
- { "internalType": "uint256", "name": "_amount", "type": "uint256" }
1704
- ],
1705
- "name": "setMaxGlobalShortSize",
1706
- "outputs": [],
1707
- "stateMutability": "nonpayable",
1708
- "type": "function"
1709
- },
1710
- {
1711
- "inputs": [
1712
- { "internalType": "uint256", "name": "_maxLeverage", "type": "uint256" }
1713
- ],
1714
- "name": "setMaxLeverage",
1715
- "outputs": [],
1716
- "stateMutability": "nonpayable",
1717
- "type": "function"
1718
- },
1719
- {
1720
- "inputs": [
1721
- { "internalType": "address", "name": "_priceFeed", "type": "address" }
1722
- ],
1723
- "name": "setPriceFeed",
1724
- "outputs": [],
1725
- "stateMutability": "nonpayable",
1726
- "type": "function"
1727
- },
1728
- {
1729
- "inputs": [
1730
- { "internalType": "address", "name": "_token", "type": "address" },
1731
- {
1732
- "internalType": "uint256",
1733
- "name": "_tokenDecimals",
1734
- "type": "uint256"
1735
- },
1736
- { "internalType": "uint256", "name": "_tokenWeight", "type": "uint256" },
1737
- { "internalType": "uint256", "name": "_minProfitBps", "type": "uint256" },
1738
- {
1739
- "internalType": "uint256",
1740
- "name": "_maxUsdgAmount",
1741
- "type": "uint256"
1742
- },
1743
- { "internalType": "bool", "name": "_isStable", "type": "bool" },
1744
- { "internalType": "bool", "name": "_isShortable", "type": "bool" }
1745
- ],
1746
- "name": "setTokenConfig",
1747
- "outputs": [],
1748
- "stateMutability": "nonpayable",
1749
- "type": "function"
1750
- },
1751
- {
1752
- "inputs": [
1753
- { "internalType": "address", "name": "_token", "type": "address" },
1754
- { "internalType": "uint256", "name": "_amount", "type": "uint256" }
1755
- ],
1756
- "name": "setUsdgAmount",
1757
- "outputs": [],
1758
- "stateMutability": "nonpayable",
1759
- "type": "function"
1760
- },
1761
- {
1762
- "inputs": [
1763
- {
1764
- "internalType": "contract IVaultUtils",
1765
- "name": "_vaultUtils",
1766
- "type": "address"
1767
- }
1768
- ],
1769
- "name": "setVaultUtils",
1770
- "outputs": [],
1771
- "stateMutability": "nonpayable",
1772
- "type": "function"
1773
- },
1774
- {
1775
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1776
- "name": "shortableTokens",
1777
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1778
- "stateMutability": "view",
1779
- "type": "function"
1780
- },
1781
- {
1782
- "inputs": [],
1783
- "name": "stableFundingRateFactor",
1784
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1785
- "stateMutability": "view",
1786
- "type": "function"
1787
- },
1788
- {
1789
- "inputs": [],
1790
- "name": "stableSwapFeeBasisPoints",
1791
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1792
- "stateMutability": "view",
1793
- "type": "function"
1794
- },
1795
- {
1796
- "inputs": [],
1797
- "name": "stableTaxBasisPoints",
1798
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1799
- "stateMutability": "view",
1800
- "type": "function"
1801
- },
1802
- {
1803
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1804
- "name": "stableTokens",
1805
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1806
- "stateMutability": "view",
1807
- "type": "function"
1808
- },
1809
- {
1810
- "inputs": [
1811
- { "internalType": "address", "name": "_tokenIn", "type": "address" },
1812
- { "internalType": "address", "name": "_tokenOut", "type": "address" },
1813
- { "internalType": "address", "name": "_receiver", "type": "address" }
1814
- ],
1815
- "name": "swap",
1816
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1817
- "stateMutability": "nonpayable",
1818
- "type": "function"
1819
- },
1820
- {
1821
- "inputs": [],
1822
- "name": "swapFeeBasisPoints",
1823
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1824
- "stateMutability": "view",
1825
- "type": "function"
1826
- },
1827
- {
1828
- "inputs": [],
1829
- "name": "taxBasisPoints",
1830
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1831
- "stateMutability": "view",
1832
- "type": "function"
1833
- },
1834
- {
1835
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1836
- "name": "tokenBalances",
1837
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1838
- "stateMutability": "view",
1839
- "type": "function"
1840
- },
1841
- {
1842
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1843
- "name": "tokenDecimals",
1844
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1845
- "stateMutability": "view",
1846
- "type": "function"
1847
- },
1848
- {
1849
- "inputs": [
1850
- { "internalType": "address", "name": "_token", "type": "address" },
1851
- { "internalType": "uint256", "name": "_tokenAmount", "type": "uint256" }
1852
- ],
1853
- "name": "tokenToUsdMin",
1854
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1855
- "stateMutability": "view",
1856
- "type": "function"
1857
- },
1858
- {
1859
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1860
- "name": "tokenWeights",
1861
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1862
- "stateMutability": "view",
1863
- "type": "function"
1864
- },
1865
- {
1866
- "inputs": [],
1867
- "name": "totalTokenWeights",
1868
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1869
- "stateMutability": "view",
1870
- "type": "function"
1871
- },
1872
- {
1873
- "inputs": [
1874
- {
1875
- "internalType": "address",
1876
- "name": "_collateralToken",
1877
- "type": "address"
1878
- },
1879
- { "internalType": "address", "name": "_indexToken", "type": "address" }
1880
- ],
1881
- "name": "updateCumulativeFundingRate",
1882
- "outputs": [],
1883
- "stateMutability": "nonpayable",
1884
- "type": "function"
1885
- },
1886
- {
1887
- "inputs": [
1888
- { "internalType": "address", "name": "_newVault", "type": "address" },
1889
- { "internalType": "address", "name": "_token", "type": "address" },
1890
- { "internalType": "uint256", "name": "_amount", "type": "uint256" }
1891
- ],
1892
- "name": "upgradeVault",
1893
- "outputs": [],
1894
- "stateMutability": "nonpayable",
1895
- "type": "function"
1896
- },
1897
- {
1898
- "inputs": [
1899
- { "internalType": "address", "name": "_token", "type": "address" },
1900
- { "internalType": "uint256", "name": "_usdAmount", "type": "uint256" },
1901
- { "internalType": "uint256", "name": "_price", "type": "uint256" }
1902
- ],
1903
- "name": "usdToToken",
1904
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1905
- "stateMutability": "view",
1906
- "type": "function"
1907
- },
1908
- {
1909
- "inputs": [
1910
- { "internalType": "address", "name": "_token", "type": "address" },
1911
- { "internalType": "uint256", "name": "_usdAmount", "type": "uint256" }
1912
- ],
1913
- "name": "usdToTokenMax",
1914
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1915
- "stateMutability": "view",
1916
- "type": "function"
1917
- },
1918
- {
1919
- "inputs": [
1920
- { "internalType": "address", "name": "_token", "type": "address" },
1921
- { "internalType": "uint256", "name": "_usdAmount", "type": "uint256" }
1922
- ],
1923
- "name": "usdToTokenMin",
1924
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1925
- "stateMutability": "view",
1926
- "type": "function"
1927
- },
1928
- {
1929
- "inputs": [],
1930
- "name": "usdg",
1931
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
1932
- "stateMutability": "view",
1933
- "type": "function"
1934
- },
1935
- {
1936
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1937
- "name": "usdgAmounts",
1938
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1939
- "stateMutability": "view",
1940
- "type": "function"
1941
- },
1942
- {
1943
- "inputs": [],
1944
- "name": "useSwapPricing",
1945
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1946
- "stateMutability": "view",
1947
- "type": "function"
1948
- },
1949
- {
1950
- "inputs": [
1951
- { "internalType": "address", "name": "_account", "type": "address" },
1952
- {
1953
- "internalType": "address",
1954
- "name": "_collateralToken",
1955
- "type": "address"
1956
- },
1957
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1958
- { "internalType": "bool", "name": "_isLong", "type": "bool" },
1959
- { "internalType": "bool", "name": "_raise", "type": "bool" }
1960
- ],
1961
- "name": "validateLiquidation",
1962
- "outputs": [
1963
- { "internalType": "uint256", "name": "", "type": "uint256" },
1964
- { "internalType": "uint256", "name": "", "type": "uint256" }
1965
- ],
1966
- "stateMutability": "view",
1967
- "type": "function"
1968
- },
1969
- {
1970
- "inputs": [],
1971
- "name": "vaultUtils",
1972
- "outputs": [
1973
- { "internalType": "contract IVaultUtils", "name": "", "type": "address" }
1974
- ],
1975
- "stateMutability": "view",
1976
- "type": "function"
1977
- },
1978
- {
1979
- "inputs": [],
1980
- "name": "whitelistedTokenCount",
1981
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1982
- "stateMutability": "view",
1983
- "type": "function"
1984
- },
1985
- {
1986
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1987
- "name": "whitelistedTokens",
1988
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1989
- "stateMutability": "view",
1990
- "type": "function"
1991
- },
1992
- {
1993
- "inputs": [
1994
- { "internalType": "address", "name": "_token", "type": "address" },
1995
- { "internalType": "address", "name": "_receiver", "type": "address" }
1996
- ],
1997
- "name": "withdrawFees",
1998
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1999
- "stateMutability": "nonpayable",
2000
- "type": "function"
2001
- }
2002
- ]