@paraswap/dex-lib 4.0.16 → 4.0.17

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 (271) hide show
  1. package/build/abi/Aave_GSM.json +751 -0
  2. package/build/abi/Balancer.json +257 -0
  3. package/build/abi/BalancerV2.json +1179 -0
  4. package/build/abi/RamsesV2Pool.abi.json +1554 -0
  5. package/build/abi/RamsesV2Quoter.abi.json +274 -0
  6. package/build/abi/{aavev3statav2/Token.json → USDM.json} +271 -461
  7. package/build/abi/UniswapV2Router.json +397 -0
  8. package/build/abi/{wombat/pool.json → angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json} +594 -637
  9. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +509 -0
  10. package/build/abi/curve-v1/CurveBUSDv2.abi.json +1356 -0
  11. package/build/abi/curve-v1/CurveTokenV1.json +305 -0
  12. package/build/abi/curve-v1/CurveTokenV2.json +318 -0
  13. package/build/abi/curve-v1/CurveV1StableNg.json +1452 -0
  14. package/build/abi/curve-v1/CurveV2Swap.json +700 -0
  15. package/build/abi/curve-v1/FactoryCryptoRegistry.json +316 -0
  16. package/build/abi/curve-v1/FactoryRegistry.json +508 -0
  17. package/build/abi/curve-v1/StableSwapAave.json +1152 -0
  18. package/build/abi/curve-v1/StableSwapBUSD.json +814 -0
  19. package/build/abi/curve-v1/StableSwapCompound.json +814 -0
  20. package/build/abi/curve-v1/StableSwapIDLE.json +1253 -0
  21. package/build/abi/curve-v1/StableSwapPax.json +865 -0
  22. package/build/abi/curve-v1/StableSwapSnow.json +900 -0
  23. package/build/abi/curve-v1/StableSwapUSDN.json +1004 -0
  24. package/build/abi/curve-v1/StableSwapUSDT.json +814 -0
  25. package/build/abi/curve-v1/StableSwapY.json +814 -0
  26. package/build/abi/inception/inception-ineth.json +609 -0
  27. package/build/abi/kyberdmm/kyber-storage.abi.json +824 -0
  28. package/build/abi/kyberdmm.abi.json +1148 -0
  29. package/build/abi/maverick-v2/MaverickV2Quoter.json +278 -0
  30. package/build/abi/nerve/nerve-metapool.json +790 -0
  31. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
  32. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +267 -0
  33. package/build/dex/aave-v1/aave-v1.js +0 -1
  34. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  35. package/build/dex/balancer-v1/balancer-pools.json +33333 -0
  36. package/build/dex/bebop/websocket-fetcher.d.ts +35 -0
  37. package/build/dex/bebop/websocket-fetcher.js +87 -0
  38. package/build/dex/bebop/websocket-fetcher.js.map +1 -0
  39. package/build/dex/fluid-dex/fluid-dex.d.ts +1 -0
  40. package/build/dex/fluid-dex/fluid-dex.js +7 -2
  41. package/build/dex/fluid-dex/fluid-dex.js.map +1 -1
  42. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  43. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  44. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  45. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  46. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  47. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  48. package/build/dex/idle-dao/scripts.d.ts +9 -0
  49. package/build/dex/idle-dao/scripts.js +552 -0
  50. package/build/dex/idle-dao/scripts.js.map +1 -0
  51. package/build/dex/inception/inception-event-pool.d.ts +4 -4
  52. package/build/dex/inception/inception-event-pool.js +9 -7
  53. package/build/dex/inception/inception-event-pool.js.map +1 -1
  54. package/build/dex/inception/inception-native.d.ts +43 -0
  55. package/build/dex/inception/inception-native.js +131 -0
  56. package/build/dex/inception/inception-native.js.map +1 -0
  57. package/build/dex/inception/inception-pool.d.ts +18 -0
  58. package/build/dex/inception/inception-pool.js +32 -0
  59. package/build/dex/inception/inception-pool.js.map +1 -0
  60. package/build/dex/inception/inception-price-feed.d.ts +19 -0
  61. package/build/dex/inception/inception-price-feed.js +51 -0
  62. package/build/dex/inception/inception-price-feed.js.map +1 -0
  63. package/build/dex/inception/inception.d.ts +6 -6
  64. package/build/dex/inception/inception.js +40 -16
  65. package/build/dex/inception/inception.js.map +1 -1
  66. package/build/dex/inception/utils.d.ts +0 -1
  67. package/build/dex/inception/utils.js +1 -22
  68. package/build/dex/inception/utils.js.map +1 -1
  69. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js +9 -3
  70. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js.map +1 -1
  71. package/build/dex/platypus/platypus.js +3 -17
  72. package/build/dex/platypus/platypus.js.map +1 -1
  73. package/build/dex/swaap-v1/swaap-v1.js +0 -4
  74. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  75. package/build/dex/uniswap-v3/config.js +0 -25
  76. package/build/dex/uniswap-v3/config.js.map +1 -1
  77. package/build/dex/uniswap-v3/uniswap-v3-pool.js +9 -3
  78. package/build/dex/uniswap-v3/uniswap-v3-pool.js.map +1 -1
  79. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +16 -0
  80. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +16 -0
  81. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +16 -0
  82. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +16 -0
  83. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +16 -0
  84. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +16 -0
  85. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +16 -0
  86. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +16 -0
  87. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +9 -0
  88. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +9 -0
  89. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +9 -0
  90. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +9 -0
  91. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +9 -0
  92. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +9 -0
  93. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +9 -0
  94. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +9 -0
  95. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +9 -0
  96. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +12 -0
  97. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +7 -0
  98. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +7 -0
  99. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +7 -0
  100. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +7 -0
  101. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +12 -0
  102. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +7 -0
  103. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +7 -0
  104. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +78 -0
  105. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +81 -0
  106. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +78 -0
  107. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +78 -0
  108. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +81 -0
  109. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +81 -0
  110. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +81 -0
  111. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +81 -0
  112. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +64 -0
  113. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +85 -0
  114. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +64 -0
  115. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +52 -0
  116. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +52 -0
  117. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +52 -0
  118. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +55 -0
  119. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +55 -0
  120. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +55 -0
  121. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +23 -0
  122. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +37 -0
  123. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +23 -0
  124. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +23 -0
  125. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +51 -0
  126. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +58 -0
  127. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +23 -0
  128. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +23 -0
  129. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +9 -0
  130. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +16 -0
  131. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +23 -0
  132. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +12 -0
  133. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +7 -0
  134. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +12 -0
  135. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +12 -0
  136. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +7 -0
  137. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +7 -0
  138. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +7 -0
  139. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +7 -0
  140. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +7 -0
  141. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +7 -0
  142. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +130 -0
  143. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +136 -0
  144. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +100 -0
  145. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +100 -0
  146. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +166 -0
  147. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +190 -0
  148. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +114 -0
  149. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +114 -0
  150. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +55 -0
  151. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +73 -0
  152. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +82 -0
  153. package/package.json +1 -1
  154. package/src/dex/fluid-dex/fluid-dex-e2e.test.ts +18 -0
  155. package/src/dex/fluid-dex/fluid-dex.ts +14 -3
  156. package/src/dex/pancakeswap-v3/pancakeswap-v3-pool.ts +9 -9
  157. package/src/dex/uniswap-v3/config.ts +0 -26
  158. package/src/dex/uniswap-v3/uniswap-v3-pool.ts +9 -9
  159. package/tests/constants-e2e.ts +5 -0
  160. package/.vscode/launch.json +0 -53
  161. package/.vscode/settings.json +0 -2
  162. package/.vscode/tasks.json +0 -15
  163. package/build/abi/aavev3statav2/Factory.json +0 -131
  164. package/build/abi/aavev3statav2/Pool.json +0 -1459
  165. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
  166. package/build/abi/usual-m-smart-m/usualM.abi.json +0 -483
  167. package/build/dex/aave-v2/tokenlist.json +0 -904
  168. package/build/dex/aave-v2/tokens-avalanche.json +0 -44
  169. package/build/dex/aave-v2/tokens-mainnet.json +0 -188
  170. package/build/dex/aave-v2/tokens-polygon.json +0 -44
  171. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.d.ts +0 -49
  172. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js +0 -384
  173. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js.map +0 -1
  174. package/build/dex/aave-v3-stata-v2/config.d.ts +0 -3
  175. package/build/dex/aave-v3-stata-v2/config.js +0 -21
  176. package/build/dex/aave-v3-stata-v2/config.js.map +0 -1
  177. package/build/dex/aave-v3-stata-v2/tokens.d.ts +0 -10
  178. package/build/dex/aave-v3-stata-v2/tokens.js +0 -43
  179. package/build/dex/aave-v3-stata-v2/tokens.js.map +0 -1
  180. package/build/dex/aave-v3-stata-v2/types.d.ts +0 -49
  181. package/build/dex/aave-v3-stata-v2/types.js +0 -25
  182. package/build/dex/aave-v3-stata-v2/types.js.map +0 -1
  183. package/build/dex/aave-v3-stata-v2/utils.d.ts +0 -4
  184. package/build/dex/aave-v3-stata-v2/utils.js +0 -67
  185. package/build/dex/aave-v3-stata-v2/utils.js.map +0 -1
  186. package/build/dex/bProtocol.d.ts +0 -18
  187. package/build/dex/bProtocol.js +0 -39
  188. package/build/dex/bProtocol.js.map +0 -1
  189. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +0 -729
  190. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +0 -732
  191. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +0 -1
  192. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +0 -1406
  193. package/build/dex/balancer-v3/abi/balancerRouter.js +0 -1175
  194. package/build/dex/balancer-v3/abi/balancerRouter.js.map +0 -1
  195. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +0 -2081
  196. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +0 -1851
  197. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +0 -1
  198. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +0 -34
  199. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +0 -406
  200. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +0 -1
  201. package/build/dex/bancor.d.ts +0 -26
  202. package/build/dex/bancor.js +0 -58
  203. package/build/dex/bancor.js.map +0 -1
  204. package/build/dex/compound.d.ts +0 -18
  205. package/build/dex/compound.js +0 -46
  206. package/build/dex/compound.js.map +0 -1
  207. package/build/dex/curve-v2.d.ts +0 -58
  208. package/build/dex/curve-v2.js +0 -180
  209. package/build/dex/curve-v2.js.map +0 -1
  210. package/build/dex/dodo-v1.d.ts +0 -33
  211. package/build/dex/dodo-v1.js +0 -63
  212. package/build/dex/dodo-v1.js.map +0 -1
  213. package/build/dex/lido.d.ts +0 -19
  214. package/build/dex/lido.js +0 -42
  215. package/build/dex/lido.js.map +0 -1
  216. package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
  217. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  218. package/build/dex/maker-psm/scripts/validate-state.js +0 -185
  219. package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
  220. package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
  221. package/build/dex/onebit.d.ts +0 -25
  222. package/build/dex/onebit.js +0 -42
  223. package/build/dex/onebit.js.map +0 -1
  224. package/build/dex/smoothy.d.ts +0 -26
  225. package/build/dex/smoothy.js +0 -48
  226. package/build/dex/smoothy.js.map +0 -1
  227. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +0 -1
  228. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
  229. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
  230. package/build/dex/stable-pool.d.ts +0 -28
  231. package/build/dex/stable-pool.js +0 -55
  232. package/build/dex/stable-pool.js.map +0 -1
  233. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +0 -7
  234. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +0 -20
  235. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +0 -1
  236. package/build/dex/trader-joe-v2.1.d.ts +0 -43
  237. package/build/dex/trader-joe-v2.1.js +0 -79
  238. package/build/dex/trader-joe-v2.1.js.map +0 -1
  239. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
  240. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
  241. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
  242. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
  243. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
  244. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
  245. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +0 -4
  246. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +0 -43
  247. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +0 -1
  248. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +0 -1
  249. package/build/dex/uniswap-v3/uniswap-v3-worker.js +0 -10
  250. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +0 -1
  251. package/build/dex/usual/usual-m-smart-m.d.ts +0 -17
  252. package/build/dex/usual/usual-m-smart-m.js +0 -50
  253. package/build/dex/usual/usual-m-smart-m.js.map +0 -1
  254. package/build/dex/usual-m-smart-m/config.d.ts +0 -3
  255. package/build/dex/usual-m-smart-m/config.js +0 -13
  256. package/build/dex/usual-m-smart-m/config.js.map +0 -1
  257. package/build/dex/usual-m-smart-m/types.d.ts +0 -7
  258. package/build/dex/usual-m-smart-m/types.js +0 -3
  259. package/build/dex/usual-m-smart-m/types.js.map +0 -1
  260. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +0 -35
  261. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +0 -161
  262. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +0 -1
  263. package/build/dex/usual-m-usd0/config.d.ts +0 -3
  264. package/build/dex/usual-m-usd0/config.js +0 -14
  265. package/build/dex/usual-m-usd0/config.js.map +0 -1
  266. package/build/dex/usual-m-usd0/types.d.ts +0 -8
  267. package/build/dex/usual-m-usd0/types.js +0 -3
  268. package/build/dex/usual-m-usd0/types.js.map +0 -1
  269. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +0 -35
  270. package/build/dex/usual-m-usd0/usual-m-usd0.js +0 -159
  271. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +0 -1
@@ -1,1459 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "contract IPoolAddressesProvider",
6
- "name": "provider",
7
- "type": "address"
8
- }
9
- ],
10
- "stateMutability": "nonpayable",
11
- "type": "constructor"
12
- },
13
- {
14
- "anonymous": false,
15
- "inputs": [
16
- {
17
- "indexed": true,
18
- "internalType": "address",
19
- "name": "reserve",
20
- "type": "address"
21
- },
22
- {
23
- "indexed": true,
24
- "internalType": "address",
25
- "name": "backer",
26
- "type": "address"
27
- },
28
- {
29
- "indexed": false,
30
- "internalType": "uint256",
31
- "name": "amount",
32
- "type": "uint256"
33
- },
34
- {
35
- "indexed": false,
36
- "internalType": "uint256",
37
- "name": "fee",
38
- "type": "uint256"
39
- }
40
- ],
41
- "name": "BackUnbacked",
42
- "type": "event"
43
- },
44
- {
45
- "anonymous": false,
46
- "inputs": [
47
- {
48
- "indexed": true,
49
- "internalType": "address",
50
- "name": "reserve",
51
- "type": "address"
52
- },
53
- {
54
- "indexed": false,
55
- "internalType": "address",
56
- "name": "user",
57
- "type": "address"
58
- },
59
- {
60
- "indexed": true,
61
- "internalType": "address",
62
- "name": "onBehalfOf",
63
- "type": "address"
64
- },
65
- {
66
- "indexed": false,
67
- "internalType": "uint256",
68
- "name": "amount",
69
- "type": "uint256"
70
- },
71
- {
72
- "indexed": false,
73
- "internalType": "enum DataTypes.InterestRateMode",
74
- "name": "interestRateMode",
75
- "type": "uint8"
76
- },
77
- {
78
- "indexed": false,
79
- "internalType": "uint256",
80
- "name": "borrowRate",
81
- "type": "uint256"
82
- },
83
- {
84
- "indexed": true,
85
- "internalType": "uint16",
86
- "name": "referralCode",
87
- "type": "uint16"
88
- }
89
- ],
90
- "name": "Borrow",
91
- "type": "event"
92
- },
93
- {
94
- "anonymous": false,
95
- "inputs": [
96
- {
97
- "indexed": true,
98
- "internalType": "address",
99
- "name": "target",
100
- "type": "address"
101
- },
102
- {
103
- "indexed": false,
104
- "internalType": "address",
105
- "name": "initiator",
106
- "type": "address"
107
- },
108
- {
109
- "indexed": true,
110
- "internalType": "address",
111
- "name": "asset",
112
- "type": "address"
113
- },
114
- {
115
- "indexed": false,
116
- "internalType": "uint256",
117
- "name": "amount",
118
- "type": "uint256"
119
- },
120
- {
121
- "indexed": false,
122
- "internalType": "enum DataTypes.InterestRateMode",
123
- "name": "interestRateMode",
124
- "type": "uint8"
125
- },
126
- {
127
- "indexed": false,
128
- "internalType": "uint256",
129
- "name": "premium",
130
- "type": "uint256"
131
- },
132
- {
133
- "indexed": true,
134
- "internalType": "uint16",
135
- "name": "referralCode",
136
- "type": "uint16"
137
- }
138
- ],
139
- "name": "FlashLoan",
140
- "type": "event"
141
- },
142
- {
143
- "anonymous": false,
144
- "inputs": [
145
- {
146
- "indexed": true,
147
- "internalType": "address",
148
- "name": "asset",
149
- "type": "address"
150
- },
151
- {
152
- "indexed": false,
153
- "internalType": "uint256",
154
- "name": "totalDebt",
155
- "type": "uint256"
156
- }
157
- ],
158
- "name": "IsolationModeTotalDebtUpdated",
159
- "type": "event"
160
- },
161
- {
162
- "anonymous": false,
163
- "inputs": [
164
- {
165
- "indexed": true,
166
- "internalType": "address",
167
- "name": "collateralAsset",
168
- "type": "address"
169
- },
170
- {
171
- "indexed": true,
172
- "internalType": "address",
173
- "name": "debtAsset",
174
- "type": "address"
175
- },
176
- {
177
- "indexed": true,
178
- "internalType": "address",
179
- "name": "user",
180
- "type": "address"
181
- },
182
- {
183
- "indexed": false,
184
- "internalType": "uint256",
185
- "name": "debtToCover",
186
- "type": "uint256"
187
- },
188
- {
189
- "indexed": false,
190
- "internalType": "uint256",
191
- "name": "liquidatedCollateralAmount",
192
- "type": "uint256"
193
- },
194
- {
195
- "indexed": false,
196
- "internalType": "address",
197
- "name": "liquidator",
198
- "type": "address"
199
- },
200
- {
201
- "indexed": false,
202
- "internalType": "bool",
203
- "name": "receiveAToken",
204
- "type": "bool"
205
- }
206
- ],
207
- "name": "LiquidationCall",
208
- "type": "event"
209
- },
210
- {
211
- "anonymous": false,
212
- "inputs": [
213
- {
214
- "indexed": true,
215
- "internalType": "address",
216
- "name": "reserve",
217
- "type": "address"
218
- },
219
- {
220
- "indexed": false,
221
- "internalType": "address",
222
- "name": "user",
223
- "type": "address"
224
- },
225
- {
226
- "indexed": true,
227
- "internalType": "address",
228
- "name": "onBehalfOf",
229
- "type": "address"
230
- },
231
- {
232
- "indexed": false,
233
- "internalType": "uint256",
234
- "name": "amount",
235
- "type": "uint256"
236
- },
237
- {
238
- "indexed": true,
239
- "internalType": "uint16",
240
- "name": "referralCode",
241
- "type": "uint16"
242
- }
243
- ],
244
- "name": "MintUnbacked",
245
- "type": "event"
246
- },
247
- {
248
- "anonymous": false,
249
- "inputs": [
250
- {
251
- "indexed": true,
252
- "internalType": "address",
253
- "name": "reserve",
254
- "type": "address"
255
- },
256
- {
257
- "indexed": false,
258
- "internalType": "uint256",
259
- "name": "amountMinted",
260
- "type": "uint256"
261
- }
262
- ],
263
- "name": "MintedToTreasury",
264
- "type": "event"
265
- },
266
- {
267
- "anonymous": false,
268
- "inputs": [
269
- {
270
- "indexed": true,
271
- "internalType": "address",
272
- "name": "reserve",
273
- "type": "address"
274
- },
275
- {
276
- "indexed": true,
277
- "internalType": "address",
278
- "name": "user",
279
- "type": "address"
280
- },
281
- {
282
- "indexed": true,
283
- "internalType": "address",
284
- "name": "repayer",
285
- "type": "address"
286
- },
287
- {
288
- "indexed": false,
289
- "internalType": "uint256",
290
- "name": "amount",
291
- "type": "uint256"
292
- },
293
- {
294
- "indexed": false,
295
- "internalType": "bool",
296
- "name": "useATokens",
297
- "type": "bool"
298
- }
299
- ],
300
- "name": "Repay",
301
- "type": "event"
302
- },
303
- {
304
- "anonymous": false,
305
- "inputs": [
306
- {
307
- "indexed": true,
308
- "internalType": "address",
309
- "name": "reserve",
310
- "type": "address"
311
- },
312
- {
313
- "indexed": false,
314
- "internalType": "uint256",
315
- "name": "liquidityRate",
316
- "type": "uint256"
317
- },
318
- {
319
- "indexed": false,
320
- "internalType": "uint256",
321
- "name": "stableBorrowRate",
322
- "type": "uint256"
323
- },
324
- {
325
- "indexed": false,
326
- "internalType": "uint256",
327
- "name": "variableBorrowRate",
328
- "type": "uint256"
329
- },
330
- {
331
- "indexed": false,
332
- "internalType": "uint256",
333
- "name": "liquidityIndex",
334
- "type": "uint256"
335
- },
336
- {
337
- "indexed": false,
338
- "internalType": "uint256",
339
- "name": "variableBorrowIndex",
340
- "type": "uint256"
341
- }
342
- ],
343
- "name": "ReserveDataUpdated",
344
- "type": "event"
345
- },
346
- {
347
- "anonymous": false,
348
- "inputs": [
349
- {
350
- "indexed": true,
351
- "internalType": "address",
352
- "name": "reserve",
353
- "type": "address"
354
- },
355
- {
356
- "indexed": false,
357
- "internalType": "uint256",
358
- "name": "liquidityRate",
359
- "type": "uint256"
360
- },
361
- {
362
- "indexed": false,
363
- "internalType": "uint256",
364
- "name": "stableBorrowRate",
365
- "type": "uint256"
366
- },
367
- {
368
- "indexed": false,
369
- "internalType": "uint256",
370
- "name": "variableBorrowRate",
371
- "type": "uint256"
372
- },
373
- {
374
- "indexed": false,
375
- "internalType": "uint256",
376
- "name": "liquidityIndex",
377
- "type": "uint256"
378
- },
379
- {
380
- "indexed": false,
381
- "internalType": "uint256",
382
- "name": "variableBorrowIndex",
383
- "type": "uint256"
384
- }
385
- ],
386
- "name": "ReserveDataUpdated",
387
- "type": "event"
388
- },
389
- {
390
- "anonymous": false,
391
- "inputs": [
392
- {
393
- "indexed": true,
394
- "internalType": "address",
395
- "name": "reserve",
396
- "type": "address"
397
- },
398
- {
399
- "indexed": true,
400
- "internalType": "address",
401
- "name": "user",
402
- "type": "address"
403
- }
404
- ],
405
- "name": "ReserveUsedAsCollateralDisabled",
406
- "type": "event"
407
- },
408
- {
409
- "anonymous": false,
410
- "inputs": [
411
- {
412
- "indexed": true,
413
- "internalType": "address",
414
- "name": "reserve",
415
- "type": "address"
416
- },
417
- {
418
- "indexed": true,
419
- "internalType": "address",
420
- "name": "user",
421
- "type": "address"
422
- }
423
- ],
424
- "name": "ReserveUsedAsCollateralEnabled",
425
- "type": "event"
426
- },
427
- {
428
- "anonymous": false,
429
- "inputs": [
430
- {
431
- "indexed": true,
432
- "internalType": "address",
433
- "name": "reserve",
434
- "type": "address"
435
- },
436
- {
437
- "indexed": false,
438
- "internalType": "address",
439
- "name": "user",
440
- "type": "address"
441
- },
442
- {
443
- "indexed": true,
444
- "internalType": "address",
445
- "name": "onBehalfOf",
446
- "type": "address"
447
- },
448
- {
449
- "indexed": false,
450
- "internalType": "uint256",
451
- "name": "amount",
452
- "type": "uint256"
453
- },
454
- {
455
- "indexed": true,
456
- "internalType": "uint16",
457
- "name": "referralCode",
458
- "type": "uint16"
459
- }
460
- ],
461
- "name": "Supply",
462
- "type": "event"
463
- },
464
- {
465
- "anonymous": false,
466
- "inputs": [
467
- {
468
- "indexed": true,
469
- "internalType": "address",
470
- "name": "user",
471
- "type": "address"
472
- },
473
- {
474
- "indexed": false,
475
- "internalType": "uint8",
476
- "name": "categoryId",
477
- "type": "uint8"
478
- }
479
- ],
480
- "name": "UserEModeSet",
481
- "type": "event"
482
- },
483
- {
484
- "anonymous": false,
485
- "inputs": [
486
- {
487
- "indexed": true,
488
- "internalType": "address",
489
- "name": "reserve",
490
- "type": "address"
491
- },
492
- {
493
- "indexed": true,
494
- "internalType": "address",
495
- "name": "user",
496
- "type": "address"
497
- },
498
- {
499
- "indexed": true,
500
- "internalType": "address",
501
- "name": "to",
502
- "type": "address"
503
- },
504
- {
505
- "indexed": false,
506
- "internalType": "uint256",
507
- "name": "amount",
508
- "type": "uint256"
509
- }
510
- ],
511
- "name": "Withdraw",
512
- "type": "event"
513
- },
514
- {
515
- "inputs": [],
516
- "name": "ADDRESSES_PROVIDER",
517
- "outputs": [
518
- {
519
- "internalType": "contract IPoolAddressesProvider",
520
- "name": "",
521
- "type": "address"
522
- }
523
- ],
524
- "stateMutability": "view",
525
- "type": "function"
526
- },
527
- {
528
- "inputs": [],
529
- "name": "BRIDGE_PROTOCOL_FEE",
530
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
531
- "stateMutability": "view",
532
- "type": "function"
533
- },
534
- {
535
- "inputs": [],
536
- "name": "FLASHLOAN_PREMIUM_TOTAL",
537
- "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }],
538
- "stateMutability": "view",
539
- "type": "function"
540
- },
541
- {
542
- "inputs": [],
543
- "name": "FLASHLOAN_PREMIUM_TO_PROTOCOL",
544
- "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }],
545
- "stateMutability": "view",
546
- "type": "function"
547
- },
548
- {
549
- "inputs": [],
550
- "name": "MAX_NUMBER_RESERVES",
551
- "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }],
552
- "stateMutability": "view",
553
- "type": "function"
554
- },
555
- {
556
- "inputs": [],
557
- "name": "POOL_REVISION",
558
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
559
- "stateMutability": "view",
560
- "type": "function"
561
- },
562
- {
563
- "inputs": [
564
- { "internalType": "address", "name": "asset", "type": "address" },
565
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
566
- { "internalType": "uint256", "name": "fee", "type": "uint256" }
567
- ],
568
- "name": "backUnbacked",
569
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
570
- "stateMutability": "nonpayable",
571
- "type": "function"
572
- },
573
- {
574
- "inputs": [
575
- { "internalType": "address", "name": "asset", "type": "address" },
576
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
577
- {
578
- "internalType": "uint256",
579
- "name": "interestRateMode",
580
- "type": "uint256"
581
- },
582
- { "internalType": "uint16", "name": "referralCode", "type": "uint16" },
583
- { "internalType": "address", "name": "onBehalfOf", "type": "address" }
584
- ],
585
- "name": "borrow",
586
- "outputs": [],
587
- "stateMutability": "nonpayable",
588
- "type": "function"
589
- },
590
- {
591
- "inputs": [
592
- { "internalType": "uint8", "name": "id", "type": "uint8" },
593
- {
594
- "components": [
595
- { "internalType": "uint16", "name": "ltv", "type": "uint16" },
596
- {
597
- "internalType": "uint16",
598
- "name": "liquidationThreshold",
599
- "type": "uint16"
600
- },
601
- {
602
- "internalType": "uint16",
603
- "name": "liquidationBonus",
604
- "type": "uint16"
605
- },
606
- { "internalType": "string", "name": "label", "type": "string" }
607
- ],
608
- "internalType": "struct DataTypes.EModeCategoryBaseConfiguration",
609
- "name": "category",
610
- "type": "tuple"
611
- }
612
- ],
613
- "name": "configureEModeCategory",
614
- "outputs": [],
615
- "stateMutability": "nonpayable",
616
- "type": "function"
617
- },
618
- {
619
- "inputs": [
620
- { "internalType": "uint8", "name": "id", "type": "uint8" },
621
- {
622
- "internalType": "uint128",
623
- "name": "borrowableBitmap",
624
- "type": "uint128"
625
- }
626
- ],
627
- "name": "configureEModeCategoryBorrowableBitmap",
628
- "outputs": [],
629
- "stateMutability": "nonpayable",
630
- "type": "function"
631
- },
632
- {
633
- "inputs": [
634
- { "internalType": "uint8", "name": "id", "type": "uint8" },
635
- {
636
- "internalType": "uint128",
637
- "name": "collateralBitmap",
638
- "type": "uint128"
639
- }
640
- ],
641
- "name": "configureEModeCategoryCollateralBitmap",
642
- "outputs": [],
643
- "stateMutability": "nonpayable",
644
- "type": "function"
645
- },
646
- {
647
- "inputs": [
648
- { "internalType": "address", "name": "asset", "type": "address" },
649
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
650
- { "internalType": "address", "name": "onBehalfOf", "type": "address" },
651
- { "internalType": "uint16", "name": "referralCode", "type": "uint16" }
652
- ],
653
- "name": "deposit",
654
- "outputs": [],
655
- "stateMutability": "nonpayable",
656
- "type": "function"
657
- },
658
- {
659
- "inputs": [
660
- { "internalType": "address", "name": "asset", "type": "address" }
661
- ],
662
- "name": "dropReserve",
663
- "outputs": [],
664
- "stateMutability": "nonpayable",
665
- "type": "function"
666
- },
667
- {
668
- "inputs": [
669
- { "internalType": "address", "name": "asset", "type": "address" },
670
- { "internalType": "address", "name": "from", "type": "address" },
671
- { "internalType": "address", "name": "to", "type": "address" },
672
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
673
- {
674
- "internalType": "uint256",
675
- "name": "balanceFromBefore",
676
- "type": "uint256"
677
- },
678
- {
679
- "internalType": "uint256",
680
- "name": "balanceToBefore",
681
- "type": "uint256"
682
- }
683
- ],
684
- "name": "finalizeTransfer",
685
- "outputs": [],
686
- "stateMutability": "nonpayable",
687
- "type": "function"
688
- },
689
- {
690
- "inputs": [
691
- {
692
- "internalType": "address",
693
- "name": "receiverAddress",
694
- "type": "address"
695
- },
696
- { "internalType": "address[]", "name": "assets", "type": "address[]" },
697
- { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" },
698
- {
699
- "internalType": "uint256[]",
700
- "name": "interestRateModes",
701
- "type": "uint256[]"
702
- },
703
- { "internalType": "address", "name": "onBehalfOf", "type": "address" },
704
- { "internalType": "bytes", "name": "params", "type": "bytes" },
705
- { "internalType": "uint16", "name": "referralCode", "type": "uint16" }
706
- ],
707
- "name": "flashLoan",
708
- "outputs": [],
709
- "stateMutability": "nonpayable",
710
- "type": "function"
711
- },
712
- {
713
- "inputs": [
714
- {
715
- "internalType": "address",
716
- "name": "receiverAddress",
717
- "type": "address"
718
- },
719
- { "internalType": "address", "name": "asset", "type": "address" },
720
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
721
- { "internalType": "bytes", "name": "params", "type": "bytes" },
722
- { "internalType": "uint16", "name": "referralCode", "type": "uint16" }
723
- ],
724
- "name": "flashLoanSimple",
725
- "outputs": [],
726
- "stateMutability": "nonpayable",
727
- "type": "function"
728
- },
729
- {
730
- "inputs": [],
731
- "name": "getBorrowLogic",
732
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
733
- "stateMutability": "pure",
734
- "type": "function"
735
- },
736
- {
737
- "inputs": [],
738
- "name": "getBridgeLogic",
739
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
740
- "stateMutability": "pure",
741
- "type": "function"
742
- },
743
- {
744
- "inputs": [
745
- { "internalType": "address", "name": "asset", "type": "address" }
746
- ],
747
- "name": "getConfiguration",
748
- "outputs": [
749
- {
750
- "components": [
751
- { "internalType": "uint256", "name": "data", "type": "uint256" }
752
- ],
753
- "internalType": "struct DataTypes.ReserveConfigurationMap",
754
- "name": "",
755
- "type": "tuple"
756
- }
757
- ],
758
- "stateMutability": "view",
759
- "type": "function"
760
- },
761
- {
762
- "inputs": [{ "internalType": "uint8", "name": "id", "type": "uint8" }],
763
- "name": "getEModeCategoryBorrowableBitmap",
764
- "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }],
765
- "stateMutability": "view",
766
- "type": "function"
767
- },
768
- {
769
- "inputs": [{ "internalType": "uint8", "name": "id", "type": "uint8" }],
770
- "name": "getEModeCategoryCollateralBitmap",
771
- "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }],
772
- "stateMutability": "view",
773
- "type": "function"
774
- },
775
- {
776
- "inputs": [{ "internalType": "uint8", "name": "id", "type": "uint8" }],
777
- "name": "getEModeCategoryCollateralConfig",
778
- "outputs": [
779
- {
780
- "components": [
781
- { "internalType": "uint16", "name": "ltv", "type": "uint16" },
782
- {
783
- "internalType": "uint16",
784
- "name": "liquidationThreshold",
785
- "type": "uint16"
786
- },
787
- {
788
- "internalType": "uint16",
789
- "name": "liquidationBonus",
790
- "type": "uint16"
791
- }
792
- ],
793
- "internalType": "struct DataTypes.CollateralConfig",
794
- "name": "",
795
- "type": "tuple"
796
- }
797
- ],
798
- "stateMutability": "view",
799
- "type": "function"
800
- },
801
- {
802
- "inputs": [{ "internalType": "uint8", "name": "id", "type": "uint8" }],
803
- "name": "getEModeCategoryData",
804
- "outputs": [
805
- {
806
- "components": [
807
- { "internalType": "uint16", "name": "ltv", "type": "uint16" },
808
- {
809
- "internalType": "uint16",
810
- "name": "liquidationThreshold",
811
- "type": "uint16"
812
- },
813
- {
814
- "internalType": "uint16",
815
- "name": "liquidationBonus",
816
- "type": "uint16"
817
- },
818
- {
819
- "internalType": "address",
820
- "name": "priceSource",
821
- "type": "address"
822
- },
823
- { "internalType": "string", "name": "label", "type": "string" }
824
- ],
825
- "internalType": "struct DataTypes.EModeCategoryLegacy",
826
- "name": "",
827
- "type": "tuple"
828
- }
829
- ],
830
- "stateMutability": "view",
831
- "type": "function"
832
- },
833
- {
834
- "inputs": [{ "internalType": "uint8", "name": "id", "type": "uint8" }],
835
- "name": "getEModeCategoryLabel",
836
- "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
837
- "stateMutability": "view",
838
- "type": "function"
839
- },
840
- {
841
- "inputs": [],
842
- "name": "getEModeLogic",
843
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
844
- "stateMutability": "pure",
845
- "type": "function"
846
- },
847
- {
848
- "inputs": [],
849
- "name": "getFlashLoanLogic",
850
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
851
- "stateMutability": "pure",
852
- "type": "function"
853
- },
854
- {
855
- "inputs": [
856
- { "internalType": "address", "name": "asset", "type": "address" }
857
- ],
858
- "name": "getLiquidationGracePeriod",
859
- "outputs": [{ "internalType": "uint40", "name": "", "type": "uint40" }],
860
- "stateMutability": "nonpayable",
861
- "type": "function"
862
- },
863
- {
864
- "inputs": [],
865
- "name": "getLiquidationLogic",
866
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
867
- "stateMutability": "pure",
868
- "type": "function"
869
- },
870
- {
871
- "inputs": [],
872
- "name": "getPoolLogic",
873
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
874
- "stateMutability": "pure",
875
- "type": "function"
876
- },
877
- {
878
- "inputs": [{ "internalType": "uint16", "name": "id", "type": "uint16" }],
879
- "name": "getReserveAddressById",
880
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
881
- "stateMutability": "view",
882
- "type": "function"
883
- },
884
- {
885
- "inputs": [
886
- { "internalType": "address", "name": "asset", "type": "address" }
887
- ],
888
- "name": "getReserveData",
889
- "outputs": [
890
- {
891
- "components": [
892
- {
893
- "components": [
894
- { "internalType": "uint256", "name": "data", "type": "uint256" }
895
- ],
896
- "internalType": "struct DataTypes.ReserveConfigurationMap",
897
- "name": "configuration",
898
- "type": "tuple"
899
- },
900
- {
901
- "internalType": "uint128",
902
- "name": "liquidityIndex",
903
- "type": "uint128"
904
- },
905
- {
906
- "internalType": "uint128",
907
- "name": "currentLiquidityRate",
908
- "type": "uint128"
909
- },
910
- {
911
- "internalType": "uint128",
912
- "name": "variableBorrowIndex",
913
- "type": "uint128"
914
- },
915
- {
916
- "internalType": "uint128",
917
- "name": "currentVariableBorrowRate",
918
- "type": "uint128"
919
- },
920
- {
921
- "internalType": "uint128",
922
- "name": "currentStableBorrowRate",
923
- "type": "uint128"
924
- },
925
- {
926
- "internalType": "uint40",
927
- "name": "lastUpdateTimestamp",
928
- "type": "uint40"
929
- },
930
- { "internalType": "uint16", "name": "id", "type": "uint16" },
931
- {
932
- "internalType": "address",
933
- "name": "aTokenAddress",
934
- "type": "address"
935
- },
936
- {
937
- "internalType": "address",
938
- "name": "stableDebtTokenAddress",
939
- "type": "address"
940
- },
941
- {
942
- "internalType": "address",
943
- "name": "variableDebtTokenAddress",
944
- "type": "address"
945
- },
946
- {
947
- "internalType": "address",
948
- "name": "interestRateStrategyAddress",
949
- "type": "address"
950
- },
951
- {
952
- "internalType": "uint128",
953
- "name": "accruedToTreasury",
954
- "type": "uint128"
955
- },
956
- { "internalType": "uint128", "name": "unbacked", "type": "uint128" },
957
- {
958
- "internalType": "uint128",
959
- "name": "isolationModeTotalDebt",
960
- "type": "uint128"
961
- }
962
- ],
963
- "internalType": "struct DataTypes.ReserveDataLegacy",
964
- "name": "",
965
- "type": "tuple"
966
- }
967
- ],
968
- "stateMutability": "view",
969
- "type": "function"
970
- },
971
- {
972
- "inputs": [
973
- { "internalType": "address", "name": "asset", "type": "address" }
974
- ],
975
- "name": "getReserveDataExtended",
976
- "outputs": [
977
- {
978
- "components": [
979
- {
980
- "components": [
981
- { "internalType": "uint256", "name": "data", "type": "uint256" }
982
- ],
983
- "internalType": "struct DataTypes.ReserveConfigurationMap",
984
- "name": "configuration",
985
- "type": "tuple"
986
- },
987
- {
988
- "internalType": "uint128",
989
- "name": "liquidityIndex",
990
- "type": "uint128"
991
- },
992
- {
993
- "internalType": "uint128",
994
- "name": "currentLiquidityRate",
995
- "type": "uint128"
996
- },
997
- {
998
- "internalType": "uint128",
999
- "name": "variableBorrowIndex",
1000
- "type": "uint128"
1001
- },
1002
- {
1003
- "internalType": "uint128",
1004
- "name": "currentVariableBorrowRate",
1005
- "type": "uint128"
1006
- },
1007
- {
1008
- "internalType": "uint128",
1009
- "name": "__deprecatedStableBorrowRate",
1010
- "type": "uint128"
1011
- },
1012
- {
1013
- "internalType": "uint40",
1014
- "name": "lastUpdateTimestamp",
1015
- "type": "uint40"
1016
- },
1017
- { "internalType": "uint16", "name": "id", "type": "uint16" },
1018
- {
1019
- "internalType": "uint40",
1020
- "name": "liquidationGracePeriodUntil",
1021
- "type": "uint40"
1022
- },
1023
- {
1024
- "internalType": "address",
1025
- "name": "aTokenAddress",
1026
- "type": "address"
1027
- },
1028
- {
1029
- "internalType": "address",
1030
- "name": "__deprecatedStableDebtTokenAddress",
1031
- "type": "address"
1032
- },
1033
- {
1034
- "internalType": "address",
1035
- "name": "variableDebtTokenAddress",
1036
- "type": "address"
1037
- },
1038
- {
1039
- "internalType": "address",
1040
- "name": "interestRateStrategyAddress",
1041
- "type": "address"
1042
- },
1043
- {
1044
- "internalType": "uint128",
1045
- "name": "accruedToTreasury",
1046
- "type": "uint128"
1047
- },
1048
- { "internalType": "uint128", "name": "unbacked", "type": "uint128" },
1049
- {
1050
- "internalType": "uint128",
1051
- "name": "isolationModeTotalDebt",
1052
- "type": "uint128"
1053
- },
1054
- {
1055
- "internalType": "uint128",
1056
- "name": "virtualUnderlyingBalance",
1057
- "type": "uint128"
1058
- }
1059
- ],
1060
- "internalType": "struct DataTypes.ReserveData",
1061
- "name": "",
1062
- "type": "tuple"
1063
- }
1064
- ],
1065
- "stateMutability": "view",
1066
- "type": "function"
1067
- },
1068
- {
1069
- "inputs": [
1070
- { "internalType": "address", "name": "asset", "type": "address" }
1071
- ],
1072
- "name": "getReserveNormalizedIncome",
1073
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1074
- "stateMutability": "view",
1075
- "type": "function"
1076
- },
1077
- {
1078
- "inputs": [
1079
- { "internalType": "address", "name": "asset", "type": "address" }
1080
- ],
1081
- "name": "getReserveNormalizedVariableDebt",
1082
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1083
- "stateMutability": "view",
1084
- "type": "function"
1085
- },
1086
- {
1087
- "inputs": [],
1088
- "name": "getReservesCount",
1089
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1090
- "stateMutability": "view",
1091
- "type": "function"
1092
- },
1093
- {
1094
- "inputs": [],
1095
- "name": "getReservesList",
1096
- "outputs": [
1097
- { "internalType": "address[]", "name": "", "type": "address[]" }
1098
- ],
1099
- "stateMutability": "view",
1100
- "type": "function"
1101
- },
1102
- {
1103
- "inputs": [],
1104
- "name": "getSupplyLogic",
1105
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
1106
- "stateMutability": "pure",
1107
- "type": "function"
1108
- },
1109
- {
1110
- "inputs": [
1111
- { "internalType": "address", "name": "user", "type": "address" }
1112
- ],
1113
- "name": "getUserAccountData",
1114
- "outputs": [
1115
- {
1116
- "internalType": "uint256",
1117
- "name": "totalCollateralBase",
1118
- "type": "uint256"
1119
- },
1120
- { "internalType": "uint256", "name": "totalDebtBase", "type": "uint256" },
1121
- {
1122
- "internalType": "uint256",
1123
- "name": "availableBorrowsBase",
1124
- "type": "uint256"
1125
- },
1126
- {
1127
- "internalType": "uint256",
1128
- "name": "currentLiquidationThreshold",
1129
- "type": "uint256"
1130
- },
1131
- { "internalType": "uint256", "name": "ltv", "type": "uint256" },
1132
- { "internalType": "uint256", "name": "healthFactor", "type": "uint256" }
1133
- ],
1134
- "stateMutability": "view",
1135
- "type": "function"
1136
- },
1137
- {
1138
- "inputs": [
1139
- { "internalType": "address", "name": "user", "type": "address" }
1140
- ],
1141
- "name": "getUserConfiguration",
1142
- "outputs": [
1143
- {
1144
- "components": [
1145
- { "internalType": "uint256", "name": "data", "type": "uint256" }
1146
- ],
1147
- "internalType": "struct DataTypes.UserConfigurationMap",
1148
- "name": "",
1149
- "type": "tuple"
1150
- }
1151
- ],
1152
- "stateMutability": "view",
1153
- "type": "function"
1154
- },
1155
- {
1156
- "inputs": [
1157
- { "internalType": "address", "name": "user", "type": "address" }
1158
- ],
1159
- "name": "getUserEMode",
1160
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1161
- "stateMutability": "view",
1162
- "type": "function"
1163
- },
1164
- {
1165
- "inputs": [
1166
- { "internalType": "address", "name": "asset", "type": "address" }
1167
- ],
1168
- "name": "getVirtualUnderlyingBalance",
1169
- "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }],
1170
- "stateMutability": "view",
1171
- "type": "function"
1172
- },
1173
- {
1174
- "inputs": [
1175
- { "internalType": "address", "name": "asset", "type": "address" },
1176
- { "internalType": "address", "name": "aTokenAddress", "type": "address" },
1177
- {
1178
- "internalType": "address",
1179
- "name": "variableDebtAddress",
1180
- "type": "address"
1181
- },
1182
- {
1183
- "internalType": "address",
1184
- "name": "interestRateStrategyAddress",
1185
- "type": "address"
1186
- }
1187
- ],
1188
- "name": "initReserve",
1189
- "outputs": [],
1190
- "stateMutability": "nonpayable",
1191
- "type": "function"
1192
- },
1193
- {
1194
- "inputs": [
1195
- {
1196
- "internalType": "contract IPoolAddressesProvider",
1197
- "name": "provider",
1198
- "type": "address"
1199
- }
1200
- ],
1201
- "name": "initialize",
1202
- "outputs": [],
1203
- "stateMutability": "nonpayable",
1204
- "type": "function"
1205
- },
1206
- {
1207
- "inputs": [
1208
- {
1209
- "internalType": "address",
1210
- "name": "collateralAsset",
1211
- "type": "address"
1212
- },
1213
- { "internalType": "address", "name": "debtAsset", "type": "address" },
1214
- { "internalType": "address", "name": "user", "type": "address" },
1215
- { "internalType": "uint256", "name": "debtToCover", "type": "uint256" },
1216
- { "internalType": "bool", "name": "receiveAToken", "type": "bool" }
1217
- ],
1218
- "name": "liquidationCall",
1219
- "outputs": [],
1220
- "stateMutability": "nonpayable",
1221
- "type": "function"
1222
- },
1223
- {
1224
- "inputs": [
1225
- { "internalType": "address[]", "name": "assets", "type": "address[]" }
1226
- ],
1227
- "name": "mintToTreasury",
1228
- "outputs": [],
1229
- "stateMutability": "nonpayable",
1230
- "type": "function"
1231
- },
1232
- {
1233
- "inputs": [
1234
- { "internalType": "address", "name": "asset", "type": "address" },
1235
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
1236
- { "internalType": "address", "name": "onBehalfOf", "type": "address" },
1237
- { "internalType": "uint16", "name": "referralCode", "type": "uint16" }
1238
- ],
1239
- "name": "mintUnbacked",
1240
- "outputs": [],
1241
- "stateMutability": "nonpayable",
1242
- "type": "function"
1243
- },
1244
- {
1245
- "inputs": [
1246
- { "internalType": "address", "name": "asset", "type": "address" },
1247
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
1248
- {
1249
- "internalType": "uint256",
1250
- "name": "interestRateMode",
1251
- "type": "uint256"
1252
- },
1253
- { "internalType": "address", "name": "onBehalfOf", "type": "address" }
1254
- ],
1255
- "name": "repay",
1256
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1257
- "stateMutability": "nonpayable",
1258
- "type": "function"
1259
- },
1260
- {
1261
- "inputs": [
1262
- { "internalType": "address", "name": "asset", "type": "address" },
1263
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
1264
- {
1265
- "internalType": "uint256",
1266
- "name": "interestRateMode",
1267
- "type": "uint256"
1268
- }
1269
- ],
1270
- "name": "repayWithATokens",
1271
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1272
- "stateMutability": "nonpayable",
1273
- "type": "function"
1274
- },
1275
- {
1276
- "inputs": [
1277
- { "internalType": "address", "name": "asset", "type": "address" },
1278
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
1279
- {
1280
- "internalType": "uint256",
1281
- "name": "interestRateMode",
1282
- "type": "uint256"
1283
- },
1284
- { "internalType": "address", "name": "onBehalfOf", "type": "address" },
1285
- { "internalType": "uint256", "name": "deadline", "type": "uint256" },
1286
- { "internalType": "uint8", "name": "permitV", "type": "uint8" },
1287
- { "internalType": "bytes32", "name": "permitR", "type": "bytes32" },
1288
- { "internalType": "bytes32", "name": "permitS", "type": "bytes32" }
1289
- ],
1290
- "name": "repayWithPermit",
1291
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1292
- "stateMutability": "nonpayable",
1293
- "type": "function"
1294
- },
1295
- {
1296
- "inputs": [
1297
- { "internalType": "address", "name": "token", "type": "address" },
1298
- { "internalType": "address", "name": "to", "type": "address" },
1299
- { "internalType": "uint256", "name": "amount", "type": "uint256" }
1300
- ],
1301
- "name": "rescueTokens",
1302
- "outputs": [],
1303
- "stateMutability": "nonpayable",
1304
- "type": "function"
1305
- },
1306
- {
1307
- "inputs": [
1308
- { "internalType": "address", "name": "asset", "type": "address" }
1309
- ],
1310
- "name": "resetIsolationModeTotalDebt",
1311
- "outputs": [],
1312
- "stateMutability": "nonpayable",
1313
- "type": "function"
1314
- },
1315
- {
1316
- "inputs": [
1317
- { "internalType": "address", "name": "asset", "type": "address" },
1318
- {
1319
- "components": [
1320
- { "internalType": "uint256", "name": "data", "type": "uint256" }
1321
- ],
1322
- "internalType": "struct DataTypes.ReserveConfigurationMap",
1323
- "name": "configuration",
1324
- "type": "tuple"
1325
- }
1326
- ],
1327
- "name": "setConfiguration",
1328
- "outputs": [],
1329
- "stateMutability": "nonpayable",
1330
- "type": "function"
1331
- },
1332
- {
1333
- "inputs": [
1334
- { "internalType": "address", "name": "asset", "type": "address" },
1335
- { "internalType": "uint40", "name": "until", "type": "uint40" }
1336
- ],
1337
- "name": "setLiquidationGracePeriod",
1338
- "outputs": [],
1339
- "stateMutability": "nonpayable",
1340
- "type": "function"
1341
- },
1342
- {
1343
- "inputs": [
1344
- { "internalType": "address", "name": "asset", "type": "address" },
1345
- {
1346
- "internalType": "address",
1347
- "name": "rateStrategyAddress",
1348
- "type": "address"
1349
- }
1350
- ],
1351
- "name": "setReserveInterestRateStrategyAddress",
1352
- "outputs": [],
1353
- "stateMutability": "nonpayable",
1354
- "type": "function"
1355
- },
1356
- {
1357
- "inputs": [
1358
- { "internalType": "uint8", "name": "categoryId", "type": "uint8" }
1359
- ],
1360
- "name": "setUserEMode",
1361
- "outputs": [],
1362
- "stateMutability": "nonpayable",
1363
- "type": "function"
1364
- },
1365
- {
1366
- "inputs": [
1367
- { "internalType": "address", "name": "asset", "type": "address" },
1368
- { "internalType": "bool", "name": "useAsCollateral", "type": "bool" }
1369
- ],
1370
- "name": "setUserUseReserveAsCollateral",
1371
- "outputs": [],
1372
- "stateMutability": "nonpayable",
1373
- "type": "function"
1374
- },
1375
- {
1376
- "inputs": [
1377
- { "internalType": "address", "name": "asset", "type": "address" },
1378
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
1379
- { "internalType": "address", "name": "onBehalfOf", "type": "address" },
1380
- { "internalType": "uint16", "name": "referralCode", "type": "uint16" }
1381
- ],
1382
- "name": "supply",
1383
- "outputs": [],
1384
- "stateMutability": "nonpayable",
1385
- "type": "function"
1386
- },
1387
- {
1388
- "inputs": [
1389
- { "internalType": "address", "name": "asset", "type": "address" },
1390
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
1391
- { "internalType": "address", "name": "onBehalfOf", "type": "address" },
1392
- { "internalType": "uint16", "name": "referralCode", "type": "uint16" },
1393
- { "internalType": "uint256", "name": "deadline", "type": "uint256" },
1394
- { "internalType": "uint8", "name": "permitV", "type": "uint8" },
1395
- { "internalType": "bytes32", "name": "permitR", "type": "bytes32" },
1396
- { "internalType": "bytes32", "name": "permitS", "type": "bytes32" }
1397
- ],
1398
- "name": "supplyWithPermit",
1399
- "outputs": [],
1400
- "stateMutability": "nonpayable",
1401
- "type": "function"
1402
- },
1403
- {
1404
- "inputs": [
1405
- { "internalType": "address", "name": "asset", "type": "address" }
1406
- ],
1407
- "name": "syncIndexesState",
1408
- "outputs": [],
1409
- "stateMutability": "nonpayable",
1410
- "type": "function"
1411
- },
1412
- {
1413
- "inputs": [
1414
- { "internalType": "address", "name": "asset", "type": "address" }
1415
- ],
1416
- "name": "syncRatesState",
1417
- "outputs": [],
1418
- "stateMutability": "nonpayable",
1419
- "type": "function"
1420
- },
1421
- {
1422
- "inputs": [
1423
- { "internalType": "uint256", "name": "protocolFee", "type": "uint256" }
1424
- ],
1425
- "name": "updateBridgeProtocolFee",
1426
- "outputs": [],
1427
- "stateMutability": "nonpayable",
1428
- "type": "function"
1429
- },
1430
- {
1431
- "inputs": [
1432
- {
1433
- "internalType": "uint128",
1434
- "name": "flashLoanPremiumTotal",
1435
- "type": "uint128"
1436
- },
1437
- {
1438
- "internalType": "uint128",
1439
- "name": "flashLoanPremiumToProtocol",
1440
- "type": "uint128"
1441
- }
1442
- ],
1443
- "name": "updateFlashloanPremiums",
1444
- "outputs": [],
1445
- "stateMutability": "nonpayable",
1446
- "type": "function"
1447
- },
1448
- {
1449
- "inputs": [
1450
- { "internalType": "address", "name": "asset", "type": "address" },
1451
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
1452
- { "internalType": "address", "name": "to", "type": "address" }
1453
- ],
1454
- "name": "withdraw",
1455
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
1456
- "stateMutability": "nonpayable",
1457
- "type": "function"
1458
- }
1459
- ]