@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,2002 +0,0 @@
1
- [
2
- { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" },
3
- {
4
- "anonymous": false,
5
- "inputs": [
6
- {
7
- "indexed": false,
8
- "internalType": "address",
9
- "name": "account",
10
- "type": "address"
11
- },
12
- {
13
- "indexed": false,
14
- "internalType": "address",
15
- "name": "token",
16
- "type": "address"
17
- },
18
- {
19
- "indexed": false,
20
- "internalType": "uint256",
21
- "name": "tokenAmount",
22
- "type": "uint256"
23
- },
24
- {
25
- "indexed": false,
26
- "internalType": "uint256",
27
- "name": "usdgAmount",
28
- "type": "uint256"
29
- },
30
- {
31
- "indexed": false,
32
- "internalType": "uint256",
33
- "name": "feeBasisPoints",
34
- "type": "uint256"
35
- }
36
- ],
37
- "name": "BuyUSDG",
38
- "type": "event"
39
- },
40
- {
41
- "anonymous": false,
42
- "inputs": [
43
- {
44
- "indexed": false,
45
- "internalType": "bytes32",
46
- "name": "key",
47
- "type": "bytes32"
48
- },
49
- {
50
- "indexed": false,
51
- "internalType": "uint256",
52
- "name": "size",
53
- "type": "uint256"
54
- },
55
- {
56
- "indexed": false,
57
- "internalType": "uint256",
58
- "name": "collateral",
59
- "type": "uint256"
60
- },
61
- {
62
- "indexed": false,
63
- "internalType": "uint256",
64
- "name": "averagePrice",
65
- "type": "uint256"
66
- },
67
- {
68
- "indexed": false,
69
- "internalType": "uint256",
70
- "name": "entryFundingRate",
71
- "type": "uint256"
72
- },
73
- {
74
- "indexed": false,
75
- "internalType": "uint256",
76
- "name": "reserveAmount",
77
- "type": "uint256"
78
- },
79
- {
80
- "indexed": false,
81
- "internalType": "int256",
82
- "name": "realisedPnl",
83
- "type": "int256"
84
- }
85
- ],
86
- "name": "ClosePosition",
87
- "type": "event"
88
- },
89
- {
90
- "anonymous": false,
91
- "inputs": [
92
- {
93
- "indexed": false,
94
- "internalType": "address",
95
- "name": "token",
96
- "type": "address"
97
- },
98
- {
99
- "indexed": false,
100
- "internalType": "uint256",
101
- "name": "feeUsd",
102
- "type": "uint256"
103
- },
104
- {
105
- "indexed": false,
106
- "internalType": "uint256",
107
- "name": "feeTokens",
108
- "type": "uint256"
109
- }
110
- ],
111
- "name": "CollectMarginFees",
112
- "type": "event"
113
- },
114
- {
115
- "anonymous": false,
116
- "inputs": [
117
- {
118
- "indexed": false,
119
- "internalType": "address",
120
- "name": "token",
121
- "type": "address"
122
- },
123
- {
124
- "indexed": false,
125
- "internalType": "uint256",
126
- "name": "feeUsd",
127
- "type": "uint256"
128
- },
129
- {
130
- "indexed": false,
131
- "internalType": "uint256",
132
- "name": "feeTokens",
133
- "type": "uint256"
134
- }
135
- ],
136
- "name": "CollectSwapFees",
137
- "type": "event"
138
- },
139
- {
140
- "anonymous": false,
141
- "inputs": [
142
- {
143
- "indexed": false,
144
- "internalType": "address",
145
- "name": "token",
146
- "type": "address"
147
- },
148
- {
149
- "indexed": false,
150
- "internalType": "uint256",
151
- "name": "amount",
152
- "type": "uint256"
153
- }
154
- ],
155
- "name": "DecreaseGuaranteedUsd",
156
- "type": "event"
157
- },
158
- {
159
- "anonymous": false,
160
- "inputs": [
161
- {
162
- "indexed": false,
163
- "internalType": "address",
164
- "name": "token",
165
- "type": "address"
166
- },
167
- {
168
- "indexed": false,
169
- "internalType": "uint256",
170
- "name": "amount",
171
- "type": "uint256"
172
- }
173
- ],
174
- "name": "DecreasePoolAmount",
175
- "type": "event"
176
- },
177
- {
178
- "anonymous": false,
179
- "inputs": [
180
- {
181
- "indexed": false,
182
- "internalType": "bytes32",
183
- "name": "key",
184
- "type": "bytes32"
185
- },
186
- {
187
- "indexed": false,
188
- "internalType": "address",
189
- "name": "account",
190
- "type": "address"
191
- },
192
- {
193
- "indexed": false,
194
- "internalType": "address",
195
- "name": "collateralToken",
196
- "type": "address"
197
- },
198
- {
199
- "indexed": false,
200
- "internalType": "address",
201
- "name": "indexToken",
202
- "type": "address"
203
- },
204
- {
205
- "indexed": false,
206
- "internalType": "uint256",
207
- "name": "collateralDelta",
208
- "type": "uint256"
209
- },
210
- {
211
- "indexed": false,
212
- "internalType": "uint256",
213
- "name": "sizeDelta",
214
- "type": "uint256"
215
- },
216
- {
217
- "indexed": false,
218
- "internalType": "bool",
219
- "name": "isLong",
220
- "type": "bool"
221
- },
222
- {
223
- "indexed": false,
224
- "internalType": "uint256",
225
- "name": "price",
226
- "type": "uint256"
227
- },
228
- {
229
- "indexed": false,
230
- "internalType": "uint256",
231
- "name": "fee",
232
- "type": "uint256"
233
- }
234
- ],
235
- "name": "DecreasePosition",
236
- "type": "event"
237
- },
238
- {
239
- "anonymous": false,
240
- "inputs": [
241
- {
242
- "indexed": false,
243
- "internalType": "address",
244
- "name": "token",
245
- "type": "address"
246
- },
247
- {
248
- "indexed": false,
249
- "internalType": "uint256",
250
- "name": "amount",
251
- "type": "uint256"
252
- }
253
- ],
254
- "name": "DecreaseReservedAmount",
255
- "type": "event"
256
- },
257
- {
258
- "anonymous": false,
259
- "inputs": [
260
- {
261
- "indexed": false,
262
- "internalType": "address",
263
- "name": "token",
264
- "type": "address"
265
- },
266
- {
267
- "indexed": false,
268
- "internalType": "uint256",
269
- "name": "amount",
270
- "type": "uint256"
271
- }
272
- ],
273
- "name": "DecreaseUsdgAmount",
274
- "type": "event"
275
- },
276
- {
277
- "anonymous": false,
278
- "inputs": [
279
- {
280
- "indexed": false,
281
- "internalType": "address",
282
- "name": "token",
283
- "type": "address"
284
- },
285
- {
286
- "indexed": false,
287
- "internalType": "uint256",
288
- "name": "amount",
289
- "type": "uint256"
290
- }
291
- ],
292
- "name": "DirectPoolDeposit",
293
- "type": "event"
294
- },
295
- {
296
- "anonymous": false,
297
- "inputs": [
298
- {
299
- "indexed": false,
300
- "internalType": "address",
301
- "name": "token",
302
- "type": "address"
303
- },
304
- {
305
- "indexed": false,
306
- "internalType": "uint256",
307
- "name": "amount",
308
- "type": "uint256"
309
- }
310
- ],
311
- "name": "IncreaseGuaranteedUsd",
312
- "type": "event"
313
- },
314
- {
315
- "anonymous": false,
316
- "inputs": [
317
- {
318
- "indexed": false,
319
- "internalType": "address",
320
- "name": "token",
321
- "type": "address"
322
- },
323
- {
324
- "indexed": false,
325
- "internalType": "uint256",
326
- "name": "amount",
327
- "type": "uint256"
328
- }
329
- ],
330
- "name": "IncreasePoolAmount",
331
- "type": "event"
332
- },
333
- {
334
- "anonymous": false,
335
- "inputs": [
336
- {
337
- "indexed": false,
338
- "internalType": "bytes32",
339
- "name": "key",
340
- "type": "bytes32"
341
- },
342
- {
343
- "indexed": false,
344
- "internalType": "address",
345
- "name": "account",
346
- "type": "address"
347
- },
348
- {
349
- "indexed": false,
350
- "internalType": "address",
351
- "name": "collateralToken",
352
- "type": "address"
353
- },
354
- {
355
- "indexed": false,
356
- "internalType": "address",
357
- "name": "indexToken",
358
- "type": "address"
359
- },
360
- {
361
- "indexed": false,
362
- "internalType": "uint256",
363
- "name": "collateralDelta",
364
- "type": "uint256"
365
- },
366
- {
367
- "indexed": false,
368
- "internalType": "uint256",
369
- "name": "sizeDelta",
370
- "type": "uint256"
371
- },
372
- {
373
- "indexed": false,
374
- "internalType": "bool",
375
- "name": "isLong",
376
- "type": "bool"
377
- },
378
- {
379
- "indexed": false,
380
- "internalType": "uint256",
381
- "name": "price",
382
- "type": "uint256"
383
- },
384
- {
385
- "indexed": false,
386
- "internalType": "uint256",
387
- "name": "fee",
388
- "type": "uint256"
389
- }
390
- ],
391
- "name": "IncreasePosition",
392
- "type": "event"
393
- },
394
- {
395
- "anonymous": false,
396
- "inputs": [
397
- {
398
- "indexed": false,
399
- "internalType": "address",
400
- "name": "token",
401
- "type": "address"
402
- },
403
- {
404
- "indexed": false,
405
- "internalType": "uint256",
406
- "name": "amount",
407
- "type": "uint256"
408
- }
409
- ],
410
- "name": "IncreaseReservedAmount",
411
- "type": "event"
412
- },
413
- {
414
- "anonymous": false,
415
- "inputs": [
416
- {
417
- "indexed": false,
418
- "internalType": "address",
419
- "name": "token",
420
- "type": "address"
421
- },
422
- {
423
- "indexed": false,
424
- "internalType": "uint256",
425
- "name": "amount",
426
- "type": "uint256"
427
- }
428
- ],
429
- "name": "IncreaseUsdgAmount",
430
- "type": "event"
431
- },
432
- {
433
- "anonymous": false,
434
- "inputs": [
435
- {
436
- "indexed": false,
437
- "internalType": "bytes32",
438
- "name": "key",
439
- "type": "bytes32"
440
- },
441
- {
442
- "indexed": false,
443
- "internalType": "address",
444
- "name": "account",
445
- "type": "address"
446
- },
447
- {
448
- "indexed": false,
449
- "internalType": "address",
450
- "name": "collateralToken",
451
- "type": "address"
452
- },
453
- {
454
- "indexed": false,
455
- "internalType": "address",
456
- "name": "indexToken",
457
- "type": "address"
458
- },
459
- {
460
- "indexed": false,
461
- "internalType": "bool",
462
- "name": "isLong",
463
- "type": "bool"
464
- },
465
- {
466
- "indexed": false,
467
- "internalType": "uint256",
468
- "name": "size",
469
- "type": "uint256"
470
- },
471
- {
472
- "indexed": false,
473
- "internalType": "uint256",
474
- "name": "collateral",
475
- "type": "uint256"
476
- },
477
- {
478
- "indexed": false,
479
- "internalType": "uint256",
480
- "name": "reserveAmount",
481
- "type": "uint256"
482
- },
483
- {
484
- "indexed": false,
485
- "internalType": "int256",
486
- "name": "realisedPnl",
487
- "type": "int256"
488
- },
489
- {
490
- "indexed": false,
491
- "internalType": "uint256",
492
- "name": "markPrice",
493
- "type": "uint256"
494
- }
495
- ],
496
- "name": "LiquidatePosition",
497
- "type": "event"
498
- },
499
- {
500
- "anonymous": false,
501
- "inputs": [
502
- {
503
- "indexed": false,
504
- "internalType": "address",
505
- "name": "account",
506
- "type": "address"
507
- },
508
- {
509
- "indexed": false,
510
- "internalType": "address",
511
- "name": "token",
512
- "type": "address"
513
- },
514
- {
515
- "indexed": false,
516
- "internalType": "uint256",
517
- "name": "usdgAmount",
518
- "type": "uint256"
519
- },
520
- {
521
- "indexed": false,
522
- "internalType": "uint256",
523
- "name": "tokenAmount",
524
- "type": "uint256"
525
- },
526
- {
527
- "indexed": false,
528
- "internalType": "uint256",
529
- "name": "feeBasisPoints",
530
- "type": "uint256"
531
- }
532
- ],
533
- "name": "SellUSDG",
534
- "type": "event"
535
- },
536
- {
537
- "anonymous": false,
538
- "inputs": [
539
- {
540
- "indexed": false,
541
- "internalType": "address",
542
- "name": "account",
543
- "type": "address"
544
- },
545
- {
546
- "indexed": false,
547
- "internalType": "address",
548
- "name": "tokenIn",
549
- "type": "address"
550
- },
551
- {
552
- "indexed": false,
553
- "internalType": "address",
554
- "name": "tokenOut",
555
- "type": "address"
556
- },
557
- {
558
- "indexed": false,
559
- "internalType": "uint256",
560
- "name": "amountIn",
561
- "type": "uint256"
562
- },
563
- {
564
- "indexed": false,
565
- "internalType": "uint256",
566
- "name": "amountOut",
567
- "type": "uint256"
568
- },
569
- {
570
- "indexed": false,
571
- "internalType": "uint256",
572
- "name": "amountOutAfterFees",
573
- "type": "uint256"
574
- },
575
- {
576
- "indexed": false,
577
- "internalType": "uint256",
578
- "name": "feeBasisPoints",
579
- "type": "uint256"
580
- }
581
- ],
582
- "name": "Swap",
583
- "type": "event"
584
- },
585
- {
586
- "anonymous": false,
587
- "inputs": [
588
- {
589
- "indexed": false,
590
- "internalType": "address",
591
- "name": "token",
592
- "type": "address"
593
- },
594
- {
595
- "indexed": false,
596
- "internalType": "uint256",
597
- "name": "fundingRate",
598
- "type": "uint256"
599
- }
600
- ],
601
- "name": "UpdateFundingRate",
602
- "type": "event"
603
- },
604
- {
605
- "anonymous": false,
606
- "inputs": [
607
- {
608
- "indexed": false,
609
- "internalType": "bytes32",
610
- "name": "key",
611
- "type": "bytes32"
612
- },
613
- {
614
- "indexed": false,
615
- "internalType": "bool",
616
- "name": "hasProfit",
617
- "type": "bool"
618
- },
619
- {
620
- "indexed": false,
621
- "internalType": "uint256",
622
- "name": "delta",
623
- "type": "uint256"
624
- }
625
- ],
626
- "name": "UpdatePnl",
627
- "type": "event"
628
- },
629
- {
630
- "anonymous": false,
631
- "inputs": [
632
- {
633
- "indexed": false,
634
- "internalType": "bytes32",
635
- "name": "key",
636
- "type": "bytes32"
637
- },
638
- {
639
- "indexed": false,
640
- "internalType": "uint256",
641
- "name": "size",
642
- "type": "uint256"
643
- },
644
- {
645
- "indexed": false,
646
- "internalType": "uint256",
647
- "name": "collateral",
648
- "type": "uint256"
649
- },
650
- {
651
- "indexed": false,
652
- "internalType": "uint256",
653
- "name": "averagePrice",
654
- "type": "uint256"
655
- },
656
- {
657
- "indexed": false,
658
- "internalType": "uint256",
659
- "name": "entryFundingRate",
660
- "type": "uint256"
661
- },
662
- {
663
- "indexed": false,
664
- "internalType": "uint256",
665
- "name": "reserveAmount",
666
- "type": "uint256"
667
- },
668
- {
669
- "indexed": false,
670
- "internalType": "int256",
671
- "name": "realisedPnl",
672
- "type": "int256"
673
- },
674
- {
675
- "indexed": false,
676
- "internalType": "uint256",
677
- "name": "markPrice",
678
- "type": "uint256"
679
- }
680
- ],
681
- "name": "UpdatePosition",
682
- "type": "event"
683
- },
684
- {
685
- "anonymous": false,
686
- "inputs": [
687
- {
688
- "indexed": false,
689
- "internalType": "bytes32",
690
- "name": "key",
691
- "type": "bytes32"
692
- },
693
- {
694
- "indexed": false,
695
- "internalType": "uint256",
696
- "name": "size",
697
- "type": "uint256"
698
- },
699
- {
700
- "indexed": false,
701
- "internalType": "uint256",
702
- "name": "collateral",
703
- "type": "uint256"
704
- },
705
- {
706
- "indexed": false,
707
- "internalType": "uint256",
708
- "name": "averagePrice",
709
- "type": "uint256"
710
- },
711
- {
712
- "indexed": false,
713
- "internalType": "uint256",
714
- "name": "entryFundingRate",
715
- "type": "uint256"
716
- },
717
- {
718
- "indexed": false,
719
- "internalType": "uint256",
720
- "name": "reserveAmount",
721
- "type": "uint256"
722
- },
723
- {
724
- "indexed": false,
725
- "internalType": "int256",
726
- "name": "realisedPnl",
727
- "type": "int256"
728
- }
729
- ],
730
- "name": "UpdatePosition",
731
- "type": "event"
732
- },
733
- {
734
- "inputs": [],
735
- "name": "BASIS_POINTS_DIVISOR",
736
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
737
- "stateMutability": "view",
738
- "type": "function"
739
- },
740
- {
741
- "inputs": [],
742
- "name": "FUNDING_RATE_PRECISION",
743
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
744
- "stateMutability": "view",
745
- "type": "function"
746
- },
747
- {
748
- "inputs": [],
749
- "name": "MAX_FEE_BASIS_POINTS",
750
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
751
- "stateMutability": "view",
752
- "type": "function"
753
- },
754
- {
755
- "inputs": [],
756
- "name": "MAX_FUNDING_RATE_FACTOR",
757
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
758
- "stateMutability": "view",
759
- "type": "function"
760
- },
761
- {
762
- "inputs": [],
763
- "name": "MAX_LIQUIDATION_FEE_USD",
764
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
765
- "stateMutability": "view",
766
- "type": "function"
767
- },
768
- {
769
- "inputs": [],
770
- "name": "MIN_FUNDING_RATE_INTERVAL",
771
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
772
- "stateMutability": "view",
773
- "type": "function"
774
- },
775
- {
776
- "inputs": [],
777
- "name": "MIN_LEVERAGE",
778
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
779
- "stateMutability": "view",
780
- "type": "function"
781
- },
782
- {
783
- "inputs": [],
784
- "name": "PRICE_PRECISION",
785
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
786
- "stateMutability": "view",
787
- "type": "function"
788
- },
789
- {
790
- "inputs": [],
791
- "name": "USDG_DECIMALS",
792
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
793
- "stateMutability": "view",
794
- "type": "function"
795
- },
796
- {
797
- "inputs": [
798
- { "internalType": "address", "name": "_router", "type": "address" }
799
- ],
800
- "name": "addRouter",
801
- "outputs": [],
802
- "stateMutability": "nonpayable",
803
- "type": "function"
804
- },
805
- {
806
- "inputs": [
807
- { "internalType": "uint256", "name": "_amount", "type": "uint256" },
808
- { "internalType": "address", "name": "_tokenDiv", "type": "address" },
809
- { "internalType": "address", "name": "_tokenMul", "type": "address" }
810
- ],
811
- "name": "adjustForDecimals",
812
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
813
- "stateMutability": "view",
814
- "type": "function"
815
- },
816
- {
817
- "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
818
- "name": "allWhitelistedTokens",
819
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
820
- "stateMutability": "view",
821
- "type": "function"
822
- },
823
- {
824
- "inputs": [],
825
- "name": "allWhitelistedTokensLength",
826
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
827
- "stateMutability": "view",
828
- "type": "function"
829
- },
830
- {
831
- "inputs": [
832
- { "internalType": "address", "name": "", "type": "address" },
833
- { "internalType": "address", "name": "", "type": "address" }
834
- ],
835
- "name": "approvedRouters",
836
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
837
- "stateMutability": "view",
838
- "type": "function"
839
- },
840
- {
841
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
842
- "name": "bufferAmounts",
843
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
844
- "stateMutability": "view",
845
- "type": "function"
846
- },
847
- {
848
- "inputs": [
849
- { "internalType": "address", "name": "_token", "type": "address" },
850
- { "internalType": "address", "name": "_receiver", "type": "address" }
851
- ],
852
- "name": "buyUSDG",
853
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
854
- "stateMutability": "nonpayable",
855
- "type": "function"
856
- },
857
- {
858
- "inputs": [
859
- { "internalType": "address", "name": "_token", "type": "address" }
860
- ],
861
- "name": "clearTokenConfig",
862
- "outputs": [],
863
- "stateMutability": "nonpayable",
864
- "type": "function"
865
- },
866
- {
867
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
868
- "name": "cumulativeFundingRates",
869
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
870
- "stateMutability": "view",
871
- "type": "function"
872
- },
873
- {
874
- "inputs": [
875
- { "internalType": "address", "name": "_account", "type": "address" },
876
- {
877
- "internalType": "address",
878
- "name": "_collateralToken",
879
- "type": "address"
880
- },
881
- { "internalType": "address", "name": "_indexToken", "type": "address" },
882
- {
883
- "internalType": "uint256",
884
- "name": "_collateralDelta",
885
- "type": "uint256"
886
- },
887
- { "internalType": "uint256", "name": "_sizeDelta", "type": "uint256" },
888
- { "internalType": "bool", "name": "_isLong", "type": "bool" },
889
- { "internalType": "address", "name": "_receiver", "type": "address" }
890
- ],
891
- "name": "decreasePosition",
892
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
893
- "stateMutability": "nonpayable",
894
- "type": "function"
895
- },
896
- {
897
- "inputs": [
898
- { "internalType": "address", "name": "_token", "type": "address" }
899
- ],
900
- "name": "directPoolDeposit",
901
- "outputs": [],
902
- "stateMutability": "nonpayable",
903
- "type": "function"
904
- },
905
- {
906
- "inputs": [],
907
- "name": "errorController",
908
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
909
- "stateMutability": "view",
910
- "type": "function"
911
- },
912
- {
913
- "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
914
- "name": "errors",
915
- "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
916
- "stateMutability": "view",
917
- "type": "function"
918
- },
919
- {
920
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
921
- "name": "feeReserves",
922
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
923
- "stateMutability": "view",
924
- "type": "function"
925
- },
926
- {
927
- "inputs": [],
928
- "name": "fundingInterval",
929
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
930
- "stateMutability": "view",
931
- "type": "function"
932
- },
933
- {
934
- "inputs": [],
935
- "name": "fundingRateFactor",
936
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
937
- "stateMutability": "view",
938
- "type": "function"
939
- },
940
- {
941
- "inputs": [
942
- { "internalType": "address", "name": "_indexToken", "type": "address" },
943
- { "internalType": "uint256", "name": "_size", "type": "uint256" },
944
- { "internalType": "uint256", "name": "_averagePrice", "type": "uint256" },
945
- { "internalType": "bool", "name": "_isLong", "type": "bool" },
946
- {
947
- "internalType": "uint256",
948
- "name": "_lastIncreasedTime",
949
- "type": "uint256"
950
- }
951
- ],
952
- "name": "getDelta",
953
- "outputs": [
954
- { "internalType": "bool", "name": "", "type": "bool" },
955
- { "internalType": "uint256", "name": "", "type": "uint256" }
956
- ],
957
- "stateMutability": "view",
958
- "type": "function"
959
- },
960
- {
961
- "inputs": [
962
- {
963
- "internalType": "address",
964
- "name": "_collateralToken",
965
- "type": "address"
966
- },
967
- { "internalType": "address", "name": "_indexToken", "type": "address" },
968
- { "internalType": "bool", "name": "_isLong", "type": "bool" }
969
- ],
970
- "name": "getEntryFundingRate",
971
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
972
- "stateMutability": "view",
973
- "type": "function"
974
- },
975
- {
976
- "inputs": [
977
- { "internalType": "address", "name": "_token", "type": "address" },
978
- { "internalType": "uint256", "name": "_usdgDelta", "type": "uint256" },
979
- {
980
- "internalType": "uint256",
981
- "name": "_feeBasisPoints",
982
- "type": "uint256"
983
- },
984
- {
985
- "internalType": "uint256",
986
- "name": "_taxBasisPoints",
987
- "type": "uint256"
988
- },
989
- { "internalType": "bool", "name": "_increment", "type": "bool" }
990
- ],
991
- "name": "getFeeBasisPoints",
992
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
993
- "stateMutability": "view",
994
- "type": "function"
995
- },
996
- {
997
- "inputs": [
998
- { "internalType": "address", "name": "_account", "type": "address" },
999
- {
1000
- "internalType": "address",
1001
- "name": "_collateralToken",
1002
- "type": "address"
1003
- },
1004
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1005
- { "internalType": "bool", "name": "_isLong", "type": "bool" },
1006
- { "internalType": "uint256", "name": "_size", "type": "uint256" },
1007
- {
1008
- "internalType": "uint256",
1009
- "name": "_entryFundingRate",
1010
- "type": "uint256"
1011
- }
1012
- ],
1013
- "name": "getFundingFee",
1014
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1015
- "stateMutability": "view",
1016
- "type": "function"
1017
- },
1018
- {
1019
- "inputs": [
1020
- { "internalType": "address", "name": "_token", "type": "address" }
1021
- ],
1022
- "name": "getGlobalShortDelta",
1023
- "outputs": [
1024
- { "internalType": "bool", "name": "", "type": "bool" },
1025
- { "internalType": "uint256", "name": "", "type": "uint256" }
1026
- ],
1027
- "stateMutability": "view",
1028
- "type": "function"
1029
- },
1030
- {
1031
- "inputs": [
1032
- { "internalType": "address", "name": "_token", "type": "address" }
1033
- ],
1034
- "name": "getMaxPrice",
1035
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1036
- "stateMutability": "view",
1037
- "type": "function"
1038
- },
1039
- {
1040
- "inputs": [
1041
- { "internalType": "address", "name": "_token", "type": "address" }
1042
- ],
1043
- "name": "getMinPrice",
1044
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1045
- "stateMutability": "view",
1046
- "type": "function"
1047
- },
1048
- {
1049
- "inputs": [
1050
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1051
- { "internalType": "uint256", "name": "_size", "type": "uint256" },
1052
- { "internalType": "uint256", "name": "_averagePrice", "type": "uint256" },
1053
- { "internalType": "bool", "name": "_isLong", "type": "bool" },
1054
- { "internalType": "uint256", "name": "_nextPrice", "type": "uint256" },
1055
- { "internalType": "uint256", "name": "_sizeDelta", "type": "uint256" },
1056
- {
1057
- "internalType": "uint256",
1058
- "name": "_lastIncreasedTime",
1059
- "type": "uint256"
1060
- }
1061
- ],
1062
- "name": "getNextAveragePrice",
1063
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1064
- "stateMutability": "view",
1065
- "type": "function"
1066
- },
1067
- {
1068
- "inputs": [
1069
- { "internalType": "address", "name": "_token", "type": "address" }
1070
- ],
1071
- "name": "getNextFundingRate",
1072
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1073
- "stateMutability": "view",
1074
- "type": "function"
1075
- },
1076
- {
1077
- "inputs": [
1078
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1079
- { "internalType": "uint256", "name": "_nextPrice", "type": "uint256" },
1080
- { "internalType": "uint256", "name": "_sizeDelta", "type": "uint256" }
1081
- ],
1082
- "name": "getNextGlobalShortAveragePrice",
1083
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1084
- "stateMutability": "view",
1085
- "type": "function"
1086
- },
1087
- {
1088
- "inputs": [
1089
- { "internalType": "address", "name": "_account", "type": "address" },
1090
- {
1091
- "internalType": "address",
1092
- "name": "_collateralToken",
1093
- "type": "address"
1094
- },
1095
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1096
- { "internalType": "bool", "name": "_isLong", "type": "bool" }
1097
- ],
1098
- "name": "getPosition",
1099
- "outputs": [
1100
- { "internalType": "uint256", "name": "", "type": "uint256" },
1101
- { "internalType": "uint256", "name": "", "type": "uint256" },
1102
- { "internalType": "uint256", "name": "", "type": "uint256" },
1103
- { "internalType": "uint256", "name": "", "type": "uint256" },
1104
- { "internalType": "uint256", "name": "", "type": "uint256" },
1105
- { "internalType": "uint256", "name": "", "type": "uint256" },
1106
- { "internalType": "bool", "name": "", "type": "bool" },
1107
- { "internalType": "uint256", "name": "", "type": "uint256" }
1108
- ],
1109
- "stateMutability": "view",
1110
- "type": "function"
1111
- },
1112
- {
1113
- "inputs": [
1114
- { "internalType": "address", "name": "_account", "type": "address" },
1115
- {
1116
- "internalType": "address",
1117
- "name": "_collateralToken",
1118
- "type": "address"
1119
- },
1120
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1121
- { "internalType": "bool", "name": "_isLong", "type": "bool" }
1122
- ],
1123
- "name": "getPositionDelta",
1124
- "outputs": [
1125
- { "internalType": "bool", "name": "", "type": "bool" },
1126
- { "internalType": "uint256", "name": "", "type": "uint256" }
1127
- ],
1128
- "stateMutability": "view",
1129
- "type": "function"
1130
- },
1131
- {
1132
- "inputs": [
1133
- { "internalType": "address", "name": "_account", "type": "address" },
1134
- {
1135
- "internalType": "address",
1136
- "name": "_collateralToken",
1137
- "type": "address"
1138
- },
1139
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1140
- { "internalType": "bool", "name": "_isLong", "type": "bool" },
1141
- { "internalType": "uint256", "name": "_sizeDelta", "type": "uint256" }
1142
- ],
1143
- "name": "getPositionFee",
1144
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1145
- "stateMutability": "view",
1146
- "type": "function"
1147
- },
1148
- {
1149
- "inputs": [
1150
- { "internalType": "address", "name": "_account", "type": "address" },
1151
- {
1152
- "internalType": "address",
1153
- "name": "_collateralToken",
1154
- "type": "address"
1155
- },
1156
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1157
- { "internalType": "bool", "name": "_isLong", "type": "bool" }
1158
- ],
1159
- "name": "getPositionKey",
1160
- "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
1161
- "stateMutability": "pure",
1162
- "type": "function"
1163
- },
1164
- {
1165
- "inputs": [
1166
- { "internalType": "address", "name": "_account", "type": "address" },
1167
- {
1168
- "internalType": "address",
1169
- "name": "_collateralToken",
1170
- "type": "address"
1171
- },
1172
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1173
- { "internalType": "bool", "name": "_isLong", "type": "bool" }
1174
- ],
1175
- "name": "getPositionLeverage",
1176
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1177
- "stateMutability": "view",
1178
- "type": "function"
1179
- },
1180
- {
1181
- "inputs": [
1182
- { "internalType": "address", "name": "_token", "type": "address" },
1183
- { "internalType": "uint256", "name": "_usdgAmount", "type": "uint256" }
1184
- ],
1185
- "name": "getRedemptionAmount",
1186
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1187
- "stateMutability": "view",
1188
- "type": "function"
1189
- },
1190
- {
1191
- "inputs": [
1192
- { "internalType": "address", "name": "_token", "type": "address" }
1193
- ],
1194
- "name": "getRedemptionCollateral",
1195
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1196
- "stateMutability": "view",
1197
- "type": "function"
1198
- },
1199
- {
1200
- "inputs": [
1201
- { "internalType": "address", "name": "_token", "type": "address" }
1202
- ],
1203
- "name": "getRedemptionCollateralUsd",
1204
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1205
- "stateMutability": "view",
1206
- "type": "function"
1207
- },
1208
- {
1209
- "inputs": [
1210
- { "internalType": "address", "name": "_token", "type": "address" }
1211
- ],
1212
- "name": "getTargetUsdgAmount",
1213
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1214
- "stateMutability": "view",
1215
- "type": "function"
1216
- },
1217
- {
1218
- "inputs": [
1219
- { "internalType": "address", "name": "_token", "type": "address" }
1220
- ],
1221
- "name": "getUtilisation",
1222
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1223
- "stateMutability": "view",
1224
- "type": "function"
1225
- },
1226
- {
1227
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1228
- "name": "globalShortAveragePrices",
1229
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1230
- "stateMutability": "view",
1231
- "type": "function"
1232
- },
1233
- {
1234
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1235
- "name": "globalShortSizes",
1236
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1237
- "stateMutability": "view",
1238
- "type": "function"
1239
- },
1240
- {
1241
- "inputs": [],
1242
- "name": "gov",
1243
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
1244
- "stateMutability": "view",
1245
- "type": "function"
1246
- },
1247
- {
1248
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1249
- "name": "guaranteedUsd",
1250
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1251
- "stateMutability": "view",
1252
- "type": "function"
1253
- },
1254
- {
1255
- "inputs": [],
1256
- "name": "hasDynamicFees",
1257
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1258
- "stateMutability": "view",
1259
- "type": "function"
1260
- },
1261
- {
1262
- "inputs": [],
1263
- "name": "inManagerMode",
1264
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1265
- "stateMutability": "view",
1266
- "type": "function"
1267
- },
1268
- {
1269
- "inputs": [],
1270
- "name": "inPrivateLiquidationMode",
1271
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1272
- "stateMutability": "view",
1273
- "type": "function"
1274
- },
1275
- {
1276
- "inputs": [],
1277
- "name": "includeAmmPrice",
1278
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1279
- "stateMutability": "view",
1280
- "type": "function"
1281
- },
1282
- {
1283
- "inputs": [
1284
- { "internalType": "address", "name": "_account", "type": "address" },
1285
- {
1286
- "internalType": "address",
1287
- "name": "_collateralToken",
1288
- "type": "address"
1289
- },
1290
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1291
- { "internalType": "uint256", "name": "_sizeDelta", "type": "uint256" },
1292
- { "internalType": "bool", "name": "_isLong", "type": "bool" }
1293
- ],
1294
- "name": "increasePosition",
1295
- "outputs": [],
1296
- "stateMutability": "nonpayable",
1297
- "type": "function"
1298
- },
1299
- {
1300
- "inputs": [
1301
- { "internalType": "address", "name": "_router", "type": "address" },
1302
- { "internalType": "address", "name": "_usdg", "type": "address" },
1303
- { "internalType": "address", "name": "_priceFeed", "type": "address" },
1304
- {
1305
- "internalType": "uint256",
1306
- "name": "_liquidationFeeUsd",
1307
- "type": "uint256"
1308
- },
1309
- {
1310
- "internalType": "uint256",
1311
- "name": "_fundingRateFactor",
1312
- "type": "uint256"
1313
- },
1314
- {
1315
- "internalType": "uint256",
1316
- "name": "_stableFundingRateFactor",
1317
- "type": "uint256"
1318
- }
1319
- ],
1320
- "name": "initialize",
1321
- "outputs": [],
1322
- "stateMutability": "nonpayable",
1323
- "type": "function"
1324
- },
1325
- {
1326
- "inputs": [],
1327
- "name": "isInitialized",
1328
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1329
- "stateMutability": "view",
1330
- "type": "function"
1331
- },
1332
- {
1333
- "inputs": [],
1334
- "name": "isLeverageEnabled",
1335
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1336
- "stateMutability": "view",
1337
- "type": "function"
1338
- },
1339
- {
1340
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1341
- "name": "isLiquidator",
1342
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1343
- "stateMutability": "view",
1344
- "type": "function"
1345
- },
1346
- {
1347
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1348
- "name": "isManager",
1349
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1350
- "stateMutability": "view",
1351
- "type": "function"
1352
- },
1353
- {
1354
- "inputs": [],
1355
- "name": "isSwapEnabled",
1356
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1357
- "stateMutability": "view",
1358
- "type": "function"
1359
- },
1360
- {
1361
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1362
- "name": "lastFundingTimes",
1363
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1364
- "stateMutability": "view",
1365
- "type": "function"
1366
- },
1367
- {
1368
- "inputs": [
1369
- { "internalType": "address", "name": "_account", "type": "address" },
1370
- {
1371
- "internalType": "address",
1372
- "name": "_collateralToken",
1373
- "type": "address"
1374
- },
1375
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1376
- { "internalType": "bool", "name": "_isLong", "type": "bool" },
1377
- { "internalType": "address", "name": "_feeReceiver", "type": "address" }
1378
- ],
1379
- "name": "liquidatePosition",
1380
- "outputs": [],
1381
- "stateMutability": "nonpayable",
1382
- "type": "function"
1383
- },
1384
- {
1385
- "inputs": [],
1386
- "name": "liquidationFeeUsd",
1387
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1388
- "stateMutability": "view",
1389
- "type": "function"
1390
- },
1391
- {
1392
- "inputs": [],
1393
- "name": "marginFeeBasisPoints",
1394
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1395
- "stateMutability": "view",
1396
- "type": "function"
1397
- },
1398
- {
1399
- "inputs": [],
1400
- "name": "maxGasPrice",
1401
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1402
- "stateMutability": "view",
1403
- "type": "function"
1404
- },
1405
- {
1406
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1407
- "name": "maxGlobalShortSizes",
1408
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1409
- "stateMutability": "view",
1410
- "type": "function"
1411
- },
1412
- {
1413
- "inputs": [],
1414
- "name": "maxLeverage",
1415
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1416
- "stateMutability": "view",
1417
- "type": "function"
1418
- },
1419
- {
1420
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1421
- "name": "maxUsdgAmounts",
1422
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1423
- "stateMutability": "view",
1424
- "type": "function"
1425
- },
1426
- {
1427
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1428
- "name": "minProfitBasisPoints",
1429
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1430
- "stateMutability": "view",
1431
- "type": "function"
1432
- },
1433
- {
1434
- "inputs": [],
1435
- "name": "minProfitTime",
1436
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1437
- "stateMutability": "view",
1438
- "type": "function"
1439
- },
1440
- {
1441
- "inputs": [],
1442
- "name": "mintBurnFeeBasisPoints",
1443
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1444
- "stateMutability": "view",
1445
- "type": "function"
1446
- },
1447
- {
1448
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1449
- "name": "poolAmounts",
1450
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1451
- "stateMutability": "view",
1452
- "type": "function"
1453
- },
1454
- {
1455
- "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
1456
- "name": "positions",
1457
- "outputs": [
1458
- { "internalType": "uint256", "name": "size", "type": "uint256" },
1459
- { "internalType": "uint256", "name": "collateral", "type": "uint256" },
1460
- { "internalType": "uint256", "name": "averagePrice", "type": "uint256" },
1461
- {
1462
- "internalType": "uint256",
1463
- "name": "entryFundingRate",
1464
- "type": "uint256"
1465
- },
1466
- { "internalType": "uint256", "name": "reserveAmount", "type": "uint256" },
1467
- { "internalType": "int256", "name": "realisedPnl", "type": "int256" },
1468
- {
1469
- "internalType": "uint256",
1470
- "name": "lastIncreasedTime",
1471
- "type": "uint256"
1472
- }
1473
- ],
1474
- "stateMutability": "view",
1475
- "type": "function"
1476
- },
1477
- {
1478
- "inputs": [],
1479
- "name": "priceFeed",
1480
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
1481
- "stateMutability": "view",
1482
- "type": "function"
1483
- },
1484
- {
1485
- "inputs": [
1486
- { "internalType": "address", "name": "_router", "type": "address" }
1487
- ],
1488
- "name": "removeRouter",
1489
- "outputs": [],
1490
- "stateMutability": "nonpayable",
1491
- "type": "function"
1492
- },
1493
- {
1494
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1495
- "name": "reservedAmounts",
1496
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1497
- "stateMutability": "view",
1498
- "type": "function"
1499
- },
1500
- {
1501
- "inputs": [],
1502
- "name": "router",
1503
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
1504
- "stateMutability": "view",
1505
- "type": "function"
1506
- },
1507
- {
1508
- "inputs": [
1509
- { "internalType": "address", "name": "_token", "type": "address" },
1510
- { "internalType": "address", "name": "_receiver", "type": "address" }
1511
- ],
1512
- "name": "sellUSDG",
1513
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1514
- "stateMutability": "nonpayable",
1515
- "type": "function"
1516
- },
1517
- {
1518
- "inputs": [
1519
- { "internalType": "address", "name": "_token", "type": "address" },
1520
- { "internalType": "uint256", "name": "_amount", "type": "uint256" }
1521
- ],
1522
- "name": "setBufferAmount",
1523
- "outputs": [],
1524
- "stateMutability": "nonpayable",
1525
- "type": "function"
1526
- },
1527
- {
1528
- "inputs": [
1529
- { "internalType": "uint256", "name": "_errorCode", "type": "uint256" },
1530
- { "internalType": "string", "name": "_error", "type": "string" }
1531
- ],
1532
- "name": "setError",
1533
- "outputs": [],
1534
- "stateMutability": "nonpayable",
1535
- "type": "function"
1536
- },
1537
- {
1538
- "inputs": [
1539
- {
1540
- "internalType": "address",
1541
- "name": "_errorController",
1542
- "type": "address"
1543
- }
1544
- ],
1545
- "name": "setErrorController",
1546
- "outputs": [],
1547
- "stateMutability": "nonpayable",
1548
- "type": "function"
1549
- },
1550
- {
1551
- "inputs": [
1552
- {
1553
- "internalType": "uint256",
1554
- "name": "_taxBasisPoints",
1555
- "type": "uint256"
1556
- },
1557
- {
1558
- "internalType": "uint256",
1559
- "name": "_stableTaxBasisPoints",
1560
- "type": "uint256"
1561
- },
1562
- {
1563
- "internalType": "uint256",
1564
- "name": "_mintBurnFeeBasisPoints",
1565
- "type": "uint256"
1566
- },
1567
- {
1568
- "internalType": "uint256",
1569
- "name": "_swapFeeBasisPoints",
1570
- "type": "uint256"
1571
- },
1572
- {
1573
- "internalType": "uint256",
1574
- "name": "_stableSwapFeeBasisPoints",
1575
- "type": "uint256"
1576
- },
1577
- {
1578
- "internalType": "uint256",
1579
- "name": "_marginFeeBasisPoints",
1580
- "type": "uint256"
1581
- },
1582
- {
1583
- "internalType": "uint256",
1584
- "name": "_liquidationFeeUsd",
1585
- "type": "uint256"
1586
- },
1587
- {
1588
- "internalType": "uint256",
1589
- "name": "_minProfitTime",
1590
- "type": "uint256"
1591
- },
1592
- { "internalType": "bool", "name": "_hasDynamicFees", "type": "bool" }
1593
- ],
1594
- "name": "setFees",
1595
- "outputs": [],
1596
- "stateMutability": "nonpayable",
1597
- "type": "function"
1598
- },
1599
- {
1600
- "inputs": [
1601
- {
1602
- "internalType": "uint256",
1603
- "name": "_fundingInterval",
1604
- "type": "uint256"
1605
- },
1606
- {
1607
- "internalType": "uint256",
1608
- "name": "_fundingRateFactor",
1609
- "type": "uint256"
1610
- },
1611
- {
1612
- "internalType": "uint256",
1613
- "name": "_stableFundingRateFactor",
1614
- "type": "uint256"
1615
- }
1616
- ],
1617
- "name": "setFundingRate",
1618
- "outputs": [],
1619
- "stateMutability": "nonpayable",
1620
- "type": "function"
1621
- },
1622
- {
1623
- "inputs": [
1624
- { "internalType": "address", "name": "_gov", "type": "address" }
1625
- ],
1626
- "name": "setGov",
1627
- "outputs": [],
1628
- "stateMutability": "nonpayable",
1629
- "type": "function"
1630
- },
1631
- {
1632
- "inputs": [
1633
- { "internalType": "bool", "name": "_inManagerMode", "type": "bool" }
1634
- ],
1635
- "name": "setInManagerMode",
1636
- "outputs": [],
1637
- "stateMutability": "nonpayable",
1638
- "type": "function"
1639
- },
1640
- {
1641
- "inputs": [
1642
- {
1643
- "internalType": "bool",
1644
- "name": "_inPrivateLiquidationMode",
1645
- "type": "bool"
1646
- }
1647
- ],
1648
- "name": "setInPrivateLiquidationMode",
1649
- "outputs": [],
1650
- "stateMutability": "nonpayable",
1651
- "type": "function"
1652
- },
1653
- {
1654
- "inputs": [
1655
- { "internalType": "bool", "name": "_isLeverageEnabled", "type": "bool" }
1656
- ],
1657
- "name": "setIsLeverageEnabled",
1658
- "outputs": [],
1659
- "stateMutability": "nonpayable",
1660
- "type": "function"
1661
- },
1662
- {
1663
- "inputs": [
1664
- { "internalType": "bool", "name": "_isSwapEnabled", "type": "bool" }
1665
- ],
1666
- "name": "setIsSwapEnabled",
1667
- "outputs": [],
1668
- "stateMutability": "nonpayable",
1669
- "type": "function"
1670
- },
1671
- {
1672
- "inputs": [
1673
- { "internalType": "address", "name": "_liquidator", "type": "address" },
1674
- { "internalType": "bool", "name": "_isActive", "type": "bool" }
1675
- ],
1676
- "name": "setLiquidator",
1677
- "outputs": [],
1678
- "stateMutability": "nonpayable",
1679
- "type": "function"
1680
- },
1681
- {
1682
- "inputs": [
1683
- { "internalType": "address", "name": "_manager", "type": "address" },
1684
- { "internalType": "bool", "name": "_isManager", "type": "bool" }
1685
- ],
1686
- "name": "setManager",
1687
- "outputs": [],
1688
- "stateMutability": "nonpayable",
1689
- "type": "function"
1690
- },
1691
- {
1692
- "inputs": [
1693
- { "internalType": "uint256", "name": "_maxGasPrice", "type": "uint256" }
1694
- ],
1695
- "name": "setMaxGasPrice",
1696
- "outputs": [],
1697
- "stateMutability": "nonpayable",
1698
- "type": "function"
1699
- },
1700
- {
1701
- "inputs": [
1702
- { "internalType": "address", "name": "_token", "type": "address" },
1703
- { "internalType": "uint256", "name": "_amount", "type": "uint256" }
1704
- ],
1705
- "name": "setMaxGlobalShortSize",
1706
- "outputs": [],
1707
- "stateMutability": "nonpayable",
1708
- "type": "function"
1709
- },
1710
- {
1711
- "inputs": [
1712
- { "internalType": "uint256", "name": "_maxLeverage", "type": "uint256" }
1713
- ],
1714
- "name": "setMaxLeverage",
1715
- "outputs": [],
1716
- "stateMutability": "nonpayable",
1717
- "type": "function"
1718
- },
1719
- {
1720
- "inputs": [
1721
- { "internalType": "address", "name": "_priceFeed", "type": "address" }
1722
- ],
1723
- "name": "setPriceFeed",
1724
- "outputs": [],
1725
- "stateMutability": "nonpayable",
1726
- "type": "function"
1727
- },
1728
- {
1729
- "inputs": [
1730
- { "internalType": "address", "name": "_token", "type": "address" },
1731
- {
1732
- "internalType": "uint256",
1733
- "name": "_tokenDecimals",
1734
- "type": "uint256"
1735
- },
1736
- { "internalType": "uint256", "name": "_tokenWeight", "type": "uint256" },
1737
- { "internalType": "uint256", "name": "_minProfitBps", "type": "uint256" },
1738
- {
1739
- "internalType": "uint256",
1740
- "name": "_maxUsdgAmount",
1741
- "type": "uint256"
1742
- },
1743
- { "internalType": "bool", "name": "_isStable", "type": "bool" },
1744
- { "internalType": "bool", "name": "_isShortable", "type": "bool" }
1745
- ],
1746
- "name": "setTokenConfig",
1747
- "outputs": [],
1748
- "stateMutability": "nonpayable",
1749
- "type": "function"
1750
- },
1751
- {
1752
- "inputs": [
1753
- { "internalType": "address", "name": "_token", "type": "address" },
1754
- { "internalType": "uint256", "name": "_amount", "type": "uint256" }
1755
- ],
1756
- "name": "setUsdgAmount",
1757
- "outputs": [],
1758
- "stateMutability": "nonpayable",
1759
- "type": "function"
1760
- },
1761
- {
1762
- "inputs": [
1763
- {
1764
- "internalType": "contract IVaultUtils",
1765
- "name": "_vaultUtils",
1766
- "type": "address"
1767
- }
1768
- ],
1769
- "name": "setVaultUtils",
1770
- "outputs": [],
1771
- "stateMutability": "nonpayable",
1772
- "type": "function"
1773
- },
1774
- {
1775
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1776
- "name": "shortableTokens",
1777
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1778
- "stateMutability": "view",
1779
- "type": "function"
1780
- },
1781
- {
1782
- "inputs": [],
1783
- "name": "stableFundingRateFactor",
1784
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1785
- "stateMutability": "view",
1786
- "type": "function"
1787
- },
1788
- {
1789
- "inputs": [],
1790
- "name": "stableSwapFeeBasisPoints",
1791
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1792
- "stateMutability": "view",
1793
- "type": "function"
1794
- },
1795
- {
1796
- "inputs": [],
1797
- "name": "stableTaxBasisPoints",
1798
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1799
- "stateMutability": "view",
1800
- "type": "function"
1801
- },
1802
- {
1803
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1804
- "name": "stableTokens",
1805
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1806
- "stateMutability": "view",
1807
- "type": "function"
1808
- },
1809
- {
1810
- "inputs": [
1811
- { "internalType": "address", "name": "_tokenIn", "type": "address" },
1812
- { "internalType": "address", "name": "_tokenOut", "type": "address" },
1813
- { "internalType": "address", "name": "_receiver", "type": "address" }
1814
- ],
1815
- "name": "swap",
1816
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1817
- "stateMutability": "nonpayable",
1818
- "type": "function"
1819
- },
1820
- {
1821
- "inputs": [],
1822
- "name": "swapFeeBasisPoints",
1823
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1824
- "stateMutability": "view",
1825
- "type": "function"
1826
- },
1827
- {
1828
- "inputs": [],
1829
- "name": "taxBasisPoints",
1830
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1831
- "stateMutability": "view",
1832
- "type": "function"
1833
- },
1834
- {
1835
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1836
- "name": "tokenBalances",
1837
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1838
- "stateMutability": "view",
1839
- "type": "function"
1840
- },
1841
- {
1842
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1843
- "name": "tokenDecimals",
1844
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1845
- "stateMutability": "view",
1846
- "type": "function"
1847
- },
1848
- {
1849
- "inputs": [
1850
- { "internalType": "address", "name": "_token", "type": "address" },
1851
- { "internalType": "uint256", "name": "_tokenAmount", "type": "uint256" }
1852
- ],
1853
- "name": "tokenToUsdMin",
1854
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1855
- "stateMutability": "view",
1856
- "type": "function"
1857
- },
1858
- {
1859
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1860
- "name": "tokenWeights",
1861
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1862
- "stateMutability": "view",
1863
- "type": "function"
1864
- },
1865
- {
1866
- "inputs": [],
1867
- "name": "totalTokenWeights",
1868
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1869
- "stateMutability": "view",
1870
- "type": "function"
1871
- },
1872
- {
1873
- "inputs": [
1874
- {
1875
- "internalType": "address",
1876
- "name": "_collateralToken",
1877
- "type": "address"
1878
- },
1879
- { "internalType": "address", "name": "_indexToken", "type": "address" }
1880
- ],
1881
- "name": "updateCumulativeFundingRate",
1882
- "outputs": [],
1883
- "stateMutability": "nonpayable",
1884
- "type": "function"
1885
- },
1886
- {
1887
- "inputs": [
1888
- { "internalType": "address", "name": "_newVault", "type": "address" },
1889
- { "internalType": "address", "name": "_token", "type": "address" },
1890
- { "internalType": "uint256", "name": "_amount", "type": "uint256" }
1891
- ],
1892
- "name": "upgradeVault",
1893
- "outputs": [],
1894
- "stateMutability": "nonpayable",
1895
- "type": "function"
1896
- },
1897
- {
1898
- "inputs": [
1899
- { "internalType": "address", "name": "_token", "type": "address" },
1900
- { "internalType": "uint256", "name": "_usdAmount", "type": "uint256" },
1901
- { "internalType": "uint256", "name": "_price", "type": "uint256" }
1902
- ],
1903
- "name": "usdToToken",
1904
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1905
- "stateMutability": "view",
1906
- "type": "function"
1907
- },
1908
- {
1909
- "inputs": [
1910
- { "internalType": "address", "name": "_token", "type": "address" },
1911
- { "internalType": "uint256", "name": "_usdAmount", "type": "uint256" }
1912
- ],
1913
- "name": "usdToTokenMax",
1914
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1915
- "stateMutability": "view",
1916
- "type": "function"
1917
- },
1918
- {
1919
- "inputs": [
1920
- { "internalType": "address", "name": "_token", "type": "address" },
1921
- { "internalType": "uint256", "name": "_usdAmount", "type": "uint256" }
1922
- ],
1923
- "name": "usdToTokenMin",
1924
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1925
- "stateMutability": "view",
1926
- "type": "function"
1927
- },
1928
- {
1929
- "inputs": [],
1930
- "name": "usdg",
1931
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
1932
- "stateMutability": "view",
1933
- "type": "function"
1934
- },
1935
- {
1936
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1937
- "name": "usdgAmounts",
1938
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1939
- "stateMutability": "view",
1940
- "type": "function"
1941
- },
1942
- {
1943
- "inputs": [],
1944
- "name": "useSwapPricing",
1945
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1946
- "stateMutability": "view",
1947
- "type": "function"
1948
- },
1949
- {
1950
- "inputs": [
1951
- { "internalType": "address", "name": "_account", "type": "address" },
1952
- {
1953
- "internalType": "address",
1954
- "name": "_collateralToken",
1955
- "type": "address"
1956
- },
1957
- { "internalType": "address", "name": "_indexToken", "type": "address" },
1958
- { "internalType": "bool", "name": "_isLong", "type": "bool" },
1959
- { "internalType": "bool", "name": "_raise", "type": "bool" }
1960
- ],
1961
- "name": "validateLiquidation",
1962
- "outputs": [
1963
- { "internalType": "uint256", "name": "", "type": "uint256" },
1964
- { "internalType": "uint256", "name": "", "type": "uint256" }
1965
- ],
1966
- "stateMutability": "view",
1967
- "type": "function"
1968
- },
1969
- {
1970
- "inputs": [],
1971
- "name": "vaultUtils",
1972
- "outputs": [
1973
- { "internalType": "contract IVaultUtils", "name": "", "type": "address" }
1974
- ],
1975
- "stateMutability": "view",
1976
- "type": "function"
1977
- },
1978
- {
1979
- "inputs": [],
1980
- "name": "whitelistedTokenCount",
1981
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1982
- "stateMutability": "view",
1983
- "type": "function"
1984
- },
1985
- {
1986
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
1987
- "name": "whitelistedTokens",
1988
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
1989
- "stateMutability": "view",
1990
- "type": "function"
1991
- },
1992
- {
1993
- "inputs": [
1994
- { "internalType": "address", "name": "_token", "type": "address" },
1995
- { "internalType": "address", "name": "_receiver", "type": "address" }
1996
- ],
1997
- "name": "withdrawFees",
1998
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1999
- "stateMutability": "nonpayable",
2000
- "type": "function"
2001
- }
2002
- ]