@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,43 +1,5 @@
1
1
  [
2
- {
3
- "inputs": [
4
- { "internalType": "contract IPool", "name": "pool", "type": "address" },
5
- {
6
- "internalType": "contract IRewardsController",
7
- "name": "rewardsController",
8
- "type": "address"
9
- }
10
- ],
11
- "stateMutability": "nonpayable",
12
- "type": "constructor"
13
- },
14
- {
15
- "inputs": [
16
- { "internalType": "address", "name": "target", "type": "address" }
17
- ],
18
- "name": "AddressEmptyCode",
19
- "type": "error"
20
- },
21
- {
22
- "inputs": [
23
- { "internalType": "address", "name": "account", "type": "address" }
24
- ],
25
- "name": "AddressInsufficientBalance",
26
- "type": "error"
27
- },
28
- { "inputs": [], "name": "ECDSAInvalidSignature", "type": "error" },
29
- {
30
- "inputs": [
31
- { "internalType": "uint256", "name": "length", "type": "uint256" }
32
- ],
33
- "name": "ECDSAInvalidSignatureLength",
34
- "type": "error"
35
- },
36
- {
37
- "inputs": [{ "internalType": "bytes32", "name": "s", "type": "bytes32" }],
38
- "name": "ECDSAInvalidSignatureS",
39
- "type": "error"
40
- },
2
+ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" },
41
3
  {
42
4
  "inputs": [
43
5
  { "internalType": "address", "name": "spender", "type": "address" },
@@ -50,8 +12,8 @@
50
12
  {
51
13
  "inputs": [
52
14
  { "internalType": "address", "name": "sender", "type": "address" },
53
- { "internalType": "uint256", "name": "balance", "type": "uint256" },
54
- { "internalType": "uint256", "name": "needed", "type": "uint256" }
15
+ { "internalType": "uint256", "name": "shares", "type": "uint256" },
16
+ { "internalType": "uint256", "name": "sharesNeeded", "type": "uint256" }
55
17
  ],
56
18
  "name": "ERC20InsufficientBalance",
57
19
  "type": "error"
@@ -86,118 +48,113 @@
86
48
  },
87
49
  {
88
50
  "inputs": [
89
- { "internalType": "uint256", "name": "deadline", "type": "uint256" }
90
- ],
91
- "name": "ERC2612ExpiredSignature",
92
- "type": "error"
93
- },
94
- {
95
- "inputs": [
96
- { "internalType": "address", "name": "signer", "type": "address" },
97
- { "internalType": "address", "name": "owner", "type": "address" }
51
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
52
+ { "internalType": "uint256", "name": "blockTimestamp", "type": "uint256" }
98
53
  ],
99
- "name": "ERC2612InvalidSigner",
54
+ "name": "ERC2612ExpiredDeadline",
100
55
  "type": "error"
101
56
  },
102
57
  {
103
58
  "inputs": [
104
- { "internalType": "address", "name": "receiver", "type": "address" },
105
- { "internalType": "uint256", "name": "assets", "type": "uint256" },
106
- { "internalType": "uint256", "name": "max", "type": "uint256" }
59
+ { "internalType": "address", "name": "owner", "type": "address" },
60
+ { "internalType": "address", "name": "spender", "type": "address" }
107
61
  ],
108
- "name": "ERC4626ExceededMaxDeposit",
62
+ "name": "ERC2612InvalidSignature",
109
63
  "type": "error"
110
64
  },
111
65
  {
112
66
  "inputs": [
113
- { "internalType": "address", "name": "receiver", "type": "address" },
114
- { "internalType": "uint256", "name": "shares", "type": "uint256" },
115
- { "internalType": "uint256", "name": "max", "type": "uint256" }
67
+ { "internalType": "address", "name": "sender", "type": "address" }
116
68
  ],
117
- "name": "ERC4626ExceededMaxMint",
69
+ "name": "USDMBlockedSender",
118
70
  "type": "error"
119
71
  },
120
72
  {
121
73
  "inputs": [
122
- { "internalType": "address", "name": "owner", "type": "address" },
74
+ { "internalType": "address", "name": "sender", "type": "address" },
123
75
  { "internalType": "uint256", "name": "shares", "type": "uint256" },
124
- { "internalType": "uint256", "name": "max", "type": "uint256" }
76
+ { "internalType": "uint256", "name": "sharesNeeded", "type": "uint256" }
125
77
  ],
126
- "name": "ERC4626ExceededMaxRedeem",
78
+ "name": "USDMInsufficientBurnBalance",
127
79
  "type": "error"
128
80
  },
129
81
  {
130
82
  "inputs": [
131
- { "internalType": "address", "name": "owner", "type": "address" },
132
- { "internalType": "uint256", "name": "assets", "type": "uint256" },
133
- { "internalType": "uint256", "name": "max", "type": "uint256" }
134
- ],
135
- "name": "ERC4626ExceededMaxWithdraw",
136
- "type": "error"
137
- },
138
- { "inputs": [], "name": "EnforcedPause", "type": "error" },
139
- { "inputs": [], "name": "EthTransferFailed", "type": "error" },
140
- { "inputs": [], "name": "ExpectedPause", "type": "error" },
141
- { "inputs": [], "name": "FailedInnerCall", "type": "error" },
142
- {
143
- "inputs": [
144
- { "internalType": "address", "name": "account", "type": "address" },
145
- { "internalType": "uint256", "name": "currentNonce", "type": "uint256" }
83
+ { "internalType": "address", "name": "account", "type": "address" }
146
84
  ],
147
- "name": "InvalidAccountNonce",
85
+ "name": "USDMInvalidBlockedAccount",
148
86
  "type": "error"
149
87
  },
150
88
  {
151
89
  "inputs": [
152
- { "internalType": "address", "name": "claimer", "type": "address" }
90
+ { "internalType": "address", "name": "sender", "type": "address" }
153
91
  ],
154
- "name": "InvalidClaimer",
92
+ "name": "USDMInvalidBurnSender",
155
93
  "type": "error"
156
94
  },
157
- { "inputs": [], "name": "InvalidInitialization", "type": "error" },
158
- { "inputs": [], "name": "MathOverflowedMulDiv", "type": "error" },
159
- { "inputs": [], "name": "NotInitializing", "type": "error" },
160
95
  {
161
96
  "inputs": [
162
- { "internalType": "address", "name": "caller", "type": "address" }
97
+ { "internalType": "address", "name": "receiver", "type": "address" }
163
98
  ],
164
- "name": "OnlyPauseGuardian",
99
+ "name": "USDMInvalidMintReceiver",
165
100
  "type": "error"
166
101
  },
167
- { "inputs": [], "name": "OnlyRescueGuardian", "type": "error" },
168
102
  {
169
103
  "inputs": [
170
- { "internalType": "address", "name": "pool", "type": "address" }
104
+ {
105
+ "internalType": "uint256",
106
+ "name": "rewardMultiplier",
107
+ "type": "uint256"
108
+ }
171
109
  ],
172
- "name": "PoolAddressMismatch",
110
+ "name": "USDMInvalidRewardMultiplier",
173
111
  "type": "error"
174
112
  },
113
+ { "inputs": [], "name": "USDMPausedTransfers", "type": "error" },
175
114
  {
115
+ "anonymous": false,
176
116
  "inputs": [
177
- { "internalType": "address", "name": "reward", "type": "address" }
117
+ {
118
+ "indexed": true,
119
+ "internalType": "address",
120
+ "name": "addr",
121
+ "type": "address"
122
+ }
178
123
  ],
179
- "name": "RewardNotInitialized",
180
- "type": "error"
124
+ "name": "AccountBlocked",
125
+ "type": "event"
181
126
  },
182
127
  {
128
+ "anonymous": false,
183
129
  "inputs": [
184
- { "internalType": "address", "name": "token", "type": "address" }
130
+ {
131
+ "indexed": true,
132
+ "internalType": "address",
133
+ "name": "addr",
134
+ "type": "address"
135
+ }
185
136
  ],
186
- "name": "SafeERC20FailedOperation",
187
- "type": "error"
137
+ "name": "AccountUnblocked",
138
+ "type": "event"
188
139
  },
189
140
  {
141
+ "anonymous": false,
190
142
  "inputs": [
191
- { "internalType": "address", "name": "token", "type": "address" }
143
+ {
144
+ "indexed": false,
145
+ "internalType": "address",
146
+ "name": "previousAdmin",
147
+ "type": "address"
148
+ },
149
+ {
150
+ "indexed": false,
151
+ "internalType": "address",
152
+ "name": "newAdmin",
153
+ "type": "address"
154
+ }
192
155
  ],
193
- "name": "SafeERC20FailedOperation",
194
- "type": "error"
195
- },
196
- { "inputs": [], "name": "StaticATokenInvalidZeroShares", "type": "error" },
197
- {
198
- "inputs": [],
199
- "name": "ZeroIncentivesControllerIsForbidden",
200
- "type": "error"
156
+ "name": "AdminChanged",
157
+ "type": "event"
201
158
  },
202
159
  {
203
160
  "anonymous": false,
@@ -230,29 +187,11 @@
230
187
  {
231
188
  "indexed": true,
232
189
  "internalType": "address",
233
- "name": "sender",
234
- "type": "address"
235
- },
236
- {
237
- "indexed": true,
238
- "internalType": "address",
239
- "name": "owner",
190
+ "name": "beacon",
240
191
  "type": "address"
241
- },
242
- {
243
- "indexed": false,
244
- "internalType": "uint256",
245
- "name": "assets",
246
- "type": "uint256"
247
- },
248
- {
249
- "indexed": false,
250
- "internalType": "uint256",
251
- "name": "shares",
252
- "type": "uint256"
253
192
  }
254
193
  ],
255
- "name": "Deposit",
194
+ "name": "BeaconUpgraded",
256
195
  "type": "event"
257
196
  },
258
197
  {
@@ -265,44 +204,39 @@
265
204
  "anonymous": false,
266
205
  "inputs": [
267
206
  {
268
- "indexed": true,
269
- "internalType": "address",
270
- "name": "caller",
271
- "type": "address"
272
- },
273
- {
274
- "indexed": true,
275
- "internalType": "address",
276
- "name": "token",
277
- "type": "address"
278
- },
207
+ "indexed": false,
208
+ "internalType": "uint8",
209
+ "name": "version",
210
+ "type": "uint8"
211
+ }
212
+ ],
213
+ "name": "Initialized",
214
+ "type": "event"
215
+ },
216
+ {
217
+ "anonymous": false,
218
+ "inputs": [
279
219
  {
280
- "indexed": true,
220
+ "indexed": false,
281
221
  "internalType": "address",
282
- "name": "to",
222
+ "name": "account",
283
223
  "type": "address"
284
- },
285
- {
286
- "indexed": false,
287
- "internalType": "uint256",
288
- "name": "amount",
289
- "type": "uint256"
290
224
  }
291
225
  ],
292
- "name": "ERC20Rescued",
226
+ "name": "Paused",
293
227
  "type": "event"
294
228
  },
295
229
  {
296
230
  "anonymous": false,
297
231
  "inputs": [
298
232
  {
299
- "indexed": false,
300
- "internalType": "uint64",
301
- "name": "version",
302
- "type": "uint64"
233
+ "indexed": true,
234
+ "internalType": "uint256",
235
+ "name": "value",
236
+ "type": "uint256"
303
237
  }
304
238
  ],
305
- "name": "Initialized",
239
+ "name": "RewardMultiplier",
306
240
  "type": "event"
307
241
  },
308
242
  {
@@ -310,56 +244,74 @@
310
244
  "inputs": [
311
245
  {
312
246
  "indexed": true,
313
- "internalType": "address",
314
- "name": "caller",
315
- "type": "address"
247
+ "internalType": "bytes32",
248
+ "name": "role",
249
+ "type": "bytes32"
316
250
  },
317
251
  {
318
252
  "indexed": true,
319
- "internalType": "address",
320
- "name": "to",
321
- "type": "address"
253
+ "internalType": "bytes32",
254
+ "name": "previousAdminRole",
255
+ "type": "bytes32"
322
256
  },
323
257
  {
324
- "indexed": false,
325
- "internalType": "uint256",
326
- "name": "amount",
327
- "type": "uint256"
258
+ "indexed": true,
259
+ "internalType": "bytes32",
260
+ "name": "newAdminRole",
261
+ "type": "bytes32"
328
262
  }
329
263
  ],
330
- "name": "NativeTokensRescued",
264
+ "name": "RoleAdminChanged",
331
265
  "type": "event"
332
266
  },
333
267
  {
334
268
  "anonymous": false,
335
269
  "inputs": [
336
270
  {
337
- "indexed": false,
271
+ "indexed": true,
272
+ "internalType": "bytes32",
273
+ "name": "role",
274
+ "type": "bytes32"
275
+ },
276
+ {
277
+ "indexed": true,
338
278
  "internalType": "address",
339
279
  "name": "account",
340
280
  "type": "address"
281
+ },
282
+ {
283
+ "indexed": true,
284
+ "internalType": "address",
285
+ "name": "sender",
286
+ "type": "address"
341
287
  }
342
288
  ],
343
- "name": "Paused",
289
+ "name": "RoleGranted",
344
290
  "type": "event"
345
291
  },
346
292
  {
347
293
  "anonymous": false,
348
294
  "inputs": [
295
+ {
296
+ "indexed": true,
297
+ "internalType": "bytes32",
298
+ "name": "role",
299
+ "type": "bytes32"
300
+ },
349
301
  {
350
302
  "indexed": true,
351
303
  "internalType": "address",
352
- "name": "reward",
304
+ "name": "account",
353
305
  "type": "address"
354
306
  },
355
307
  {
356
- "indexed": false,
357
- "internalType": "uint256",
358
- "name": "startIndex",
359
- "type": "uint256"
308
+ "indexed": true,
309
+ "internalType": "address",
310
+ "name": "sender",
311
+ "type": "address"
360
312
  }
361
313
  ],
362
- "name": "RewardTokenRegistered",
314
+ "name": "RoleRevoked",
363
315
  "type": "event"
364
316
  },
365
317
  {
@@ -406,191 +358,144 @@
406
358
  {
407
359
  "indexed": true,
408
360
  "internalType": "address",
409
- "name": "sender",
361
+ "name": "implementation",
410
362
  "type": "address"
411
- },
412
- {
413
- "indexed": true,
414
- "internalType": "address",
415
- "name": "receiver",
416
- "type": "address"
417
- },
418
- {
419
- "indexed": true,
420
- "internalType": "address",
421
- "name": "owner",
422
- "type": "address"
423
- },
424
- {
425
- "indexed": false,
426
- "internalType": "uint256",
427
- "name": "assets",
428
- "type": "uint256"
429
- },
430
- {
431
- "indexed": false,
432
- "internalType": "uint256",
433
- "name": "shares",
434
- "type": "uint256"
435
363
  }
436
364
  ],
437
- "name": "Withdraw",
365
+ "name": "Upgraded",
438
366
  "type": "event"
439
367
  },
440
368
  {
441
369
  "inputs": [],
442
- "name": "DOMAIN_SEPARATOR",
370
+ "name": "BLOCKLIST_ROLE",
443
371
  "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
444
372
  "stateMutability": "view",
445
373
  "type": "function"
446
374
  },
447
375
  {
448
376
  "inputs": [],
449
- "name": "INCENTIVES_CONTROLLER",
450
- "outputs": [
451
- {
452
- "internalType": "contract IRewardsController",
453
- "name": "",
454
- "type": "address"
455
- }
456
- ],
377
+ "name": "BURNER_ROLE",
378
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
457
379
  "stateMutability": "view",
458
380
  "type": "function"
459
381
  },
460
382
  {
461
383
  "inputs": [],
462
- "name": "POOL",
463
- "outputs": [
464
- { "internalType": "contract IPool", "name": "", "type": "address" }
465
- ],
384
+ "name": "DEFAULT_ADMIN_ROLE",
385
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
466
386
  "stateMutability": "view",
467
387
  "type": "function"
468
388
  },
469
389
  {
470
390
  "inputs": [],
471
- "name": "POOL_ADDRESSES_PROVIDER",
472
- "outputs": [
473
- {
474
- "internalType": "contract IPoolAddressesProvider",
475
- "name": "",
476
- "type": "address"
477
- }
478
- ],
391
+ "name": "DOMAIN_SEPARATOR",
392
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
479
393
  "stateMutability": "view",
480
394
  "type": "function"
481
395
  },
482
396
  {
483
397
  "inputs": [],
484
- "name": "RAY",
485
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
398
+ "name": "MINTER_ROLE",
399
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
486
400
  "stateMutability": "view",
487
401
  "type": "function"
488
402
  },
489
403
  {
490
404
  "inputs": [],
491
- "name": "aToken",
492
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
405
+ "name": "ORACLE_ROLE",
406
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
493
407
  "stateMutability": "view",
494
408
  "type": "function"
495
409
  },
496
410
  {
497
- "inputs": [
498
- { "internalType": "address", "name": "owner", "type": "address" },
499
- { "internalType": "address", "name": "spender", "type": "address" }
500
- ],
501
- "name": "allowance",
502
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
411
+ "inputs": [],
412
+ "name": "PAUSE_ROLE",
413
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
503
414
  "stateMutability": "view",
504
415
  "type": "function"
505
416
  },
506
- {
507
- "inputs": [
508
- { "internalType": "address", "name": "spender", "type": "address" },
509
- { "internalType": "uint256", "name": "value", "type": "uint256" }
510
- ],
511
- "name": "approve",
512
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
513
- "stateMutability": "nonpayable",
514
- "type": "function"
515
- },
516
417
  {
517
418
  "inputs": [],
518
- "name": "asset",
519
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
419
+ "name": "UPGRADE_ROLE",
420
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
520
421
  "stateMutability": "view",
521
422
  "type": "function"
522
423
  },
523
424
  {
524
425
  "inputs": [
525
- { "internalType": "address", "name": "account", "type": "address" }
426
+ {
427
+ "internalType": "uint256",
428
+ "name": "_rewardMultiplierIncrement",
429
+ "type": "uint256"
430
+ }
526
431
  ],
527
- "name": "balanceOf",
528
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
529
- "stateMutability": "view",
432
+ "name": "addRewardMultiplier",
433
+ "outputs": [],
434
+ "stateMutability": "nonpayable",
530
435
  "type": "function"
531
436
  },
532
437
  {
533
438
  "inputs": [
534
- { "internalType": "address", "name": "actor", "type": "address" }
439
+ { "internalType": "address", "name": "owner", "type": "address" },
440
+ { "internalType": "address", "name": "spender", "type": "address" }
535
441
  ],
536
- "name": "canPause",
537
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
442
+ "name": "allowance",
443
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
538
444
  "stateMutability": "view",
539
445
  "type": "function"
540
446
  },
541
447
  {
542
448
  "inputs": [
543
- { "internalType": "address", "name": "receiver", "type": "address" },
544
- { "internalType": "address[]", "name": "rewards", "type": "address[]" }
449
+ { "internalType": "address", "name": "spender", "type": "address" },
450
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
545
451
  ],
546
- "name": "claimRewards",
547
- "outputs": [],
452
+ "name": "approve",
453
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
548
454
  "stateMutability": "nonpayable",
549
455
  "type": "function"
550
456
  },
551
457
  {
552
458
  "inputs": [
553
- { "internalType": "address", "name": "onBehalfOf", "type": "address" },
554
- { "internalType": "address", "name": "receiver", "type": "address" },
555
- { "internalType": "address[]", "name": "rewards", "type": "address[]" }
459
+ { "internalType": "address", "name": "account", "type": "address" }
556
460
  ],
557
- "name": "claimRewardsOnBehalf",
558
- "outputs": [],
559
- "stateMutability": "nonpayable",
461
+ "name": "balanceOf",
462
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
463
+ "stateMutability": "view",
560
464
  "type": "function"
561
465
  },
562
466
  {
563
467
  "inputs": [
564
- { "internalType": "address[]", "name": "rewards", "type": "address[]" }
468
+ { "internalType": "address[]", "name": "addresses", "type": "address[]" }
565
469
  ],
566
- "name": "claimRewardsToSelf",
470
+ "name": "blockAccounts",
567
471
  "outputs": [],
568
472
  "stateMutability": "nonpayable",
569
473
  "type": "function"
570
474
  },
571
475
  {
572
476
  "inputs": [
573
- { "internalType": "address", "name": "reward", "type": "address" }
477
+ { "internalType": "address", "name": "from", "type": "address" },
478
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
574
479
  ],
575
- "name": "collectAndUpdateRewards",
576
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
480
+ "name": "burn",
481
+ "outputs": [],
577
482
  "stateMutability": "nonpayable",
578
483
  "type": "function"
579
484
  },
580
485
  {
581
486
  "inputs": [
582
- { "internalType": "uint256", "name": "shares", "type": "uint256" }
487
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
583
488
  ],
584
- "name": "convertToAssets",
489
+ "name": "convertToShares",
585
490
  "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
586
491
  "stateMutability": "view",
587
492
  "type": "function"
588
493
  },
589
494
  {
590
495
  "inputs": [
591
- { "internalType": "uint256", "name": "assets", "type": "uint256" }
496
+ { "internalType": "uint256", "name": "shares", "type": "uint256" }
592
497
  ],
593
- "name": "convertToShares",
498
+ "name": "convertToTokens",
594
499
  "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
595
500
  "stateMutability": "view",
596
501
  "type": "function"
@@ -599,48 +504,20 @@
599
504
  "inputs": [],
600
505
  "name": "decimals",
601
506
  "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
602
- "stateMutability": "view",
507
+ "stateMutability": "pure",
603
508
  "type": "function"
604
509
  },
605
510
  {
606
511
  "inputs": [
607
- { "internalType": "uint256", "name": "assets", "type": "uint256" },
608
- { "internalType": "address", "name": "receiver", "type": "address" }
609
- ],
610
- "name": "deposit",
611
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
612
- "stateMutability": "nonpayable",
613
- "type": "function"
614
- },
615
- {
616
- "inputs": [
617
- { "internalType": "uint256", "name": "assets", "type": "uint256" },
618
- { "internalType": "address", "name": "receiver", "type": "address" }
619
- ],
620
- "name": "depositATokens",
621
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
622
- "stateMutability": "nonpayable",
623
- "type": "function"
624
- },
625
- {
626
- "inputs": [
627
- { "internalType": "uint256", "name": "assets", "type": "uint256" },
628
- { "internalType": "address", "name": "receiver", "type": "address" },
629
- { "internalType": "uint256", "name": "deadline", "type": "uint256" },
512
+ { "internalType": "address", "name": "spender", "type": "address" },
630
513
  {
631
- "components": [
632
- { "internalType": "uint8", "name": "v", "type": "uint8" },
633
- { "internalType": "bytes32", "name": "r", "type": "bytes32" },
634
- { "internalType": "bytes32", "name": "s", "type": "bytes32" }
635
- ],
636
- "internalType": "struct IERC4626StataToken.SignatureParams",
637
- "name": "sig",
638
- "type": "tuple"
639
- },
640
- { "internalType": "bool", "name": "depositToAave", "type": "bool" }
514
+ "internalType": "uint256",
515
+ "name": "subtractedValue",
516
+ "type": "uint256"
517
+ }
641
518
  ],
642
- "name": "depositWithPermit",
643
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
519
+ "name": "decreaseAllowance",
520
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
644
521
  "stateMutability": "nonpayable",
645
522
  "type": "function"
646
523
  },
@@ -665,83 +542,48 @@
665
542
  },
666
543
  {
667
544
  "inputs": [
668
- { "internalType": "address", "name": "to", "type": "address" },
669
- { "internalType": "uint256", "name": "amount", "type": "uint256" }
545
+ { "internalType": "bytes32", "name": "role", "type": "bytes32" }
670
546
  ],
671
- "name": "emergencyEtherTransfer",
672
- "outputs": [],
673
- "stateMutability": "nonpayable",
547
+ "name": "getRoleAdmin",
548
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
549
+ "stateMutability": "view",
674
550
  "type": "function"
675
551
  },
676
552
  {
677
553
  "inputs": [
678
- { "internalType": "address", "name": "erc20Token", "type": "address" },
679
- { "internalType": "address", "name": "to", "type": "address" },
680
- { "internalType": "uint256", "name": "amount", "type": "uint256" }
554
+ { "internalType": "bytes32", "name": "role", "type": "bytes32" },
555
+ { "internalType": "address", "name": "account", "type": "address" }
681
556
  ],
682
- "name": "emergencyTokenTransfer",
557
+ "name": "grantRole",
683
558
  "outputs": [],
684
559
  "stateMutability": "nonpayable",
685
560
  "type": "function"
686
561
  },
687
562
  {
688
563
  "inputs": [
689
- { "internalType": "address", "name": "user", "type": "address" },
690
- { "internalType": "address", "name": "reward", "type": "address" }
691
- ],
692
- "name": "getClaimableRewards",
693
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
694
- "stateMutability": "view",
695
- "type": "function"
696
- },
697
- {
698
- "inputs": [
699
- { "internalType": "address", "name": "reward", "type": "address" }
700
- ],
701
- "name": "getCurrentRewardsIndex",
702
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
703
- "stateMutability": "view",
704
- "type": "function"
705
- },
706
- {
707
- "inputs": [],
708
- "name": "getReferenceAsset",
709
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
710
- "stateMutability": "view",
711
- "type": "function"
712
- },
713
- {
714
- "inputs": [
715
- { "internalType": "address", "name": "reward", "type": "address" }
564
+ { "internalType": "bytes32", "name": "role", "type": "bytes32" },
565
+ { "internalType": "address", "name": "account", "type": "address" }
716
566
  ],
717
- "name": "getTotalClaimableRewards",
718
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
567
+ "name": "hasRole",
568
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
719
569
  "stateMutability": "view",
720
570
  "type": "function"
721
571
  },
722
572
  {
723
573
  "inputs": [
724
- { "internalType": "address", "name": "user", "type": "address" },
725
- { "internalType": "address", "name": "reward", "type": "address" }
574
+ { "internalType": "address", "name": "spender", "type": "address" },
575
+ { "internalType": "uint256", "name": "addedValue", "type": "uint256" }
726
576
  ],
727
- "name": "getUnclaimedRewards",
728
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
729
- "stateMutability": "view",
577
+ "name": "increaseAllowance",
578
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
579
+ "stateMutability": "nonpayable",
730
580
  "type": "function"
731
581
  },
732
582
  {
733
583
  "inputs": [
734
- { "internalType": "address", "name": "aToken", "type": "address" },
735
- {
736
- "internalType": "string",
737
- "name": "staticATokenName",
738
- "type": "string"
739
- },
740
- {
741
- "internalType": "string",
742
- "name": "staticATokenSymbol",
743
- "type": "string"
744
- }
584
+ { "internalType": "string", "name": "name_", "type": "string" },
585
+ { "internalType": "string", "name": "symbol_", "type": "string" },
586
+ { "internalType": "address", "name": "owner", "type": "address" }
745
587
  ],
746
588
  "name": "initialize",
747
589
  "outputs": [],
@@ -750,68 +592,20 @@
750
592
  },
751
593
  {
752
594
  "inputs": [
753
- { "internalType": "address", "name": "reward", "type": "address" }
595
+ { "internalType": "address", "name": "account", "type": "address" }
754
596
  ],
755
- "name": "isRegisteredRewardToken",
597
+ "name": "isBlocked",
756
598
  "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
757
599
  "stateMutability": "view",
758
600
  "type": "function"
759
601
  },
760
- {
761
- "inputs": [],
762
- "name": "latestAnswer",
763
- "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }],
764
- "stateMutability": "view",
765
- "type": "function"
766
- },
767
- {
768
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
769
- "name": "maxDeposit",
770
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
771
- "stateMutability": "view",
772
- "type": "function"
773
- },
774
- {
775
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
776
- "name": "maxMint",
777
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
778
- "stateMutability": "view",
779
- "type": "function"
780
- },
781
602
  {
782
603
  "inputs": [
783
- { "internalType": "address", "name": "owner", "type": "address" }
784
- ],
785
- "name": "maxRedeem",
786
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
787
- "stateMutability": "view",
788
- "type": "function"
789
- },
790
- {
791
- "inputs": [
792
- { "internalType": "address", "name": "asset", "type": "address" }
793
- ],
794
- "name": "maxRescue",
795
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
796
- "stateMutability": "view",
797
- "type": "function"
798
- },
799
- {
800
- "inputs": [
801
- { "internalType": "address", "name": "owner", "type": "address" }
802
- ],
803
- "name": "maxWithdraw",
804
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
805
- "stateMutability": "view",
806
- "type": "function"
807
- },
808
- {
809
- "inputs": [
810
- { "internalType": "uint256", "name": "shares", "type": "uint256" },
811
- { "internalType": "address", "name": "receiver", "type": "address" }
604
+ { "internalType": "address", "name": "to", "type": "address" },
605
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
812
606
  ],
813
607
  "name": "mint",
814
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
608
+ "outputs": [],
815
609
  "stateMutability": "nonpayable",
816
610
  "type": "function"
817
611
  },
@@ -831,6 +625,13 @@
831
625
  "stateMutability": "view",
832
626
  "type": "function"
833
627
  },
628
+ {
629
+ "inputs": [],
630
+ "name": "pause",
631
+ "outputs": [],
632
+ "stateMutability": "nonpayable",
633
+ "type": "function"
634
+ },
834
635
  {
835
636
  "inputs": [],
836
637
  "name": "paused",
@@ -854,86 +655,70 @@
854
655
  "type": "function"
855
656
  },
856
657
  {
857
- "inputs": [
858
- { "internalType": "uint256", "name": "assets", "type": "uint256" }
859
- ],
860
- "name": "previewDeposit",
861
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
658
+ "inputs": [],
659
+ "name": "proxiableUUID",
660
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
862
661
  "stateMutability": "view",
863
662
  "type": "function"
864
663
  },
865
664
  {
866
665
  "inputs": [
867
- { "internalType": "uint256", "name": "shares", "type": "uint256" }
666
+ { "internalType": "bytes32", "name": "role", "type": "bytes32" },
667
+ { "internalType": "address", "name": "account", "type": "address" }
868
668
  ],
869
- "name": "previewMint",
870
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
871
- "stateMutability": "view",
669
+ "name": "renounceRole",
670
+ "outputs": [],
671
+ "stateMutability": "nonpayable",
872
672
  "type": "function"
873
673
  },
874
674
  {
875
675
  "inputs": [
876
- { "internalType": "uint256", "name": "shares", "type": "uint256" }
676
+ { "internalType": "bytes32", "name": "role", "type": "bytes32" },
677
+ { "internalType": "address", "name": "account", "type": "address" }
877
678
  ],
878
- "name": "previewRedeem",
879
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
880
- "stateMutability": "view",
679
+ "name": "revokeRole",
680
+ "outputs": [],
681
+ "stateMutability": "nonpayable",
881
682
  "type": "function"
882
683
  },
883
684
  {
884
- "inputs": [
885
- { "internalType": "uint256", "name": "assets", "type": "uint256" }
886
- ],
887
- "name": "previewWithdraw",
685
+ "inputs": [],
686
+ "name": "rewardMultiplier",
888
687
  "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
889
688
  "stateMutability": "view",
890
689
  "type": "function"
891
690
  },
892
691
  {
893
692
  "inputs": [
894
- { "internalType": "uint256", "name": "shares", "type": "uint256" },
895
- { "internalType": "address", "name": "receiver", "type": "address" },
896
- { "internalType": "address", "name": "owner", "type": "address" }
693
+ {
694
+ "internalType": "uint256",
695
+ "name": "_rewardMultiplier",
696
+ "type": "uint256"
697
+ }
897
698
  ],
898
- "name": "redeem",
899
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
699
+ "name": "setRewardMultiplier",
700
+ "outputs": [],
900
701
  "stateMutability": "nonpayable",
901
702
  "type": "function"
902
703
  },
903
704
  {
904
705
  "inputs": [
905
- { "internalType": "uint256", "name": "shares", "type": "uint256" },
906
- { "internalType": "address", "name": "receiver", "type": "address" },
907
- { "internalType": "address", "name": "owner", "type": "address" }
706
+ { "internalType": "address", "name": "account", "type": "address" }
908
707
  ],
909
- "name": "redeemATokens",
708
+ "name": "sharesOf",
910
709
  "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
911
- "stateMutability": "nonpayable",
912
- "type": "function"
913
- },
914
- {
915
- "inputs": [],
916
- "name": "refreshRewardTokens",
917
- "outputs": [],
918
- "stateMutability": "nonpayable",
710
+ "stateMutability": "view",
919
711
  "type": "function"
920
712
  },
921
713
  {
922
- "inputs": [],
923
- "name": "rewardTokens",
924
- "outputs": [
925
- { "internalType": "address[]", "name": "", "type": "address[]" }
714
+ "inputs": [
715
+ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }
926
716
  ],
717
+ "name": "supportsInterface",
718
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
927
719
  "stateMutability": "view",
928
720
  "type": "function"
929
721
  },
930
- {
931
- "inputs": [{ "internalType": "bool", "name": "paused", "type": "bool" }],
932
- "name": "setPaused",
933
- "outputs": [],
934
- "stateMutability": "nonpayable",
935
- "type": "function"
936
- },
937
722
  {
938
723
  "inputs": [],
939
724
  "name": "symbol",
@@ -943,7 +728,7 @@
943
728
  },
944
729
  {
945
730
  "inputs": [],
946
- "name": "totalAssets",
731
+ "name": "totalShares",
947
732
  "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
948
733
  "stateMutability": "view",
949
734
  "type": "function"
@@ -958,7 +743,7 @@
958
743
  {
959
744
  "inputs": [
960
745
  { "internalType": "address", "name": "to", "type": "address" },
961
- { "internalType": "uint256", "name": "value", "type": "uint256" }
746
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
962
747
  ],
963
748
  "name": "transfer",
964
749
  "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
@@ -969,29 +754,54 @@
969
754
  "inputs": [
970
755
  { "internalType": "address", "name": "from", "type": "address" },
971
756
  { "internalType": "address", "name": "to", "type": "address" },
972
- { "internalType": "uint256", "name": "value", "type": "uint256" }
757
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
973
758
  ],
974
759
  "name": "transferFrom",
975
760
  "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
976
761
  "stateMutability": "nonpayable",
977
762
  "type": "function"
978
763
  },
764
+ {
765
+ "inputs": [
766
+ { "internalType": "address[]", "name": "addresses", "type": "address[]" }
767
+ ],
768
+ "name": "unblockAccounts",
769
+ "outputs": [],
770
+ "stateMutability": "nonpayable",
771
+ "type": "function"
772
+ },
979
773
  {
980
774
  "inputs": [],
981
- "name": "whoCanRescue",
982
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
983
- "stateMutability": "view",
775
+ "name": "unpause",
776
+ "outputs": [],
777
+ "stateMutability": "nonpayable",
984
778
  "type": "function"
985
779
  },
986
780
  {
987
781
  "inputs": [
988
- { "internalType": "uint256", "name": "assets", "type": "uint256" },
989
- { "internalType": "address", "name": "receiver", "type": "address" },
990
- { "internalType": "address", "name": "owner", "type": "address" }
782
+ {
783
+ "internalType": "address",
784
+ "name": "newImplementation",
785
+ "type": "address"
786
+ }
991
787
  ],
992
- "name": "withdraw",
993
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
788
+ "name": "upgradeTo",
789
+ "outputs": [],
994
790
  "stateMutability": "nonpayable",
995
791
  "type": "function"
792
+ },
793
+ {
794
+ "inputs": [
795
+ {
796
+ "internalType": "address",
797
+ "name": "newImplementation",
798
+ "type": "address"
799
+ },
800
+ { "internalType": "bytes", "name": "data", "type": "bytes" }
801
+ ],
802
+ "name": "upgradeToAndCall",
803
+ "outputs": [],
804
+ "stateMutability": "payable",
805
+ "type": "function"
996
806
  }
997
807
  ]