@paraswap/dex-lib 4.0.17-statav2 → 4.0.17-usual-pp.0

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 (309) hide show
  1. package/.vscode/launch.json +53 -0
  2. package/.vscode/settings.json +2 -0
  3. package/.vscode/tasks.json +15 -0
  4. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
  5. package/build/abi/usual-m-smart-m/usualM.abi.json +483 -0
  6. package/build/abi/{USDM.json → usual-pp/abi.json} +269 -326
  7. package/build/abi/{angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json → wombat/pool.json} +637 -594
  8. package/build/dex/aave-gsm/config.js +2 -2
  9. package/build/dex/aave-gsm/config.js.map +1 -1
  10. package/build/dex/aave-v1/aave-v1.js +1 -0
  11. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  12. package/build/dex/aave-v2/tokens-avalanche.json +44 -0
  13. package/build/dex/aave-v2/tokens-mainnet.json +188 -0
  14. package/build/dex/aave-v2/tokens-polygon.json +44 -0
  15. package/build/dex/aave-v2/tokens.js +4 -6
  16. package/build/dex/aave-v2/tokens.js.map +1 -1
  17. package/build/dex/aave-v3/config.js +6 -6
  18. package/build/dex/aave-v3/config.js.map +1 -1
  19. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js +18 -11
  20. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js.map +1 -1
  21. package/build/dex/aave-v3-stata-v2/types.d.ts +18 -4
  22. package/build/dex/aave-v3-stata-v2/types.js.map +1 -1
  23. package/build/dex/bProtocol.d.ts +18 -0
  24. package/build/dex/bProtocol.js +39 -0
  25. package/build/dex/bProtocol.js.map +1 -0
  26. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +729 -0
  27. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +732 -0
  28. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +1 -0
  29. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +1406 -0
  30. package/build/dex/balancer-v3/abi/balancerRouter.js +1175 -0
  31. package/build/dex/balancer-v3/abi/balancerRouter.js.map +1 -0
  32. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +2081 -0
  33. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +1851 -0
  34. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +1 -0
  35. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +34 -0
  36. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +406 -0
  37. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +1 -0
  38. package/build/dex/bancor.d.ts +26 -0
  39. package/build/dex/bancor.js +58 -0
  40. package/build/dex/bancor.js.map +1 -0
  41. package/build/dex/compound.d.ts +18 -0
  42. package/build/dex/compound.js +46 -0
  43. package/build/dex/compound.js.map +1 -0
  44. package/build/dex/curve-v2.d.ts +58 -0
  45. package/build/dex/curve-v2.js +180 -0
  46. package/build/dex/curve-v2.js.map +1 -0
  47. package/build/dex/dodo-v1.d.ts +33 -0
  48. package/build/dex/dodo-v1.js +63 -0
  49. package/build/dex/dodo-v1.js.map +1 -0
  50. package/build/dex/fluid-dex/fluid-dex.d.ts +0 -1
  51. package/build/dex/fluid-dex/fluid-dex.js +4 -7
  52. package/build/dex/fluid-dex/fluid-dex.js.map +1 -1
  53. package/build/dex/inception/inception-event-pool.d.ts +4 -4
  54. package/build/dex/inception/inception-event-pool.js +7 -9
  55. package/build/dex/inception/inception-event-pool.js.map +1 -1
  56. package/build/dex/inception/inception.d.ts +6 -6
  57. package/build/dex/inception/inception.js +16 -40
  58. package/build/dex/inception/inception.js.map +1 -1
  59. package/build/dex/inception/utils.d.ts +1 -0
  60. package/build/dex/inception/utils.js +22 -1
  61. package/build/dex/inception/utils.js.map +1 -1
  62. package/build/dex/index.js +2 -2
  63. package/build/dex/index.js.map +1 -1
  64. package/build/dex/lido.d.ts +19 -0
  65. package/build/dex/lido.js +42 -0
  66. package/build/dex/lido.js.map +1 -0
  67. package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
  68. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  69. package/build/dex/maker-psm/scripts/validate-state.js +185 -0
  70. package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
  71. package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
  72. package/build/dex/onebit.d.ts +25 -0
  73. package/build/dex/onebit.js +42 -0
  74. package/build/dex/onebit.js.map +1 -0
  75. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js +3 -9
  76. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js.map +1 -1
  77. package/build/dex/platypus/platypus.js +17 -3
  78. package/build/dex/platypus/platypus.js.map +1 -1
  79. package/build/dex/smoothy.d.ts +26 -0
  80. package/build/dex/smoothy.js +48 -0
  81. package/build/dex/smoothy.js.map +1 -0
  82. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
  83. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
  84. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
  85. package/build/dex/stable-pool.d.ts +28 -0
  86. package/build/dex/stable-pool.js +55 -0
  87. package/build/dex/stable-pool.js.map +1 -0
  88. package/build/dex/stkgho/config.js +2 -2
  89. package/build/dex/stkgho/config.js.map +1 -1
  90. package/build/dex/swaap-v1/swaap-v1.js +4 -0
  91. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  92. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +7 -0
  93. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +20 -0
  94. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +1 -0
  95. package/build/dex/trader-joe-v2.1.d.ts +43 -0
  96. package/build/dex/trader-joe-v2.1.js +79 -0
  97. package/build/dex/trader-joe-v2.1.js.map +1 -0
  98. package/build/dex/uniswap-v3/config.js +25 -0
  99. package/build/dex/uniswap-v3/config.js.map +1 -1
  100. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
  101. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
  102. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
  103. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
  104. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
  105. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
  106. package/build/dex/uniswap-v3/uniswap-v3-pool.js +3 -9
  107. package/build/dex/uniswap-v3/uniswap-v3-pool.js.map +1 -1
  108. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +4 -0
  109. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +43 -0
  110. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +1 -0
  111. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +1 -0
  112. package/build/dex/uniswap-v3/uniswap-v3-worker.js +10 -0
  113. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +1 -0
  114. package/build/dex/usual/usual-m-smart-m.d.ts +17 -0
  115. package/build/dex/usual/usual-m-smart-m.js +50 -0
  116. package/build/dex/usual/usual-m-smart-m.js.map +1 -0
  117. package/build/dex/usual/usual.js +1 -1
  118. package/build/dex/usual/usual.js.map +1 -1
  119. package/build/dex/usual-m-smart-m/config.d.ts +3 -0
  120. package/build/dex/usual-m-smart-m/config.js +13 -0
  121. package/build/dex/usual-m-smart-m/config.js.map +1 -0
  122. package/build/dex/usual-m-smart-m/types.d.ts +7 -0
  123. package/build/dex/usual-m-smart-m/types.js +3 -0
  124. package/build/dex/usual-m-smart-m/types.js.map +1 -0
  125. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +35 -0
  126. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +161 -0
  127. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +1 -0
  128. package/build/dex/usual-m-usd0/config.d.ts +3 -0
  129. package/build/dex/usual-m-usd0/config.js +14 -0
  130. package/build/dex/usual-m-usd0/config.js.map +1 -0
  131. package/build/dex/usual-m-usd0/types.d.ts +8 -0
  132. package/build/dex/usual-m-usd0/types.js +3 -0
  133. package/build/dex/usual-m-usd0/types.js.map +1 -0
  134. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +35 -0
  135. package/build/dex/usual-m-usd0/usual-m-usd0.js +159 -0
  136. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +1 -0
  137. package/build/dex/usual-pp/config.d.ts +3 -0
  138. package/build/dex/usual-pp/config.js +19 -0
  139. package/build/dex/usual-pp/config.js.map +1 -0
  140. package/build/dex/usual-pp/pool.d.ts +17 -0
  141. package/build/dex/usual-pp/pool.js +57 -0
  142. package/build/dex/usual-pp/pool.js.map +1 -0
  143. package/build/dex/usual-pp/types.d.ts +15 -0
  144. package/build/dex/usual-pp/types.js +3 -0
  145. package/build/dex/usual-pp/types.js.map +1 -0
  146. package/build/dex/usual-pp/usual-pp.d.ts +36 -0
  147. package/build/dex/usual-pp/usual-pp.js +167 -0
  148. package/build/dex/usual-pp/usual-pp.js.map +1 -0
  149. package/build/dex/usual-pp/utils.d.ts +4 -0
  150. package/build/dex/usual-pp/utils.js +18 -0
  151. package/build/dex/usual-pp/utils.js.map +1 -0
  152. package/package.json +2 -2
  153. package/src/abi/{aavev3statav2/Token.json → usual-pp/abi.json} +223 -470
  154. package/src/dex/aave-gsm/config.ts +3 -3
  155. package/src/dex/aave-v2/tokens.ts +4 -3
  156. package/src/dex/aave-v3/config.ts +7 -6
  157. package/src/dex/fluid-dex/fluid-dex-e2e.test.ts +0 -28
  158. package/src/dex/fluid-dex/fluid-dex.ts +9 -14
  159. package/src/dex/index.ts +2 -2
  160. package/src/dex/pancakeswap-v3/pancakeswap-v3-pool.ts +9 -9
  161. package/src/dex/stkgho/config.ts +3 -3
  162. package/src/dex/uniswap-v3/config.ts +26 -0
  163. package/src/dex/uniswap-v3/uniswap-v3-pool.ts +9 -9
  164. package/src/dex/usual/usual.ts +1 -1
  165. package/src/dex/usual-pp/config.ts +18 -0
  166. package/src/dex/usual-pp/pool.ts +77 -0
  167. package/src/dex/usual-pp/types.ts +12 -0
  168. package/src/dex/usual-pp/usual-events.test.ts +70 -0
  169. package/src/dex/usual-pp/usual-integration.test.ts +143 -0
  170. package/src/dex/usual-pp/usual-pp.e2e.test.ts +76 -0
  171. package/src/dex/usual-pp/usual-pp.ts +208 -0
  172. package/src/dex/usual-pp/utils.ts +27 -0
  173. package/tests/constants-e2e.ts +1 -16
  174. package/build/abi/Aave_GSM.json +0 -751
  175. package/build/abi/Balancer.json +0 -257
  176. package/build/abi/BalancerV2.json +0 -1179
  177. package/build/abi/RamsesV2Pool.abi.json +0 -1554
  178. package/build/abi/RamsesV2Quoter.abi.json +0 -274
  179. package/build/abi/UniswapV2Router.json +0 -397
  180. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +0 -509
  181. package/build/abi/curve-v1/CurveBUSDv2.abi.json +0 -1356
  182. package/build/abi/curve-v1/CurveTokenV1.json +0 -305
  183. package/build/abi/curve-v1/CurveTokenV2.json +0 -318
  184. package/build/abi/curve-v1/CurveV1StableNg.json +0 -1452
  185. package/build/abi/curve-v1/CurveV2Swap.json +0 -700
  186. package/build/abi/curve-v1/FactoryCryptoRegistry.json +0 -316
  187. package/build/abi/curve-v1/FactoryRegistry.json +0 -508
  188. package/build/abi/curve-v1/StableSwapAave.json +0 -1152
  189. package/build/abi/curve-v1/StableSwapBUSD.json +0 -814
  190. package/build/abi/curve-v1/StableSwapCompound.json +0 -814
  191. package/build/abi/curve-v1/StableSwapIDLE.json +0 -1253
  192. package/build/abi/curve-v1/StableSwapPax.json +0 -865
  193. package/build/abi/curve-v1/StableSwapSnow.json +0 -900
  194. package/build/abi/curve-v1/StableSwapUSDN.json +0 -1004
  195. package/build/abi/curve-v1/StableSwapUSDT.json +0 -814
  196. package/build/abi/curve-v1/StableSwapY.json +0 -814
  197. package/build/abi/inception/inception-ineth.json +0 -609
  198. package/build/abi/kyberdmm/kyber-storage.abi.json +0 -824
  199. package/build/abi/kyberdmm.abi.json +0 -1148
  200. package/build/abi/maverick-v2/MaverickV2Quoter.json +0 -278
  201. package/build/abi/nerve/nerve-metapool.json +0 -790
  202. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +0 -193
  203. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +0 -267
  204. package/build/dex/balancer-v1/balancer-pools.json +0 -33333
  205. package/build/dex/bebop/websocket-fetcher.d.ts +0 -35
  206. package/build/dex/bebop/websocket-fetcher.js +0 -87
  207. package/build/dex/bebop/websocket-fetcher.js.map +0 -1
  208. package/build/dex/idle-dao/idle-dao-pool.d.ts +0 -56
  209. package/build/dex/idle-dao/idle-dao-pool.js +0 -176
  210. package/build/dex/idle-dao/idle-dao-pool.js.map +0 -1
  211. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +0 -16
  212. package/build/dex/idle-dao/idle-dao-pooling-pool.js +0 -57
  213. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +0 -1
  214. package/build/dex/idle-dao/scripts.d.ts +0 -9
  215. package/build/dex/idle-dao/scripts.js +0 -552
  216. package/build/dex/idle-dao/scripts.js.map +0 -1
  217. package/build/dex/inception/inception-native.d.ts +0 -43
  218. package/build/dex/inception/inception-native.js +0 -131
  219. package/build/dex/inception/inception-native.js.map +0 -1
  220. package/build/dex/inception/inception-pool.d.ts +0 -18
  221. package/build/dex/inception/inception-pool.js +0 -32
  222. package/build/dex/inception/inception-pool.js.map +0 -1
  223. package/build/dex/inception/inception-price-feed.d.ts +0 -19
  224. package/build/dex/inception/inception-price-feed.js +0 -51
  225. package/build/dex/inception/inception-price-feed.js.map +0 -1
  226. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -16
  227. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -16
  228. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -16
  229. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -16
  230. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -16
  231. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -16
  232. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -16
  233. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -16
  234. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -9
  235. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -9
  236. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -9
  237. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +0 -9
  238. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +0 -9
  239. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -9
  240. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +0 -9
  241. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +0 -9
  242. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +0 -9
  243. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -12
  244. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -7
  245. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -7
  246. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -7
  247. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -7
  248. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -12
  249. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +0 -7
  250. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +0 -7
  251. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -78
  252. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -81
  253. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -78
  254. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -78
  255. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -81
  256. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -81
  257. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -81
  258. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -81
  259. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -64
  260. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -85
  261. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -64
  262. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +0 -52
  263. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +0 -52
  264. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -52
  265. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +0 -55
  266. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +0 -55
  267. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +0 -55
  268. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -23
  269. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -37
  270. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -23
  271. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -23
  272. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -51
  273. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +0 -58
  274. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -23
  275. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -23
  276. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -9
  277. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -16
  278. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -23
  279. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -12
  280. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -7
  281. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -12
  282. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -12
  283. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -7
  284. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +0 -7
  285. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -7
  286. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -7
  287. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -7
  288. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -7
  289. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -130
  290. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -136
  291. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -100
  292. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -100
  293. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -166
  294. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +0 -190
  295. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -114
  296. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -114
  297. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -55
  298. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -73
  299. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -82
  300. package/src/abi/aavev3statav2/Factory.json +0 -131
  301. package/src/abi/aavev3statav2/Pool.json +0 -1459
  302. package/src/dex/aave-v2/tokenlist.json +0 -904
  303. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2-e2e.test.ts +0 -397
  304. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2-integration.test.ts +0 -600
  305. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2.ts +0 -477
  306. package/src/dex/aave-v3-stata-v2/config.ts +0 -24
  307. package/src/dex/aave-v3-stata-v2/tokens.ts +0 -48
  308. package/src/dex/aave-v3-stata-v2/types.ts +0 -41
  309. package/src/dex/aave-v3-stata-v2/utils.ts +0 -88
@@ -1,16 +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
- },
2
+ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" },
14
3
  {
15
4
  "inputs": [
16
5
  { "internalType": "address", "name": "target", "type": "address" }
@@ -25,6 +14,14 @@
25
14
  "name": "AddressInsufficientBalance",
26
15
  "type": "error"
27
16
  },
17
+ { "inputs": [], "name": "AmountIsZero", "type": "error" },
18
+ { "inputs": [], "name": "AmountMustBeGreaterThanZero", "type": "error" },
19
+ { "inputs": [], "name": "AmountTooBig", "type": "error" },
20
+ { "inputs": [], "name": "ApprovalFailed", "type": "error" },
21
+ { "inputs": [], "name": "Blacklisted", "type": "error" },
22
+ { "inputs": [], "name": "BondFinished", "type": "error" },
23
+ { "inputs": [], "name": "BondNotFinished", "type": "error" },
24
+ { "inputs": [], "name": "BondNotStarted", "type": "error" },
28
25
  { "inputs": [], "name": "ECDSAInvalidSignature", "type": "error" },
29
26
  {
30
27
  "inputs": [
@@ -99,46 +96,12 @@
99
96
  "name": "ERC2612InvalidSigner",
100
97
  "type": "error"
101
98
  },
102
- {
103
- "inputs": [
104
- { "internalType": "address", "name": "receiver", "type": "address" },
105
- { "internalType": "uint256", "name": "assets", "type": "uint256" },
106
- { "internalType": "uint256", "name": "max", "type": "uint256" }
107
- ],
108
- "name": "ERC4626ExceededMaxDeposit",
109
- "type": "error"
110
- },
111
- {
112
- "inputs": [
113
- { "internalType": "address", "name": "receiver", "type": "address" },
114
- { "internalType": "uint256", "name": "shares", "type": "uint256" },
115
- { "internalType": "uint256", "name": "max", "type": "uint256" }
116
- ],
117
- "name": "ERC4626ExceededMaxMint",
118
- "type": "error"
119
- },
120
- {
121
- "inputs": [
122
- { "internalType": "address", "name": "owner", "type": "address" },
123
- { "internalType": "uint256", "name": "shares", "type": "uint256" },
124
- { "internalType": "uint256", "name": "max", "type": "uint256" }
125
- ],
126
- "name": "ERC4626ExceededMaxRedeem",
127
- "type": "error"
128
- },
129
- {
130
- "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
99
  { "inputs": [], "name": "EnforcedPause", "type": "error" },
139
- { "inputs": [], "name": "EthTransferFailed", "type": "error" },
140
100
  { "inputs": [], "name": "ExpectedPause", "type": "error" },
141
101
  { "inputs": [], "name": "FailedInnerCall", "type": "error" },
102
+ { "inputs": [], "name": "FloorPriceNotSet", "type": "error" },
103
+ { "inputs": [], "name": "FloorPriceTooHigh", "type": "error" },
104
+ { "inputs": [], "name": "InsufficientUsd0ppBalance", "type": "error" },
142
105
  {
143
106
  "inputs": [
144
107
  { "internalType": "address", "name": "account", "type": "address" },
@@ -147,45 +110,20 @@
147
110
  "name": "InvalidAccountNonce",
148
111
  "type": "error"
149
112
  },
150
- {
151
- "inputs": [
152
- { "internalType": "address", "name": "claimer", "type": "address" }
153
- ],
154
- "name": "InvalidClaimer",
155
- "type": "error"
156
- },
157
113
  { "inputs": [], "name": "InvalidInitialization", "type": "error" },
114
+ { "inputs": [], "name": "InvalidInput", "type": "error" },
115
+ { "inputs": [], "name": "InvalidInputArraysLength", "type": "error" },
158
116
  { "inputs": [], "name": "MathOverflowedMulDiv", "type": "error" },
117
+ { "inputs": [], "name": "NotAuthorized", "type": "error" },
159
118
  { "inputs": [], "name": "NotInitializing", "type": "error" },
160
- {
161
- "inputs": [
162
- { "internalType": "address", "name": "caller", "type": "address" }
163
- ],
164
- "name": "OnlyPauseGuardian",
165
- "type": "error"
166
- },
167
- { "inputs": [], "name": "OnlyRescueGuardian", "type": "error" },
168
- {
169
- "inputs": [
170
- { "internalType": "address", "name": "pool", "type": "address" }
171
- ],
172
- "name": "PoolAddressMismatch",
173
- "type": "error"
174
- },
175
- {
176
- "inputs": [
177
- { "internalType": "address", "name": "reward", "type": "address" }
178
- ],
179
- "name": "RewardNotInitialized",
180
- "type": "error"
181
- },
182
- {
183
- "inputs": [
184
- { "internalType": "address", "name": "token", "type": "address" }
185
- ],
186
- "name": "SafeERC20FailedOperation",
187
- "type": "error"
188
- },
119
+ { "inputs": [], "name": "NotPermittedToEarlyUnlock", "type": "error" },
120
+ { "inputs": [], "name": "NullAddress", "type": "error" },
121
+ { "inputs": [], "name": "OutOfBounds", "type": "error" },
122
+ { "inputs": [], "name": "OutsideEarlyUnlockTimeframe", "type": "error" },
123
+ { "inputs": [], "name": "PARNotRequired", "type": "error" },
124
+ { "inputs": [], "name": "PARNotSuccessful", "type": "error" },
125
+ { "inputs": [], "name": "PARUSD0InputExceedsBalance", "type": "error" },
126
+ { "inputs": [], "name": "ReentrancyGuardReentrantCall", "type": "error" },
189
127
  {
190
128
  "inputs": [
191
129
  { "internalType": "address", "name": "token", "type": "address" }
@@ -193,12 +131,6 @@
193
131
  "name": "SafeERC20FailedOperation",
194
132
  "type": "error"
195
133
  },
196
- { "inputs": [], "name": "StaticATokenInvalidZeroShares", "type": "error" },
197
- {
198
- "inputs": [],
199
- "name": "ZeroIncentivesControllerIsForbidden",
200
- "type": "error"
201
- },
202
134
  {
203
135
  "anonymous": false,
204
136
  "inputs": [
@@ -230,29 +162,49 @@
230
162
  {
231
163
  "indexed": true,
232
164
  "internalType": "address",
233
- "name": "sender",
165
+ "name": "user",
234
166
  "type": "address"
235
- },
167
+ }
168
+ ],
169
+ "name": "BondEarlyUnlockDisabled",
170
+ "type": "event"
171
+ },
172
+ {
173
+ "anonymous": false,
174
+ "inputs": [
236
175
  {
237
176
  "indexed": true,
238
177
  "internalType": "address",
239
- "name": "owner",
178
+ "name": "user",
240
179
  "type": "address"
241
180
  },
242
181
  {
243
182
  "indexed": false,
244
183
  "internalType": "uint256",
245
- "name": "assets",
184
+ "name": "amount",
246
185
  "type": "uint256"
186
+ }
187
+ ],
188
+ "name": "BondUnwrapped",
189
+ "type": "event"
190
+ },
191
+ {
192
+ "anonymous": false,
193
+ "inputs": [
194
+ {
195
+ "indexed": true,
196
+ "internalType": "address",
197
+ "name": "user",
198
+ "type": "address"
247
199
  },
248
200
  {
249
201
  "indexed": false,
250
202
  "internalType": "uint256",
251
- "name": "shares",
203
+ "name": "amount",
252
204
  "type": "uint256"
253
205
  }
254
206
  ],
255
- "name": "Deposit",
207
+ "name": "BondUnwrappedDuringEarlyUnlock",
256
208
  "type": "event"
257
209
  },
258
210
  {
@@ -265,31 +217,70 @@
265
217
  "anonymous": false,
266
218
  "inputs": [
267
219
  {
268
- "indexed": true,
269
- "internalType": "address",
270
- "name": "caller",
271
- "type": "address"
220
+ "indexed": false,
221
+ "internalType": "address[]",
222
+ "name": "addressesToAllocateTo",
223
+ "type": "address[]"
272
224
  },
273
225
  {
274
- "indexed": true,
275
- "internalType": "address",
276
- "name": "token",
277
- "type": "address"
226
+ "indexed": false,
227
+ "internalType": "uint256[]",
228
+ "name": "earlyUnlockBalances",
229
+ "type": "uint256[]"
230
+ }
231
+ ],
232
+ "name": "EarlyUnlockBalancesSet",
233
+ "type": "event"
234
+ },
235
+ {
236
+ "anonymous": false,
237
+ "inputs": [
238
+ {
239
+ "indexed": false,
240
+ "internalType": "uint256",
241
+ "name": "earlyUnlockStart",
242
+ "type": "uint256"
278
243
  },
244
+ {
245
+ "indexed": false,
246
+ "internalType": "uint256",
247
+ "name": "earlyUnlockEnd",
248
+ "type": "uint256"
249
+ }
250
+ ],
251
+ "name": "EarlyUnlockPeriodSet",
252
+ "type": "event"
253
+ },
254
+ {
255
+ "anonymous": false,
256
+ "inputs": [
279
257
  {
280
258
  "indexed": true,
281
259
  "internalType": "address",
282
- "name": "to",
260
+ "name": "account",
283
261
  "type": "address"
284
262
  },
285
263
  {
286
264
  "indexed": false,
287
265
  "internalType": "uint256",
288
- "name": "amount",
266
+ "name": "balance",
267
+ "type": "uint256"
268
+ }
269
+ ],
270
+ "name": "EmergencyWithdraw",
271
+ "type": "event"
272
+ },
273
+ {
274
+ "anonymous": false,
275
+ "inputs": [
276
+ {
277
+ "indexed": false,
278
+ "internalType": "uint256",
279
+ "name": "newFloorPrice",
289
280
  "type": "uint256"
290
281
  }
291
282
  ],
292
- "name": "ERC20Rescued",
283
+ "name": "FloorPriceUpdated",
293
284
  "type": "event"
294
285
  },
295
286
  {
@@ -311,13 +302,7 @@
311
302
  {
312
303
  "indexed": true,
313
304
  "internalType": "address",
314
- "name": "caller",
315
- "type": "address"
316
- },
317
- {
318
- "indexed": true,
319
- "internalType": "address",
320
- "name": "to",
305
+ "name": "user",
321
306
  "type": "address"
322
307
  },
323
308
  {
@@ -327,7 +312,7 @@
327
312
  "type": "uint256"
328
313
  }
329
314
  ],
330
- "name": "NativeTokensRescued",
315
+ "name": "PARMechanismActivated",
331
316
  "type": "event"
332
317
  },
333
318
  {
@@ -343,25 +328,6 @@
343
328
  "name": "Paused",
344
329
  "type": "event"
345
330
  },
346
- {
347
- "anonymous": false,
348
- "inputs": [
349
- {
350
- "indexed": true,
351
- "internalType": "address",
352
- "name": "reward",
353
- "type": "address"
354
- },
355
- {
356
- "indexed": false,
357
- "internalType": "uint256",
358
- "name": "startIndex",
359
- "type": "uint256"
360
- }
361
- ],
362
- "name": "RewardTokenRegistered",
363
- "type": "event"
364
- },
365
331
  {
366
332
  "anonymous": false,
367
333
  "inputs": [
@@ -406,35 +372,23 @@
406
372
  {
407
373
  "indexed": true,
408
374
  "internalType": "address",
409
- "name": "sender",
410
- "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",
375
+ "name": "user",
422
376
  "type": "address"
423
377
  },
424
378
  {
425
379
  "indexed": false,
426
380
  "internalType": "uint256",
427
- "name": "assets",
381
+ "name": "usd0ppAmount",
428
382
  "type": "uint256"
429
383
  },
430
384
  {
431
385
  "indexed": false,
432
386
  "internalType": "uint256",
433
- "name": "shares",
387
+ "name": "usd0Amount",
434
388
  "type": "uint256"
435
389
  }
436
390
  ],
437
- "name": "Withdraw",
391
+ "name": "Usd0ppUnlockedFloorPrice",
438
392
  "type": "event"
439
393
  },
440
394
  {
@@ -446,51 +400,27 @@
446
400
  },
447
401
  {
448
402
  "inputs": [],
449
- "name": "INCENTIVES_CONTROLLER",
450
- "outputs": [
451
- {
452
- "internalType": "contract IRewardsController",
453
- "name": "",
454
- "type": "address"
455
- }
456
- ],
457
- "stateMutability": "view",
458
- "type": "function"
459
- },
460
- {
461
- "inputs": [],
462
- "name": "POOL",
463
- "outputs": [
464
- { "internalType": "contract IPool", "name": "", "type": "address" }
465
- ],
403
+ "name": "Usd0PPStorageV0Location",
404
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
466
405
  "stateMutability": "view",
467
406
  "type": "function"
468
407
  },
469
408
  {
470
- "inputs": [],
471
- "name": "POOL_ADDRESSES_PROVIDER",
472
- "outputs": [
409
+ "inputs": [
473
410
  {
474
- "internalType": "contract IPoolAddressesProvider",
475
- "name": "",
476
- "type": "address"
411
+ "internalType": "address[]",
412
+ "name": "addressesToAllocateTo",
413
+ "type": "address[]"
414
+ },
415
+ {
416
+ "internalType": "uint256[]",
417
+ "name": "balancesToAllocate",
418
+ "type": "uint256[]"
477
419
  }
478
420
  ],
479
- "stateMutability": "view",
480
- "type": "function"
481
- },
482
- {
483
- "inputs": [],
484
- "name": "RAY",
485
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
486
- "stateMutability": "view",
487
- "type": "function"
488
- },
489
- {
490
- "inputs": [],
491
- "name": "aToken",
492
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
493
- "stateMutability": "view",
421
+ "name": "allocateEarlyUnlockBalance",
422
+ "outputs": [],
423
+ "stateMutability": "nonpayable",
494
424
  "type": "function"
495
425
  },
496
426
  {
@@ -513,13 +443,6 @@
513
443
  "stateMutability": "nonpayable",
514
444
  "type": "function"
515
445
  },
516
- {
517
- "inputs": [],
518
- "name": "asset",
519
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
520
- "stateMutability": "view",
521
- "type": "function"
522
- },
523
446
  {
524
447
  "inputs": [
525
448
  { "internalType": "address", "name": "account", "type": "address" }
@@ -529,72 +452,6 @@
529
452
  "stateMutability": "view",
530
453
  "type": "function"
531
454
  },
532
- {
533
- "inputs": [
534
- { "internalType": "address", "name": "actor", "type": "address" }
535
- ],
536
- "name": "canPause",
537
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
538
- "stateMutability": "view",
539
- "type": "function"
540
- },
541
- {
542
- "inputs": [
543
- { "internalType": "address", "name": "receiver", "type": "address" },
544
- { "internalType": "address[]", "name": "rewards", "type": "address[]" }
545
- ],
546
- "name": "claimRewards",
547
- "outputs": [],
548
- "stateMutability": "nonpayable",
549
- "type": "function"
550
- },
551
- {
552
- "inputs": [
553
- { "internalType": "address", "name": "onBehalfOf", "type": "address" },
554
- { "internalType": "address", "name": "receiver", "type": "address" },
555
- { "internalType": "address[]", "name": "rewards", "type": "address[]" }
556
- ],
557
- "name": "claimRewardsOnBehalf",
558
- "outputs": [],
559
- "stateMutability": "nonpayable",
560
- "type": "function"
561
- },
562
- {
563
- "inputs": [
564
- { "internalType": "address[]", "name": "rewards", "type": "address[]" }
565
- ],
566
- "name": "claimRewardsToSelf",
567
- "outputs": [],
568
- "stateMutability": "nonpayable",
569
- "type": "function"
570
- },
571
- {
572
- "inputs": [
573
- { "internalType": "address", "name": "reward", "type": "address" }
574
- ],
575
- "name": "collectAndUpdateRewards",
576
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
577
- "stateMutability": "nonpayable",
578
- "type": "function"
579
- },
580
- {
581
- "inputs": [
582
- { "internalType": "uint256", "name": "shares", "type": "uint256" }
583
- ],
584
- "name": "convertToAssets",
585
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
586
- "stateMutability": "view",
587
- "type": "function"
588
- },
589
- {
590
- "inputs": [
591
- { "internalType": "uint256", "name": "assets", "type": "uint256" }
592
- ],
593
- "name": "convertToShares",
594
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
595
- "stateMutability": "view",
596
- "type": "function"
597
- },
598
455
  {
599
456
  "inputs": [],
600
457
  "name": "decimals",
@@ -602,48 +459,6 @@
602
459
  "stateMutability": "view",
603
460
  "type": "function"
604
461
  },
605
- {
606
- "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" },
630
- {
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" }
641
- ],
642
- "name": "depositWithPermit",
643
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
644
- "stateMutability": "nonpayable",
645
- "type": "function"
646
- },
647
462
  {
648
463
  "inputs": [],
649
464
  "name": "eip712Domain",
@@ -665,153 +480,92 @@
665
480
  },
666
481
  {
667
482
  "inputs": [
668
- { "internalType": "address", "name": "to", "type": "address" },
669
- { "internalType": "uint256", "name": "amount", "type": "uint256" }
670
- ],
671
- "name": "emergencyEtherTransfer",
672
- "outputs": [],
673
- "stateMutability": "nonpayable",
674
- "type": "function"
675
- },
676
- {
677
- "inputs": [
678
- { "internalType": "address", "name": "erc20Token", "type": "address" },
679
- { "internalType": "address", "name": "to", "type": "address" },
680
- { "internalType": "uint256", "name": "amount", "type": "uint256" }
483
+ { "internalType": "address", "name": "safeAccount", "type": "address" }
681
484
  ],
682
- "name": "emergencyTokenTransfer",
485
+ "name": "emergencyWithdraw",
683
486
  "outputs": [],
684
487
  "stateMutability": "nonpayable",
685
488
  "type": "function"
686
489
  },
687
490
  {
688
491
  "inputs": [
689
- { "internalType": "address", "name": "user", "type": "address" },
690
- { "internalType": "address", "name": "reward", "type": "address" }
492
+ { "internalType": "address", "name": "addressToCheck", "type": "address" }
691
493
  ],
692
- "name": "getClaimableRewards",
494
+ "name": "getAllocationEarlyUnlock",
693
495
  "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
694
496
  "stateMutability": "view",
695
497
  "type": "function"
696
498
  },
697
499
  {
698
500
  "inputs": [
699
- { "internalType": "address", "name": "reward", "type": "address" }
501
+ { "internalType": "address", "name": "user", "type": "address" }
700
502
  ],
701
- "name": "getCurrentRewardsIndex",
702
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
503
+ "name": "getBondEarlyUnlockDisabled",
504
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
703
505
  "stateMutability": "view",
704
506
  "type": "function"
705
507
  },
706
508
  {
707
509
  "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" }
716
- ],
717
- "name": "getTotalClaimableRewards",
510
+ "name": "getEndTime",
718
511
  "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
719
512
  "stateMutability": "view",
720
513
  "type": "function"
721
514
  },
722
515
  {
723
- "inputs": [
724
- { "internalType": "address", "name": "user", "type": "address" },
725
- { "internalType": "address", "name": "reward", "type": "address" }
726
- ],
727
- "name": "getUnclaimedRewards",
516
+ "inputs": [],
517
+ "name": "getFloorPrice",
728
518
  "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
729
519
  "stateMutability": "view",
730
520
  "type": "function"
731
521
  },
732
- {
733
- "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
- }
745
- ],
746
- "name": "initialize",
747
- "outputs": [],
748
- "stateMutability": "nonpayable",
749
- "type": "function"
750
- },
751
- {
752
- "inputs": [
753
- { "internalType": "address", "name": "reward", "type": "address" }
754
- ],
755
- "name": "isRegisteredRewardToken",
756
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
757
- "stateMutability": "view",
758
- "type": "function"
759
- },
760
522
  {
761
523
  "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",
524
+ "name": "getStartTime",
770
525
  "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
771
526
  "stateMutability": "view",
772
527
  "type": "function"
773
528
  },
774
529
  {
775
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
776
- "name": "maxMint",
530
+ "inputs": [],
531
+ "name": "getTemporaryUnlockEndTime",
777
532
  "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
778
533
  "stateMutability": "view",
779
534
  "type": "function"
780
535
  },
781
536
  {
782
- "inputs": [
783
- { "internalType": "address", "name": "owner", "type": "address" }
784
- ],
785
- "name": "maxRedeem",
537
+ "inputs": [],
538
+ "name": "getTemporaryUnlockStartTime",
786
539
  "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
787
540
  "stateMutability": "view",
788
541
  "type": "function"
789
542
  },
790
543
  {
791
- "inputs": [
792
- { "internalType": "address", "name": "asset", "type": "address" }
793
- ],
794
- "name": "maxRescue",
795
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
796
- "stateMutability": "view",
544
+ "inputs": [],
545
+ "name": "initializeV1",
546
+ "outputs": [],
547
+ "stateMutability": "nonpayable",
797
548
  "type": "function"
798
549
  },
799
550
  {
800
551
  "inputs": [
801
- { "internalType": "address", "name": "owner", "type": "address" }
552
+ { "internalType": "uint256", "name": "amountUsd0", "type": "uint256" }
802
553
  ],
803
- "name": "maxWithdraw",
804
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
805
- "stateMutability": "view",
554
+ "name": "mint",
555
+ "outputs": [],
556
+ "stateMutability": "nonpayable",
806
557
  "type": "function"
807
558
  },
808
559
  {
809
560
  "inputs": [
810
- { "internalType": "uint256", "name": "shares", "type": "uint256" },
811
- { "internalType": "address", "name": "receiver", "type": "address" }
561
+ { "internalType": "uint256", "name": "amountUsd0", "type": "uint256" },
562
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" },
563
+ { "internalType": "uint8", "name": "v", "type": "uint8" },
564
+ { "internalType": "bytes32", "name": "r", "type": "bytes32" },
565
+ { "internalType": "bytes32", "name": "s", "type": "bytes32" }
812
566
  ],
813
- "name": "mint",
814
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
567
+ "name": "mintWithPermit",
568
+ "outputs": [],
815
569
  "stateMutability": "nonpayable",
816
570
  "type": "function"
817
571
  },
@@ -831,6 +585,13 @@
831
585
  "stateMutability": "view",
832
586
  "type": "function"
833
587
  },
588
+ {
589
+ "inputs": [],
590
+ "name": "pause",
591
+ "outputs": [],
592
+ "stateMutability": "nonpayable",
593
+ "type": "function"
594
+ },
834
595
  {
835
596
  "inputs": [],
836
597
  "name": "paused",
@@ -855,97 +616,52 @@
855
616
  },
856
617
  {
857
618
  "inputs": [
858
- { "internalType": "uint256", "name": "assets", "type": "uint256" }
859
- ],
860
- "name": "previewDeposit",
861
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
862
- "stateMutability": "view",
863
- "type": "function"
864
- },
865
- {
866
- "inputs": [
867
- { "internalType": "uint256", "name": "shares", "type": "uint256" }
868
- ],
869
- "name": "previewMint",
870
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
871
- "stateMutability": "view",
872
- "type": "function"
873
- },
874
- {
875
- "inputs": [
876
- { "internalType": "uint256", "name": "shares", "type": "uint256" }
877
- ],
878
- "name": "previewRedeem",
879
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
880
- "stateMutability": "view",
881
- "type": "function"
882
- },
883
- {
884
- "inputs": [
885
- { "internalType": "uint256", "name": "assets", "type": "uint256" }
886
- ],
887
- "name": "previewWithdraw",
888
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
889
- "stateMutability": "view",
890
- "type": "function"
891
- },
892
- {
893
- "inputs": [
894
- { "internalType": "uint256", "name": "shares", "type": "uint256" },
895
- { "internalType": "address", "name": "receiver", "type": "address" },
896
- { "internalType": "address", "name": "owner", "type": "address" }
619
+ { "internalType": "address", "name": "user", "type": "address" }
897
620
  ],
898
- "name": "redeem",
899
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
621
+ "name": "setBondEarlyUnlockDisabled",
622
+ "outputs": [],
900
623
  "stateMutability": "nonpayable",
901
624
  "type": "function"
902
625
  },
903
626
  {
904
627
  "inputs": [
905
- { "internalType": "uint256", "name": "shares", "type": "uint256" },
906
- { "internalType": "address", "name": "receiver", "type": "address" },
907
- { "internalType": "address", "name": "owner", "type": "address" }
628
+ {
629
+ "internalType": "uint256",
630
+ "name": "bondEarlyUnlockStart",
631
+ "type": "uint256"
632
+ },
633
+ {
634
+ "internalType": "uint256",
635
+ "name": "bondEarlyUnlockEnd",
636
+ "type": "uint256"
637
+ }
908
638
  ],
909
- "name": "redeemATokens",
910
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
911
- "stateMutability": "nonpayable",
912
- "type": "function"
913
- },
914
- {
915
- "inputs": [],
916
- "name": "refreshRewardTokens",
639
+ "name": "setupEarlyUnlockPeriod",
917
640
  "outputs": [],
918
641
  "stateMutability": "nonpayable",
919
642
  "type": "function"
920
643
  },
921
644
  {
922
645
  "inputs": [],
923
- "name": "rewardTokens",
924
- "outputs": [
925
- { "internalType": "address[]", "name": "", "type": "address[]" }
926
- ],
646
+ "name": "symbol",
647
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
927
648
  "stateMutability": "view",
928
649
  "type": "function"
929
650
  },
930
651
  {
931
- "inputs": [{ "internalType": "bool", "name": "paused", "type": "bool" }],
932
- "name": "setPaused",
652
+ "inputs": [
653
+ { "internalType": "uint256", "name": "amountToUnwrap", "type": "uint256" }
654
+ ],
655
+ "name": "temporaryOneToOneExitUnwrap",
933
656
  "outputs": [],
934
657
  "stateMutability": "nonpayable",
935
658
  "type": "function"
936
659
  },
937
660
  {
938
661
  "inputs": [],
939
- "name": "symbol",
940
- "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
941
- "stateMutability": "view",
942
- "type": "function"
943
- },
944
- {
945
- "inputs": [],
946
- "name": "totalAssets",
662
+ "name": "totalBondTimes",
947
663
  "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
948
- "stateMutability": "view",
664
+ "stateMutability": "pure",
949
665
  "type": "function"
950
666
  },
951
667
  {
@@ -976,21 +692,58 @@
976
692
  "stateMutability": "nonpayable",
977
693
  "type": "function"
978
694
  },
695
+ {
696
+ "inputs": [
697
+ { "internalType": "uint256", "name": "parUsd0Amount", "type": "uint256" },
698
+ {
699
+ "internalType": "uint256",
700
+ "name": "minimumPARMechanismGainedAmount",
701
+ "type": "uint256"
702
+ }
703
+ ],
704
+ "name": "triggerPARMechanismCurvepool",
705
+ "outputs": [],
706
+ "stateMutability": "nonpayable",
707
+ "type": "function"
708
+ },
709
+ {
710
+ "inputs": [
711
+ { "internalType": "uint256", "name": "usd0ppAmount", "type": "uint256" }
712
+ ],
713
+ "name": "unlockUsd0ppFloorPrice",
714
+ "outputs": [],
715
+ "stateMutability": "nonpayable",
716
+ "type": "function"
717
+ },
979
718
  {
980
719
  "inputs": [],
981
- "name": "whoCanRescue",
982
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
983
- "stateMutability": "view",
720
+ "name": "unpause",
721
+ "outputs": [],
722
+ "stateMutability": "nonpayable",
723
+ "type": "function"
724
+ },
725
+ {
726
+ "inputs": [],
727
+ "name": "unwrap",
728
+ "outputs": [],
729
+ "stateMutability": "nonpayable",
984
730
  "type": "function"
985
731
  },
986
732
  {
987
733
  "inputs": [
988
- { "internalType": "uint256", "name": "assets", "type": "uint256" },
989
- { "internalType": "address", "name": "receiver", "type": "address" },
990
- { "internalType": "address", "name": "owner", "type": "address" }
734
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
991
735
  ],
992
- "name": "withdraw",
993
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
736
+ "name": "unwrapPegMaintainer",
737
+ "outputs": [],
738
+ "stateMutability": "nonpayable",
739
+ "type": "function"
740
+ },
741
+ {
742
+ "inputs": [
743
+ { "internalType": "uint256", "name": "newFloorPrice", "type": "uint256" }
744
+ ],
745
+ "name": "updateFloorPrice",
746
+ "outputs": [],
994
747
  "stateMutability": "nonpayable",
995
748
  "type": "function"
996
749
  }