@paraswap/dex-lib 4.8.23 → 4.8.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 (644) hide show
  1. package/build/abi/pancakeswap-infinity/cl-pool-manager.abi.json +136 -0
  2. package/build/abi/pancakeswap-infinity/cl-quoter.abi.json +66 -0
  3. package/build/abi/pancakeswap-infinity/router.abi.json +23 -0
  4. package/build/dex/dexalot/config.js +4 -4
  5. package/build/dex/native/constants.d.ts +1 -0
  6. package/build/dex/native/constants.js +2 -1
  7. package/build/dex/native/constants.js.map +1 -1
  8. package/build/dex/native/rate-fetcher.d.ts +1 -0
  9. package/build/dex/native/rate-fetcher.js +40 -0
  10. package/build/dex/native/rate-fetcher.js.map +1 -1
  11. package/build/dex/native/types.d.ts +1 -0
  12. package/build/dex/native/validators.js +1 -0
  13. package/build/dex/native/validators.js.map +1 -1
  14. package/build/dex/pancakeswap-infinity/config.d.ts +4 -0
  15. package/build/dex/pancakeswap-infinity/config.js +30 -0
  16. package/build/dex/pancakeswap-infinity/config.js.map +1 -0
  17. package/build/dex/pancakeswap-infinity/constants.d.ts +11 -0
  18. package/build/dex/pancakeswap-infinity/constants.js +15 -0
  19. package/build/dex/pancakeswap-infinity/constants.js.map +1 -0
  20. package/build/dex/pancakeswap-infinity/encoder.d.ts +16 -0
  21. package/build/dex/{bunni-v2 → pancakeswap-infinity}/encoder.js +88 -199
  22. package/build/dex/pancakeswap-infinity/encoder.js.map +1 -0
  23. package/build/dex/pancakeswap-infinity/liquidity.d.ts +1 -0
  24. package/build/dex/pancakeswap-infinity/liquidity.js +7 -0
  25. package/build/dex/pancakeswap-infinity/liquidity.js.map +1 -0
  26. package/build/dex/pancakeswap-infinity/optimizer.d.ts +2 -0
  27. package/build/dex/pancakeswap-infinity/optimizer.js +48 -0
  28. package/build/dex/pancakeswap-infinity/optimizer.js.map +1 -0
  29. package/build/dex/pancakeswap-infinity/pancakeswap-infinity-pool-manager.d.ts +36 -0
  30. package/build/dex/pancakeswap-infinity/pancakeswap-infinity-pool-manager.js +393 -0
  31. package/build/dex/pancakeswap-infinity/pancakeswap-infinity-pool-manager.js.map +1 -0
  32. package/build/dex/pancakeswap-infinity/pancakeswap-infinity-pool.d.ts +37 -0
  33. package/build/dex/pancakeswap-infinity/pancakeswap-infinity-pool.js +289 -0
  34. package/build/dex/pancakeswap-infinity/pancakeswap-infinity-pool.js.map +1 -0
  35. package/build/dex/pancakeswap-infinity/pancakeswap-infinity.d.ts +42 -0
  36. package/build/dex/pancakeswap-infinity/pancakeswap-infinity.js +350 -0
  37. package/build/dex/pancakeswap-infinity/pancakeswap-infinity.js.map +1 -0
  38. package/build/dex/pancakeswap-infinity/subgraph.d.ts +8 -0
  39. package/build/dex/pancakeswap-infinity/subgraph.js +122 -0
  40. package/build/dex/pancakeswap-infinity/subgraph.js.map +1 -0
  41. package/build/dex/pancakeswap-infinity/types.d.ts +101 -0
  42. package/build/dex/pancakeswap-infinity/types.js.map +1 -0
  43. package/build/dex/pancakeswap-infinity/utils.d.ts +5 -0
  44. package/build/dex/pancakeswap-infinity/utils.js +45 -0
  45. package/build/dex/pancakeswap-infinity/utils.js.map +1 -0
  46. package/build/dex/renegade/api/auth.d.ts +1 -0
  47. package/build/dex/renegade/api/auth.js +63 -0
  48. package/build/dex/renegade/api/auth.js.map +1 -0
  49. package/build/dex/renegade/api/renegade-client.d.ts +18 -0
  50. package/build/dex/renegade/api/renegade-client.js +82 -0
  51. package/build/dex/renegade/api/renegade-client.js.map +1 -0
  52. package/build/dex/renegade/api/types.d.ts +110 -0
  53. package/build/dex/{maker-psm → renegade/api}/types.js.map +1 -1
  54. package/build/dex/{se-vlr → renegade}/config.d.ts +1 -1
  55. package/build/dex/renegade/config.js +16 -0
  56. package/build/dex/renegade/config.js.map +1 -0
  57. package/build/dex/renegade/constants.d.ts +25 -0
  58. package/build/dex/renegade/constants.js +47 -0
  59. package/build/dex/renegade/constants.js.map +1 -0
  60. package/build/dex/renegade/rate-fetcher.d.ts +23 -0
  61. package/build/dex/renegade/rate-fetcher.js +135 -0
  62. package/build/dex/renegade/rate-fetcher.js.map +1 -0
  63. package/build/dex/renegade/renegade-levels-response.d.ts +22 -0
  64. package/build/dex/renegade/renegade-levels-response.js +99 -0
  65. package/build/dex/renegade/renegade-levels-response.js.map +1 -0
  66. package/build/dex/renegade/renegade.d.ts +57 -0
  67. package/build/dex/renegade/renegade.js +499 -0
  68. package/build/dex/renegade/renegade.js.map +1 -0
  69. package/build/dex/renegade/types.d.ts +38 -0
  70. package/build/dex/renegade/types.js +4 -0
  71. package/build/dex/renegade/types.js.map +1 -0
  72. package/package.json +1 -1
  73. package/build/abi/AaveV2_lending_pool.json +0 -53
  74. package/build/abi/BProtocol.json +0 -1155
  75. package/build/abi/Bancor.json +0 -392
  76. package/build/abi/Compound_CETH.json +0 -12
  77. package/build/abi/Jarvis.json +0 -1172
  78. package/build/abi/MStableAsset.json +0 -1545
  79. package/build/abi/OneInchLp.json +0 -1304
  80. package/build/abi/Onebit.json +0 -736
  81. package/build/abi/SSPM.json +0 -829
  82. package/build/abi/Shell.json +0 -1294
  83. package/build/abi/Smoothy.json +0 -1049
  84. package/build/abi/StaderOracle.json +0 -2170
  85. package/build/abi/TraderJoeV2Router.json +0 -50
  86. package/build/abi/aave-weth-gateway-avalanche.json +0 -242
  87. package/build/abi/aave-weth-gateway-polygon.json +0 -242
  88. package/build/abi/aave-weth-gateway.json +0 -24
  89. package/build/abi/bunni-v2/BunniHook.abi.json +0 -1921
  90. package/build/abi/bunni-v2/BunniHub.abi.json +0 -1598
  91. package/build/abi/bunni-v2/BunniToken.abi.json +0 -833
  92. package/build/abi/bunni-v2/FeeOverrideHooklet.abi.json +0 -1947
  93. package/build/abi/bunni-v2/FloodPlain.abi.json +0 -1195
  94. package/build/abi/bunni-v2/PoolManager.abi.json +0 -1366
  95. package/build/abi/bunni-v2/V4Quoter.abi.json +0 -637
  96. package/build/abi/concentrator/arUSD.json +0 -568
  97. package/build/abi/concentrator/arUSD5115.json +0 -1746
  98. package/build/abi/gmx/fast-price-events.json +0 -70
  99. package/build/abi/gmx/fast-price-feed.json +0 -748
  100. package/build/abi/gmx/reader.json +0 -337
  101. package/build/abi/gmx/vault-price-feed.json +0 -477
  102. package/build/abi/gmx/vault.json +0 -2002
  103. package/build/abi/idle-dao/idle-cdo-factory.json +0 -38
  104. package/build/abi/idle-dao/idle-cdo.json +0 -1245
  105. package/build/abi/infusion/InfusionFactory.json +0 -147
  106. package/build/abi/infusion/InfusionPair.json +0 -658
  107. package/build/abi/infusion/InfusionRouter.json +0 -442
  108. package/build/abi/jarvis/ChainlinkAccessControlledOffchainAggregator.json +0 -1009
  109. package/build/abi/jarvis/SynthereumPriceFeed.json +0 -381
  110. package/build/abi/jarvis/jarvis-v6-pool.json +0 -1041
  111. package/build/abi/kyberdmm/kyber-dmm-exchange-router.abi.json +0 -1148
  112. package/build/abi/kyberdmm/kyber-dmm-factory.abi.json +0 -335
  113. package/build/abi/kyberdmm/kyber-dmm-pool.abi.json +0 -803
  114. package/build/abi/maker-psm/pot.json +0 -322
  115. package/build/abi/maker-psm/psm.json +0 -243
  116. package/build/abi/maker-psm/vat.json +0 -363
  117. package/build/abi/nomiswap-v2/nomiswap-v2-pool.json +0 -773
  118. package/build/abi/quick-perps/fast-price-events.json +0 -70
  119. package/build/abi/quick-perps/fast-price-feed.json +0 -741
  120. package/build/abi/quick-perps/reader.json +0 -313
  121. package/build/abi/quick-perps/vault-price-feed.json +0 -323
  122. package/build/abi/quick-perps/vault.json +0 -1953
  123. package/build/abi/synthetix/CombinedSynthetix.abi.json +0 -442
  124. package/build/abi/uniswap-v2/excalibur-pool.json +0 -881
  125. package/build/abi/uniswap-v2/mdex-factory.json +0 -759
  126. package/build/abi/wUSDM.json +0 -757
  127. package/build/abi/wombat/asset.json +0 -743
  128. package/build/abi/wombat/bmw.json +0 -1247
  129. package/build/abi/wombat/pool-v2.json +0 -1289
  130. package/build/abi/wombat/pool-v3.json +0 -2013
  131. package/build/abi/zrx.v2.json +0 -1967
  132. package/build/abi/zrx.v3.json +0 -3454
  133. package/build/abi/zrx.v4.json +0 -2193
  134. package/build/dex/OneInchLp.d.ts +0 -24
  135. package/build/dex/OneInchLp.js +0 -43
  136. package/build/dex/OneInchLp.js.map +0 -1
  137. package/build/dex/aave-v2/aave-v2.d.ts +0 -33
  138. package/build/dex/aave-v2/aave-v2.js +0 -328
  139. package/build/dex/aave-v2/aave-v2.js.map +0 -1
  140. package/build/dex/aave-v2/config.d.ts +0 -14
  141. package/build/dex/aave-v2/config.js +0 -49
  142. package/build/dex/aave-v2/config.js.map +0 -1
  143. package/build/dex/aave-v2/tokenlist.json +0 -904
  144. package/build/dex/aave-v2/tokens.d.ts +0 -8
  145. package/build/dex/aave-v2/tokens.js +0 -65
  146. package/build/dex/aave-v2/tokens.js.map +0 -1
  147. package/build/dex/aave-v2/types.d.ts +0 -33
  148. package/build/dex/aave-v2/types.js +0 -11
  149. package/build/dex/aave-v2/types.js.map +0 -1
  150. package/build/dex/bProtocol/bProtocol.d.ts +0 -15
  151. package/build/dex/bProtocol/bProtocol.js +0 -56
  152. package/build/dex/bProtocol/bProtocol.js.map +0 -1
  153. package/build/dex/bProtocol/types.d.ts +0 -11
  154. package/build/dex/bProtocol/types.js +0 -8
  155. package/build/dex/bProtocol/types.js.map +0 -1
  156. package/build/dex/bancor/bancor.d.ts +0 -15
  157. package/build/dex/bancor/bancor.js +0 -74
  158. package/build/dex/bancor/bancor.js.map +0 -1
  159. package/build/dex/bancor/config.d.ts +0 -6
  160. package/build/dex/bancor/config.js +0 -11
  161. package/build/dex/bancor/config.js.map +0 -1
  162. package/build/dex/bancor/types.d.ts +0 -16
  163. package/build/dex/bancor/types.js +0 -8
  164. package/build/dex/bancor/types.js.map +0 -1
  165. package/build/dex/bunni-v2/bunni-v2-pool.d.ts +0 -62
  166. package/build/dex/bunni-v2/bunni-v2-pool.js +0 -505
  167. package/build/dex/bunni-v2/bunni-v2-pool.js.map +0 -1
  168. package/build/dex/bunni-v2/bunni-v2.d.ts +0 -51
  169. package/build/dex/bunni-v2/bunni-v2.js +0 -460
  170. package/build/dex/bunni-v2/bunni-v2.js.map +0 -1
  171. package/build/dex/bunni-v2/config.d.ts +0 -3
  172. package/build/dex/bunni-v2/config.js +0 -130
  173. package/build/dex/bunni-v2/config.js.map +0 -1
  174. package/build/dex/bunni-v2/encoder.d.ts +0 -19
  175. package/build/dex/bunni-v2/encoder.js.map +0 -1
  176. package/build/dex/bunni-v2/getOnChainState.d.ts +0 -26
  177. package/build/dex/bunni-v2/getOnChainState.js +0 -493
  178. package/build/dex/bunni-v2/getOnChainState.js.map +0 -1
  179. package/build/dex/bunni-v2/hook/BunniSwapMath.d.ts +0 -7
  180. package/build/dex/bunni-v2/hook/BunniSwapMath.js +0 -198
  181. package/build/dex/bunni-v2/hook/BunniSwapMath.js.map +0 -1
  182. package/build/dex/bunni-v2/hook/SwapMath.d.ts +0 -8
  183. package/build/dex/bunni-v2/hook/SwapMath.js +0 -65
  184. package/build/dex/bunni-v2/hook/SwapMath.js.map +0 -1
  185. package/build/dex/bunni-v2/hooklet/FeeOverrideHooklet.d.ts +0 -33
  186. package/build/dex/bunni-v2/hooklet/FeeOverrideHooklet.js +0 -33
  187. package/build/dex/bunni-v2/hooklet/FeeOverrideHooklet.js.map +0 -1
  188. package/build/dex/bunni-v2/hooklet/index.d.ts +0 -21
  189. package/build/dex/bunni-v2/hooklet/index.js +0 -64
  190. package/build/dex/bunni-v2/hooklet/index.js.map +0 -1
  191. package/build/dex/bunni-v2/ldf/CarpetedDoubleGeometricDistribution.d.ts +0 -70
  192. package/build/dex/bunni-v2/ldf/CarpetedDoubleGeometricDistribution.js +0 -277
  193. package/build/dex/bunni-v2/ldf/CarpetedDoubleGeometricDistribution.js.map +0 -1
  194. package/build/dex/bunni-v2/ldf/CarpetedGeometricDistribution.d.ts +0 -64
  195. package/build/dex/bunni-v2/ldf/CarpetedGeometricDistribution.js +0 -262
  196. package/build/dex/bunni-v2/ldf/CarpetedGeometricDistribution.js.map +0 -1
  197. package/build/dex/bunni-v2/ldf/DoubleGeometricDistribution.d.ts +0 -60
  198. package/build/dex/bunni-v2/ldf/DoubleGeometricDistribution.js +0 -224
  199. package/build/dex/bunni-v2/ldf/DoubleGeometricDistribution.js.map +0 -1
  200. package/build/dex/bunni-v2/ldf/GeometricDistribution.d.ts +0 -56
  201. package/build/dex/bunni-v2/ldf/GeometricDistribution.js +0 -489
  202. package/build/dex/bunni-v2/ldf/GeometricDistribution.js.map +0 -1
  203. package/build/dex/bunni-v2/ldf/LDFType.d.ts +0 -5
  204. package/build/dex/bunni-v2/ldf/LDFType.js +0 -10
  205. package/build/dex/bunni-v2/ldf/LDFType.js.map +0 -1
  206. package/build/dex/bunni-v2/ldf/ShiftMode.d.ts +0 -7
  207. package/build/dex/bunni-v2/ldf/ShiftMode.js +0 -19
  208. package/build/dex/bunni-v2/ldf/ShiftMode.js.map +0 -1
  209. package/build/dex/bunni-v2/ldf/UniformDistribution.d.ts +0 -55
  210. package/build/dex/bunni-v2/ldf/UniformDistribution.js +0 -291
  211. package/build/dex/bunni-v2/ldf/UniformDistribution.js.map +0 -1
  212. package/build/dex/bunni-v2/ldf/index.d.ts +0 -15
  213. package/build/dex/bunni-v2/ldf/index.js +0 -21
  214. package/build/dex/bunni-v2/ldf/index.js.map +0 -1
  215. package/build/dex/bunni-v2/lib/AmAmmPayload.d.ts +0 -4
  216. package/build/dex/bunni-v2/lib/AmAmmPayload.js +0 -10
  217. package/build/dex/bunni-v2/lib/AmAmmPayload.js.map +0 -1
  218. package/build/dex/bunni-v2/lib/BitMath.d.ts +0 -4
  219. package/build/dex/bunni-v2/lib/BitMath.js +0 -24
  220. package/build/dex/bunni-v2/lib/BitMath.js.map +0 -1
  221. package/build/dex/bunni-v2/lib/Constants.d.ts +0 -15
  222. package/build/dex/bunni-v2/lib/Constants.js +0 -19
  223. package/build/dex/bunni-v2/lib/Constants.js.map +0 -1
  224. package/build/dex/bunni-v2/lib/ExpMath.d.ts +0 -5
  225. package/build/dex/bunni-v2/lib/ExpMath.js +0 -121
  226. package/build/dex/bunni-v2/lib/ExpMath.js.map +0 -1
  227. package/build/dex/bunni-v2/lib/FeeMath.d.ts +0 -2
  228. package/build/dex/bunni-v2/lib/FeeMath.js +0 -27
  229. package/build/dex/bunni-v2/lib/FeeMath.js.map +0 -1
  230. package/build/dex/bunni-v2/lib/FixedPointMath.d.ts +0 -3
  231. package/build/dex/bunni-v2/lib/FixedPointMath.js +0 -15
  232. package/build/dex/bunni-v2/lib/FixedPointMath.js.map +0 -1
  233. package/build/dex/bunni-v2/lib/FullMathX96.d.ts +0 -4
  234. package/build/dex/bunni-v2/lib/FullMathX96.js +0 -21
  235. package/build/dex/bunni-v2/lib/FullMathX96.js.map +0 -1
  236. package/build/dex/bunni-v2/lib/IdleBalance.d.ts +0 -11
  237. package/build/dex/bunni-v2/lib/IdleBalance.js +0 -33
  238. package/build/dex/bunni-v2/lib/IdleBalance.js.map +0 -1
  239. package/build/dex/bunni-v2/lib/LiquidityAmounts.d.ts +0 -6
  240. package/build/dex/bunni-v2/lib/LiquidityAmounts.js +0 -25
  241. package/build/dex/bunni-v2/lib/LiquidityAmounts.js.map +0 -1
  242. package/build/dex/bunni-v2/lib/Math.d.ts +0 -28
  243. package/build/dex/bunni-v2/lib/Math.js +0 -169
  244. package/build/dex/bunni-v2/lib/Math.js.map +0 -1
  245. package/build/dex/bunni-v2/lib/Oracle.d.ts +0 -27
  246. package/build/dex/bunni-v2/lib/Oracle.js +0 -180
  247. package/build/dex/bunni-v2/lib/Oracle.js.map +0 -1
  248. package/build/dex/bunni-v2/lib/QueryLDF.d.ts +0 -12
  249. package/build/dex/bunni-v2/lib/QueryLDF.js +0 -90
  250. package/build/dex/bunni-v2/lib/QueryLDF.js.map +0 -1
  251. package/build/dex/bunni-v2/lib/QueryTwap.d.ts +0 -2
  252. package/build/dex/bunni-v2/lib/QueryTwap.js +0 -13
  253. package/build/dex/bunni-v2/lib/QueryTwap.js.map +0 -1
  254. package/build/dex/bunni-v2/lib/SqrtPriceMath.d.ts +0 -8
  255. package/build/dex/bunni-v2/lib/SqrtPriceMath.js +0 -84
  256. package/build/dex/bunni-v2/lib/SqrtPriceMath.js.map +0 -1
  257. package/build/dex/bunni-v2/lib/TickMath.d.ts +0 -11
  258. package/build/dex/bunni-v2/lib/TickMath.js +0 -100
  259. package/build/dex/bunni-v2/lib/TickMath.js.map +0 -1
  260. package/build/dex/bunni-v2/lib/VaultMath.d.ts +0 -2
  261. package/build/dex/bunni-v2/lib/VaultMath.js +0 -11
  262. package/build/dex/bunni-v2/lib/VaultMath.js.map +0 -1
  263. package/build/dex/bunni-v2/logic/AmAmm.d.ts +0 -11
  264. package/build/dex/bunni-v2/logic/AmAmm.js +0 -156
  265. package/build/dex/bunni-v2/logic/AmAmm.js.map +0 -1
  266. package/build/dex/bunni-v2/logic/BunniHookLogic.d.ts +0 -10
  267. package/build/dex/bunni-v2/logic/BunniHookLogic.js +0 -298
  268. package/build/dex/bunni-v2/logic/BunniHookLogic.js.map +0 -1
  269. package/build/dex/bunni-v2/logic/BunniHubLogic.d.ts +0 -5
  270. package/build/dex/bunni-v2/logic/BunniHubLogic.js +0 -245
  271. package/build/dex/bunni-v2/logic/BunniHubLogic.js.map +0 -1
  272. package/build/dex/bunni-v2/logic/BunniQuoter.d.ts +0 -12
  273. package/build/dex/bunni-v2/logic/BunniQuoter.js +0 -201
  274. package/build/dex/bunni-v2/logic/BunniQuoter.js.map +0 -1
  275. package/build/dex/bunni-v2/subgraph.d.ts +0 -7
  276. package/build/dex/bunni-v2/subgraph.js +0 -184
  277. package/build/dex/bunni-v2/subgraph.js.map +0 -1
  278. package/build/dex/bunni-v2/types.d.ts +0 -257
  279. package/build/dex/bunni-v2/types.js.map +0 -1
  280. package/build/dex/bunni-v2/utils.d.ts +0 -12
  281. package/build/dex/bunni-v2/utils.js +0 -182
  282. package/build/dex/bunni-v2/utils.js.map +0 -1
  283. package/build/dex/compound/compound.d.ts +0 -15
  284. package/build/dex/compound/compound.js +0 -57
  285. package/build/dex/compound/compound.js.map +0 -1
  286. package/build/dex/compound/types.d.ts +0 -8
  287. package/build/dex/compound/types.js +0 -9
  288. package/build/dex/compound/types.js.map +0 -1
  289. package/build/dex/concentrator-arusd/concentrator-arusd-event.d.ts +0 -17
  290. package/build/dex/concentrator-arusd/concentrator-arusd-event.js +0 -69
  291. package/build/dex/concentrator-arusd/concentrator-arusd-event.js.map +0 -1
  292. package/build/dex/concentrator-arusd/concentrator-arusd.d.ts +0 -41
  293. package/build/dex/concentrator-arusd/concentrator-arusd.js +0 -202
  294. package/build/dex/concentrator-arusd/concentrator-arusd.js.map +0 -1
  295. package/build/dex/concentrator-arusd/config.d.ts +0 -3
  296. package/build/dex/concentrator-arusd/config.js +0 -14
  297. package/build/dex/concentrator-arusd/config.js.map +0 -1
  298. package/build/dex/concentrator-arusd/types.d.ts +0 -14
  299. package/build/dex/concentrator-arusd/types.js.map +0 -1
  300. package/build/dex/concentrator-arusd/utils.d.ts +0 -4
  301. package/build/dex/concentrator-arusd/utils.js +0 -26
  302. package/build/dex/concentrator-arusd/utils.js.map +0 -1
  303. package/build/dex/curve-v1/forks/swerve/config.d.ts +0 -4
  304. package/build/dex/curve-v1/forks/swerve/config.js +0 -47
  305. package/build/dex/curve-v1/forks/swerve/config.js.map +0 -1
  306. package/build/dex/curve-v1/forks/swerve/swerve.d.ts +0 -16
  307. package/build/dex/curve-v1/forks/swerve/swerve.js +0 -46
  308. package/build/dex/curve-v1/forks/swerve/swerve.js.map +0 -1
  309. package/build/dex/ekubo/pools/base-pool.d.ts +0 -47
  310. package/build/dex/ekubo/pools/base-pool.js +0 -184
  311. package/build/dex/ekubo/pools/base-pool.js.map +0 -1
  312. package/build/dex/ekubo/pools/iface.d.ts +0 -46
  313. package/build/dex/ekubo/pools/iface.js +0 -75
  314. package/build/dex/ekubo/pools/iface.js.map +0 -1
  315. package/build/dex/ekubo/pools/math/price.d.ts +0 -7
  316. package/build/dex/ekubo/pools/math/price.js +0 -112
  317. package/build/dex/ekubo/pools/math/price.js.map +0 -1
  318. package/build/dex/ekubo/pools/oracle-pool.d.ts +0 -10
  319. package/build/dex/ekubo/pools/oracle-pool.js +0 -19
  320. package/build/dex/ekubo/pools/oracle-pool.js.map +0 -1
  321. package/build/dex/ekubo/pools/pool-utils.d.ts +0 -44
  322. package/build/dex/ekubo/pools/pool-utils.js +0 -240
  323. package/build/dex/ekubo/pools/pool-utils.js.map +0 -1
  324. package/build/dex/gmx/config.d.ts +0 -11
  325. package/build/dex/gmx/config.js +0 -61
  326. package/build/dex/gmx/config.js.map +0 -1
  327. package/build/dex/gmx/fast-price-feed.d.ts +0 -26
  328. package/build/dex/gmx/fast-price-feed.js +0 -184
  329. package/build/dex/gmx/fast-price-feed.js.map +0 -1
  330. package/build/dex/gmx/gmx.d.ts +0 -54
  331. package/build/dex/gmx/gmx.js +0 -247
  332. package/build/dex/gmx/gmx.js.map +0 -1
  333. package/build/dex/gmx/pool.d.ts +0 -21
  334. package/build/dex/gmx/pool.js +0 -212
  335. package/build/dex/gmx/pool.js.map +0 -1
  336. package/build/dex/gmx/types.d.ts +0 -100
  337. package/build/dex/gmx/types.js +0 -3
  338. package/build/dex/gmx/types.js.map +0 -1
  339. package/build/dex/gmx/usdg.d.ts +0 -15
  340. package/build/dex/gmx/usdg.js +0 -62
  341. package/build/dex/gmx/usdg.js.map +0 -1
  342. package/build/dex/gmx/vault-price-feed.d.ts +0 -47
  343. package/build/dex/gmx/vault-price-feed.js +0 -245
  344. package/build/dex/gmx/vault-price-feed.js.map +0 -1
  345. package/build/dex/gmx/vault-utils.d.ts +0 -8
  346. package/build/dex/gmx/vault-utils.js +0 -42
  347. package/build/dex/gmx/vault-utils.js.map +0 -1
  348. package/build/dex/gmx/vault.d.ts +0 -46
  349. package/build/dex/gmx/vault.js +0 -182
  350. package/build/dex/gmx/vault.js.map +0 -1
  351. package/build/dex/idle-dao/config.d.ts +0 -5
  352. package/build/dex/idle-dao/config.js +0 -24
  353. package/build/dex/idle-dao/config.js.map +0 -1
  354. package/build/dex/idle-dao/idle-dao.d.ts +0 -42
  355. package/build/dex/idle-dao/idle-dao.js +0 -279
  356. package/build/dex/idle-dao/idle-dao.js.map +0 -1
  357. package/build/dex/idle-dao/token_list.d.ts +0 -4
  358. package/build/dex/idle-dao/token_list.js +0 -289
  359. package/build/dex/idle-dao/token_list.js.map +0 -1
  360. package/build/dex/idle-dao/tokens.d.ts +0 -9
  361. package/build/dex/idle-dao/tokens.js +0 -68
  362. package/build/dex/idle-dao/tokens.js.map +0 -1
  363. package/build/dex/idle-dao/types.d.ts +0 -35
  364. package/build/dex/idle-dao/types.js +0 -11
  365. package/build/dex/idle-dao/types.js.map +0 -1
  366. package/build/dex/idle-dao/utils.d.ts +0 -8
  367. package/build/dex/idle-dao/utils.js +0 -149
  368. package/build/dex/idle-dao/utils.js.map +0 -1
  369. package/build/dex/infusion/config.d.ts +0 -3
  370. package/build/dex/infusion/config.js +0 -20
  371. package/build/dex/infusion/config.js.map +0 -1
  372. package/build/dex/infusion/infusion-stable-pool.d.ts +0 -4
  373. package/build/dex/infusion/infusion-stable-pool.js +0 -74
  374. package/build/dex/infusion/infusion-stable-pool.js.map +0 -1
  375. package/build/dex/infusion/infusion.d.ts +0 -51
  376. package/build/dex/infusion/infusion.js +0 -500
  377. package/build/dex/infusion/infusion.js.map +0 -1
  378. package/build/dex/infusion/types.d.ts +0 -45
  379. package/build/dex/infusion/types.js +0 -3
  380. package/build/dex/infusion/types.js.map +0 -1
  381. package/build/dex/infusion/utils/isStablePair.d.ts +0 -2
  382. package/build/dex/infusion/utils/isStablePair.js +0 -18
  383. package/build/dex/infusion/utils/isStablePair.js.map +0 -1
  384. package/build/dex/jarvis-v6/chainLinkpriceFeed-event.d.ts +0 -15
  385. package/build/dex/jarvis-v6/chainLinkpriceFeed-event.js +0 -51
  386. package/build/dex/jarvis-v6/chainLinkpriceFeed-event.js.map +0 -1
  387. package/build/dex/jarvis-v6/config.d.ts +0 -4
  388. package/build/dex/jarvis-v6/config.js +0 -244
  389. package/build/dex/jarvis-v6/config.js.map +0 -1
  390. package/build/dex/jarvis-v6/jarvis-v6-events.d.ts +0 -27
  391. package/build/dex/jarvis-v6/jarvis-v6-events.js +0 -54
  392. package/build/dex/jarvis-v6/jarvis-v6-events.js.map +0 -1
  393. package/build/dex/jarvis-v6/jarvis-v6.d.ts +0 -49
  394. package/build/dex/jarvis-v6/jarvis-v6.js +0 -321
  395. package/build/dex/jarvis-v6/jarvis-v6.js.map +0 -1
  396. package/build/dex/jarvis-v6/syntheteumPool-event.d.ts +0 -15
  397. package/build/dex/jarvis-v6/syntheteumPool-event.js +0 -49
  398. package/build/dex/jarvis-v6/syntheteumPool-event.js.map +0 -1
  399. package/build/dex/jarvis-v6/types.d.ts +0 -48
  400. package/build/dex/jarvis-v6/types.js +0 -9
  401. package/build/dex/jarvis-v6/types.js.map +0 -1
  402. package/build/dex/jarvis-v6/utils.d.ts +0 -13
  403. package/build/dex/jarvis-v6/utils.js +0 -75
  404. package/build/dex/jarvis-v6/utils.js.map +0 -1
  405. package/build/dex/jarvis.d.ts +0 -56
  406. package/build/dex/jarvis.js +0 -163
  407. package/build/dex/jarvis.js.map +0 -1
  408. package/build/dex/kyberdmm/config.d.ts +0 -9
  409. package/build/dex/kyberdmm/config.js +0 -59
  410. package/build/dex/kyberdmm/config.js.map +0 -1
  411. package/build/dex/kyberdmm/fee-formula.d.ts +0 -15
  412. package/build/dex/kyberdmm/fee-formula.js +0 -88
  413. package/build/dex/kyberdmm/fee-formula.js.map +0 -1
  414. package/build/dex/kyberdmm/kyberdmm.d.ts +0 -55
  415. package/build/dex/kyberdmm/kyberdmm.js +0 -447
  416. package/build/dex/kyberdmm/kyberdmm.js.map +0 -1
  417. package/build/dex/kyberdmm/math-ext.d.ts +0 -2
  418. package/build/dex/kyberdmm/math-ext.js +0 -27
  419. package/build/dex/kyberdmm/math-ext.js.map +0 -1
  420. package/build/dex/kyberdmm/pool.d.ts +0 -50
  421. package/build/dex/kyberdmm/pool.js +0 -157
  422. package/build/dex/kyberdmm/pool.js.map +0 -1
  423. package/build/dex/kyberdmm/types.d.ts +0 -81
  424. package/build/dex/kyberdmm/types.js +0 -9
  425. package/build/dex/kyberdmm/types.js.map +0 -1
  426. package/build/dex/mStable.d.ts +0 -44
  427. package/build/dex/mStable.js +0 -75
  428. package/build/dex/mStable.js.map +0 -1
  429. package/build/dex/maker-psm/config.d.ts +0 -11
  430. package/build/dex/maker-psm/config.js +0 -53
  431. package/build/dex/maker-psm/config.js.map +0 -1
  432. package/build/dex/maker-psm/maker-psm.d.ts +0 -103
  433. package/build/dex/maker-psm/maker-psm.js +0 -493
  434. package/build/dex/maker-psm/maker-psm.js.map +0 -1
  435. package/build/dex/maker-psm/types.d.ts +0 -39
  436. package/build/dex/maker-psm/types.js +0 -3
  437. package/build/dex/onebit/onebit.d.ts +0 -16
  438. package/build/dex/onebit/onebit.js +0 -61
  439. package/build/dex/onebit/onebit.js.map +0 -1
  440. package/build/dex/onebit/types.d.ts +0 -14
  441. package/build/dex/onebit/types.js +0 -8
  442. package/build/dex/onebit/types.js.map +0 -1
  443. package/build/dex/quick-perps/config.d.ts +0 -11
  444. package/build/dex/quick-perps/config.js +0 -27
  445. package/build/dex/quick-perps/config.js.map +0 -1
  446. package/build/dex/quick-perps/fast-price-feed.d.ts +0 -26
  447. package/build/dex/quick-perps/fast-price-feed.js +0 -184
  448. package/build/dex/quick-perps/fast-price-feed.js.map +0 -1
  449. package/build/dex/quick-perps/pool.d.ts +0 -21
  450. package/build/dex/quick-perps/pool.js +0 -229
  451. package/build/dex/quick-perps/pool.js.map +0 -1
  452. package/build/dex/quick-perps/quick-perps.d.ts +0 -53
  453. package/build/dex/quick-perps/quick-perps.js +0 -247
  454. package/build/dex/quick-perps/quick-perps.js.map +0 -1
  455. package/build/dex/quick-perps/types.d.ts +0 -98
  456. package/build/dex/quick-perps/types.js +0 -3
  457. package/build/dex/quick-perps/types.js.map +0 -1
  458. package/build/dex/quick-perps/usdq.d.ts +0 -15
  459. package/build/dex/quick-perps/usdq.js +0 -62
  460. package/build/dex/quick-perps/usdq.js.map +0 -1
  461. package/build/dex/quick-perps/vault-price-feed.d.ts +0 -43
  462. package/build/dex/quick-perps/vault-price-feed.js +0 -203
  463. package/build/dex/quick-perps/vault-price-feed.js.map +0 -1
  464. package/build/dex/quick-perps/vault-utils.d.ts +0 -8
  465. package/build/dex/quick-perps/vault-utils.js +0 -42
  466. package/build/dex/quick-perps/vault-utils.js.map +0 -1
  467. package/build/dex/quick-perps/vault.d.ts +0 -46
  468. package/build/dex/quick-perps/vault.js +0 -182
  469. package/build/dex/quick-perps/vault.js.map +0 -1
  470. package/build/dex/quickswap/thena-fusion.d.ts +0 -6
  471. package/build/dex/quickswap/thena-fusion.js +0 -19
  472. package/build/dex/quickswap/thena-fusion.js.map +0 -1
  473. package/build/dex/se-vlr/config.js +0 -24
  474. package/build/dex/se-vlr/config.js.map +0 -1
  475. package/build/dex/se-vlr/se-vlr-pool.d.ts +0 -39
  476. package/build/dex/se-vlr/se-vlr-pool.js +0 -70
  477. package/build/dex/se-vlr/se-vlr-pool.js.map +0 -1
  478. package/build/dex/se-vlr/se-vlr.d.ts +0 -35
  479. package/build/dex/se-vlr/se-vlr.js +0 -131
  480. package/build/dex/se-vlr/se-vlr.js.map +0 -1
  481. package/build/dex/se-vlr/types.d.ts +0 -6
  482. package/build/dex/se-vlr/types.js +0 -3
  483. package/build/dex/se-vlr/types.js.map +0 -1
  484. package/build/dex/shell.d.ts +0 -25
  485. package/build/dex/shell.js +0 -41
  486. package/build/dex/shell.js.map +0 -1
  487. package/build/dex/smoothy/smoothy.d.ts +0 -16
  488. package/build/dex/smoothy/smoothy.js +0 -60
  489. package/build/dex/smoothy/smoothy.js.map +0 -1
  490. package/build/dex/smoothy/types.d.ts +0 -15
  491. package/build/dex/smoothy/types.js +0 -8
  492. package/build/dex/smoothy/types.js.map +0 -1
  493. package/build/dex/solidly/forks-override/aerodrome.d.ts +0 -14
  494. package/build/dex/solidly/forks-override/aerodrome.js +0 -46
  495. package/build/dex/solidly/forks-override/aerodrome.js.map +0 -1
  496. package/build/dex/solidly/forks-override/chronos.d.ts +0 -23
  497. package/build/dex/solidly/forks-override/chronos.js +0 -141
  498. package/build/dex/solidly/forks-override/chronos.js.map +0 -1
  499. package/build/dex/solidly/forks-override/usdfi.d.ts +0 -8
  500. package/build/dex/solidly/forks-override/usdfi.js +0 -15
  501. package/build/dex/solidly/forks-override/usdfi.js.map +0 -1
  502. package/build/dex/solidly/forks-override/velocimeter.d.ts +0 -23
  503. package/build/dex/solidly/forks-override/velocimeter.js +0 -77
  504. package/build/dex/solidly/forks-override/velocimeter.js.map +0 -1
  505. package/build/dex/stader/config.d.ts +0 -3
  506. package/build/dex/stader/config.js +0 -14
  507. package/build/dex/stader/config.js.map +0 -1
  508. package/build/dex/stader/stader-pool.d.ts +0 -19
  509. package/build/dex/stader/stader-pool.js +0 -56
  510. package/build/dex/stader/stader-pool.js.map +0 -1
  511. package/build/dex/stader/stader.d.ts +0 -42
  512. package/build/dex/stader/stader.js +0 -195
  513. package/build/dex/stader/stader.js.map +0 -1
  514. package/build/dex/stader/types.d.ts +0 -13
  515. package/build/dex/stader/types.js +0 -8
  516. package/build/dex/stader/types.js.map +0 -1
  517. package/build/dex/stader/utils.d.ts +0 -4
  518. package/build/dex/stader/utils.js +0 -23
  519. package/build/dex/stader/utils.js.map +0 -1
  520. package/build/dex/synthetix/config.d.ts +0 -4
  521. package/build/dex/synthetix/config.js +0 -53
  522. package/build/dex/synthetix/config.js.map +0 -1
  523. package/build/dex/synthetix/constants.d.ts +0 -23
  524. package/build/dex/synthetix/constants.js +0 -32
  525. package/build/dex/synthetix/constants.js.map +0 -1
  526. package/build/dex/synthetix/contract-math/DexPriceAggregatorUniswapV3.d.ts +0 -17
  527. package/build/dex/synthetix/contract-math/DexPriceAggregatorUniswapV3.js +0 -102
  528. package/build/dex/synthetix/contract-math/DexPriceAggregatorUniswapV3.js.map +0 -1
  529. package/build/dex/synthetix/contract-math/ExchangeRates.d.ts +0 -8
  530. package/build/dex/synthetix/contract-math/ExchangeRates.js +0 -77
  531. package/build/dex/synthetix/contract-math/ExchangeRates.js.map +0 -1
  532. package/build/dex/synthetix/contract-math/ExchangeRatesWithDexPricing.d.ts +0 -17
  533. package/build/dex/synthetix/contract-math/ExchangeRatesWithDexPricing.js +0 -126
  534. package/build/dex/synthetix/contract-math/ExchangeRatesWithDexPricing.js.map +0 -1
  535. package/build/dex/synthetix/contract-math/FullMath.d.ts +0 -3
  536. package/build/dex/synthetix/contract-math/FullMath.js +0 -14
  537. package/build/dex/synthetix/contract-math/FullMath.js.map +0 -1
  538. package/build/dex/synthetix/contract-math/OracleLibrary.d.ts +0 -8
  539. package/build/dex/synthetix/contract-math/OracleLibrary.js +0 -60
  540. package/build/dex/synthetix/contract-math/OracleLibrary.js.map +0 -1
  541. package/build/dex/synthetix/contract-math/SafeDecimalMath.d.ts +0 -9
  542. package/build/dex/synthetix/contract-math/SafeDecimalMath.js +0 -41
  543. package/build/dex/synthetix/contract-math/SafeDecimalMath.js.map +0 -1
  544. package/build/dex/synthetix/contract-math/TickMath.d.ts +0 -7
  545. package/build/dex/synthetix/contract-math/TickMath.js +0 -63
  546. package/build/dex/synthetix/contract-math/TickMath.js.map +0 -1
  547. package/build/dex/synthetix/contract-math/synthetix-math.d.ts +0 -17
  548. package/build/dex/synthetix/contract-math/synthetix-math.js +0 -127
  549. package/build/dex/synthetix/contract-math/synthetix-math.js.map +0 -1
  550. package/build/dex/synthetix/synthetix-state.d.ts +0 -36
  551. package/build/dex/synthetix/synthetix-state.js +0 -615
  552. package/build/dex/synthetix/synthetix-state.js.map +0 -1
  553. package/build/dex/synthetix/synthetix.d.ts +0 -45
  554. package/build/dex/synthetix/synthetix.js +0 -304
  555. package/build/dex/synthetix/synthetix.js.map +0 -1
  556. package/build/dex/synthetix/types.d.ts +0 -90
  557. package/build/dex/synthetix/types.js +0 -3
  558. package/build/dex/synthetix/types.js.map +0 -1
  559. package/build/dex/synthetix/utils.d.ts +0 -10
  560. package/build/dex/synthetix/utils.js +0 -91
  561. package/build/dex/synthetix/utils.js.map +0 -1
  562. package/build/dex/trader-joe-v2.1/trader-joe-v2.1.d.ts +0 -7
  563. package/build/dex/trader-joe-v2.1/trader-joe-v2.1.js +0 -20
  564. package/build/dex/trader-joe-v2.1/trader-joe-v2.1.js.map +0 -1
  565. package/build/dex/trader-joe-v2.d.ts +0 -40
  566. package/build/dex/trader-joe-v2.js +0 -74
  567. package/build/dex/trader-joe-v2.js.map +0 -1
  568. package/build/dex/uniswap-v2/dfyn.d.ts +0 -19
  569. package/build/dex/uniswap-v2/dfyn.js +0 -61
  570. package/build/dex/uniswap-v2/dfyn.js.map +0 -1
  571. package/build/dex/uniswap-v2/excalibur.d.ts +0 -24
  572. package/build/dex/uniswap-v2/excalibur.js +0 -47
  573. package/build/dex/uniswap-v2/excalibur.js.map +0 -1
  574. package/build/dex/uniswap-v2/mdex.d.ts +0 -24
  575. package/build/dex/uniswap-v2/mdex.js +0 -50
  576. package/build/dex/uniswap-v2/mdex.js.map +0 -1
  577. package/build/dex/uniswap-v2/nomiswap-v2.d.ts +0 -24
  578. package/build/dex/uniswap-v2/nomiswap-v2.js +0 -57
  579. package/build/dex/uniswap-v2/nomiswap-v2.js.map +0 -1
  580. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +0 -94
  581. package/build/dex/uniswap-v3/uniswap-v3-new.js +0 -923
  582. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +0 -1
  583. package/build/dex/uniswap-v4/contract-math/Position.d.ts +0 -3
  584. package/build/dex/uniswap-v4/contract-math/Position.js +0 -10
  585. package/build/dex/uniswap-v4/contract-math/Position.js.map +0 -1
  586. package/build/dex/usual-bond/config.d.ts +0 -3
  587. package/build/dex/usual-bond/config.js +0 -13
  588. package/build/dex/usual-bond/config.js.map +0 -1
  589. package/build/dex/usual-bond/types.d.ts +0 -7
  590. package/build/dex/usual-bond/types.js +0 -3
  591. package/build/dex/usual-bond/types.js.map +0 -1
  592. package/build/dex/usual-bond/usual-bond.d.ts +0 -35
  593. package/build/dex/usual-bond/usual-bond.js +0 -176
  594. package/build/dex/usual-bond/usual-bond.js.map +0 -1
  595. package/build/dex/wombat/config.d.ts +0 -4
  596. package/build/dex/wombat/config.js +0 -77
  597. package/build/dex/wombat/config.js.map +0 -1
  598. package/build/dex/wombat/types.d.ts +0 -34
  599. package/build/dex/wombat/types.js +0 -3
  600. package/build/dex/wombat/types.js.map +0 -1
  601. package/build/dex/wombat/utils.d.ts +0 -10
  602. package/build/dex/wombat/utils.js +0 -79
  603. package/build/dex/wombat/utils.js.map +0 -1
  604. package/build/dex/wombat/wombat-bmw.d.ts +0 -40
  605. package/build/dex/wombat/wombat-bmw.js +0 -136
  606. package/build/dex/wombat/wombat-bmw.js.map +0 -1
  607. package/build/dex/wombat/wombat-pool.d.ts +0 -60
  608. package/build/dex/wombat/wombat-pool.js +0 -488
  609. package/build/dex/wombat/wombat-pool.js.map +0 -1
  610. package/build/dex/wombat/wombat-quoter.d.ts +0 -17
  611. package/build/dex/wombat/wombat-quoter.js +0 -192
  612. package/build/dex/wombat/wombat-quoter.js.map +0 -1
  613. package/build/dex/wombat/wombat.d.ts +0 -58
  614. package/build/dex/wombat/wombat.js +0 -298
  615. package/build/dex/wombat/wombat.js.map +0 -1
  616. package/build/dex/wusdm/config.d.ts +0 -3
  617. package/build/dex/wusdm/config.js +0 -43
  618. package/build/dex/wusdm/config.js.map +0 -1
  619. package/build/dex/wusdm/constants.d.ts +0 -2
  620. package/build/dex/wusdm/constants.js +0 -6
  621. package/build/dex/wusdm/constants.js.map +0 -1
  622. package/build/dex/wusdm/types.d.ts +0 -18
  623. package/build/dex/wusdm/types.js +0 -11
  624. package/build/dex/wusdm/types.js.map +0 -1
  625. package/build/dex/wusdm/wusdm-pool.d.ts +0 -21
  626. package/build/dex/wusdm/wusdm-pool.js +0 -74
  627. package/build/dex/wusdm/wusdm-pool.js.map +0 -1
  628. package/build/dex/wusdm/wusdm.d.ts +0 -46
  629. package/build/dex/wusdm/wusdm.js +0 -243
  630. package/build/dex/wusdm/wusdm.js.map +0 -1
  631. package/build/dex/zerox/config.d.ts +0 -2
  632. package/build/dex/zerox/config.js +0 -33
  633. package/build/dex/zerox/config.js.map +0 -1
  634. package/build/dex/zerox/index.d.ts +0 -22
  635. package/build/dex/zerox/index.js +0 -225
  636. package/build/dex/zerox/index.js.map +0 -1
  637. package/build/dex/zerox/order.d.ts +0 -88
  638. package/build/dex/zerox/order.js +0 -53
  639. package/build/dex/zerox/order.js.map +0 -1
  640. package/build/dex/zerox/types.d.ts +0 -73
  641. package/build/dex/zerox/types.js +0 -21
  642. package/build/dex/zerox/types.js.map +0 -1
  643. /package/build/dex/{bunni-v2 → pancakeswap-infinity}/types.js +0 -0
  644. /package/build/dex/{concentrator-arusd → renegade/api}/types.js +0 -0
@@ -1,2013 +0,0 @@
1
- [
2
- {
3
- "inputs": [],
4
- "name": "POOL__CREDIT_NOT_ENOUGH",
5
- "type": "error"
6
- },
7
- {
8
- "inputs": [],
9
- "name": "POOL__REACH_MAXIMUM_BURNED_CREDIT",
10
- "type": "error"
11
- },
12
- {
13
- "inputs": [],
14
- "name": "POOL__REACH_MAXIMUM_MINTED_CREDIT",
15
- "type": "error"
16
- },
17
- {
18
- "inputs": [],
19
- "name": "POOL__SWAP_CREDIT_FOR_TOKENS_DISABLED",
20
- "type": "error"
21
- },
22
- {
23
- "inputs": [],
24
- "name": "POOL__SWAP_TOKENS_FOR_CREDIT_DISABLED",
25
- "type": "error"
26
- },
27
- {
28
- "inputs": [],
29
- "name": "WOMBAT_AMOUNT_TOO_LOW",
30
- "type": "error"
31
- },
32
- {
33
- "inputs": [],
34
- "name": "WOMBAT_ASSET_ALREADY_EXIST",
35
- "type": "error"
36
- },
37
- {
38
- "inputs": [],
39
- "name": "WOMBAT_ASSET_ALREADY_PAUSED",
40
- "type": "error"
41
- },
42
- {
43
- "inputs": [],
44
- "name": "WOMBAT_ASSET_NOT_EXISTS",
45
- "type": "error"
46
- },
47
- {
48
- "inputs": [],
49
- "name": "WOMBAT_ASSET_NOT_PAUSED",
50
- "type": "error"
51
- },
52
- {
53
- "inputs": [],
54
- "name": "WOMBAT_CASH_NOT_ENOUGH",
55
- "type": "error"
56
- },
57
- {
58
- "inputs": [],
59
- "name": "WOMBAT_COV_RATIO_LIMIT_EXCEEDED",
60
- "type": "error"
61
- },
62
- {
63
- "inputs": [],
64
- "name": "WOMBAT_EXPIRED",
65
- "type": "error"
66
- },
67
- {
68
- "inputs": [],
69
- "name": "WOMBAT_FORBIDDEN",
70
- "type": "error"
71
- },
72
- {
73
- "inputs": [],
74
- "name": "WOMBAT_INVALID_VALUE",
75
- "type": "error"
76
- },
77
- {
78
- "inputs": [],
79
- "name": "WOMBAT_SAME_ADDRESS",
80
- "type": "error"
81
- },
82
- {
83
- "inputs": [],
84
- "name": "WOMBAT_ZERO_ADDRESS",
85
- "type": "error"
86
- },
87
- {
88
- "inputs": [],
89
- "name": "WOMBAT_ZERO_AMOUNT",
90
- "type": "error"
91
- },
92
- {
93
- "inputs": [],
94
- "name": "WOMBAT_ZERO_CREDIT_AMOUNT",
95
- "type": "error"
96
- },
97
- {
98
- "inputs": [],
99
- "name": "WOMBAT_ZERO_LIQUIDITY",
100
- "type": "error"
101
- },
102
- {
103
- "anonymous": false,
104
- "inputs": [
105
- {
106
- "indexed": true,
107
- "internalType": "address",
108
- "name": "token",
109
- "type": "address"
110
- },
111
- {
112
- "indexed": true,
113
- "internalType": "address",
114
- "name": "asset",
115
- "type": "address"
116
- }
117
- ],
118
- "name": "AssetAdded",
119
- "type": "event"
120
- },
121
- {
122
- "anonymous": false,
123
- "inputs": [
124
- {
125
- "indexed": true,
126
- "internalType": "address",
127
- "name": "token",
128
- "type": "address"
129
- },
130
- {
131
- "indexed": true,
132
- "internalType": "address",
133
- "name": "asset",
134
- "type": "address"
135
- }
136
- ],
137
- "name": "AssetRemoved",
138
- "type": "event"
139
- },
140
- {
141
- "anonymous": false,
142
- "inputs": [
143
- {
144
- "indexed": true,
145
- "internalType": "address",
146
- "name": "sender",
147
- "type": "address"
148
- },
149
- {
150
- "indexed": false,
151
- "internalType": "address",
152
- "name": "token",
153
- "type": "address"
154
- },
155
- {
156
- "indexed": false,
157
- "internalType": "uint256",
158
- "name": "amount",
159
- "type": "uint256"
160
- },
161
- {
162
- "indexed": false,
163
- "internalType": "uint256",
164
- "name": "liquidity",
165
- "type": "uint256"
166
- },
167
- {
168
- "indexed": true,
169
- "internalType": "address",
170
- "name": "to",
171
- "type": "address"
172
- }
173
- ],
174
- "name": "Deposit",
175
- "type": "event"
176
- },
177
- {
178
- "anonymous": false,
179
- "inputs": [
180
- {
181
- "indexed": false,
182
- "internalType": "address",
183
- "name": "token",
184
- "type": "address"
185
- },
186
- {
187
- "indexed": false,
188
- "internalType": "uint256",
189
- "name": "amount",
190
- "type": "uint256"
191
- }
192
- ],
193
- "name": "FillPool",
194
- "type": "event"
195
- },
196
- {
197
- "anonymous": false,
198
- "inputs": [
199
- {
200
- "indexed": false,
201
- "internalType": "uint8",
202
- "name": "version",
203
- "type": "uint8"
204
- }
205
- ],
206
- "name": "Initialized",
207
- "type": "event"
208
- },
209
- {
210
- "anonymous": false,
211
- "inputs": [
212
- {
213
- "indexed": true,
214
- "internalType": "address",
215
- "name": "receiver",
216
- "type": "address"
217
- },
218
- {
219
- "indexed": false,
220
- "internalType": "uint256",
221
- "name": "creditAmount",
222
- "type": "uint256"
223
- }
224
- ],
225
- "name": "MintCredit",
226
- "type": "event"
227
- },
228
- {
229
- "anonymous": false,
230
- "inputs": [
231
- {
232
- "indexed": true,
233
- "internalType": "address",
234
- "name": "previousOwner",
235
- "type": "address"
236
- },
237
- {
238
- "indexed": true,
239
- "internalType": "address",
240
- "name": "newOwner",
241
- "type": "address"
242
- }
243
- ],
244
- "name": "OwnershipTransferred",
245
- "type": "event"
246
- },
247
- {
248
- "anonymous": false,
249
- "inputs": [
250
- {
251
- "indexed": false,
252
- "internalType": "address",
253
- "name": "account",
254
- "type": "address"
255
- }
256
- ],
257
- "name": "Paused",
258
- "type": "event"
259
- },
260
- {
261
- "anonymous": false,
262
- "inputs": [
263
- {
264
- "indexed": false,
265
- "internalType": "address",
266
- "name": "token",
267
- "type": "address"
268
- },
269
- {
270
- "indexed": false,
271
- "internalType": "address",
272
- "name": "account",
273
- "type": "address"
274
- }
275
- ],
276
- "name": "PausedAsset",
277
- "type": "event"
278
- },
279
- {
280
- "anonymous": false,
281
- "inputs": [
282
- {
283
- "indexed": false,
284
- "internalType": "uint256",
285
- "name": "value",
286
- "type": "uint256"
287
- }
288
- ],
289
- "name": "SetAmpFactor",
290
- "type": "event"
291
- },
292
- {
293
- "anonymous": false,
294
- "inputs": [
295
- {
296
- "indexed": false,
297
- "internalType": "address",
298
- "name": "addr",
299
- "type": "address"
300
- }
301
- ],
302
- "name": "SetDev",
303
- "type": "event"
304
- },
305
- {
306
- "anonymous": false,
307
- "inputs": [
308
- {
309
- "indexed": false,
310
- "internalType": "uint256",
311
- "name": "lpDividendRatio",
312
- "type": "uint256"
313
- },
314
- {
315
- "indexed": false,
316
- "internalType": "uint256",
317
- "name": "retentionRatio",
318
- "type": "uint256"
319
- }
320
- ],
321
- "name": "SetFee",
322
- "type": "event"
323
- },
324
- {
325
- "anonymous": false,
326
- "inputs": [
327
- {
328
- "indexed": false,
329
- "internalType": "address",
330
- "name": "addr",
331
- "type": "address"
332
- }
333
- ],
334
- "name": "SetFeeTo",
335
- "type": "event"
336
- },
337
- {
338
- "anonymous": false,
339
- "inputs": [
340
- {
341
- "indexed": false,
342
- "internalType": "uint256",
343
- "name": "value",
344
- "type": "uint256"
345
- }
346
- ],
347
- "name": "SetHaircutRate",
348
- "type": "event"
349
- },
350
- {
351
- "anonymous": false,
352
- "inputs": [
353
- {
354
- "indexed": false,
355
- "internalType": "address",
356
- "name": "addr",
357
- "type": "address"
358
- }
359
- ],
360
- "name": "SetMasterWombat",
361
- "type": "event"
362
- },
363
- {
364
- "anonymous": false,
365
- "inputs": [
366
- {
367
- "indexed": false,
368
- "internalType": "uint256",
369
- "name": "value",
370
- "type": "uint256"
371
- }
372
- ],
373
- "name": "SetMintFeeThreshold",
374
- "type": "event"
375
- },
376
- {
377
- "anonymous": false,
378
- "inputs": [
379
- {
380
- "indexed": false,
381
- "internalType": "uint256",
382
- "name": "value",
383
- "type": "uint256"
384
- }
385
- ],
386
- "name": "SetWithdrawalHaircutRate",
387
- "type": "event"
388
- },
389
- {
390
- "anonymous": false,
391
- "inputs": [
392
- {
393
- "indexed": false,
394
- "internalType": "uint256",
395
- "name": "creditAmount",
396
- "type": "uint256"
397
- },
398
- {
399
- "indexed": true,
400
- "internalType": "address",
401
- "name": "toToken",
402
- "type": "address"
403
- },
404
- {
405
- "indexed": false,
406
- "internalType": "uint256",
407
- "name": "toAmount",
408
- "type": "uint256"
409
- },
410
- {
411
- "indexed": false,
412
- "internalType": "uint256",
413
- "name": "toTokenFee",
414
- "type": "uint256"
415
- },
416
- {
417
- "indexed": true,
418
- "internalType": "address",
419
- "name": "receiver",
420
- "type": "address"
421
- }
422
- ],
423
- "name": "SwapCreditForTokens",
424
- "type": "event"
425
- },
426
- {
427
- "anonymous": false,
428
- "inputs": [
429
- {
430
- "indexed": true,
431
- "internalType": "address",
432
- "name": "sender",
433
- "type": "address"
434
- },
435
- {
436
- "indexed": true,
437
- "internalType": "address",
438
- "name": "fromToken",
439
- "type": "address"
440
- },
441
- {
442
- "indexed": false,
443
- "internalType": "uint256",
444
- "name": "fromAmount",
445
- "type": "uint256"
446
- },
447
- {
448
- "indexed": false,
449
- "internalType": "uint256",
450
- "name": "fromTokenFee",
451
- "type": "uint256"
452
- },
453
- {
454
- "indexed": false,
455
- "internalType": "uint256",
456
- "name": "creditAmount",
457
- "type": "uint256"
458
- }
459
- ],
460
- "name": "SwapTokensForCredit",
461
- "type": "event"
462
- },
463
- {
464
- "anonymous": false,
465
- "inputs": [
466
- {
467
- "indexed": true,
468
- "internalType": "address",
469
- "name": "sender",
470
- "type": "address"
471
- },
472
- {
473
- "indexed": false,
474
- "internalType": "address",
475
- "name": "fromToken",
476
- "type": "address"
477
- },
478
- {
479
- "indexed": false,
480
- "internalType": "address",
481
- "name": "toToken",
482
- "type": "address"
483
- },
484
- {
485
- "indexed": false,
486
- "internalType": "uint256",
487
- "name": "fromAmount",
488
- "type": "uint256"
489
- },
490
- {
491
- "indexed": false,
492
- "internalType": "uint256",
493
- "name": "toAmount",
494
- "type": "uint256"
495
- },
496
- {
497
- "indexed": false,
498
- "internalType": "uint256",
499
- "name": "toTokenFee",
500
- "type": "uint256"
501
- },
502
- {
503
- "indexed": true,
504
- "internalType": "address",
505
- "name": "to",
506
- "type": "address"
507
- }
508
- ],
509
- "name": "SwapV2",
510
- "type": "event"
511
- },
512
- {
513
- "anonymous": false,
514
- "inputs": [
515
- {
516
- "indexed": false,
517
- "internalType": "address",
518
- "name": "token",
519
- "type": "address"
520
- },
521
- {
522
- "indexed": false,
523
- "internalType": "uint256",
524
- "name": "amount",
525
- "type": "uint256"
526
- },
527
- {
528
- "indexed": false,
529
- "internalType": "address",
530
- "name": "to",
531
- "type": "address"
532
- }
533
- ],
534
- "name": "TransferTipBucket",
535
- "type": "event"
536
- },
537
- {
538
- "anonymous": false,
539
- "inputs": [
540
- {
541
- "indexed": false,
542
- "internalType": "address",
543
- "name": "account",
544
- "type": "address"
545
- }
546
- ],
547
- "name": "Unpaused",
548
- "type": "event"
549
- },
550
- {
551
- "anonymous": false,
552
- "inputs": [
553
- {
554
- "indexed": false,
555
- "internalType": "address",
556
- "name": "token",
557
- "type": "address"
558
- },
559
- {
560
- "indexed": false,
561
- "internalType": "address",
562
- "name": "account",
563
- "type": "address"
564
- }
565
- ],
566
- "name": "UnpausedAsset",
567
- "type": "event"
568
- },
569
- {
570
- "anonymous": false,
571
- "inputs": [
572
- {
573
- "indexed": true,
574
- "internalType": "address",
575
- "name": "sender",
576
- "type": "address"
577
- },
578
- {
579
- "indexed": false,
580
- "internalType": "address",
581
- "name": "token",
582
- "type": "address"
583
- },
584
- {
585
- "indexed": false,
586
- "internalType": "uint256",
587
- "name": "amount",
588
- "type": "uint256"
589
- },
590
- {
591
- "indexed": false,
592
- "internalType": "uint256",
593
- "name": "liquidity",
594
- "type": "uint256"
595
- },
596
- {
597
- "indexed": true,
598
- "internalType": "address",
599
- "name": "to",
600
- "type": "address"
601
- }
602
- ],
603
- "name": "Withdraw",
604
- "type": "event"
605
- },
606
- {
607
- "inputs": [],
608
- "name": "adaptor",
609
- "outputs": [
610
- {
611
- "internalType": "contract IAdaptor",
612
- "name": "",
613
- "type": "address"
614
- }
615
- ],
616
- "stateMutability": "view",
617
- "type": "function"
618
- },
619
- {
620
- "inputs": [
621
- {
622
- "internalType": "address",
623
- "name": "token",
624
- "type": "address"
625
- },
626
- {
627
- "internalType": "address",
628
- "name": "asset",
629
- "type": "address"
630
- }
631
- ],
632
- "name": "addAsset",
633
- "outputs": [],
634
- "stateMutability": "nonpayable",
635
- "type": "function"
636
- },
637
- {
638
- "inputs": [
639
- {
640
- "internalType": "address",
641
- "name": "token",
642
- "type": "address"
643
- }
644
- ],
645
- "name": "addressOfAsset",
646
- "outputs": [
647
- {
648
- "internalType": "address",
649
- "name": "",
650
- "type": "address"
651
- }
652
- ],
653
- "stateMutability": "view",
654
- "type": "function"
655
- },
656
- {
657
- "inputs": [],
658
- "name": "ampFactor",
659
- "outputs": [
660
- {
661
- "internalType": "uint256",
662
- "name": "",
663
- "type": "uint256"
664
- }
665
- ],
666
- "stateMutability": "view",
667
- "type": "function"
668
- },
669
- {
670
- "inputs": [
671
- {
672
- "internalType": "address",
673
- "name": "toToken",
674
- "type": "address"
675
- },
676
- {
677
- "internalType": "uint256",
678
- "name": "fromAmount",
679
- "type": "uint256"
680
- },
681
- {
682
- "internalType": "uint256",
683
- "name": "minimumToAmount",
684
- "type": "uint256"
685
- },
686
- {
687
- "internalType": "address",
688
- "name": "receiver",
689
- "type": "address"
690
- }
691
- ],
692
- "name": "completeSwapCreditForTokens",
693
- "outputs": [
694
- {
695
- "internalType": "uint256",
696
- "name": "actualToAmount",
697
- "type": "uint256"
698
- },
699
- {
700
- "internalType": "uint256",
701
- "name": "toTokenFee",
702
- "type": "uint256"
703
- }
704
- ],
705
- "stateMutability": "nonpayable",
706
- "type": "function"
707
- },
708
- {
709
- "inputs": [
710
- {
711
- "internalType": "address",
712
- "name": "",
713
- "type": "address"
714
- }
715
- ],
716
- "name": "creditBalance",
717
- "outputs": [
718
- {
719
- "internalType": "uint256",
720
- "name": "",
721
- "type": "uint256"
722
- }
723
- ],
724
- "stateMutability": "view",
725
- "type": "function"
726
- },
727
- {
728
- "inputs": [],
729
- "name": "creditForTokensHaircut",
730
- "outputs": [
731
- {
732
- "internalType": "uint128",
733
- "name": "",
734
- "type": "uint128"
735
- }
736
- ],
737
- "stateMutability": "view",
738
- "type": "function"
739
- },
740
- {
741
- "inputs": [
742
- {
743
- "internalType": "address",
744
- "name": "token",
745
- "type": "address"
746
- },
747
- {
748
- "internalType": "uint256",
749
- "name": "amount",
750
- "type": "uint256"
751
- },
752
- {
753
- "internalType": "uint256",
754
- "name": "minimumLiquidity",
755
- "type": "uint256"
756
- },
757
- {
758
- "internalType": "address",
759
- "name": "to",
760
- "type": "address"
761
- },
762
- {
763
- "internalType": "uint256",
764
- "name": "deadline",
765
- "type": "uint256"
766
- },
767
- {
768
- "internalType": "bool",
769
- "name": "shouldStake",
770
- "type": "bool"
771
- }
772
- ],
773
- "name": "deposit",
774
- "outputs": [
775
- {
776
- "internalType": "uint256",
777
- "name": "liquidity",
778
- "type": "uint256"
779
- }
780
- ],
781
- "stateMutability": "nonpayable",
782
- "type": "function"
783
- },
784
- {
785
- "inputs": [],
786
- "name": "dev",
787
- "outputs": [
788
- {
789
- "internalType": "address",
790
- "name": "",
791
- "type": "address"
792
- }
793
- ],
794
- "stateMutability": "view",
795
- "type": "function"
796
- },
797
- {
798
- "inputs": [],
799
- "name": "endCovRatio",
800
- "outputs": [
801
- {
802
- "internalType": "uint128",
803
- "name": "",
804
- "type": "uint128"
805
- }
806
- ],
807
- "stateMutability": "view",
808
- "type": "function"
809
- },
810
- {
811
- "inputs": [
812
- {
813
- "internalType": "address",
814
- "name": "token",
815
- "type": "address"
816
- }
817
- ],
818
- "name": "exchangeRate",
819
- "outputs": [
820
- {
821
- "internalType": "uint256",
822
- "name": "xr",
823
- "type": "uint256"
824
- }
825
- ],
826
- "stateMutability": "view",
827
- "type": "function"
828
- },
829
- {
830
- "inputs": [],
831
- "name": "feeTo",
832
- "outputs": [
833
- {
834
- "internalType": "address",
835
- "name": "",
836
- "type": "address"
837
- }
838
- ],
839
- "stateMutability": "view",
840
- "type": "function"
841
- },
842
- {
843
- "inputs": [
844
- {
845
- "internalType": "address",
846
- "name": "token",
847
- "type": "address"
848
- },
849
- {
850
- "internalType": "uint256",
851
- "name": "amount",
852
- "type": "uint256"
853
- }
854
- ],
855
- "name": "fillPool",
856
- "outputs": [],
857
- "stateMutability": "nonpayable",
858
- "type": "function"
859
- },
860
- {
861
- "inputs": [],
862
- "name": "getTokens",
863
- "outputs": [
864
- {
865
- "internalType": "address[]",
866
- "name": "",
867
- "type": "address[]"
868
- }
869
- ],
870
- "stateMutability": "view",
871
- "type": "function"
872
- },
873
- {
874
- "inputs": [],
875
- "name": "globalEquilCovRatio",
876
- "outputs": [
877
- {
878
- "internalType": "int256",
879
- "name": "equilCovRatio",
880
- "type": "int256"
881
- },
882
- {
883
- "internalType": "int256",
884
- "name": "invariant",
885
- "type": "int256"
886
- }
887
- ],
888
- "stateMutability": "view",
889
- "type": "function"
890
- },
891
- {
892
- "inputs": [],
893
- "name": "globalEquilCovRatioWithCredit",
894
- "outputs": [
895
- {
896
- "internalType": "uint256",
897
- "name": "equilCovRatio",
898
- "type": "uint256"
899
- },
900
- {
901
- "internalType": "uint256",
902
- "name": "invariantInUint",
903
- "type": "uint256"
904
- }
905
- ],
906
- "stateMutability": "view",
907
- "type": "function"
908
- },
909
- {
910
- "inputs": [],
911
- "name": "haircutRate",
912
- "outputs": [
913
- {
914
- "internalType": "uint256",
915
- "name": "",
916
- "type": "uint256"
917
- }
918
- ],
919
- "stateMutability": "view",
920
- "type": "function"
921
- },
922
- {
923
- "inputs": [
924
- {
925
- "internalType": "uint256",
926
- "name": "ampFactor_",
927
- "type": "uint256"
928
- },
929
- {
930
- "internalType": "uint256",
931
- "name": "haircutRate_",
932
- "type": "uint256"
933
- }
934
- ],
935
- "name": "initialize",
936
- "outputs": [],
937
- "stateMutability": "nonpayable",
938
- "type": "function"
939
- },
940
- {
941
- "inputs": [
942
- {
943
- "internalType": "address",
944
- "name": "token",
945
- "type": "address"
946
- }
947
- ],
948
- "name": "isPaused",
949
- "outputs": [
950
- {
951
- "internalType": "bool",
952
- "name": "",
953
- "type": "bool"
954
- }
955
- ],
956
- "stateMutability": "view",
957
- "type": "function"
958
- },
959
- {
960
- "inputs": [],
961
- "name": "lpDividendRatio",
962
- "outputs": [
963
- {
964
- "internalType": "uint256",
965
- "name": "",
966
- "type": "uint256"
967
- }
968
- ],
969
- "stateMutability": "view",
970
- "type": "function"
971
- },
972
- {
973
- "inputs": [],
974
- "name": "masterWombat",
975
- "outputs": [
976
- {
977
- "internalType": "address",
978
- "name": "",
979
- "type": "address"
980
- }
981
- ],
982
- "stateMutability": "view",
983
- "type": "function"
984
- },
985
- {
986
- "inputs": [],
987
- "name": "maximumInboundCredit",
988
- "outputs": [
989
- {
990
- "internalType": "uint128",
991
- "name": "",
992
- "type": "uint128"
993
- }
994
- ],
995
- "stateMutability": "view",
996
- "type": "function"
997
- },
998
- {
999
- "inputs": [],
1000
- "name": "maximumOutboundCredit",
1001
- "outputs": [
1002
- {
1003
- "internalType": "uint128",
1004
- "name": "",
1005
- "type": "uint128"
1006
- }
1007
- ],
1008
- "stateMutability": "view",
1009
- "type": "function"
1010
- },
1011
- {
1012
- "inputs": [
1013
- {
1014
- "internalType": "uint256",
1015
- "name": "creditAmount",
1016
- "type": "uint256"
1017
- },
1018
- {
1019
- "internalType": "address",
1020
- "name": "receiver",
1021
- "type": "address"
1022
- }
1023
- ],
1024
- "name": "mintCredit",
1025
- "outputs": [],
1026
- "stateMutability": "nonpayable",
1027
- "type": "function"
1028
- },
1029
- {
1030
- "inputs": [
1031
- {
1032
- "internalType": "address",
1033
- "name": "token",
1034
- "type": "address"
1035
- }
1036
- ],
1037
- "name": "mintFee",
1038
- "outputs": [
1039
- {
1040
- "internalType": "uint256",
1041
- "name": "feeCollected",
1042
- "type": "uint256"
1043
- }
1044
- ],
1045
- "stateMutability": "nonpayable",
1046
- "type": "function"
1047
- },
1048
- {
1049
- "inputs": [],
1050
- "name": "mintFeeThreshold",
1051
- "outputs": [
1052
- {
1053
- "internalType": "uint256",
1054
- "name": "",
1055
- "type": "uint256"
1056
- }
1057
- ],
1058
- "stateMutability": "view",
1059
- "type": "function"
1060
- },
1061
- {
1062
- "inputs": [],
1063
- "name": "owner",
1064
- "outputs": [
1065
- {
1066
- "internalType": "address",
1067
- "name": "",
1068
- "type": "address"
1069
- }
1070
- ],
1071
- "stateMutability": "view",
1072
- "type": "function"
1073
- },
1074
- {
1075
- "inputs": [],
1076
- "name": "pause",
1077
- "outputs": [],
1078
- "stateMutability": "nonpayable",
1079
- "type": "function"
1080
- },
1081
- {
1082
- "inputs": [
1083
- {
1084
- "internalType": "address",
1085
- "name": "token",
1086
- "type": "address"
1087
- }
1088
- ],
1089
- "name": "pauseAsset",
1090
- "outputs": [],
1091
- "stateMutability": "nonpayable",
1092
- "type": "function"
1093
- },
1094
- {
1095
- "inputs": [],
1096
- "name": "paused",
1097
- "outputs": [
1098
- {
1099
- "internalType": "bool",
1100
- "name": "",
1101
- "type": "bool"
1102
- }
1103
- ],
1104
- "stateMutability": "view",
1105
- "type": "function"
1106
- },
1107
- {
1108
- "inputs": [
1109
- {
1110
- "internalType": "address",
1111
- "name": "fromToken",
1112
- "type": "address"
1113
- },
1114
- {
1115
- "internalType": "address",
1116
- "name": "toToken",
1117
- "type": "address"
1118
- },
1119
- {
1120
- "internalType": "int256",
1121
- "name": "toAmount",
1122
- "type": "int256"
1123
- }
1124
- ],
1125
- "name": "quoteAmountIn",
1126
- "outputs": [
1127
- {
1128
- "internalType": "uint256",
1129
- "name": "amountIn",
1130
- "type": "uint256"
1131
- },
1132
- {
1133
- "internalType": "uint256",
1134
- "name": "haircut",
1135
- "type": "uint256"
1136
- }
1137
- ],
1138
- "stateMutability": "view",
1139
- "type": "function"
1140
- },
1141
- {
1142
- "inputs": [
1143
- {
1144
- "internalType": "address",
1145
- "name": "token",
1146
- "type": "address"
1147
- },
1148
- {
1149
- "internalType": "uint256",
1150
- "name": "amount",
1151
- "type": "uint256"
1152
- }
1153
- ],
1154
- "name": "quotePotentialDeposit",
1155
- "outputs": [
1156
- {
1157
- "internalType": "uint256",
1158
- "name": "liquidity",
1159
- "type": "uint256"
1160
- }
1161
- ],
1162
- "stateMutability": "view",
1163
- "type": "function"
1164
- },
1165
- {
1166
- "inputs": [
1167
- {
1168
- "internalType": "address",
1169
- "name": "fromToken",
1170
- "type": "address"
1171
- },
1172
- {
1173
- "internalType": "address",
1174
- "name": "toToken",
1175
- "type": "address"
1176
- },
1177
- {
1178
- "internalType": "int256",
1179
- "name": "fromAmount",
1180
- "type": "int256"
1181
- }
1182
- ],
1183
- "name": "quotePotentialSwap",
1184
- "outputs": [
1185
- {
1186
- "internalType": "uint256",
1187
- "name": "potentialOutcome",
1188
- "type": "uint256"
1189
- },
1190
- {
1191
- "internalType": "uint256",
1192
- "name": "haircut",
1193
- "type": "uint256"
1194
- }
1195
- ],
1196
- "stateMutability": "view",
1197
- "type": "function"
1198
- },
1199
- {
1200
- "inputs": [
1201
- {
1202
- "internalType": "address",
1203
- "name": "token",
1204
- "type": "address"
1205
- },
1206
- {
1207
- "internalType": "uint256",
1208
- "name": "liquidity",
1209
- "type": "uint256"
1210
- }
1211
- ],
1212
- "name": "quotePotentialWithdraw",
1213
- "outputs": [
1214
- {
1215
- "internalType": "uint256",
1216
- "name": "amount",
1217
- "type": "uint256"
1218
- }
1219
- ],
1220
- "stateMutability": "view",
1221
- "type": "function"
1222
- },
1223
- {
1224
- "inputs": [
1225
- {
1226
- "internalType": "address",
1227
- "name": "fromToken",
1228
- "type": "address"
1229
- },
1230
- {
1231
- "internalType": "address",
1232
- "name": "toToken",
1233
- "type": "address"
1234
- },
1235
- {
1236
- "internalType": "uint256",
1237
- "name": "liquidity",
1238
- "type": "uint256"
1239
- }
1240
- ],
1241
- "name": "quotePotentialWithdrawFromOtherAsset",
1242
- "outputs": [
1243
- {
1244
- "internalType": "uint256",
1245
- "name": "finalAmount",
1246
- "type": "uint256"
1247
- },
1248
- {
1249
- "internalType": "uint256",
1250
- "name": "withdrewAmount",
1251
- "type": "uint256"
1252
- }
1253
- ],
1254
- "stateMutability": "view",
1255
- "type": "function"
1256
- },
1257
- {
1258
- "inputs": [
1259
- {
1260
- "internalType": "address",
1261
- "name": "toToken",
1262
- "type": "address"
1263
- },
1264
- {
1265
- "internalType": "uint256",
1266
- "name": "fromCreditAmount",
1267
- "type": "uint256"
1268
- }
1269
- ],
1270
- "name": "quoteSwapCreditForTokens",
1271
- "outputs": [
1272
- {
1273
- "internalType": "uint256",
1274
- "name": "actualToAmount",
1275
- "type": "uint256"
1276
- },
1277
- {
1278
- "internalType": "uint256",
1279
- "name": "toTokenFee",
1280
- "type": "uint256"
1281
- }
1282
- ],
1283
- "stateMutability": "view",
1284
- "type": "function"
1285
- },
1286
- {
1287
- "inputs": [
1288
- {
1289
- "internalType": "address",
1290
- "name": "fromToken",
1291
- "type": "address"
1292
- },
1293
- {
1294
- "internalType": "uint256",
1295
- "name": "fromAmount",
1296
- "type": "uint256"
1297
- }
1298
- ],
1299
- "name": "quoteSwapTokensForCredit",
1300
- "outputs": [
1301
- {
1302
- "internalType": "uint256",
1303
- "name": "creditAmount",
1304
- "type": "uint256"
1305
- },
1306
- {
1307
- "internalType": "uint256",
1308
- "name": "fromTokenFee",
1309
- "type": "uint256"
1310
- }
1311
- ],
1312
- "stateMutability": "view",
1313
- "type": "function"
1314
- },
1315
- {
1316
- "inputs": [
1317
- {
1318
- "internalType": "address",
1319
- "name": "token",
1320
- "type": "address"
1321
- }
1322
- ],
1323
- "name": "removeAsset",
1324
- "outputs": [],
1325
- "stateMutability": "nonpayable",
1326
- "type": "function"
1327
- },
1328
- {
1329
- "inputs": [],
1330
- "name": "renounceOwnership",
1331
- "outputs": [],
1332
- "stateMutability": "nonpayable",
1333
- "type": "function"
1334
- },
1335
- {
1336
- "inputs": [],
1337
- "name": "retentionRatio",
1338
- "outputs": [
1339
- {
1340
- "internalType": "uint256",
1341
- "name": "",
1342
- "type": "uint256"
1343
- }
1344
- ],
1345
- "stateMutability": "view",
1346
- "type": "function"
1347
- },
1348
- {
1349
- "inputs": [
1350
- {
1351
- "internalType": "contract IAdaptor",
1352
- "name": "_adaptor",
1353
- "type": "address"
1354
- }
1355
- ],
1356
- "name": "setAdaptorAddr",
1357
- "outputs": [],
1358
- "stateMutability": "nonpayable",
1359
- "type": "function"
1360
- },
1361
- {
1362
- "inputs": [
1363
- {
1364
- "internalType": "uint256",
1365
- "name": "ampFactor_",
1366
- "type": "uint256"
1367
- }
1368
- ],
1369
- "name": "setAmpFactor",
1370
- "outputs": [],
1371
- "stateMutability": "nonpayable",
1372
- "type": "function"
1373
- },
1374
- {
1375
- "inputs": [
1376
- {
1377
- "internalType": "uint128",
1378
- "name": "startCovRatio_",
1379
- "type": "uint128"
1380
- },
1381
- {
1382
- "internalType": "uint128",
1383
- "name": "endCovRatio_",
1384
- "type": "uint128"
1385
- }
1386
- ],
1387
- "name": "setCovRatioFeeParam",
1388
- "outputs": [],
1389
- "stateMutability": "nonpayable",
1390
- "type": "function"
1391
- },
1392
- {
1393
- "inputs": [
1394
- {
1395
- "internalType": "uint128",
1396
- "name": "_tokensForCreditHaircut",
1397
- "type": "uint128"
1398
- },
1399
- {
1400
- "internalType": "uint128",
1401
- "name": "_creditForTokensHaircut",
1402
- "type": "uint128"
1403
- }
1404
- ],
1405
- "name": "setCrossChainHaircut",
1406
- "outputs": [],
1407
- "stateMutability": "nonpayable",
1408
- "type": "function"
1409
- },
1410
- {
1411
- "inputs": [
1412
- {
1413
- "internalType": "address",
1414
- "name": "dev_",
1415
- "type": "address"
1416
- }
1417
- ],
1418
- "name": "setDev",
1419
- "outputs": [],
1420
- "stateMutability": "nonpayable",
1421
- "type": "function"
1422
- },
1423
- {
1424
- "inputs": [
1425
- {
1426
- "internalType": "uint256",
1427
- "name": "lpDividendRatio_",
1428
- "type": "uint256"
1429
- },
1430
- {
1431
- "internalType": "uint256",
1432
- "name": "retentionRatio_",
1433
- "type": "uint256"
1434
- }
1435
- ],
1436
- "name": "setFee",
1437
- "outputs": [],
1438
- "stateMutability": "nonpayable",
1439
- "type": "function"
1440
- },
1441
- {
1442
- "inputs": [
1443
- {
1444
- "internalType": "address",
1445
- "name": "feeTo_",
1446
- "type": "address"
1447
- }
1448
- ],
1449
- "name": "setFeeTo",
1450
- "outputs": [],
1451
- "stateMutability": "nonpayable",
1452
- "type": "function"
1453
- },
1454
- {
1455
- "inputs": [
1456
- {
1457
- "internalType": "uint256",
1458
- "name": "haircutRate_",
1459
- "type": "uint256"
1460
- }
1461
- ],
1462
- "name": "setHaircutRate",
1463
- "outputs": [],
1464
- "stateMutability": "nonpayable",
1465
- "type": "function"
1466
- },
1467
- {
1468
- "inputs": [
1469
- {
1470
- "internalType": "address",
1471
- "name": "masterWombat_",
1472
- "type": "address"
1473
- }
1474
- ],
1475
- "name": "setMasterWombat",
1476
- "outputs": [],
1477
- "stateMutability": "nonpayable",
1478
- "type": "function"
1479
- },
1480
- {
1481
- "inputs": [
1482
- {
1483
- "internalType": "uint128",
1484
- "name": "_maximumInboundCredit",
1485
- "type": "uint128"
1486
- }
1487
- ],
1488
- "name": "setMaximumInboundCredit",
1489
- "outputs": [],
1490
- "stateMutability": "nonpayable",
1491
- "type": "function"
1492
- },
1493
- {
1494
- "inputs": [
1495
- {
1496
- "internalType": "uint128",
1497
- "name": "_maximumOutboundCredit",
1498
- "type": "uint128"
1499
- }
1500
- ],
1501
- "name": "setMaximumOutboundCredit",
1502
- "outputs": [],
1503
- "stateMutability": "nonpayable",
1504
- "type": "function"
1505
- },
1506
- {
1507
- "inputs": [
1508
- {
1509
- "internalType": "uint256",
1510
- "name": "mintFeeThreshold_",
1511
- "type": "uint256"
1512
- }
1513
- ],
1514
- "name": "setMintFeeThreshold",
1515
- "outputs": [],
1516
- "stateMutability": "nonpayable",
1517
- "type": "function"
1518
- },
1519
- {
1520
- "inputs": [
1521
- {
1522
- "internalType": "bool",
1523
- "name": "enable",
1524
- "type": "bool"
1525
- }
1526
- ],
1527
- "name": "setSwapCreditForTokensEnabled",
1528
- "outputs": [],
1529
- "stateMutability": "nonpayable",
1530
- "type": "function"
1531
- },
1532
- {
1533
- "inputs": [
1534
- {
1535
- "internalType": "bool",
1536
- "name": "enable",
1537
- "type": "bool"
1538
- }
1539
- ],
1540
- "name": "setSwapTokensForCreditEnabled",
1541
- "outputs": [],
1542
- "stateMutability": "nonpayable",
1543
- "type": "function"
1544
- },
1545
- {
1546
- "inputs": [
1547
- {
1548
- "internalType": "uint256",
1549
- "name": "withdrawalHaircutRate_",
1550
- "type": "uint256"
1551
- }
1552
- ],
1553
- "name": "setWithdrawalHaircutRate",
1554
- "outputs": [],
1555
- "stateMutability": "nonpayable",
1556
- "type": "function"
1557
- },
1558
- {
1559
- "inputs": [],
1560
- "name": "startCovRatio",
1561
- "outputs": [
1562
- {
1563
- "internalType": "uint128",
1564
- "name": "",
1565
- "type": "uint128"
1566
- }
1567
- ],
1568
- "stateMutability": "view",
1569
- "type": "function"
1570
- },
1571
- {
1572
- "inputs": [
1573
- {
1574
- "internalType": "address",
1575
- "name": "fromToken",
1576
- "type": "address"
1577
- },
1578
- {
1579
- "internalType": "address",
1580
- "name": "toToken",
1581
- "type": "address"
1582
- },
1583
- {
1584
- "internalType": "uint256",
1585
- "name": "fromAmount",
1586
- "type": "uint256"
1587
- },
1588
- {
1589
- "internalType": "uint256",
1590
- "name": "minimumToAmount",
1591
- "type": "uint256"
1592
- },
1593
- {
1594
- "internalType": "address",
1595
- "name": "to",
1596
- "type": "address"
1597
- },
1598
- {
1599
- "internalType": "uint256",
1600
- "name": "deadline",
1601
- "type": "uint256"
1602
- }
1603
- ],
1604
- "name": "swap",
1605
- "outputs": [
1606
- {
1607
- "internalType": "uint256",
1608
- "name": "actualToAmount",
1609
- "type": "uint256"
1610
- },
1611
- {
1612
- "internalType": "uint256",
1613
- "name": "haircut",
1614
- "type": "uint256"
1615
- }
1616
- ],
1617
- "stateMutability": "nonpayable",
1618
- "type": "function"
1619
- },
1620
- {
1621
- "inputs": [
1622
- {
1623
- "internalType": "address",
1624
- "name": "toToken",
1625
- "type": "address"
1626
- },
1627
- {
1628
- "internalType": "uint256",
1629
- "name": "fromAmount",
1630
- "type": "uint256"
1631
- },
1632
- {
1633
- "internalType": "uint256",
1634
- "name": "minimumToAmount",
1635
- "type": "uint256"
1636
- },
1637
- {
1638
- "internalType": "address",
1639
- "name": "receiver",
1640
- "type": "address"
1641
- }
1642
- ],
1643
- "name": "swapCreditForTokens",
1644
- "outputs": [
1645
- {
1646
- "internalType": "uint256",
1647
- "name": "actualToAmount",
1648
- "type": "uint256"
1649
- },
1650
- {
1651
- "internalType": "uint256",
1652
- "name": "toTokenFee",
1653
- "type": "uint256"
1654
- }
1655
- ],
1656
- "stateMutability": "nonpayable",
1657
- "type": "function"
1658
- },
1659
- {
1660
- "inputs": [
1661
- {
1662
- "internalType": "address",
1663
- "name": "toToken",
1664
- "type": "address"
1665
- },
1666
- {
1667
- "internalType": "uint256",
1668
- "name": "toChain",
1669
- "type": "uint256"
1670
- },
1671
- {
1672
- "internalType": "uint256",
1673
- "name": "fromAmount",
1674
- "type": "uint256"
1675
- },
1676
- {
1677
- "internalType": "uint256",
1678
- "name": "minimumToAmount",
1679
- "type": "uint256"
1680
- },
1681
- {
1682
- "internalType": "address",
1683
- "name": "receiver",
1684
- "type": "address"
1685
- },
1686
- {
1687
- "internalType": "uint256",
1688
- "name": "receiverValue",
1689
- "type": "uint256"
1690
- },
1691
- {
1692
- "internalType": "uint256",
1693
- "name": "deliveryGasLimit",
1694
- "type": "uint256"
1695
- }
1696
- ],
1697
- "name": "swapCreditForTokensCrossChain",
1698
- "outputs": [
1699
- {
1700
- "internalType": "uint256",
1701
- "name": "trackingId",
1702
- "type": "uint256"
1703
- }
1704
- ],
1705
- "stateMutability": "payable",
1706
- "type": "function"
1707
- },
1708
- {
1709
- "inputs": [],
1710
- "name": "swapCreditForTokensEnabled",
1711
- "outputs": [
1712
- {
1713
- "internalType": "bool",
1714
- "name": "",
1715
- "type": "bool"
1716
- }
1717
- ],
1718
- "stateMutability": "view",
1719
- "type": "function"
1720
- },
1721
- {
1722
- "inputs": [],
1723
- "name": "swapTokensForCreditEnabled",
1724
- "outputs": [
1725
- {
1726
- "internalType": "bool",
1727
- "name": "",
1728
- "type": "bool"
1729
- }
1730
- ],
1731
- "stateMutability": "view",
1732
- "type": "function"
1733
- },
1734
- {
1735
- "inputs": [
1736
- {
1737
- "internalType": "address",
1738
- "name": "fromToken",
1739
- "type": "address"
1740
- },
1741
- {
1742
- "internalType": "address",
1743
- "name": "toToken",
1744
- "type": "address"
1745
- },
1746
- {
1747
- "internalType": "uint256",
1748
- "name": "toChain",
1749
- "type": "uint256"
1750
- },
1751
- {
1752
- "internalType": "uint256",
1753
- "name": "fromAmount",
1754
- "type": "uint256"
1755
- },
1756
- {
1757
- "internalType": "uint256",
1758
- "name": "minimumCreditAmount",
1759
- "type": "uint256"
1760
- },
1761
- {
1762
- "internalType": "uint256",
1763
- "name": "minimumToAmount",
1764
- "type": "uint256"
1765
- },
1766
- {
1767
- "internalType": "address",
1768
- "name": "receiver",
1769
- "type": "address"
1770
- },
1771
- {
1772
- "internalType": "uint256",
1773
- "name": "receiverValue",
1774
- "type": "uint256"
1775
- },
1776
- {
1777
- "internalType": "uint256",
1778
- "name": "deliveryGasLimit",
1779
- "type": "uint256"
1780
- }
1781
- ],
1782
- "name": "swapTokensForTokensCrossChain",
1783
- "outputs": [
1784
- {
1785
- "internalType": "uint256",
1786
- "name": "creditAmount",
1787
- "type": "uint256"
1788
- },
1789
- {
1790
- "internalType": "uint256",
1791
- "name": "fromTokenFee",
1792
- "type": "uint256"
1793
- },
1794
- {
1795
- "internalType": "uint256",
1796
- "name": "sequence",
1797
- "type": "uint256"
1798
- }
1799
- ],
1800
- "stateMutability": "payable",
1801
- "type": "function"
1802
- },
1803
- {
1804
- "inputs": [
1805
- {
1806
- "internalType": "address",
1807
- "name": "token",
1808
- "type": "address"
1809
- }
1810
- ],
1811
- "name": "tipBucketBalance",
1812
- "outputs": [
1813
- {
1814
- "internalType": "uint256",
1815
- "name": "balance",
1816
- "type": "uint256"
1817
- }
1818
- ],
1819
- "stateMutability": "view",
1820
- "type": "function"
1821
- },
1822
- {
1823
- "inputs": [],
1824
- "name": "tokensForCreditHaircut",
1825
- "outputs": [
1826
- {
1827
- "internalType": "uint128",
1828
- "name": "",
1829
- "type": "uint128"
1830
- }
1831
- ],
1832
- "stateMutability": "view",
1833
- "type": "function"
1834
- },
1835
- {
1836
- "inputs": [],
1837
- "name": "totalCreditBurned",
1838
- "outputs": [
1839
- {
1840
- "internalType": "uint128",
1841
- "name": "",
1842
- "type": "uint128"
1843
- }
1844
- ],
1845
- "stateMutability": "view",
1846
- "type": "function"
1847
- },
1848
- {
1849
- "inputs": [],
1850
- "name": "totalCreditMinted",
1851
- "outputs": [
1852
- {
1853
- "internalType": "uint128",
1854
- "name": "",
1855
- "type": "uint128"
1856
- }
1857
- ],
1858
- "stateMutability": "view",
1859
- "type": "function"
1860
- },
1861
- {
1862
- "inputs": [
1863
- {
1864
- "internalType": "address",
1865
- "name": "newOwner",
1866
- "type": "address"
1867
- }
1868
- ],
1869
- "name": "transferOwnership",
1870
- "outputs": [],
1871
- "stateMutability": "nonpayable",
1872
- "type": "function"
1873
- },
1874
- {
1875
- "inputs": [
1876
- {
1877
- "internalType": "address",
1878
- "name": "token",
1879
- "type": "address"
1880
- },
1881
- {
1882
- "internalType": "uint256",
1883
- "name": "amount",
1884
- "type": "uint256"
1885
- },
1886
- {
1887
- "internalType": "address",
1888
- "name": "to",
1889
- "type": "address"
1890
- }
1891
- ],
1892
- "name": "transferTipBucket",
1893
- "outputs": [],
1894
- "stateMutability": "nonpayable",
1895
- "type": "function"
1896
- },
1897
- {
1898
- "inputs": [],
1899
- "name": "unpause",
1900
- "outputs": [],
1901
- "stateMutability": "nonpayable",
1902
- "type": "function"
1903
- },
1904
- {
1905
- "inputs": [
1906
- {
1907
- "internalType": "address",
1908
- "name": "token",
1909
- "type": "address"
1910
- }
1911
- ],
1912
- "name": "unpauseAsset",
1913
- "outputs": [],
1914
- "stateMutability": "nonpayable",
1915
- "type": "function"
1916
- },
1917
- {
1918
- "inputs": [
1919
- {
1920
- "internalType": "address",
1921
- "name": "token",
1922
- "type": "address"
1923
- },
1924
- {
1925
- "internalType": "uint256",
1926
- "name": "liquidity",
1927
- "type": "uint256"
1928
- },
1929
- {
1930
- "internalType": "uint256",
1931
- "name": "minimumAmount",
1932
- "type": "uint256"
1933
- },
1934
- {
1935
- "internalType": "address",
1936
- "name": "to",
1937
- "type": "address"
1938
- },
1939
- {
1940
- "internalType": "uint256",
1941
- "name": "deadline",
1942
- "type": "uint256"
1943
- }
1944
- ],
1945
- "name": "withdraw",
1946
- "outputs": [
1947
- {
1948
- "internalType": "uint256",
1949
- "name": "amount",
1950
- "type": "uint256"
1951
- }
1952
- ],
1953
- "stateMutability": "nonpayable",
1954
- "type": "function"
1955
- },
1956
- {
1957
- "inputs": [
1958
- {
1959
- "internalType": "address",
1960
- "name": "fromToken",
1961
- "type": "address"
1962
- },
1963
- {
1964
- "internalType": "address",
1965
- "name": "toToken",
1966
- "type": "address"
1967
- },
1968
- {
1969
- "internalType": "uint256",
1970
- "name": "liquidity",
1971
- "type": "uint256"
1972
- },
1973
- {
1974
- "internalType": "uint256",
1975
- "name": "minimumAmount",
1976
- "type": "uint256"
1977
- },
1978
- {
1979
- "internalType": "address",
1980
- "name": "to",
1981
- "type": "address"
1982
- },
1983
- {
1984
- "internalType": "uint256",
1985
- "name": "deadline",
1986
- "type": "uint256"
1987
- }
1988
- ],
1989
- "name": "withdrawFromOtherAsset",
1990
- "outputs": [
1991
- {
1992
- "internalType": "uint256",
1993
- "name": "toAmount",
1994
- "type": "uint256"
1995
- }
1996
- ],
1997
- "stateMutability": "nonpayable",
1998
- "type": "function"
1999
- },
2000
- {
2001
- "inputs": [],
2002
- "name": "withdrawalHaircutRate",
2003
- "outputs": [
2004
- {
2005
- "internalType": "uint256",
2006
- "name": "",
2007
- "type": "uint256"
2008
- }
2009
- ],
2010
- "stateMutability": "view",
2011
- "type": "function"
2012
- }
2013
- ]