@paraswap/dex-lib 2.42.23 → 2.42.24

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 (351) hide show
  1. package/.idea/aws.xml +17 -0
  2. package/.idea/codeStyles/Project.xml +19 -0
  3. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  4. package/.idea/misc.xml +6 -0
  5. package/.idea/modules.xml +8 -0
  6. package/.idea/paraswap-dex-lib.iml +9 -0
  7. package/.idea/prettier.xml +7 -0
  8. package/.idea/vcs.xml +6 -0
  9. package/build/abi/AugustusV6.abi.json +395 -0
  10. package/build/abi/algebra/AlgebraPool.abi.json +727 -0
  11. package/build/abi/curve-v1/StableSwapFRXETH.json +889 -0
  12. package/build/abi/curve-v1/StableSwapWBETH.json +1223 -0
  13. package/build/abi/sushiswap-v3/QuoterV2.json +267 -0
  14. package/build/abi/sushiswap-v3/RouterProcessor3.json +289 -0
  15. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
  16. package/build/abi/uniswap-v3/pancakeswap-v3/PancakeswapV3QuoterV2.abi.json +285 -0
  17. package/build/abi/uniswap-v3/pancakeswap-v3/PancakeswapV3Router.abi.json +583 -0
  18. package/build/abi/wBETH.json +1527 -0
  19. package/build/abi/woo-fi/WooFeeManager.abi.json +318 -0
  20. package/build/abi/woo-fi/WooPP.abi.json +548 -0
  21. package/build/abi/woo-fi/Wooracle.abi.json +260 -0
  22. package/build/dex/aave-v3/tokens/arbitrum.json +50 -0
  23. package/build/dex/aave-v3/tokens/avalanche.json +74 -0
  24. package/build/dex/aave-v3/tokens/fantom.json +62 -0
  25. package/build/dex/aave-v3/tokens/optimism.json +50 -0
  26. package/build/dex/aave-v3/tokens/polygon.json +116 -0
  27. package/build/dex/algebra/algebra-pool.d.ts +114 -0
  28. package/build/dex/algebra/algebra-pool.js +448 -0
  29. package/build/dex/algebra/algebra-pool.js.map +1 -0
  30. package/build/dex/balancer-v2/Gyro3Pool.d.ts +43 -0
  31. package/build/dex/balancer-v2/Gyro3Pool.js +160 -0
  32. package/build/dex/balancer-v2/Gyro3Pool.js.map +1 -0
  33. package/build/dex/balancer-v2/LinearMath.d.ts +88 -0
  34. package/build/dex/balancer-v2/LinearMath.js +285 -0
  35. package/build/dex/balancer-v2/LinearMath.js.map +1 -0
  36. package/build/dex/balancer-v2/LinearPool.d.ts +81 -0
  37. package/build/dex/balancer-v2/LinearPool.js +444 -0
  38. package/build/dex/balancer-v2/LinearPool.js.map +1 -0
  39. package/build/dex/balancer-v2/PhantomStablePool.d.ts +90 -0
  40. package/build/dex/balancer-v2/PhantomStablePool.js +418 -0
  41. package/build/dex/balancer-v2/PhantomStablePool.js.map +1 -0
  42. package/build/dex/balancer-v2/StableMath.d.ts +9 -0
  43. package/build/dex/balancer-v2/StableMath.js +272 -0
  44. package/build/dex/balancer-v2/StableMath.js.map +1 -0
  45. package/build/dex/balancer-v2/balancer-v2-pool.d.ts +140 -0
  46. package/build/dex/balancer-v2/balancer-v2-pool.js +647 -0
  47. package/build/dex/balancer-v2/balancer-v2-pool.js.map +1 -0
  48. package/build/dex/balancer-v2/pools/gyro/Gyro3Pool.d.ts +33 -0
  49. package/build/dex/balancer-v2/pools/gyro/Gyro3Pool.js +128 -0
  50. package/build/dex/balancer-v2/pools/gyro/Gyro3Pool.js.map +1 -0
  51. package/build/dex/balancer-v2/pools/gyro/GyroEPool.d.ts +34 -0
  52. package/build/dex/balancer-v2/pools/gyro/GyroEPool.js +151 -0
  53. package/build/dex/balancer-v2/pools/gyro/GyroEPool.js.map +1 -0
  54. package/build/dex/curve-v1/pools/frxETHpool.d.ts +7 -0
  55. package/build/dex/curve-v1/pools/frxETHpool.js +27 -0
  56. package/build/dex/curve-v1/pools/frxETHpool.js.map +1 -0
  57. package/build/dex/curve-v1/pools/wbETHpool.d.ts +29 -0
  58. package/build/dex/curve-v1/pools/wbETHpool.js +408 -0
  59. package/build/dex/curve-v1/pools/wbETHpool.js.map +1 -0
  60. package/build/dex/dexalot/constants.js +1 -1
  61. package/build/dex/lighter-v1/abi/erc20.json +222 -0
  62. package/build/dex/lighter-v1/abi/factory.json +291 -0
  63. package/build/dex/lighter-v1/abi/order_book.json +594 -0
  64. package/build/dex/lighter-v1/abi/order_book_helper.json +176 -0
  65. package/build/dex/lighter-v1/abi/router.json +488 -0
  66. package/build/dex/{my-test-dex → lighter-v1}/config.d.ts +1 -1
  67. package/build/dex/lighter-v1/config.js +17 -0
  68. package/build/dex/lighter-v1/config.js.map +1 -0
  69. package/build/dex/lighter-v1/constants.d.ts +2 -0
  70. package/build/dex/lighter-v1/constants.js +13 -0
  71. package/build/dex/lighter-v1/constants.js.map +1 -0
  72. package/build/dex/{my-test-dex/my-test-dex-pool.d.ts → lighter-v1/lighter-v1-pool.d.ts} +24 -6
  73. package/build/dex/lighter-v1/lighter-v1-pool.js +310 -0
  74. package/build/dex/lighter-v1/lighter-v1-pool.js.map +1 -0
  75. package/build/dex/{my-test-dex/my-test-dex.d.ts → lighter-v1/lighter-v1.d.ts} +18 -10
  76. package/build/dex/lighter-v1/lighter-v1.js +331 -0
  77. package/build/dex/lighter-v1/lighter-v1.js.map +1 -0
  78. package/build/dex/lighter-v1/types.d.ts +40 -0
  79. package/build/dex/{hello → lighter-v1}/types.js.map +1 -1
  80. package/build/dex/pancakeswap-v3/types.d.ts +14 -0
  81. package/build/dex/{my-test-dex → pancakeswap-v3}/types.js.map +1 -1
  82. package/build/dex/quickswap/camelot-v3.d.ts +6 -0
  83. package/build/dex/quickswap/camelot-v3.js +19 -0
  84. package/build/dex/quickswap/camelot-v3.js.map +1 -0
  85. package/build/dex/quickswap/zyberswap-v3.d.ts +6 -0
  86. package/build/dex/quickswap/zyberswap-v3.js +19 -0
  87. package/build/dex/quickswap/zyberswap-v3.js.map +1 -0
  88. package/build/dex/quickswap-v3.d.ts +21 -0
  89. package/build/dex/quickswap-v3.js +40 -0
  90. package/build/dex/quickswap-v3.js.map +1 -0
  91. package/build/dex/{wombat → ramses-v2}/config.d.ts +1 -1
  92. package/build/dex/ramses-v2/config.js +28 -0
  93. package/build/dex/ramses-v2/config.js.map +1 -0
  94. package/build/dex/{baseswap-v3 → ramses-v2}/constants.d.ts +1 -1
  95. package/build/dex/{baseswap-v3 → ramses-v2}/constants.js +1 -1
  96. package/build/dex/ramses-v2/constants.js.map +1 -0
  97. package/build/dex/ramses-v2/contract-math/BitMath.js.map +1 -0
  98. package/build/dex/ramses-v2/contract-math/FixedPoint128.js.map +1 -0
  99. package/build/dex/ramses-v2/contract-math/FixedPoint96.js.map +1 -0
  100. package/build/dex/ramses-v2/contract-math/FullMath.js.map +1 -0
  101. package/build/dex/ramses-v2/contract-math/LiquidityMath.js.map +1 -0
  102. package/build/dex/ramses-v2/contract-math/Oracle.js.map +1 -0
  103. package/build/dex/ramses-v2/contract-math/SqrtPriceMath.js.map +1 -0
  104. package/build/dex/ramses-v2/contract-math/SwapMath.js.map +1 -0
  105. package/build/dex/ramses-v2/contract-math/Tick.d.ts +7 -0
  106. package/build/dex/ramses-v2/contract-math/Tick.js.map +1 -0
  107. package/build/dex/ramses-v2/contract-math/TickBitMap.d.ts +8 -0
  108. package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/TickBitMap.js +3 -0
  109. package/build/dex/ramses-v2/contract-math/TickBitMap.js.map +1 -0
  110. package/build/dex/ramses-v2/contract-math/TickMath.js.map +1 -0
  111. package/build/dex/ramses-v2/contract-math/UnsafeMath.js.map +1 -0
  112. package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/uniswap-v3-math.d.ts +0 -19
  113. package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/uniswap-v3-math.js +1 -2
  114. package/build/dex/ramses-v2/contract-math/uniswap-v3-math.js.map +1 -0
  115. package/build/dex/ramses-v2/contract-math/utils.js.map +1 -0
  116. package/build/dex/{baseswap-v3/baseswap-v3-pool.d.ts → ramses-v2/ramses-v2-pool.d.ts} +7 -11
  117. package/build/dex/{baseswap-v3/baseswap-v3-pool.js → ramses-v2/ramses-v2-pool.js} +7 -12
  118. package/build/dex/ramses-v2/ramses-v2-pool.js.map +1 -0
  119. package/build/dex/{baseswap-v3/baseswap-v3.d.ts → ramses-v2/ramses-v2.d.ts} +16 -26
  120. package/build/dex/{baseswap-v3/baseswap-v3.js → ramses-v2/ramses-v2.js} +82 -144
  121. package/build/dex/ramses-v2/ramses-v2.js.map +1 -0
  122. package/build/dex/{baseswap-v3 → ramses-v2}/types.d.ts +7 -17
  123. package/build/dex/ramses-v2/types.js +9 -0
  124. package/build/dex/ramses-v2/types.js.map +1 -0
  125. package/build/dex/{baseswap-v3 → ramses-v2}/utils.js +7 -1
  126. package/build/dex/ramses-v2/utils.js.map +1 -0
  127. package/build/dex/{kyberswap-elastic → sushiswap-v3}/config.d.ts +2 -2
  128. package/build/dex/sushiswap-v3/config.js +132 -0
  129. package/build/dex/sushiswap-v3/config.js.map +1 -0
  130. package/build/dex/sushiswap-v3/constants.d.ts +4 -0
  131. package/build/dex/sushiswap-v3/constants.js +32 -0
  132. package/build/dex/sushiswap-v3/constants.js.map +1 -0
  133. package/build/dex/{kyberswap-elastic/kyberswap-elastic.d.ts → sushiswap-v3/sushiswap-v3-original.d.ts} +31 -28
  134. package/build/dex/{kyberswap-elastic/kyberswap-elastic.js → sushiswap-v3/sushiswap-v3-original.js} +257 -269
  135. package/build/dex/sushiswap-v3/sushiswap-v3-original.js.map +1 -0
  136. package/build/dex/sushiswap-v3/sushiswap-v3-pool.d.ts +1 -0
  137. package/build/dex/sushiswap-v3/sushiswap-v3-pool.js +6 -0
  138. package/build/dex/sushiswap-v3/sushiswap-v3-pool.js.map +1 -0
  139. package/build/dex/sushiswap-v3/sushiswap-v3.d.ts +21 -0
  140. package/build/dex/sushiswap-v3/sushiswap-v3.js +58 -0
  141. package/build/dex/sushiswap-v3/sushiswap-v3.js.map +1 -0
  142. package/build/dex/sushiswap-v3/token.d.ts +6 -0
  143. package/build/dex/sushiswap-v3/token.js +23 -0
  144. package/build/dex/sushiswap-v3/token.js.map +1 -0
  145. package/build/dex/sushiswap-v3/types.d.ts +15 -0
  146. package/build/dex/sushiswap-v3/types.js +18 -0
  147. package/build/dex/sushiswap-v3/types.js.map +1 -0
  148. package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.d.ts +12 -0
  149. package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.js +23 -0
  150. package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.js.map +1 -0
  151. package/build/dex/{hello → woo-fi}/config.d.ts +1 -1
  152. package/build/dex/woo-fi/config.js +141 -0
  153. package/build/dex/woo-fi/config.js.map +1 -0
  154. package/build/dex/woo-fi/constants.d.ts +5 -0
  155. package/build/dex/woo-fi/constants.js +20 -0
  156. package/build/dex/woo-fi/constants.js.map +1 -0
  157. package/build/dex/woo-fi/types.d.ts +48 -0
  158. package/build/dex/{wombat → woo-fi}/types.js.map +1 -1
  159. package/build/dex/woo-fi/woo-fi-decimal-math.d.ts +14 -0
  160. package/build/dex/woo-fi/woo-fi-decimal-math.js +42 -0
  161. package/build/dex/woo-fi/woo-fi-decimal-math.js.map +1 -0
  162. package/build/dex/woo-fi/woo-fi-math.d.ts +31 -0
  163. package/build/dex/woo-fi/woo-fi-math.js +300 -0
  164. package/build/dex/woo-fi/woo-fi-math.js.map +1 -0
  165. package/build/dex/woo-fi/woo-fi.d.ts +65 -0
  166. package/build/dex/woo-fi/woo-fi.js +480 -0
  167. package/build/dex/woo-fi/woo-fi.js.map +1 -0
  168. package/build/executor/Executor01BytecodeBuilder.d.ts +77 -0
  169. package/build/executor/Executor01BytecodeBuilder.js +359 -0
  170. package/build/executor/Executor01BytecodeBuilder.js.map +1 -0
  171. package/build/executor/Executor02BytecodeBuilder.d.ts +12 -0
  172. package/build/executor/Executor02BytecodeBuilder.js +14 -0
  173. package/build/executor/Executor02BytecodeBuilder.js.map +1 -0
  174. package/build/executor/ExecutorDetector.d.ts +28 -0
  175. package/build/executor/ExecutorDetector.js +89 -0
  176. package/build/executor/ExecutorDetector.js.map +1 -0
  177. package/build/executor/IExecutorBytecodeBuilder.d.ts +6 -0
  178. package/build/executor/IExecutorBytecodeBuilder.js +3 -0
  179. package/build/executor/IExecutorBytecodeBuilder.js.map +1 -0
  180. package/build/generic-swap-transaction-builder.d.ts +39 -0
  181. package/build/generic-swap-transaction-builder.js +156 -0
  182. package/build/generic-swap-transaction-builder.js.map +1 -0
  183. package/package.json +1 -1
  184. package/src/dex/dexalot/constants.ts +1 -1
  185. package/build/abi/kyberswap-elastic/IAntiSnipAttackPositionManager.json +0 -1276
  186. package/build/abi/kyberswap-elastic/IFactory.json +0 -550
  187. package/build/abi/kyberswap-elastic/IPool.json +0 -1042
  188. package/build/abi/kyberswap-elastic/IQuoterV2.json +0 -226
  189. package/build/abi/kyberswap-elastic/IRouter.json +0 -239
  190. package/build/abi/kyberswap-elastic/TicksFeesReader.json +0 -142
  191. package/build/abi/wombat/asset.json +0 -769
  192. package/build/abi/wombat/bmw.json +0 -1247
  193. package/build/abi/wombat/pool.json +0 -1364
  194. package/build/dex/baseswap-v3/baseswap-v3-factory.d.ts +0 -26
  195. package/build/dex/baseswap-v3/baseswap-v3-factory.js +0 -44
  196. package/build/dex/baseswap-v3/baseswap-v3-factory.js.map +0 -1
  197. package/build/dex/baseswap-v3/baseswap-v3-pool.js.map +0 -1
  198. package/build/dex/baseswap-v3/baseswap-v3.js.map +0 -1
  199. package/build/dex/baseswap-v3/config.d.ts +0 -9
  200. package/build/dex/baseswap-v3/config.js +0 -48
  201. package/build/dex/baseswap-v3/config.js.map +0 -1
  202. package/build/dex/baseswap-v3/constants.js.map +0 -1
  203. package/build/dex/baseswap-v3/contract-math/BitMath.js.map +0 -1
  204. package/build/dex/baseswap-v3/contract-math/FixedPoint128.js.map +0 -1
  205. package/build/dex/baseswap-v3/contract-math/FixedPoint96.js.map +0 -1
  206. package/build/dex/baseswap-v3/contract-math/FullMath.js.map +0 -1
  207. package/build/dex/baseswap-v3/contract-math/LiquidityMath.js.map +0 -1
  208. package/build/dex/baseswap-v3/contract-math/Oracle.js.map +0 -1
  209. package/build/dex/baseswap-v3/contract-math/SqrtPriceMath.js.map +0 -1
  210. package/build/dex/baseswap-v3/contract-math/SwapMath.js.map +0 -1
  211. package/build/dex/baseswap-v3/contract-math/Tick.d.ts +0 -7
  212. package/build/dex/baseswap-v3/contract-math/Tick.js.map +0 -1
  213. package/build/dex/baseswap-v3/contract-math/TickBitMap.d.ts +0 -7
  214. package/build/dex/baseswap-v3/contract-math/TickBitMap.js.map +0 -1
  215. package/build/dex/baseswap-v3/contract-math/TickMath.js.map +0 -1
  216. package/build/dex/baseswap-v3/contract-math/UnsafeMath.js.map +0 -1
  217. package/build/dex/baseswap-v3/contract-math/uniswap-v3-math.js.map +0 -1
  218. package/build/dex/baseswap-v3/contract-math/utils.d.ts +0 -7
  219. package/build/dex/baseswap-v3/contract-math/utils.js +0 -42
  220. package/build/dex/baseswap-v3/contract-math/utils.js.map +0 -1
  221. package/build/dex/baseswap-v3/types.js +0 -9
  222. package/build/dex/baseswap-v3/types.js.map +0 -1
  223. package/build/dex/baseswap-v3/utils.js.map +0 -1
  224. package/build/dex/hello/config.js +0 -15
  225. package/build/dex/hello/config.js.map +0 -1
  226. package/build/dex/hello/hello-pool.d.ts +0 -39
  227. package/build/dex/hello/hello-pool.js +0 -64
  228. package/build/dex/hello/hello-pool.js.map +0 -1
  229. package/build/dex/hello/hello.d.ts +0 -37
  230. package/build/dex/hello/hello.js +0 -126
  231. package/build/dex/hello/hello.js.map +0 -1
  232. package/build/dex/hello/types.d.ts +0 -6
  233. package/build/dex/kyberswap-elastic/config.js +0 -80
  234. package/build/dex/kyberswap-elastic/config.js.map +0 -1
  235. package/build/dex/kyberswap-elastic/constants.d.ts +0 -17
  236. package/build/dex/kyberswap-elastic/constants.js +0 -42
  237. package/build/dex/kyberswap-elastic/constants.js.map +0 -1
  238. package/build/dex/kyberswap-elastic/contract-math/FixedPoint96.d.ts +0 -4
  239. package/build/dex/kyberswap-elastic/contract-math/FixedPoint96.js +0 -9
  240. package/build/dex/kyberswap-elastic/contract-math/FixedPoint96.js.map +0 -1
  241. package/build/dex/kyberswap-elastic/contract-math/FullMath.d.ts +0 -5
  242. package/build/dex/kyberswap-elastic/contract-math/FullMath.js +0 -22
  243. package/build/dex/kyberswap-elastic/contract-math/FullMath.js.map +0 -1
  244. package/build/dex/kyberswap-elastic/contract-math/LiqDeltaMath.d.ts +0 -3
  245. package/build/dex/kyberswap-elastic/contract-math/LiqDeltaMath.js +0 -12
  246. package/build/dex/kyberswap-elastic/contract-math/LiqDeltaMath.js.map +0 -1
  247. package/build/dex/kyberswap-elastic/contract-math/LiquidityMath.d.ts +0 -3
  248. package/build/dex/kyberswap-elastic/contract-math/LiquidityMath.js +0 -22
  249. package/build/dex/kyberswap-elastic/contract-math/LiquidityMath.js.map +0 -1
  250. package/build/dex/kyberswap-elastic/contract-math/QtyDeltaMath.d.ts +0 -5
  251. package/build/dex/kyberswap-elastic/contract-math/QtyDeltaMath.js +0 -25
  252. package/build/dex/kyberswap-elastic/contract-math/QtyDeltaMath.js.map +0 -1
  253. package/build/dex/kyberswap-elastic/contract-math/QuadMath.d.ts +0 -4
  254. package/build/dex/kyberswap-elastic/contract-math/QuadMath.js +0 -27
  255. package/build/dex/kyberswap-elastic/contract-math/QuadMath.js.map +0 -1
  256. package/build/dex/kyberswap-elastic/contract-math/ReinvestmentMath.d.ts +0 -3
  257. package/build/dex/kyberswap-elastic/contract-math/ReinvestmentMath.js +0 -14
  258. package/build/dex/kyberswap-elastic/contract-math/ReinvestmentMath.js.map +0 -1
  259. package/build/dex/kyberswap-elastic/contract-math/SafeCast.d.ts +0 -8
  260. package/build/dex/kyberswap-elastic/contract-math/SafeCast.js +0 -30
  261. package/build/dex/kyberswap-elastic/contract-math/SafeCast.js.map +0 -1
  262. package/build/dex/kyberswap-elastic/contract-math/SqrtPriceMath.d.ts +0 -10
  263. package/build/dex/kyberswap-elastic/contract-math/SqrtPriceMath.js +0 -91
  264. package/build/dex/kyberswap-elastic/contract-math/SqrtPriceMath.js.map +0 -1
  265. package/build/dex/kyberswap-elastic/contract-math/SwapMath.d.ts +0 -13
  266. package/build/dex/kyberswap-elastic/contract-math/SwapMath.js +0 -188
  267. package/build/dex/kyberswap-elastic/contract-math/SwapMath.js.map +0 -1
  268. package/build/dex/kyberswap-elastic/contract-math/TickLinkedList.d.ts +0 -6
  269. package/build/dex/kyberswap-elastic/contract-math/TickLinkedList.js +0 -41
  270. package/build/dex/kyberswap-elastic/contract-math/TickLinkedList.js.map +0 -1
  271. package/build/dex/kyberswap-elastic/contract-math/TickMath.d.ts +0 -9
  272. package/build/dex/kyberswap-elastic/contract-math/TickMath.js +0 -165
  273. package/build/dex/kyberswap-elastic/contract-math/TickMath.js.map +0 -1
  274. package/build/dex/kyberswap-elastic/contract-math/UnsafeMath.d.ts +0 -3
  275. package/build/dex/kyberswap-elastic/contract-math/UnsafeMath.js +0 -10
  276. package/build/dex/kyberswap-elastic/contract-math/UnsafeMath.js.map +0 -1
  277. package/build/dex/kyberswap-elastic/contract-math/kyberswap-elastic-math.d.ts +0 -28
  278. package/build/dex/kyberswap-elastic/contract-math/kyberswap-elastic-math.js +0 -502
  279. package/build/dex/kyberswap-elastic/contract-math/kyberswap-elastic-math.js.map +0 -1
  280. package/build/dex/kyberswap-elastic/contract-math/utils.js.map +0 -1
  281. package/build/dex/kyberswap-elastic/errors.d.ts +0 -2
  282. package/build/dex/kyberswap-elastic/errors.js +0 -6
  283. package/build/dex/kyberswap-elastic/errors.js.map +0 -1
  284. package/build/dex/kyberswap-elastic/kyberswap-elastic-pool.d.ts +0 -80
  285. package/build/dex/kyberswap-elastic/kyberswap-elastic-pool.js +0 -458
  286. package/build/dex/kyberswap-elastic/kyberswap-elastic-pool.js.map +0 -1
  287. package/build/dex/kyberswap-elastic/kyberswap-elastic.js.map +0 -1
  288. package/build/dex/kyberswap-elastic/types.d.ts +0 -134
  289. package/build/dex/kyberswap-elastic/types.js +0 -9
  290. package/build/dex/kyberswap-elastic/types.js.map +0 -1
  291. package/build/dex/kyberswap-elastic/utils/decoders.d.ts +0 -9
  292. package/build/dex/kyberswap-elastic/utils/decoders.js +0 -78
  293. package/build/dex/kyberswap-elastic/utils/decoders.js.map +0 -1
  294. package/build/dex/morphex/config.d.ts +0 -11
  295. package/build/dex/morphex/config.js +0 -43
  296. package/build/dex/morphex/config.js.map +0 -1
  297. package/build/dex/morphex/morphex.d.ts +0 -25
  298. package/build/dex/morphex/morphex.js +0 -19
  299. package/build/dex/morphex/morphex.js.map +0 -1
  300. package/build/dex/my-test-dex/config.js +0 -15
  301. package/build/dex/my-test-dex/config.js.map +0 -1
  302. package/build/dex/my-test-dex/my-test-dex-pool.js +0 -64
  303. package/build/dex/my-test-dex/my-test-dex-pool.js.map +0 -1
  304. package/build/dex/my-test-dex/my-test-dex.js +0 -126
  305. package/build/dex/my-test-dex/my-test-dex.js.map +0 -1
  306. package/build/dex/my-test-dex/types.d.ts +0 -6
  307. package/build/dex/wombat/config.js +0 -99
  308. package/build/dex/wombat/config.js.map +0 -1
  309. package/build/dex/wombat/types.d.ts +0 -33
  310. package/build/dex/wombat/utils.d.ts +0 -9
  311. package/build/dex/wombat/utils.js +0 -66
  312. package/build/dex/wombat/utils.js.map +0 -1
  313. package/build/dex/wombat/wombat-bmw.d.ts +0 -40
  314. package/build/dex/wombat/wombat-bmw.js +0 -147
  315. package/build/dex/wombat/wombat-bmw.js.map +0 -1
  316. package/build/dex/wombat/wombat-pool.d.ts +0 -22
  317. package/build/dex/wombat/wombat-pool.js +0 -161
  318. package/build/dex/wombat/wombat-pool.js.map +0 -1
  319. package/build/dex/wombat/wombat-quoter.d.ts +0 -16
  320. package/build/dex/wombat/wombat-quoter.js +0 -176
  321. package/build/dex/wombat/wombat-quoter.js.map +0 -1
  322. package/build/dex/wombat/wombat.d.ts +0 -55
  323. package/build/dex/wombat/wombat.js +0 -290
  324. package/build/dex/wombat/wombat.js.map +0 -1
  325. /package/build/dex/{hello → lighter-v1}/types.js +0 -0
  326. /package/build/dex/{my-test-dex → pancakeswap-v3}/types.js +0 -0
  327. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/BitMath.d.ts +0 -0
  328. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/BitMath.js +0 -0
  329. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/FixedPoint128.d.ts +0 -0
  330. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/FixedPoint128.js +0 -0
  331. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/FixedPoint96.d.ts +0 -0
  332. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/FixedPoint96.js +0 -0
  333. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/FullMath.d.ts +0 -0
  334. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/FullMath.js +0 -0
  335. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/LiquidityMath.d.ts +0 -0
  336. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/LiquidityMath.js +0 -0
  337. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/Oracle.d.ts +0 -0
  338. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/Oracle.js +0 -0
  339. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/SqrtPriceMath.d.ts +0 -0
  340. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/SqrtPriceMath.js +0 -0
  341. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/SwapMath.d.ts +0 -0
  342. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/SwapMath.js +0 -0
  343. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/Tick.js +0 -0
  344. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/TickMath.d.ts +0 -0
  345. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/TickMath.js +0 -0
  346. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/UnsafeMath.d.ts +0 -0
  347. /package/build/dex/{baseswap-v3 → ramses-v2}/contract-math/UnsafeMath.js +0 -0
  348. /package/build/dex/{kyberswap-elastic → ramses-v2}/contract-math/utils.d.ts +0 -0
  349. /package/build/dex/{kyberswap-elastic → ramses-v2}/contract-math/utils.js +0 -0
  350. /package/build/dex/{baseswap-v3 → ramses-v2}/utils.d.ts +0 -0
  351. /package/build/dex/{wombat → woo-fi}/types.js +0 -0
@@ -1,1364 +0,0 @@
1
- [
2
- {
3
- "inputs": [],
4
- "name": "CORE_UNDERFLOW",
5
- "type": "error"
6
- },
7
- {
8
- "inputs": [],
9
- "name": "WOMBAT_AMOUNT_TOO_LOW",
10
- "type": "error"
11
- },
12
- {
13
- "inputs": [],
14
- "name": "WOMBAT_ASSET_ALREADY_EXIST",
15
- "type": "error"
16
- },
17
- {
18
- "inputs": [],
19
- "name": "WOMBAT_ASSET_ALREADY_PAUSED",
20
- "type": "error"
21
- },
22
- {
23
- "inputs": [],
24
- "name": "WOMBAT_ASSET_NOT_EXISTS",
25
- "type": "error"
26
- },
27
- {
28
- "inputs": [],
29
- "name": "WOMBAT_ASSET_NOT_PAUSED",
30
- "type": "error"
31
- },
32
- {
33
- "inputs": [],
34
- "name": "WOMBAT_CASH_NOT_ENOUGH",
35
- "type": "error"
36
- },
37
- {
38
- "inputs": [],
39
- "name": "WOMBAT_COV_RATIO_LIMIT_EXCEEDED",
40
- "type": "error"
41
- },
42
- {
43
- "inputs": [],
44
- "name": "WOMBAT_EXPIRED",
45
- "type": "error"
46
- },
47
- {
48
- "inputs": [],
49
- "name": "WOMBAT_FORBIDDEN",
50
- "type": "error"
51
- },
52
- {
53
- "inputs": [],
54
- "name": "WOMBAT_INVALID_VALUE",
55
- "type": "error"
56
- },
57
- {
58
- "inputs": [],
59
- "name": "WOMBAT_SAME_ADDRESS",
60
- "type": "error"
61
- },
62
- {
63
- "inputs": [],
64
- "name": "WOMBAT_ZERO_ADDRESS",
65
- "type": "error"
66
- },
67
- {
68
- "inputs": [],
69
- "name": "WOMBAT_ZERO_AMOUNT",
70
- "type": "error"
71
- },
72
- {
73
- "inputs": [],
74
- "name": "WOMBAT_ZERO_LIQUIDITY",
75
- "type": "error"
76
- },
77
- {
78
- "anonymous": false,
79
- "inputs": [
80
- {
81
- "indexed": true,
82
- "internalType": "address",
83
- "name": "token",
84
- "type": "address"
85
- },
86
- {
87
- "indexed": true,
88
- "internalType": "address",
89
- "name": "asset",
90
- "type": "address"
91
- }
92
- ],
93
- "name": "AssetAdded",
94
- "type": "event"
95
- },
96
- {
97
- "anonymous": false,
98
- "inputs": [
99
- {
100
- "indexed": true,
101
- "internalType": "address",
102
- "name": "token",
103
- "type": "address"
104
- },
105
- {
106
- "indexed": true,
107
- "internalType": "address",
108
- "name": "asset",
109
- "type": "address"
110
- }
111
- ],
112
- "name": "AssetRemoved",
113
- "type": "event"
114
- },
115
- {
116
- "anonymous": false,
117
- "inputs": [
118
- {
119
- "indexed": true,
120
- "internalType": "address",
121
- "name": "sender",
122
- "type": "address"
123
- },
124
- {
125
- "indexed": false,
126
- "internalType": "address",
127
- "name": "token",
128
- "type": "address"
129
- },
130
- {
131
- "indexed": false,
132
- "internalType": "uint256",
133
- "name": "amount",
134
- "type": "uint256"
135
- },
136
- {
137
- "indexed": false,
138
- "internalType": "uint256",
139
- "name": "liquidity",
140
- "type": "uint256"
141
- },
142
- {
143
- "indexed": true,
144
- "internalType": "address",
145
- "name": "to",
146
- "type": "address"
147
- }
148
- ],
149
- "name": "Deposit",
150
- "type": "event"
151
- },
152
- {
153
- "anonymous": false,
154
- "inputs": [
155
- {
156
- "indexed": false,
157
- "internalType": "address",
158
- "name": "token",
159
- "type": "address"
160
- },
161
- {
162
- "indexed": false,
163
- "internalType": "uint256",
164
- "name": "amount",
165
- "type": "uint256"
166
- }
167
- ],
168
- "name": "FillPool",
169
- "type": "event"
170
- },
171
- {
172
- "anonymous": false,
173
- "inputs": [
174
- {
175
- "indexed": false,
176
- "internalType": "uint8",
177
- "name": "version",
178
- "type": "uint8"
179
- }
180
- ],
181
- "name": "Initialized",
182
- "type": "event"
183
- },
184
- {
185
- "anonymous": false,
186
- "inputs": [
187
- {
188
- "indexed": true,
189
- "internalType": "address",
190
- "name": "previousOwner",
191
- "type": "address"
192
- },
193
- {
194
- "indexed": true,
195
- "internalType": "address",
196
- "name": "newOwner",
197
- "type": "address"
198
- }
199
- ],
200
- "name": "OwnershipTransferred",
201
- "type": "event"
202
- },
203
- {
204
- "anonymous": false,
205
- "inputs": [
206
- {
207
- "indexed": false,
208
- "internalType": "address",
209
- "name": "account",
210
- "type": "address"
211
- }
212
- ],
213
- "name": "Paused",
214
- "type": "event"
215
- },
216
- {
217
- "anonymous": false,
218
- "inputs": [
219
- {
220
- "indexed": false,
221
- "internalType": "address",
222
- "name": "token",
223
- "type": "address"
224
- },
225
- {
226
- "indexed": false,
227
- "internalType": "address",
228
- "name": "account",
229
- "type": "address"
230
- }
231
- ],
232
- "name": "PausedAsset",
233
- "type": "event"
234
- },
235
- {
236
- "anonymous": false,
237
- "inputs": [
238
- {
239
- "indexed": false,
240
- "internalType": "uint256",
241
- "name": "value",
242
- "type": "uint256"
243
- }
244
- ],
245
- "name": "SetAmpFactor",
246
- "type": "event"
247
- },
248
- {
249
- "anonymous": false,
250
- "inputs": [
251
- {
252
- "indexed": false,
253
- "internalType": "address",
254
- "name": "addr",
255
- "type": "address"
256
- }
257
- ],
258
- "name": "SetDev",
259
- "type": "event"
260
- },
261
- {
262
- "anonymous": false,
263
- "inputs": [
264
- {
265
- "indexed": false,
266
- "internalType": "uint256",
267
- "name": "lpDividendRatio",
268
- "type": "uint256"
269
- },
270
- {
271
- "indexed": false,
272
- "internalType": "uint256",
273
- "name": "retentionRatio",
274
- "type": "uint256"
275
- }
276
- ],
277
- "name": "SetFee",
278
- "type": "event"
279
- },
280
- {
281
- "anonymous": false,
282
- "inputs": [
283
- {
284
- "indexed": false,
285
- "internalType": "address",
286
- "name": "addr",
287
- "type": "address"
288
- }
289
- ],
290
- "name": "SetFeeTo",
291
- "type": "event"
292
- },
293
- {
294
- "anonymous": false,
295
- "inputs": [
296
- {
297
- "indexed": false,
298
- "internalType": "uint256",
299
- "name": "value",
300
- "type": "uint256"
301
- }
302
- ],
303
- "name": "SetHaircutRate",
304
- "type": "event"
305
- },
306
- {
307
- "anonymous": false,
308
- "inputs": [
309
- {
310
- "indexed": false,
311
- "internalType": "address",
312
- "name": "addr",
313
- "type": "address"
314
- }
315
- ],
316
- "name": "SetMasterWombat",
317
- "type": "event"
318
- },
319
- {
320
- "anonymous": false,
321
- "inputs": [
322
- {
323
- "indexed": false,
324
- "internalType": "uint256",
325
- "name": "value",
326
- "type": "uint256"
327
- }
328
- ],
329
- "name": "SetMintFeeThreshold",
330
- "type": "event"
331
- },
332
- {
333
- "anonymous": false,
334
- "inputs": [
335
- {
336
- "indexed": true,
337
- "internalType": "address",
338
- "name": "sender",
339
- "type": "address"
340
- },
341
- {
342
- "indexed": false,
343
- "internalType": "address",
344
- "name": "fromToken",
345
- "type": "address"
346
- },
347
- {
348
- "indexed": false,
349
- "internalType": "address",
350
- "name": "toToken",
351
- "type": "address"
352
- },
353
- {
354
- "indexed": false,
355
- "internalType": "uint256",
356
- "name": "fromAmount",
357
- "type": "uint256"
358
- },
359
- {
360
- "indexed": false,
361
- "internalType": "uint256",
362
- "name": "toAmount",
363
- "type": "uint256"
364
- },
365
- {
366
- "indexed": true,
367
- "internalType": "address",
368
- "name": "to",
369
- "type": "address"
370
- }
371
- ],
372
- "name": "Swap",
373
- "type": "event"
374
- },
375
- {
376
- "anonymous": false,
377
- "inputs": [
378
- {
379
- "indexed": false,
380
- "internalType": "address",
381
- "name": "token",
382
- "type": "address"
383
- },
384
- {
385
- "indexed": false,
386
- "internalType": "uint256",
387
- "name": "amount",
388
- "type": "uint256"
389
- },
390
- {
391
- "indexed": false,
392
- "internalType": "address",
393
- "name": "to",
394
- "type": "address"
395
- }
396
- ],
397
- "name": "TransferTipBucket",
398
- "type": "event"
399
- },
400
- {
401
- "anonymous": false,
402
- "inputs": [
403
- {
404
- "indexed": false,
405
- "internalType": "address",
406
- "name": "account",
407
- "type": "address"
408
- }
409
- ],
410
- "name": "Unpaused",
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": "address",
425
- "name": "account",
426
- "type": "address"
427
- }
428
- ],
429
- "name": "UnpausedAsset",
430
- "type": "event"
431
- },
432
- {
433
- "anonymous": false,
434
- "inputs": [
435
- {
436
- "indexed": true,
437
- "internalType": "address",
438
- "name": "sender",
439
- "type": "address"
440
- },
441
- {
442
- "indexed": false,
443
- "internalType": "address",
444
- "name": "token",
445
- "type": "address"
446
- },
447
- {
448
- "indexed": false,
449
- "internalType": "uint256",
450
- "name": "amount",
451
- "type": "uint256"
452
- },
453
- {
454
- "indexed": false,
455
- "internalType": "uint256",
456
- "name": "liquidity",
457
- "type": "uint256"
458
- },
459
- {
460
- "indexed": true,
461
- "internalType": "address",
462
- "name": "to",
463
- "type": "address"
464
- }
465
- ],
466
- "name": "Withdraw",
467
- "type": "event"
468
- },
469
- {
470
- "inputs": [
471
- {
472
- "internalType": "address",
473
- "name": "token",
474
- "type": "address"
475
- },
476
- {
477
- "internalType": "address",
478
- "name": "asset",
479
- "type": "address"
480
- }
481
- ],
482
- "name": "addAsset",
483
- "outputs": [],
484
- "stateMutability": "nonpayable",
485
- "type": "function"
486
- },
487
- {
488
- "inputs": [
489
- {
490
- "internalType": "address",
491
- "name": "token",
492
- "type": "address"
493
- }
494
- ],
495
- "name": "addressOfAsset",
496
- "outputs": [
497
- {
498
- "internalType": "address",
499
- "name": "",
500
- "type": "address"
501
- }
502
- ],
503
- "stateMutability": "view",
504
- "type": "function"
505
- },
506
- {
507
- "inputs": [],
508
- "name": "ampFactor",
509
- "outputs": [
510
- {
511
- "internalType": "uint256",
512
- "name": "",
513
- "type": "uint256"
514
- }
515
- ],
516
- "stateMutability": "view",
517
- "type": "function"
518
- },
519
- {
520
- "inputs": [
521
- {
522
- "internalType": "address",
523
- "name": "token",
524
- "type": "address"
525
- },
526
- {
527
- "internalType": "uint256",
528
- "name": "amount",
529
- "type": "uint256"
530
- },
531
- {
532
- "internalType": "uint256",
533
- "name": "minimumLiquidity",
534
- "type": "uint256"
535
- },
536
- {
537
- "internalType": "address",
538
- "name": "to",
539
- "type": "address"
540
- },
541
- {
542
- "internalType": "uint256",
543
- "name": "deadline",
544
- "type": "uint256"
545
- },
546
- {
547
- "internalType": "bool",
548
- "name": "shouldStake",
549
- "type": "bool"
550
- }
551
- ],
552
- "name": "deposit",
553
- "outputs": [
554
- {
555
- "internalType": "uint256",
556
- "name": "liquidity",
557
- "type": "uint256"
558
- }
559
- ],
560
- "stateMutability": "nonpayable",
561
- "type": "function"
562
- },
563
- {
564
- "inputs": [],
565
- "name": "dev",
566
- "outputs": [
567
- {
568
- "internalType": "address",
569
- "name": "",
570
- "type": "address"
571
- }
572
- ],
573
- "stateMutability": "view",
574
- "type": "function"
575
- },
576
- {
577
- "inputs": [],
578
- "name": "endCovRatio",
579
- "outputs": [
580
- {
581
- "internalType": "uint128",
582
- "name": "",
583
- "type": "uint128"
584
- }
585
- ],
586
- "stateMutability": "view",
587
- "type": "function"
588
- },
589
- {
590
- "inputs": [
591
- {
592
- "internalType": "address",
593
- "name": "token",
594
- "type": "address"
595
- }
596
- ],
597
- "name": "exchangeRate",
598
- "outputs": [
599
- {
600
- "internalType": "uint256",
601
- "name": "xr",
602
- "type": "uint256"
603
- }
604
- ],
605
- "stateMutability": "view",
606
- "type": "function"
607
- },
608
- {
609
- "inputs": [],
610
- "name": "feeTo",
611
- "outputs": [
612
- {
613
- "internalType": "address",
614
- "name": "",
615
- "type": "address"
616
- }
617
- ],
618
- "stateMutability": "view",
619
- "type": "function"
620
- },
621
- {
622
- "inputs": [
623
- {
624
- "internalType": "address",
625
- "name": "token",
626
- "type": "address"
627
- },
628
- {
629
- "internalType": "uint256",
630
- "name": "amount",
631
- "type": "uint256"
632
- }
633
- ],
634
- "name": "fillPool",
635
- "outputs": [],
636
- "stateMutability": "nonpayable",
637
- "type": "function"
638
- },
639
- {
640
- "inputs": [],
641
- "name": "getTokens",
642
- "outputs": [
643
- {
644
- "internalType": "address[]",
645
- "name": "",
646
- "type": "address[]"
647
- }
648
- ],
649
- "stateMutability": "view",
650
- "type": "function"
651
- },
652
- {
653
- "inputs": [],
654
- "name": "globalEquilCovRatio",
655
- "outputs": [
656
- {
657
- "internalType": "uint256",
658
- "name": "equilCovRatio",
659
- "type": "uint256"
660
- },
661
- {
662
- "internalType": "uint256",
663
- "name": "invariantInUint",
664
- "type": "uint256"
665
- }
666
- ],
667
- "stateMutability": "view",
668
- "type": "function"
669
- },
670
- {
671
- "inputs": [],
672
- "name": "haircutRate",
673
- "outputs": [
674
- {
675
- "internalType": "uint256",
676
- "name": "",
677
- "type": "uint256"
678
- }
679
- ],
680
- "stateMutability": "view",
681
- "type": "function"
682
- },
683
- {
684
- "inputs": [
685
- {
686
- "internalType": "uint256",
687
- "name": "ampFactor_",
688
- "type": "uint256"
689
- },
690
- {
691
- "internalType": "uint256",
692
- "name": "haircutRate_",
693
- "type": "uint256"
694
- }
695
- ],
696
- "name": "initialize",
697
- "outputs": [],
698
- "stateMutability": "nonpayable",
699
- "type": "function"
700
- },
701
- {
702
- "inputs": [
703
- {
704
- "internalType": "address",
705
- "name": "token",
706
- "type": "address"
707
- }
708
- ],
709
- "name": "isPaused",
710
- "outputs": [
711
- {
712
- "internalType": "bool",
713
- "name": "",
714
- "type": "bool"
715
- }
716
- ],
717
- "stateMutability": "view",
718
- "type": "function"
719
- },
720
- {
721
- "inputs": [],
722
- "name": "lpDividendRatio",
723
- "outputs": [
724
- {
725
- "internalType": "uint256",
726
- "name": "",
727
- "type": "uint256"
728
- }
729
- ],
730
- "stateMutability": "view",
731
- "type": "function"
732
- },
733
- {
734
- "inputs": [],
735
- "name": "masterWombat",
736
- "outputs": [
737
- {
738
- "internalType": "address",
739
- "name": "",
740
- "type": "address"
741
- }
742
- ],
743
- "stateMutability": "view",
744
- "type": "function"
745
- },
746
- {
747
- "inputs": [
748
- {
749
- "internalType": "address",
750
- "name": "token",
751
- "type": "address"
752
- }
753
- ],
754
- "name": "mintFee",
755
- "outputs": [
756
- {
757
- "internalType": "uint256",
758
- "name": "feeCollected",
759
- "type": "uint256"
760
- }
761
- ],
762
- "stateMutability": "nonpayable",
763
- "type": "function"
764
- },
765
- {
766
- "inputs": [],
767
- "name": "mintFeeThreshold",
768
- "outputs": [
769
- {
770
- "internalType": "uint256",
771
- "name": "",
772
- "type": "uint256"
773
- }
774
- ],
775
- "stateMutability": "view",
776
- "type": "function"
777
- },
778
- {
779
- "inputs": [],
780
- "name": "owner",
781
- "outputs": [
782
- {
783
- "internalType": "address",
784
- "name": "",
785
- "type": "address"
786
- }
787
- ],
788
- "stateMutability": "view",
789
- "type": "function"
790
- },
791
- {
792
- "inputs": [],
793
- "name": "pause",
794
- "outputs": [],
795
- "stateMutability": "nonpayable",
796
- "type": "function"
797
- },
798
- {
799
- "inputs": [
800
- {
801
- "internalType": "address",
802
- "name": "token",
803
- "type": "address"
804
- }
805
- ],
806
- "name": "pauseAsset",
807
- "outputs": [],
808
- "stateMutability": "nonpayable",
809
- "type": "function"
810
- },
811
- {
812
- "inputs": [],
813
- "name": "paused",
814
- "outputs": [
815
- {
816
- "internalType": "bool",
817
- "name": "",
818
- "type": "bool"
819
- }
820
- ],
821
- "stateMutability": "view",
822
- "type": "function"
823
- },
824
- {
825
- "inputs": [
826
- {
827
- "internalType": "address",
828
- "name": "fromToken",
829
- "type": "address"
830
- },
831
- {
832
- "internalType": "address",
833
- "name": "toToken",
834
- "type": "address"
835
- },
836
- {
837
- "internalType": "int256",
838
- "name": "toAmount",
839
- "type": "int256"
840
- }
841
- ],
842
- "name": "quoteAmountIn",
843
- "outputs": [
844
- {
845
- "internalType": "uint256",
846
- "name": "amountIn",
847
- "type": "uint256"
848
- },
849
- {
850
- "internalType": "uint256",
851
- "name": "haircut",
852
- "type": "uint256"
853
- }
854
- ],
855
- "stateMutability": "view",
856
- "type": "function"
857
- },
858
- {
859
- "inputs": [
860
- {
861
- "internalType": "address",
862
- "name": "token",
863
- "type": "address"
864
- },
865
- {
866
- "internalType": "uint256",
867
- "name": "amount",
868
- "type": "uint256"
869
- }
870
- ],
871
- "name": "quotePotentialDeposit",
872
- "outputs": [
873
- {
874
- "internalType": "uint256",
875
- "name": "liquidity",
876
- "type": "uint256"
877
- },
878
- {
879
- "internalType": "uint256",
880
- "name": "reward",
881
- "type": "uint256"
882
- }
883
- ],
884
- "stateMutability": "view",
885
- "type": "function"
886
- },
887
- {
888
- "inputs": [
889
- {
890
- "internalType": "address",
891
- "name": "fromToken",
892
- "type": "address"
893
- },
894
- {
895
- "internalType": "address",
896
- "name": "toToken",
897
- "type": "address"
898
- },
899
- {
900
- "internalType": "int256",
901
- "name": "fromAmount",
902
- "type": "int256"
903
- }
904
- ],
905
- "name": "quotePotentialSwap",
906
- "outputs": [
907
- {
908
- "internalType": "uint256",
909
- "name": "potentialOutcome",
910
- "type": "uint256"
911
- },
912
- {
913
- "internalType": "uint256",
914
- "name": "haircut",
915
- "type": "uint256"
916
- }
917
- ],
918
- "stateMutability": "view",
919
- "type": "function"
920
- },
921
- {
922
- "inputs": [
923
- {
924
- "internalType": "address",
925
- "name": "token",
926
- "type": "address"
927
- },
928
- {
929
- "internalType": "uint256",
930
- "name": "liquidity",
931
- "type": "uint256"
932
- }
933
- ],
934
- "name": "quotePotentialWithdraw",
935
- "outputs": [
936
- {
937
- "internalType": "uint256",
938
- "name": "amount",
939
- "type": "uint256"
940
- },
941
- {
942
- "internalType": "uint256",
943
- "name": "fee",
944
- "type": "uint256"
945
- }
946
- ],
947
- "stateMutability": "view",
948
- "type": "function"
949
- },
950
- {
951
- "inputs": [
952
- {
953
- "internalType": "address",
954
- "name": "fromToken",
955
- "type": "address"
956
- },
957
- {
958
- "internalType": "address",
959
- "name": "toToken",
960
- "type": "address"
961
- },
962
- {
963
- "internalType": "uint256",
964
- "name": "liquidity",
965
- "type": "uint256"
966
- }
967
- ],
968
- "name": "quotePotentialWithdrawFromOtherAsset",
969
- "outputs": [
970
- {
971
- "internalType": "uint256",
972
- "name": "amount",
973
- "type": "uint256"
974
- },
975
- {
976
- "internalType": "uint256",
977
- "name": "withdrewAmount",
978
- "type": "uint256"
979
- }
980
- ],
981
- "stateMutability": "view",
982
- "type": "function"
983
- },
984
- {
985
- "inputs": [
986
- {
987
- "internalType": "address",
988
- "name": "token",
989
- "type": "address"
990
- }
991
- ],
992
- "name": "removeAsset",
993
- "outputs": [],
994
- "stateMutability": "nonpayable",
995
- "type": "function"
996
- },
997
- {
998
- "inputs": [],
999
- "name": "renounceOwnership",
1000
- "outputs": [],
1001
- "stateMutability": "nonpayable",
1002
- "type": "function"
1003
- },
1004
- {
1005
- "inputs": [],
1006
- "name": "retentionRatio",
1007
- "outputs": [
1008
- {
1009
- "internalType": "uint256",
1010
- "name": "",
1011
- "type": "uint256"
1012
- }
1013
- ],
1014
- "stateMutability": "view",
1015
- "type": "function"
1016
- },
1017
- {
1018
- "inputs": [
1019
- {
1020
- "internalType": "uint256",
1021
- "name": "ampFactor_",
1022
- "type": "uint256"
1023
- }
1024
- ],
1025
- "name": "setAmpFactor",
1026
- "outputs": [],
1027
- "stateMutability": "nonpayable",
1028
- "type": "function"
1029
- },
1030
- {
1031
- "inputs": [
1032
- {
1033
- "internalType": "uint128",
1034
- "name": "startCovRatio_",
1035
- "type": "uint128"
1036
- },
1037
- {
1038
- "internalType": "uint128",
1039
- "name": "endCovRatio_",
1040
- "type": "uint128"
1041
- }
1042
- ],
1043
- "name": "setCovRatioFeeParam",
1044
- "outputs": [],
1045
- "stateMutability": "nonpayable",
1046
- "type": "function"
1047
- },
1048
- {
1049
- "inputs": [
1050
- {
1051
- "internalType": "address",
1052
- "name": "dev_",
1053
- "type": "address"
1054
- }
1055
- ],
1056
- "name": "setDev",
1057
- "outputs": [],
1058
- "stateMutability": "nonpayable",
1059
- "type": "function"
1060
- },
1061
- {
1062
- "inputs": [
1063
- {
1064
- "internalType": "uint256",
1065
- "name": "lpDividendRatio_",
1066
- "type": "uint256"
1067
- },
1068
- {
1069
- "internalType": "uint256",
1070
- "name": "retentionRatio_",
1071
- "type": "uint256"
1072
- }
1073
- ],
1074
- "name": "setFee",
1075
- "outputs": [],
1076
- "stateMutability": "nonpayable",
1077
- "type": "function"
1078
- },
1079
- {
1080
- "inputs": [
1081
- {
1082
- "internalType": "address",
1083
- "name": "feeTo_",
1084
- "type": "address"
1085
- }
1086
- ],
1087
- "name": "setFeeTo",
1088
- "outputs": [],
1089
- "stateMutability": "nonpayable",
1090
- "type": "function"
1091
- },
1092
- {
1093
- "inputs": [
1094
- {
1095
- "internalType": "uint256",
1096
- "name": "haircutRate_",
1097
- "type": "uint256"
1098
- }
1099
- ],
1100
- "name": "setHaircutRate",
1101
- "outputs": [],
1102
- "stateMutability": "nonpayable",
1103
- "type": "function"
1104
- },
1105
- {
1106
- "inputs": [
1107
- {
1108
- "internalType": "address",
1109
- "name": "masterWombat_",
1110
- "type": "address"
1111
- }
1112
- ],
1113
- "name": "setMasterWombat",
1114
- "outputs": [],
1115
- "stateMutability": "nonpayable",
1116
- "type": "function"
1117
- },
1118
- {
1119
- "inputs": [
1120
- {
1121
- "internalType": "uint256",
1122
- "name": "mintFeeThreshold_",
1123
- "type": "uint256"
1124
- }
1125
- ],
1126
- "name": "setMintFeeThreshold",
1127
- "outputs": [],
1128
- "stateMutability": "nonpayable",
1129
- "type": "function"
1130
- },
1131
- {
1132
- "inputs": [],
1133
- "name": "startCovRatio",
1134
- "outputs": [
1135
- {
1136
- "internalType": "uint128",
1137
- "name": "",
1138
- "type": "uint128"
1139
- }
1140
- ],
1141
- "stateMutability": "view",
1142
- "type": "function"
1143
- },
1144
- {
1145
- "inputs": [
1146
- {
1147
- "internalType": "address",
1148
- "name": "fromToken",
1149
- "type": "address"
1150
- },
1151
- {
1152
- "internalType": "address",
1153
- "name": "toToken",
1154
- "type": "address"
1155
- },
1156
- {
1157
- "internalType": "uint256",
1158
- "name": "fromAmount",
1159
- "type": "uint256"
1160
- },
1161
- {
1162
- "internalType": "uint256",
1163
- "name": "minimumToAmount",
1164
- "type": "uint256"
1165
- },
1166
- {
1167
- "internalType": "address",
1168
- "name": "to",
1169
- "type": "address"
1170
- },
1171
- {
1172
- "internalType": "uint256",
1173
- "name": "deadline",
1174
- "type": "uint256"
1175
- }
1176
- ],
1177
- "name": "swap",
1178
- "outputs": [
1179
- {
1180
- "internalType": "uint256",
1181
- "name": "actualToAmount",
1182
- "type": "uint256"
1183
- },
1184
- {
1185
- "internalType": "uint256",
1186
- "name": "haircut",
1187
- "type": "uint256"
1188
- }
1189
- ],
1190
- "stateMutability": "nonpayable",
1191
- "type": "function"
1192
- },
1193
- {
1194
- "inputs": [
1195
- {
1196
- "internalType": "address",
1197
- "name": "token",
1198
- "type": "address"
1199
- }
1200
- ],
1201
- "name": "tipBucketBalance",
1202
- "outputs": [
1203
- {
1204
- "internalType": "uint256",
1205
- "name": "balance",
1206
- "type": "uint256"
1207
- }
1208
- ],
1209
- "stateMutability": "view",
1210
- "type": "function"
1211
- },
1212
- {
1213
- "inputs": [
1214
- {
1215
- "internalType": "address",
1216
- "name": "newOwner",
1217
- "type": "address"
1218
- }
1219
- ],
1220
- "name": "transferOwnership",
1221
- "outputs": [],
1222
- "stateMutability": "nonpayable",
1223
- "type": "function"
1224
- },
1225
- {
1226
- "inputs": [
1227
- {
1228
- "internalType": "address",
1229
- "name": "token",
1230
- "type": "address"
1231
- },
1232
- {
1233
- "internalType": "uint256",
1234
- "name": "amount",
1235
- "type": "uint256"
1236
- },
1237
- {
1238
- "internalType": "address",
1239
- "name": "to",
1240
- "type": "address"
1241
- }
1242
- ],
1243
- "name": "transferTipBucket",
1244
- "outputs": [],
1245
- "stateMutability": "nonpayable",
1246
- "type": "function"
1247
- },
1248
- {
1249
- "inputs": [],
1250
- "name": "unpause",
1251
- "outputs": [],
1252
- "stateMutability": "nonpayable",
1253
- "type": "function"
1254
- },
1255
- {
1256
- "inputs": [
1257
- {
1258
- "internalType": "address",
1259
- "name": "token",
1260
- "type": "address"
1261
- }
1262
- ],
1263
- "name": "unpauseAsset",
1264
- "outputs": [],
1265
- "stateMutability": "nonpayable",
1266
- "type": "function"
1267
- },
1268
- {
1269
- "inputs": [
1270
- {
1271
- "internalType": "address",
1272
- "name": "token",
1273
- "type": "address"
1274
- },
1275
- {
1276
- "internalType": "uint256",
1277
- "name": "liquidity",
1278
- "type": "uint256"
1279
- },
1280
- {
1281
- "internalType": "uint256",
1282
- "name": "minimumAmount",
1283
- "type": "uint256"
1284
- },
1285
- {
1286
- "internalType": "address",
1287
- "name": "to",
1288
- "type": "address"
1289
- },
1290
- {
1291
- "internalType": "uint256",
1292
- "name": "deadline",
1293
- "type": "uint256"
1294
- }
1295
- ],
1296
- "name": "withdraw",
1297
- "outputs": [
1298
- {
1299
- "internalType": "uint256",
1300
- "name": "amount",
1301
- "type": "uint256"
1302
- }
1303
- ],
1304
- "stateMutability": "nonpayable",
1305
- "type": "function"
1306
- },
1307
- {
1308
- "inputs": [
1309
- {
1310
- "internalType": "address",
1311
- "name": "fromToken",
1312
- "type": "address"
1313
- },
1314
- {
1315
- "internalType": "address",
1316
- "name": "toToken",
1317
- "type": "address"
1318
- },
1319
- {
1320
- "internalType": "uint256",
1321
- "name": "liquidity",
1322
- "type": "uint256"
1323
- },
1324
- {
1325
- "internalType": "uint256",
1326
- "name": "minimumAmount",
1327
- "type": "uint256"
1328
- },
1329
- {
1330
- "internalType": "address",
1331
- "name": "to",
1332
- "type": "address"
1333
- },
1334
- {
1335
- "internalType": "uint256",
1336
- "name": "deadline",
1337
- "type": "uint256"
1338
- }
1339
- ],
1340
- "name": "withdrawFromOtherAsset",
1341
- "outputs": [
1342
- {
1343
- "internalType": "uint256",
1344
- "name": "toAmount",
1345
- "type": "uint256"
1346
- }
1347
- ],
1348
- "stateMutability": "nonpayable",
1349
- "type": "function"
1350
- },
1351
- {
1352
- "inputs": [],
1353
- "name": "creditForTokensHaircut",
1354
- "outputs": [
1355
- {
1356
- "internalType": "uint128",
1357
- "name": "",
1358
- "type": "uint128"
1359
- }
1360
- ],
1361
- "stateMutability": "view",
1362
- "type": "function"
1363
- }
1364
- ]