@paraswap/dex-lib 3.8.21-traderjoe-multihop.2 → 3.8.21

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 (256) hide show
  1. package/build/abi/AaveV1_lending_pool.json +27 -0
  2. package/build/abi/inception/inception-ineth-pool.json +1062 -0
  3. package/build/abi/inception/inception-ineth.json +609 -0
  4. package/build/abi/inception/inception-ratio-feed.json +93 -0
  5. package/build/abi/inception/inception-vault.json +991 -0
  6. package/build/abi/infusion/InfusionFactory.json +147 -0
  7. package/build/abi/infusion/InfusionPair.json +658 -0
  8. package/build/abi/infusion/InfusionRouter.json +442 -0
  9. package/build/abi/lite-psm/dai.json +333 -0
  10. package/build/abi/lite-psm/psm.json +468 -0
  11. package/build/abi/lite-psm/usdc.json +814 -0
  12. package/build/abi/oswap/oswap.abi.json +452 -0
  13. package/build/abi/platypus/asset.json +490 -0
  14. package/build/abi/platypus/avax-pool.json +820 -0
  15. package/build/abi/platypus/oracle.json +119 -0
  16. package/build/abi/platypus/pool.json +677 -0
  17. package/build/abi/smardex/all/smardex-router.json +648 -0
  18. package/build/abi/smardex/layer-1/smardex-factory.json +242 -0
  19. package/build/abi/smardex/layer-1/smardex-pool.json +506 -0
  20. package/build/abi/smardex/layer-2/smardex-factory.json +185 -0
  21. package/build/abi/smardex/layer-2/smardex-pool.json +578 -0
  22. package/build/abi/swaap-v1/pool.json +1346 -0
  23. package/build/dex/aave-v1/aave-v1.d.ts +34 -0
  24. package/build/dex/aave-v1/aave-v1.js +180 -0
  25. package/build/dex/aave-v1/aave-v1.js.map +1 -0
  26. package/build/dex/aave-v1/config.d.ts +11 -0
  27. package/build/dex/aave-v1/config.js +20 -0
  28. package/build/dex/aave-v1/config.js.map +1 -0
  29. package/build/dex/aave-v1/tokens-mainnet.json +134 -0
  30. package/build/dex/aave-v1/tokens.d.ts +3 -0
  31. package/build/dex/aave-v1/tokens.js +50 -0
  32. package/build/dex/aave-v1/tokens.js.map +1 -0
  33. package/build/dex/aave-v1/types.d.ts +12 -0
  34. package/build/dex/aave-v1/types.js +3 -0
  35. package/build/dex/aave-v1/types.js.map +1 -0
  36. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  37. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  38. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  39. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  40. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  41. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  42. package/build/dex/idle-dao/scripts.d.ts +9 -0
  43. package/build/dex/idle-dao/scripts.js +552 -0
  44. package/build/dex/idle-dao/scripts.js.map +1 -0
  45. package/build/dex/inception/config.d.ts +5 -0
  46. package/build/dex/inception/config.js +112 -0
  47. package/build/dex/inception/config.js.map +1 -0
  48. package/build/dex/inception/inception-event-pool.d.ts +23 -0
  49. package/build/dex/inception/inception-event-pool.js +34 -0
  50. package/build/dex/inception/inception-event-pool.js.map +1 -0
  51. package/build/dex/inception/inception-native.d.ts +43 -0
  52. package/build/dex/inception/inception-native.js +131 -0
  53. package/build/dex/inception/inception-native.js.map +1 -0
  54. package/build/dex/inception/inception-pool.d.ts +18 -0
  55. package/build/dex/inception/inception-pool.js +32 -0
  56. package/build/dex/inception/inception-pool.js.map +1 -0
  57. package/build/dex/inception/inception-price-feed.d.ts +19 -0
  58. package/build/dex/inception/inception-price-feed.js +51 -0
  59. package/build/dex/inception/inception-price-feed.js.map +1 -0
  60. package/build/dex/inception/inception.d.ts +44 -0
  61. package/build/dex/inception/inception.js +162 -0
  62. package/build/dex/inception/inception.js.map +1 -0
  63. package/build/dex/inception/tokens.d.ts +9 -0
  64. package/build/dex/inception/tokens.js +28 -0
  65. package/build/dex/inception/tokens.js.map +1 -0
  66. package/build/dex/inception/types.d.ts +22 -0
  67. package/build/dex/inception/types.js +3 -0
  68. package/build/dex/inception/types.js.map +1 -0
  69. package/build/dex/inception/utils.d.ts +7 -0
  70. package/build/dex/inception/utils.js +58 -0
  71. package/build/dex/inception/utils.js.map +1 -0
  72. package/build/dex/index.js +2 -0
  73. package/build/dex/index.js.map +1 -1
  74. package/build/dex/infusion/config.d.ts +4 -0
  75. package/build/dex/infusion/config.js +25 -0
  76. package/build/dex/infusion/config.js.map +1 -0
  77. package/build/dex/infusion/infusion-stable-pool.d.ts +4 -0
  78. package/build/dex/infusion/infusion-stable-pool.js +74 -0
  79. package/build/dex/infusion/infusion-stable-pool.js.map +1 -0
  80. package/build/dex/infusion/infusion.d.ts +54 -0
  81. package/build/dex/infusion/infusion.js +510 -0
  82. package/build/dex/infusion/infusion.js.map +1 -0
  83. package/build/dex/infusion/types.d.ts +47 -0
  84. package/build/dex/infusion/types.js +3 -0
  85. package/build/dex/infusion/types.js.map +1 -0
  86. package/build/dex/infusion/utils/isStablePair.d.ts +2 -0
  87. package/build/dex/infusion/utils/isStablePair.js +18 -0
  88. package/build/dex/infusion/utils/isStablePair.js.map +1 -0
  89. package/build/dex/lite-psm/config.d.ts +3 -0
  90. package/build/dex/lite-psm/config.js +29 -0
  91. package/build/dex/lite-psm/config.js.map +1 -0
  92. package/build/dex/lite-psm/lite-psm-event-pool.d.ts +29 -0
  93. package/build/dex/lite-psm/lite-psm-event-pool.js +164 -0
  94. package/build/dex/lite-psm/lite-psm-event-pool.js.map +1 -0
  95. package/build/dex/lite-psm/lite-psm.d.ts +52 -0
  96. package/build/dex/lite-psm/lite-psm.js +341 -0
  97. package/build/dex/lite-psm/lite-psm.js.map +1 -0
  98. package/build/dex/lite-psm/types.d.ts +40 -0
  99. package/build/dex/lite-psm/types.js +3 -0
  100. package/build/dex/lite-psm/types.js.map +1 -0
  101. package/build/dex/maker-psm/maker-psm.js +4 -1
  102. package/build/dex/maker-psm/maker-psm.js.map +1 -1
  103. package/build/dex/oswap/config.d.ts +5 -0
  104. package/build/dex/oswap/config.js +31 -0
  105. package/build/dex/oswap/config.js.map +1 -0
  106. package/build/dex/oswap/oswap-pool.d.ts +51 -0
  107. package/build/dex/oswap/oswap-pool.js +150 -0
  108. package/build/dex/oswap/oswap-pool.js.map +1 -0
  109. package/build/dex/oswap/oswap.d.ts +46 -0
  110. package/build/dex/oswap/oswap.js +273 -0
  111. package/build/dex/oswap/oswap.js.map +1 -0
  112. package/build/dex/oswap/types.d.ts +20 -0
  113. package/build/dex/oswap/types.js +3 -0
  114. package/build/dex/oswap/types.js.map +1 -0
  115. package/build/dex/platypus/asset.d.ts +14 -0
  116. package/build/dex/platypus/asset.js +97 -0
  117. package/build/dex/platypus/asset.js.map +1 -0
  118. package/build/dex/platypus/config.d.ts +11 -0
  119. package/build/dex/platypus/config.js +69 -0
  120. package/build/dex/platypus/config.js.map +1 -0
  121. package/build/dex/platypus/platypus.d.ts +63 -0
  122. package/build/dex/platypus/platypus.js +473 -0
  123. package/build/dex/platypus/platypus.js.map +1 -0
  124. package/build/dex/platypus/pool-avax.d.ts +8 -0
  125. package/build/dex/platypus/pool-avax.js +54 -0
  126. package/build/dex/platypus/pool-avax.js.map +1 -0
  127. package/build/dex/platypus/pool-base.d.ts +19 -0
  128. package/build/dex/platypus/pool-base.js +86 -0
  129. package/build/dex/platypus/pool-base.js.map +1 -0
  130. package/build/dex/platypus/pool-pure.d.ts +8 -0
  131. package/build/dex/platypus/pool-pure.js +37 -0
  132. package/build/dex/platypus/pool-pure.js.map +1 -0
  133. package/build/dex/platypus/pool-subscriber.d.ts +14 -0
  134. package/build/dex/platypus/pool-subscriber.js +167 -0
  135. package/build/dex/platypus/pool-subscriber.js.map +1 -0
  136. package/build/dex/platypus/pool.d.ts +8 -0
  137. package/build/dex/platypus/pool.js +58 -0
  138. package/build/dex/platypus/pool.js.map +1 -0
  139. package/build/dex/platypus/types.d.ts +92 -0
  140. package/build/dex/platypus/types.js +10 -0
  141. package/build/dex/platypus/types.js.map +1 -0
  142. package/build/dex/quickswap/spiritswap-v3.d.ts +6 -0
  143. package/build/dex/quickswap/spiritswap-v3.js +19 -0
  144. package/build/dex/quickswap/spiritswap-v3.js.map +1 -0
  145. package/build/dex/smardex/config.d.ts +4 -0
  146. package/build/dex/smardex/config.js +64 -0
  147. package/build/dex/smardex/config.js.map +1 -0
  148. package/build/dex/smardex/constants.d.ts +18 -0
  149. package/build/dex/smardex/constants.js +33 -0
  150. package/build/dex/smardex/constants.js.map +1 -0
  151. package/build/dex/smardex/sdk/constants.d.ts +6 -0
  152. package/build/dex/smardex/sdk/constants.js +13 -0
  153. package/build/dex/smardex/sdk/constants.js.map +1 -0
  154. package/build/dex/smardex/sdk/core.d.ts +113 -0
  155. package/build/dex/smardex/sdk/core.js +499 -0
  156. package/build/dex/smardex/sdk/core.js.map +1 -0
  157. package/build/dex/smardex/sdk/errors.d.ts +15 -0
  158. package/build/dex/smardex/sdk/errors.js +22 -0
  159. package/build/dex/smardex/sdk/errors.js.map +1 -0
  160. package/build/dex/smardex/sdk/types.d.ts +62 -0
  161. package/build/dex/smardex/sdk/types.js +3 -0
  162. package/build/dex/smardex/sdk/types.js.map +1 -0
  163. package/build/dex/smardex/sdk/utils.d.ts +44 -0
  164. package/build/dex/smardex/sdk/utils.js +133 -0
  165. package/build/dex/smardex/sdk/utils.js.map +1 -0
  166. package/build/dex/smardex/smardex-event-pool.d.ts +28 -0
  167. package/build/dex/smardex/smardex-event-pool.js +119 -0
  168. package/build/dex/smardex/smardex-event-pool.js.map +1 -0
  169. package/build/dex/smardex/smardex.d.ts +65 -0
  170. package/build/dex/smardex/smardex.js +519 -0
  171. package/build/dex/smardex/smardex.js.map +1 -0
  172. package/build/dex/smardex/types.d.ts +55 -0
  173. package/build/dex/smardex/types.js +3 -0
  174. package/build/dex/smardex/types.js.map +1 -0
  175. package/build/dex/solidly/forks-override/cone.d.ts +22 -0
  176. package/build/dex/solidly/forks-override/cone.js +53 -0
  177. package/build/dex/solidly/forks-override/cone.js.map +1 -0
  178. package/build/dex/solidly/forks-override/solisnek.d.ts +8 -0
  179. package/build/dex/solidly/forks-override/solisnek.js +15 -0
  180. package/build/dex/solidly/forks-override/solisnek.js.map +1 -0
  181. package/build/dex/swaap-v1/config.d.ts +17 -0
  182. package/build/dex/swaap-v1/config.js +56 -0
  183. package/build/dex/swaap-v1/config.js.map +1 -0
  184. package/build/dex/swaap-v1/constants.d.ts +6 -0
  185. package/build/dex/swaap-v1/constants.js +17 -0
  186. package/build/dex/swaap-v1/constants.js.map +1 -0
  187. package/build/dex/swaap-v1/libraries/ChainlinkUtils.d.ts +25 -0
  188. package/build/dex/swaap-v1/libraries/ChainlinkUtils.js +62 -0
  189. package/build/dex/swaap-v1/libraries/ChainlinkUtils.js.map +1 -0
  190. package/build/dex/swaap-v1/libraries/Const.d.ts +18 -0
  191. package/build/dex/swaap-v1/libraries/Const.js +26 -0
  192. package/build/dex/swaap-v1/libraries/Const.js.map +1 -0
  193. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.d.ts +77 -0
  194. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.js +316 -0
  195. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.js.map +1 -0
  196. package/build/dex/swaap-v1/libraries/LogExpMath.d.ts +75 -0
  197. package/build/dex/swaap-v1/libraries/LogExpMath.js +418 -0
  198. package/build/dex/swaap-v1/libraries/LogExpMath.js.map +1 -0
  199. package/build/dex/swaap-v1/libraries/MathMMM.d.ts +185 -0
  200. package/build/dex/swaap-v1/libraries/MathMMM.js +453 -0
  201. package/build/dex/swaap-v1/libraries/MathMMM.js.map +1 -0
  202. package/build/dex/swaap-v1/libraries/Num.d.ts +31 -0
  203. package/build/dex/swaap-v1/libraries/Num.js +167 -0
  204. package/build/dex/swaap-v1/libraries/Num.js.map +1 -0
  205. package/build/dex/swaap-v1/libraries/PoolQuotations.d.ts +23 -0
  206. package/build/dex/swaap-v1/libraries/PoolQuotations.js +131 -0
  207. package/build/dex/swaap-v1/libraries/PoolQuotations.js.map +1 -0
  208. package/build/dex/swaap-v1/libraries/Struct.d.ts +56 -0
  209. package/build/dex/swaap-v1/libraries/Struct.js +3 -0
  210. package/build/dex/swaap-v1/libraries/Struct.js.map +1 -0
  211. package/build/dex/swaap-v1/swaap-v1-pool.d.ts +45 -0
  212. package/build/dex/swaap-v1/swaap-v1-pool.js +656 -0
  213. package/build/dex/swaap-v1/swaap-v1-pool.js.map +1 -0
  214. package/build/dex/swaap-v1/swaap-v1.d.ts +62 -0
  215. package/build/dex/swaap-v1/swaap-v1.js +379 -0
  216. package/build/dex/swaap-v1/swaap-v1.js.map +1 -0
  217. package/build/dex/swaap-v1/types.d.ts +106 -0
  218. package/build/dex/swaap-v1/types.js +9 -0
  219. package/build/dex/swaap-v1/types.js.map +1 -0
  220. package/build/dex/trader-joe-v2.1/base.js +16 -5
  221. package/build/dex/trader-joe-v2.1/base.js.map +1 -1
  222. package/build/dex/trader-joe-v2.1/types.d.ts +3 -3
  223. package/build/dex-helper/dummy-dex-helper.js +1 -1
  224. package/build/dex-helper/dummy-dex-helper.js.map +1 -1
  225. package/package.json +1 -1
  226. package/src/abi/lite-psm/dai.json +333 -0
  227. package/src/abi/lite-psm/psm.json +468 -0
  228. package/src/abi/lite-psm/usdc.json +814 -0
  229. package/src/dex/index.ts +2 -0
  230. package/src/dex/lite-psm/config.ts +29 -0
  231. package/src/dex/lite-psm/lite-psm-e2e.test.ts +79 -0
  232. package/src/dex/lite-psm/lite-psm-event-pool.ts +216 -0
  233. package/src/dex/lite-psm/lite-psm-events.test.ts +61 -0
  234. package/src/dex/lite-psm/lite-psm-integration.test.ts +99 -0
  235. package/src/dex/lite-psm/lite-psm.ts +523 -0
  236. package/src/dex/lite-psm/types.ts +46 -0
  237. package/src/dex/maker-psm/maker-psm.ts +4 -1
  238. package/src/dex/trader-joe-v2.1/base.ts +16 -5
  239. package/src/dex/trader-joe-v2.1/types.ts +3 -3
  240. package/src/dex-helper/dummy-dex-helper.ts +1 -1
  241. package/.idea/aws.xml +0 -17
  242. package/.idea/codeStyles/Project.xml +0 -19
  243. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  244. package/.idea/misc.xml +0 -6
  245. package/.idea/modules.xml +0 -8
  246. package/.idea/paraswap-dex-lib.iml +0 -9
  247. package/.idea/prettier.xml +0 -7
  248. package/.idea/vcs.xml +0 -6
  249. package/build/abi/maverick-v2/MaverickV2Router.json +0 -778
  250. package/build/dex/trader-joe-v2.1/optimizer.d.ts +0 -2
  251. package/build/dex/trader-joe-v2.1/optimizer.js +0 -47
  252. package/build/dex/trader-joe-v2.1/optimizer.js.map +0 -1
  253. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +0 -7
  254. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +0 -20
  255. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +0 -1
  256. package/src/dex/trader-joe-v2.1/optimizer.ts +0 -60
@@ -0,0 +1,452 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "stateMutability": "nonpayable",
5
+ "type": "constructor"
6
+ },
7
+ {
8
+ "anonymous": false,
9
+ "inputs": [
10
+ {
11
+ "indexed": false,
12
+ "internalType": "address",
13
+ "name": "previousAdmin",
14
+ "type": "address"
15
+ },
16
+ {
17
+ "indexed": false,
18
+ "internalType": "address",
19
+ "name": "newAdmin",
20
+ "type": "address"
21
+ }
22
+ ],
23
+ "name": "AdminChanged",
24
+ "type": "event"
25
+ },
26
+ {
27
+ "anonymous": false,
28
+ "inputs": [
29
+ {
30
+ "indexed": false,
31
+ "internalType": "address",
32
+ "name": "previousAdmin",
33
+ "type": "address"
34
+ },
35
+ {
36
+ "indexed": false,
37
+ "internalType": "address",
38
+ "name": "newAdmin",
39
+ "type": "address"
40
+ }
41
+ ],
42
+ "name": "OperatorChanged",
43
+ "type": "event"
44
+ },
45
+ {
46
+ "anonymous": false,
47
+ "inputs": [
48
+ {
49
+ "indexed": false,
50
+ "internalType": "uint256",
51
+ "name": "traderate0",
52
+ "type": "uint256"
53
+ },
54
+ {
55
+ "indexed": false,
56
+ "internalType": "uint256",
57
+ "name": "traderate1",
58
+ "type": "uint256"
59
+ }
60
+ ],
61
+ "name": "TraderateChanged",
62
+ "type": "event"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "approveStETH",
67
+ "outputs": [],
68
+ "stateMutability": "nonpayable",
69
+ "type": "function"
70
+ },
71
+ {
72
+ "inputs": [
73
+ {
74
+ "internalType": "uint256[]",
75
+ "name": "requestIds",
76
+ "type": "uint256[]"
77
+ }
78
+ ],
79
+ "name": "claimStETHWithdrawalForETH",
80
+ "outputs": [],
81
+ "stateMutability": "nonpayable",
82
+ "type": "function"
83
+ },
84
+ {
85
+ "inputs": [
86
+ {
87
+ "internalType": "uint256[]",
88
+ "name": "requestIds",
89
+ "type": "uint256[]"
90
+ }
91
+ ],
92
+ "name": "claimStETHWithdrawalForWETH",
93
+ "outputs": [],
94
+ "stateMutability": "nonpayable",
95
+ "type": "function"
96
+ },
97
+ {
98
+ "inputs": [
99
+ {
100
+ "internalType": "uint256",
101
+ "name": "amount",
102
+ "type": "uint256"
103
+ }
104
+ ],
105
+ "name": "depositETHForStETH",
106
+ "outputs": [],
107
+ "stateMutability": "nonpayable",
108
+ "type": "function"
109
+ },
110
+ {
111
+ "inputs": [
112
+ {
113
+ "internalType": "uint256",
114
+ "name": "amount",
115
+ "type": "uint256"
116
+ }
117
+ ],
118
+ "name": "depositWETHForStETH",
119
+ "outputs": [],
120
+ "stateMutability": "nonpayable",
121
+ "type": "function"
122
+ },
123
+ {
124
+ "inputs": [],
125
+ "name": "minimumFunds",
126
+ "outputs": [
127
+ {
128
+ "internalType": "uint256",
129
+ "name": "",
130
+ "type": "uint256"
131
+ }
132
+ ],
133
+ "stateMutability": "view",
134
+ "type": "function"
135
+ },
136
+ {
137
+ "inputs": [],
138
+ "name": "operator",
139
+ "outputs": [
140
+ {
141
+ "internalType": "address",
142
+ "name": "",
143
+ "type": "address"
144
+ }
145
+ ],
146
+ "stateMutability": "view",
147
+ "type": "function"
148
+ },
149
+ {
150
+ "inputs": [],
151
+ "name": "owner",
152
+ "outputs": [
153
+ {
154
+ "internalType": "address",
155
+ "name": "",
156
+ "type": "address"
157
+ }
158
+ ],
159
+ "stateMutability": "view",
160
+ "type": "function"
161
+ },
162
+ {
163
+ "inputs": [
164
+ {
165
+ "internalType": "uint256[]",
166
+ "name": "amounts",
167
+ "type": "uint256[]"
168
+ }
169
+ ],
170
+ "name": "requestStETHWithdrawalForETH",
171
+ "outputs": [
172
+ {
173
+ "internalType": "uint256[]",
174
+ "name": "requestIds",
175
+ "type": "uint256[]"
176
+ }
177
+ ],
178
+ "stateMutability": "nonpayable",
179
+ "type": "function"
180
+ },
181
+ {
182
+ "inputs": [
183
+ {
184
+ "internalType": "uint256",
185
+ "name": "_minimumFunds",
186
+ "type": "uint256"
187
+ }
188
+ ],
189
+ "name": "setMinimumFunds",
190
+ "outputs": [],
191
+ "stateMutability": "nonpayable",
192
+ "type": "function"
193
+ },
194
+ {
195
+ "inputs": [
196
+ {
197
+ "internalType": "address",
198
+ "name": "newOperator",
199
+ "type": "address"
200
+ }
201
+ ],
202
+ "name": "setOperator",
203
+ "outputs": [],
204
+ "stateMutability": "nonpayable",
205
+ "type": "function"
206
+ },
207
+ {
208
+ "inputs": [
209
+ {
210
+ "internalType": "address",
211
+ "name": "newOwner",
212
+ "type": "address"
213
+ }
214
+ ],
215
+ "name": "setOwner",
216
+ "outputs": [],
217
+ "stateMutability": "nonpayable",
218
+ "type": "function"
219
+ },
220
+ {
221
+ "inputs": [
222
+ {
223
+ "internalType": "uint256",
224
+ "name": "buyT1",
225
+ "type": "uint256"
226
+ },
227
+ {
228
+ "internalType": "uint256",
229
+ "name": "sellT1",
230
+ "type": "uint256"
231
+ }
232
+ ],
233
+ "name": "setPrices",
234
+ "outputs": [],
235
+ "stateMutability": "nonpayable",
236
+ "type": "function"
237
+ },
238
+ {
239
+ "inputs": [],
240
+ "name": "steth",
241
+ "outputs": [
242
+ {
243
+ "internalType": "contract IERC20",
244
+ "name": "",
245
+ "type": "address"
246
+ }
247
+ ],
248
+ "stateMutability": "view",
249
+ "type": "function"
250
+ },
251
+ {
252
+ "inputs": [
253
+ {
254
+ "internalType": "uint256",
255
+ "name": "amountIn",
256
+ "type": "uint256"
257
+ },
258
+ {
259
+ "internalType": "uint256",
260
+ "name": "amountOutMin",
261
+ "type": "uint256"
262
+ },
263
+ {
264
+ "internalType": "address[]",
265
+ "name": "path",
266
+ "type": "address[]"
267
+ },
268
+ {
269
+ "internalType": "address",
270
+ "name": "to",
271
+ "type": "address"
272
+ },
273
+ {
274
+ "internalType": "uint256",
275
+ "name": "deadline",
276
+ "type": "uint256"
277
+ }
278
+ ],
279
+ "name": "swapExactTokensForTokens",
280
+ "outputs": [
281
+ {
282
+ "internalType": "uint256[]",
283
+ "name": "amounts",
284
+ "type": "uint256[]"
285
+ }
286
+ ],
287
+ "stateMutability": "nonpayable",
288
+ "type": "function"
289
+ },
290
+ {
291
+ "inputs": [
292
+ {
293
+ "internalType": "uint256",
294
+ "name": "amountOut",
295
+ "type": "uint256"
296
+ },
297
+ {
298
+ "internalType": "uint256",
299
+ "name": "amountInMax",
300
+ "type": "uint256"
301
+ },
302
+ {
303
+ "internalType": "address[]",
304
+ "name": "path",
305
+ "type": "address[]"
306
+ },
307
+ {
308
+ "internalType": "address",
309
+ "name": "to",
310
+ "type": "address"
311
+ },
312
+ {
313
+ "internalType": "uint256",
314
+ "name": "deadline",
315
+ "type": "uint256"
316
+ }
317
+ ],
318
+ "name": "swapTokensForExactTokens",
319
+ "outputs": [
320
+ {
321
+ "internalType": "uint256[]",
322
+ "name": "amounts",
323
+ "type": "uint256[]"
324
+ }
325
+ ],
326
+ "stateMutability": "nonpayable",
327
+ "type": "function"
328
+ },
329
+ {
330
+ "inputs": [],
331
+ "name": "token0",
332
+ "outputs": [
333
+ {
334
+ "internalType": "contract IERC20",
335
+ "name": "",
336
+ "type": "address"
337
+ }
338
+ ],
339
+ "stateMutability": "view",
340
+ "type": "function"
341
+ },
342
+ {
343
+ "inputs": [],
344
+ "name": "token1",
345
+ "outputs": [
346
+ {
347
+ "internalType": "contract IERC20",
348
+ "name": "",
349
+ "type": "address"
350
+ }
351
+ ],
352
+ "stateMutability": "view",
353
+ "type": "function"
354
+ },
355
+ {
356
+ "inputs": [],
357
+ "name": "traderate0",
358
+ "outputs": [
359
+ {
360
+ "internalType": "uint256",
361
+ "name": "",
362
+ "type": "uint256"
363
+ }
364
+ ],
365
+ "stateMutability": "view",
366
+ "type": "function"
367
+ },
368
+ {
369
+ "inputs": [],
370
+ "name": "traderate1",
371
+ "outputs": [
372
+ {
373
+ "internalType": "uint256",
374
+ "name": "",
375
+ "type": "uint256"
376
+ }
377
+ ],
378
+ "stateMutability": "view",
379
+ "type": "function"
380
+ },
381
+ {
382
+ "inputs": [
383
+ {
384
+ "internalType": "address",
385
+ "name": "to",
386
+ "type": "address"
387
+ },
388
+ {
389
+ "internalType": "uint256",
390
+ "name": "amount",
391
+ "type": "uint256"
392
+ }
393
+ ],
394
+ "name": "transferEth",
395
+ "outputs": [],
396
+ "stateMutability": "nonpayable",
397
+ "type": "function"
398
+ },
399
+ {
400
+ "inputs": [
401
+ {
402
+ "internalType": "address",
403
+ "name": "token",
404
+ "type": "address"
405
+ },
406
+ {
407
+ "internalType": "address",
408
+ "name": "to",
409
+ "type": "address"
410
+ },
411
+ {
412
+ "internalType": "uint256",
413
+ "name": "amount",
414
+ "type": "uint256"
415
+ }
416
+ ],
417
+ "name": "transferToken",
418
+ "outputs": [],
419
+ "stateMutability": "nonpayable",
420
+ "type": "function"
421
+ },
422
+ {
423
+ "inputs": [],
424
+ "name": "weth",
425
+ "outputs": [
426
+ {
427
+ "internalType": "contract IWEth",
428
+ "name": "",
429
+ "type": "address"
430
+ }
431
+ ],
432
+ "stateMutability": "view",
433
+ "type": "function"
434
+ },
435
+ {
436
+ "inputs": [],
437
+ "name": "withdrawal",
438
+ "outputs": [
439
+ {
440
+ "internalType": "contract IStETHWithdrawal",
441
+ "name": "",
442
+ "type": "address"
443
+ }
444
+ ],
445
+ "stateMutability": "view",
446
+ "type": "function"
447
+ },
448
+ {
449
+ "stateMutability": "payable",
450
+ "type": "receive"
451
+ }
452
+ ]