@paraswap/dex-lib 4.7.12 → 4.7.13-from-amount-pos.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 (215) hide show
  1. package/build/abi/PendleRouterStatic.json +19 -0
  2. package/build/abi/{MStableAsset.json → apex-defi/ApexDefiFactory.abi.json} +992 -788
  3. package/build/abi/{BProtocol.json → apex-defi/ApexDefiRouter.abi.json} +539 -574
  4. package/build/abi/apex-defi/ApexDefiToken.abi.json +229 -0
  5. package/build/abi/apex-defi/ApexDefiWrapper.abi.json +92 -0
  6. package/build/abi/{OneInchLp.json → apex-defi/ApexDefiWrapperFactory.abi.json} +577 -774
  7. package/build/abi/pangolin-v3/PangolinV3StateMulticall.abi.json +796 -0
  8. package/build/abi/pendle/pendle-deployer.abi.json +520 -0
  9. package/build/abi/pendle/pendle-oracle.abi.json +413 -0
  10. package/build/abi/ring-v2/few-wrapped-token.json +587 -0
  11. package/build/abi/ring-v2/ring-v2-factory.json +125 -0
  12. package/build/abi/ring-v2/ring-v2-pool.json +461 -0
  13. package/build/abi/ring-v2/ring-v2-router.json +332 -0
  14. package/build/abi/stabull/stabull-curve.json +738 -0
  15. package/build/abi/stabull/stabull-router.json +76 -0
  16. package/build/abi/uniswap-v4/hooks/SpotDynamicFeeManager.json +26 -0
  17. package/build/abi/uniswap-v4/hooks/SpotHook.json +54 -0
  18. package/build/abi/uniswap-v4/hooks/SpotPolicyManager.json +45 -0
  19. package/build/abi/uniswap-v4/hooks/cabalcoin-hook.abi.json +682 -0
  20. package/build/abi/uniswap-v4/hooks/fee-hook.abi.json +1335 -0
  21. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.d.ts +29 -0
  22. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.js +153 -0
  23. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.js.map +1 -0
  24. package/build/dex/{usual-bond/usual-bond.d.ts → aave-pt-to-underlying/aave-pt-to-underlying.d.ts} +23 -18
  25. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js +323 -0
  26. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js.map +1 -0
  27. package/build/dex/aave-pt-to-underlying/config.d.ts +3 -0
  28. package/build/dex/aave-pt-to-underlying/config.js +24 -0
  29. package/build/dex/aave-pt-to-underlying/config.js.map +1 -0
  30. package/build/dex/aave-pt-to-underlying/constants.d.ts +2 -0
  31. package/build/dex/aave-pt-to-underlying/constants.js +6 -0
  32. package/build/dex/aave-pt-to-underlying/constants.js.map +1 -0
  33. package/build/dex/aave-pt-to-underlying/types.d.ts +24 -0
  34. package/build/dex/aave-pt-to-underlying/types.js.map +1 -0
  35. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.d.ts +39 -0
  36. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js +244 -0
  37. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js.map +1 -0
  38. package/build/dex/aave-pt-to-usdc/config.d.ts +3 -0
  39. package/build/dex/aave-pt-to-usdc/config.js +47 -0
  40. package/build/dex/aave-pt-to-usdc/config.js.map +1 -0
  41. package/build/dex/aave-pt-to-usdc/constants.d.ts +2 -0
  42. package/build/dex/aave-pt-to-usdc/constants.js +6 -0
  43. package/build/dex/aave-pt-to-usdc/constants.js.map +1 -0
  44. package/build/dex/aave-pt-to-usdc/types.d.ts +22 -0
  45. package/build/dex/aave-pt-to-usdc/types.js.map +1 -0
  46. package/build/dex/apex-defi/apex-defi-factory.d.ts +26 -0
  47. package/build/dex/apex-defi/apex-defi-factory.js +53 -0
  48. package/build/dex/apex-defi/apex-defi-factory.js.map +1 -0
  49. package/build/dex/apex-defi/apex-defi-pool.d.ts +55 -0
  50. package/build/dex/apex-defi/apex-defi-pool.js +247 -0
  51. package/build/dex/apex-defi/apex-defi-pool.js.map +1 -0
  52. package/build/dex/apex-defi/apex-defi-wrapper-factory.d.ts +57 -0
  53. package/build/dex/apex-defi/apex-defi-wrapper-factory.js +250 -0
  54. package/build/dex/apex-defi/apex-defi-wrapper-factory.js.map +1 -0
  55. package/build/dex/apex-defi/apex-defi.d.ts +97 -0
  56. package/build/dex/apex-defi/apex-defi.js +1021 -0
  57. package/build/dex/apex-defi/apex-defi.js.map +1 -0
  58. package/build/dex/apex-defi/config.d.ts +4 -0
  59. package/build/dex/apex-defi/config.js +138 -0
  60. package/build/dex/apex-defi/config.js.map +1 -0
  61. package/build/dex/apex-defi/types.d.ts +32 -0
  62. package/build/dex/apex-defi/types.js +3 -0
  63. package/build/dex/{usual-bond → apex-defi}/types.js.map +1 -1
  64. package/build/dex/apex-defi/utils.d.ts +46 -0
  65. package/build/dex/apex-defi/utils.js +133 -0
  66. package/build/dex/apex-defi/utils.js.map +1 -0
  67. package/build/dex/maker-psm/maker-psm-event-pool.d.ts +43 -0
  68. package/build/dex/maker-psm/maker-psm-event-pool.js +132 -0
  69. package/build/dex/maker-psm/maker-psm-event-pool.js.map +1 -0
  70. package/build/dex/miro-migrator/miro-migrator-state.d.ts +27 -0
  71. package/build/dex/miro-migrator/miro-migrator-state.js +89 -0
  72. package/build/dex/miro-migrator/miro-migrator-state.js.map +1 -0
  73. package/build/dex/{usual-bond → stabull}/config.d.ts +1 -1
  74. package/build/dex/stabull/config.js +177 -0
  75. package/build/dex/stabull/config.js.map +1 -0
  76. package/build/dex/{se-vlr/se-vlr-pool.d.ts → stabull/stabull-pool.d.ts} +13 -6
  77. package/build/dex/stabull/stabull-pool.js +113 -0
  78. package/build/dex/stabull/stabull-pool.js.map +1 -0
  79. package/build/dex/stabull/stabull.d.ts +55 -0
  80. package/build/dex/stabull/stabull.js +286 -0
  81. package/build/dex/stabull/stabull.js.map +1 -0
  82. package/build/dex/stabull/types.d.ts +21 -0
  83. package/build/dex/stabull/types.js +3 -0
  84. package/build/dex/stabull/types.js.map +1 -0
  85. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.d.ts +4 -0
  86. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js +56 -0
  87. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js.map +1 -0
  88. package/build/dex/uniswap-v4/contract-math/Position.d.ts +6 -0
  89. package/build/dex/uniswap-v4/contract-math/Position.js +29 -0
  90. package/build/dex/uniswap-v4/contract-math/Position.js.map +1 -1
  91. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.d.ts +7 -0
  92. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js +28 -0
  93. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js.map +1 -0
  94. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.d.ts +0 -0
  95. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js +2 -0
  96. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js.map +1 -0
  97. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.d.ts +7 -0
  98. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js +28 -0
  99. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js.map +1 -0
  100. package/build/dex/uniswap-v4/hooks/fee-hook/types.d.ts +0 -0
  101. package/build/dex/uniswap-v4/hooks/fee-hook/types.js +2 -0
  102. package/build/dex/uniswap-v4/hooks/fee-hook/types.js.map +1 -0
  103. package/build/dex/uniswap-v4/hooks/index.d.ts +1 -0
  104. package/build/dex/uniswap-v4/hooks/index.js +9 -0
  105. package/build/dex/uniswap-v4/hooks/index.js.map +1 -0
  106. package/build/dex/uniswap-v4/hooks/spot.d.ts +15 -0
  107. package/build/dex/uniswap-v4/hooks/spot.js +109 -0
  108. package/build/dex/uniswap-v4/hooks/spot.js.map +1 -0
  109. package/build/dex/uniswap-v4/hooks/template.d.ts +150 -0
  110. package/build/dex/uniswap-v4/hooks/template.js +104 -0
  111. package/build/dex/uniswap-v4/hooks/template.js.map +1 -0
  112. package/build/dex/usdc-transmuter/usdc-transmuter-pool.d.ts +26 -0
  113. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js +75 -0
  114. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js.map +1 -0
  115. package/build/dex/usual/usual-usdc-usdc.d.ts +17 -0
  116. package/build/dex/usual/usual-usdc-usdc.js +59 -0
  117. package/build/dex/usual/usual-usdc-usdc.js.map +1 -0
  118. package/build/dex/{se-vlr → yo}/config.d.ts +1 -1
  119. package/build/dex/yo/config.js +21 -0
  120. package/build/dex/yo/config.js.map +1 -0
  121. package/build/dex/yo/types.d.ts +13 -0
  122. package/build/dex/yo/types.js +3 -0
  123. package/build/dex/{se-vlr → yo}/types.js.map +1 -1
  124. package/build/dex/yo/yo-pool.d.ts +13 -0
  125. package/build/dex/yo/yo-pool.js +26 -0
  126. package/build/dex/yo/yo-pool.js.map +1 -0
  127. package/build/dex/yo/yo.d.ts +39 -0
  128. package/build/dex/yo/yo.js +248 -0
  129. package/build/dex/yo/yo.js.map +1 -0
  130. package/build/executor/Executor01BytecodeBuilder.js +10 -4
  131. package/build/executor/Executor01BytecodeBuilder.js.map +1 -1
  132. package/build/implementations/api-paraswap-sdk.d.ts +25 -0
  133. package/build/implementations/api-paraswap-sdk.js +102 -0
  134. package/build/implementations/api-paraswap-sdk.js.map +1 -0
  135. package/package.json +1 -1
  136. package/build/abi/Jarvis.json +0 -1172
  137. package/build/abi/Onebit.json +0 -736
  138. package/build/abi/Shell.json +0 -1294
  139. package/build/abi/TraderJoeV2Router.json +0 -50
  140. package/build/abi/wUSDM.json +0 -757
  141. package/build/abi/zrx.v2.json +0 -1967
  142. package/build/abi/zrx.v3.json +0 -3454
  143. package/build/abi/zrx.v4.json +0 -2193
  144. package/build/dex/OneInchLp.d.ts +0 -24
  145. package/build/dex/OneInchLp.js +0 -43
  146. package/build/dex/OneInchLp.js.map +0 -1
  147. package/build/dex/bProtocol/bProtocol.d.ts +0 -15
  148. package/build/dex/bProtocol/bProtocol.js +0 -56
  149. package/build/dex/bProtocol/bProtocol.js.map +0 -1
  150. package/build/dex/bProtocol/types.d.ts +0 -11
  151. package/build/dex/bProtocol/types.js +0 -8
  152. package/build/dex/bProtocol/types.js.map +0 -1
  153. package/build/dex/jarvis.d.ts +0 -56
  154. package/build/dex/jarvis.js +0 -163
  155. package/build/dex/jarvis.js.map +0 -1
  156. package/build/dex/mStable.d.ts +0 -44
  157. package/build/dex/mStable.js +0 -75
  158. package/build/dex/mStable.js.map +0 -1
  159. package/build/dex/onebit/onebit.d.ts +0 -16
  160. package/build/dex/onebit/onebit.js +0 -61
  161. package/build/dex/onebit/onebit.js.map +0 -1
  162. package/build/dex/onebit/types.d.ts +0 -14
  163. package/build/dex/onebit/types.js +0 -8
  164. package/build/dex/onebit/types.js.map +0 -1
  165. package/build/dex/se-vlr/config.js +0 -24
  166. package/build/dex/se-vlr/config.js.map +0 -1
  167. package/build/dex/se-vlr/se-vlr-pool.js +0 -70
  168. package/build/dex/se-vlr/se-vlr-pool.js.map +0 -1
  169. package/build/dex/se-vlr/se-vlr.d.ts +0 -35
  170. package/build/dex/se-vlr/se-vlr.js +0 -131
  171. package/build/dex/se-vlr/se-vlr.js.map +0 -1
  172. package/build/dex/se-vlr/types.d.ts +0 -6
  173. package/build/dex/shell.d.ts +0 -25
  174. package/build/dex/shell.js +0 -41
  175. package/build/dex/shell.js.map +0 -1
  176. package/build/dex/trader-joe-v2.d.ts +0 -40
  177. package/build/dex/trader-joe-v2.js +0 -74
  178. package/build/dex/trader-joe-v2.js.map +0 -1
  179. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +0 -94
  180. package/build/dex/uniswap-v3/uniswap-v3-new.js +0 -923
  181. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +0 -1
  182. package/build/dex/usual-bond/config.js +0 -13
  183. package/build/dex/usual-bond/config.js.map +0 -1
  184. package/build/dex/usual-bond/types.d.ts +0 -7
  185. package/build/dex/usual-bond/usual-bond.js +0 -176
  186. package/build/dex/usual-bond/usual-bond.js.map +0 -1
  187. package/build/dex/wusdm/config.d.ts +0 -3
  188. package/build/dex/wusdm/config.js +0 -43
  189. package/build/dex/wusdm/config.js.map +0 -1
  190. package/build/dex/wusdm/constants.d.ts +0 -2
  191. package/build/dex/wusdm/constants.js +0 -6
  192. package/build/dex/wusdm/constants.js.map +0 -1
  193. package/build/dex/wusdm/types.d.ts +0 -18
  194. package/build/dex/wusdm/types.js +0 -11
  195. package/build/dex/wusdm/types.js.map +0 -1
  196. package/build/dex/wusdm/wusdm-pool.d.ts +0 -21
  197. package/build/dex/wusdm/wusdm-pool.js +0 -74
  198. package/build/dex/wusdm/wusdm-pool.js.map +0 -1
  199. package/build/dex/wusdm/wusdm.d.ts +0 -46
  200. package/build/dex/wusdm/wusdm.js +0 -243
  201. package/build/dex/wusdm/wusdm.js.map +0 -1
  202. package/build/dex/zerox/config.d.ts +0 -2
  203. package/build/dex/zerox/config.js +0 -33
  204. package/build/dex/zerox/config.js.map +0 -1
  205. package/build/dex/zerox/index.d.ts +0 -22
  206. package/build/dex/zerox/index.js +0 -225
  207. package/build/dex/zerox/index.js.map +0 -1
  208. package/build/dex/zerox/order.d.ts +0 -88
  209. package/build/dex/zerox/order.js +0 -53
  210. package/build/dex/zerox/order.js.map +0 -1
  211. package/build/dex/zerox/types.d.ts +0 -73
  212. package/build/dex/zerox/types.js +0 -21
  213. package/build/dex/zerox/types.js.map +0 -1
  214. /package/build/dex/{se-vlr → aave-pt-to-underlying}/types.js +0 -0
  215. /package/build/dex/{usual-bond → aave-pt-to-usdc}/types.js +0 -0
@@ -3,37 +3,17 @@
3
3
  "inputs": [
4
4
  {
5
5
  "internalType": "address",
6
- "name": "_priceAggregator",
7
- "type": "address"
8
- },
9
- {
10
- "internalType": "address payable",
11
- "name": "_SP",
12
- "type": "address"
13
- },
14
- {
15
- "internalType": "address",
16
- "name": "_LUSD",
6
+ "name": "_wavax",
17
7
  "type": "address"
18
8
  },
19
9
  {
20
10
  "internalType": "address",
21
- "name": "_LQTY",
22
- "type": "address"
23
- },
24
- {
25
- "internalType": "uint256",
26
- "name": "_maxDiscount",
27
- "type": "uint256"
28
- },
29
- {
30
- "internalType": "address payable",
31
- "name": "_feePool",
11
+ "name": "_wrapperFactory",
32
12
  "type": "address"
33
13
  },
34
14
  {
35
15
  "internalType": "address",
36
- "name": "_fronEndTag",
16
+ "name": "_factory",
37
17
  "type": "address"
38
18
  }
39
19
  ],
@@ -41,352 +21,343 @@
41
21
  "type": "constructor"
42
22
  },
43
23
  {
44
- "anonymous": false,
45
- "inputs": [
46
- {
47
- "indexed": false,
48
- "internalType": "uint256",
49
- "name": "val",
50
- "type": "uint256"
51
- }
52
- ],
53
- "name": "Exit",
54
- "type": "event"
55
- },
56
- {
57
- "anonymous": false,
58
24
  "inputs": [],
59
- "name": "Flee",
60
- "type": "event"
25
+ "name": "AVAXTransferFailed",
26
+ "type": "error"
61
27
  },
62
28
  {
63
- "anonymous": false,
64
29
  "inputs": [
65
30
  {
66
- "indexed": false,
67
- "internalType": "uint256",
68
- "name": "val",
69
- "type": "uint256"
31
+ "internalType": "address",
32
+ "name": "target",
33
+ "type": "address"
70
34
  }
71
35
  ],
72
- "name": "Join",
73
- "type": "event"
36
+ "name": "AddressEmptyCode",
37
+ "type": "error"
74
38
  },
75
39
  {
76
- "anonymous": false,
77
40
  "inputs": [
78
41
  {
79
- "indexed": true,
80
- "internalType": "address",
81
- "name": "previousOwner",
82
- "type": "address"
83
- },
84
- {
85
- "indexed": true,
86
42
  "internalType": "address",
87
- "name": "newOwner",
43
+ "name": "account",
88
44
  "type": "address"
89
45
  }
90
46
  ],
91
- "name": "OwnershipTransferred",
92
- "type": "event"
47
+ "name": "AddressInsufficientBalance",
48
+ "type": "error"
93
49
  },
94
50
  {
95
- "anonymous": false,
96
51
  "inputs": [
97
52
  {
98
- "indexed": false,
99
53
  "internalType": "uint256",
100
- "name": "A",
54
+ "name": "required",
101
55
  "type": "uint256"
102
56
  },
103
57
  {
104
- "indexed": false,
105
58
  "internalType": "uint256",
106
- "name": "fee",
59
+ "name": "max",
107
60
  "type": "uint256"
108
61
  }
109
62
  ],
110
- "name": "ParamsSet",
111
- "type": "event"
63
+ "name": "ExcessiveInputAmount",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [],
68
+ "name": "FailedInnerCall",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [],
73
+ "name": "InputCannotBeAVAX",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "inputs": [],
78
+ "name": "InputMustBeAVAX",
79
+ "type": "error"
80
+ },
81
+ {
82
+ "inputs": [],
83
+ "name": "InsufficientAVAXAmount",
84
+ "type": "error"
85
+ },
86
+ {
87
+ "inputs": [],
88
+ "name": "InsufficientAmount",
89
+ "type": "error"
90
+ },
91
+ {
92
+ "inputs": [],
93
+ "name": "InsufficientLiquidity",
94
+ "type": "error"
112
95
  },
113
96
  {
114
- "anonymous": false,
115
97
  "inputs": [
116
98
  {
117
- "indexed": true,
118
- "internalType": "address",
119
- "name": "user",
120
- "type": "address"
121
- },
122
- {
123
- "indexed": false,
124
99
  "internalType": "uint256",
125
- "name": "lusdAmount",
100
+ "name": "expected",
126
101
  "type": "uint256"
127
102
  },
128
103
  {
129
- "indexed": false,
130
104
  "internalType": "uint256",
131
- "name": "ethAmount",
132
- "type": "uint256"
133
- },
134
- {
135
- "indexed": false,
136
- "internalType": "uint256",
137
- "name": "timestamp",
105
+ "name": "actual",
138
106
  "type": "uint256"
139
107
  }
140
108
  ],
141
- "name": "RebalanceSwap",
142
- "type": "event"
109
+ "name": "InsufficientOutputAmount",
110
+ "type": "error"
111
+ },
112
+ {
113
+ "inputs": [],
114
+ "name": "InsufficientTokenAmount",
115
+ "type": "error"
116
+ },
117
+ {
118
+ "inputs": [],
119
+ "name": "InvalidFactory",
120
+ "type": "error"
121
+ },
122
+ {
123
+ "inputs": [],
124
+ "name": "InvalidPath",
125
+ "type": "error"
126
+ },
127
+ {
128
+ "inputs": [],
129
+ "name": "InvalidPathLength",
130
+ "type": "error"
143
131
  },
144
132
  {
145
- "anonymous": false,
146
133
  "inputs": [
147
134
  {
148
- "indexed": true,
149
- "internalType": "address",
150
- "name": "src",
151
- "type": "address"
152
- },
153
- {
154
- "indexed": true,
155
135
  "internalType": "address",
156
- "name": "dst",
136
+ "name": "token",
157
137
  "type": "address"
158
- },
159
- {
160
- "indexed": false,
161
- "internalType": "uint256",
162
- "name": "wad",
163
- "type": "uint256"
164
138
  }
165
139
  ],
166
- "name": "Tack",
167
- "type": "event"
140
+ "name": "InvalidToken",
141
+ "type": "error"
142
+ },
143
+ {
144
+ "inputs": [],
145
+ "name": "InvalidWrapperFactory",
146
+ "type": "error"
147
+ },
148
+ {
149
+ "inputs": [],
150
+ "name": "NoAVAXSent",
151
+ "type": "error"
152
+ },
153
+ {
154
+ "inputs": [],
155
+ "name": "NoTokensProvided",
156
+ "type": "error"
157
+ },
158
+ {
159
+ "inputs": [],
160
+ "name": "NoWrappersProvided",
161
+ "type": "error"
162
+ },
163
+ {
164
+ "inputs": [],
165
+ "name": "OutputCannotBeAVAX",
166
+ "type": "error"
168
167
  },
169
168
  {
170
- "anonymous": false,
171
169
  "inputs": [
172
170
  {
173
- "indexed": true,
174
171
  "internalType": "address",
175
- "name": "_from",
172
+ "name": "tokenAddress",
176
173
  "type": "address"
177
174
  },
178
175
  {
179
- "indexed": true,
180
176
  "internalType": "address",
181
- "name": "_to",
177
+ "name": "spender",
182
178
  "type": "address"
183
179
  },
184
180
  {
185
- "indexed": false,
186
181
  "internalType": "uint256",
187
- "name": "_value",
182
+ "name": "amount",
188
183
  "type": "uint256"
184
+ },
185
+ {
186
+ "internalType": "address",
187
+ "name": "to",
188
+ "type": "address"
189
189
  }
190
190
  ],
191
- "name": "Transfer",
192
- "type": "event"
191
+ "name": "OutputDeliveryFailed",
192
+ "type": "error"
193
193
  },
194
194
  {
195
- "anonymous": false,
196
195
  "inputs": [
197
196
  {
198
- "indexed": true,
199
197
  "internalType": "address",
200
- "name": "user",
198
+ "name": "owner",
201
199
  "type": "address"
202
- },
203
- {
204
- "indexed": false,
205
- "internalType": "uint256",
206
- "name": "lusdAmount",
207
- "type": "uint256"
208
- },
209
- {
210
- "indexed": false,
211
- "internalType": "uint256",
212
- "name": "numShares",
213
- "type": "uint256"
214
200
  }
215
201
  ],
216
- "name": "UserDeposit",
217
- "type": "event"
202
+ "name": "OwnableInvalidOwner",
203
+ "type": "error"
218
204
  },
219
205
  {
220
- "anonymous": false,
221
206
  "inputs": [
222
207
  {
223
- "indexed": true,
224
208
  "internalType": "address",
225
- "name": "user",
209
+ "name": "account",
226
210
  "type": "address"
227
- },
228
- {
229
- "indexed": false,
230
- "internalType": "uint256",
231
- "name": "lusdAmount",
232
- "type": "uint256"
233
- },
234
- {
235
- "indexed": false,
236
- "internalType": "uint256",
237
- "name": "ethAmount",
238
- "type": "uint256"
239
- },
240
- {
241
- "indexed": false,
242
- "internalType": "uint256",
243
- "name": "numShares",
244
- "type": "uint256"
245
211
  }
246
212
  ],
247
- "name": "UserWithdraw",
248
- "type": "event"
213
+ "name": "OwnableUnauthorizedAccount",
214
+ "type": "error"
249
215
  },
250
216
  {
251
217
  "inputs": [],
252
- "name": "A",
253
- "outputs": [
254
- {
255
- "internalType": "uint256",
256
- "name": "",
257
- "type": "uint256"
258
- }
259
- ],
260
- "stateMutability": "view",
261
- "type": "function"
218
+ "name": "PathMustEndWithAVAX",
219
+ "type": "error"
262
220
  },
263
221
  {
264
222
  "inputs": [],
265
- "name": "LUSD",
266
- "outputs": [
223
+ "name": "ReentrancyGuardReentrantCall",
224
+ "type": "error"
225
+ },
226
+ {
227
+ "inputs": [
267
228
  {
268
- "internalType": "contract IERC20",
269
- "name": "",
229
+ "internalType": "address",
230
+ "name": "token",
270
231
  "type": "address"
271
232
  }
272
233
  ],
273
- "stateMutability": "view",
274
- "type": "function"
234
+ "name": "SafeERC20FailedOperation",
235
+ "type": "error"
275
236
  },
276
237
  {
277
- "inputs": [],
278
- "name": "MAX_A",
279
- "outputs": [
238
+ "inputs": [
239
+ {
240
+ "internalType": "address",
241
+ "name": "tokenAddress",
242
+ "type": "address"
243
+ },
244
+ {
245
+ "internalType": "address",
246
+ "name": "spender",
247
+ "type": "address"
248
+ },
280
249
  {
281
250
  "internalType": "uint256",
282
- "name": "",
251
+ "name": "amountIn",
283
252
  "type": "uint256"
284
- }
285
- ],
286
- "stateMutability": "view",
287
- "type": "function"
288
- },
289
- {
290
- "inputs": [],
291
- "name": "MAX_FEE",
292
- "outputs": [
253
+ },
293
254
  {
294
255
  "internalType": "uint256",
295
- "name": "",
256
+ "name": "amountOutMin",
296
257
  "type": "uint256"
297
258
  }
298
259
  ],
299
- "stateMutability": "view",
300
- "type": "function"
260
+ "name": "SwapFailed",
261
+ "type": "error"
301
262
  },
302
263
  {
303
- "inputs": [],
304
- "name": "MIN_A",
305
- "outputs": [
264
+ "inputs": [
265
+ {
266
+ "internalType": "address",
267
+ "name": "token",
268
+ "type": "address"
269
+ },
270
+ {
271
+ "internalType": "address",
272
+ "name": "spender",
273
+ "type": "address"
274
+ },
306
275
  {
307
276
  "internalType": "uint256",
308
- "name": "",
277
+ "name": "amount",
309
278
  "type": "uint256"
310
279
  }
311
280
  ],
312
- "stateMutability": "view",
313
- "type": "function"
281
+ "name": "TokenApprovalFailed",
282
+ "type": "error"
314
283
  },
315
284
  {
316
285
  "inputs": [],
317
- "name": "PRECISION",
318
- "outputs": [
319
- {
320
- "internalType": "uint256",
321
- "name": "",
322
- "type": "uint256"
323
- }
324
- ],
325
- "stateMutability": "view",
326
- "type": "function"
286
+ "name": "TokenCannotBeAVAX",
287
+ "type": "error"
327
288
  },
328
289
  {
329
290
  "inputs": [],
330
- "name": "SP",
331
- "outputs": [
332
- {
333
- "internalType": "contract StabilityPool",
334
- "name": "",
335
- "type": "address"
336
- }
337
- ],
338
- "stateMutability": "view",
339
- "type": "function"
291
+ "name": "TransactionExpired",
292
+ "type": "error"
340
293
  },
341
294
  {
342
295
  "inputs": [
343
296
  {
344
- "internalType": "uint256",
345
- "name": "x",
346
- "type": "uint256"
297
+ "internalType": "address",
298
+ "name": "token",
299
+ "type": "address"
300
+ },
301
+ {
302
+ "internalType": "address",
303
+ "name": "wrapper",
304
+ "type": "address"
347
305
  },
348
306
  {
349
307
  "internalType": "uint256",
350
- "name": "y",
308
+ "name": "amount",
351
309
  "type": "uint256"
352
310
  }
353
311
  ],
354
- "name": "add",
355
- "outputs": [
312
+ "name": "UnwrapFailed",
313
+ "type": "error"
314
+ },
315
+ {
316
+ "inputs": [
317
+ {
318
+ "internalType": "address",
319
+ "name": "token",
320
+ "type": "address"
321
+ },
322
+ {
323
+ "internalType": "address",
324
+ "name": "wrapper",
325
+ "type": "address"
326
+ },
356
327
  {
357
328
  "internalType": "uint256",
358
- "name": "z",
329
+ "name": "amount",
359
330
  "type": "uint256"
360
331
  }
361
332
  ],
362
- "stateMutability": "pure",
363
- "type": "function"
333
+ "name": "WrapFailed",
334
+ "type": "error"
364
335
  },
365
336
  {
337
+ "anonymous": false,
366
338
  "inputs": [
367
339
  {
340
+ "indexed": true,
368
341
  "internalType": "address",
369
- "name": "owner",
342
+ "name": "previousOwner",
370
343
  "type": "address"
371
- }
372
- ],
373
- "name": "balanceOf",
374
- "outputs": [
344
+ },
375
345
  {
376
- "internalType": "uint256",
377
- "name": "balance",
378
- "type": "uint256"
346
+ "indexed": true,
347
+ "internalType": "address",
348
+ "name": "newOwner",
349
+ "type": "address"
379
350
  }
380
351
  ],
381
- "stateMutability": "view",
382
- "type": "function"
352
+ "name": "OwnershipTransferred",
353
+ "type": "event"
383
354
  },
384
355
  {
385
356
  "inputs": [],
386
- "name": "bonus",
357
+ "name": "WAVAX",
387
358
  "outputs": [
388
359
  {
389
- "internalType": "contract ERC20",
360
+ "internalType": "address",
390
361
  "name": "",
391
362
  "type": "address"
392
363
  }
@@ -400,103 +371,84 @@
400
371
  "internalType": "address",
401
372
  "name": "",
402
373
  "type": "address"
403
- }
404
- ],
405
- "name": "crops",
406
- "outputs": [
374
+ },
407
375
  {
408
- "internalType": "uint256",
376
+ "internalType": "address",
409
377
  "name": "",
410
- "type": "uint256"
378
+ "type": "address"
411
379
  }
412
380
  ],
413
- "stateMutability": "view",
414
- "type": "function"
415
- },
416
- {
417
- "inputs": [],
418
- "name": "dec",
381
+ "name": "_maxApprovals",
419
382
  "outputs": [
420
383
  {
421
- "internalType": "uint256",
384
+ "internalType": "bool",
422
385
  "name": "",
423
- "type": "uint256"
386
+ "type": "bool"
424
387
  }
425
388
  ],
426
389
  "stateMutability": "view",
427
390
  "type": "function"
428
391
  },
429
392
  {
430
- "inputs": [],
431
- "name": "decimals",
432
- "outputs": [
393
+ "inputs": [
394
+ {
395
+ "internalType": "address",
396
+ "name": "token",
397
+ "type": "address"
398
+ },
433
399
  {
434
400
  "internalType": "uint256",
435
- "name": "",
401
+ "name": "amountTokenDesired",
436
402
  "type": "uint256"
437
- }
438
- ],
439
- "stateMutability": "view",
440
- "type": "function"
441
- },
442
- {
443
- "inputs": [
403
+ },
444
404
  {
445
405
  "internalType": "uint256",
446
- "name": "lusdAmount",
406
+ "name": "amountTokenMin",
447
407
  "type": "uint256"
448
- }
449
- ],
450
- "name": "deposit",
451
- "outputs": [],
452
- "stateMutability": "nonpayable",
453
- "type": "function"
454
- },
455
- {
456
- "inputs": [],
457
- "name": "fee",
458
- "outputs": [
408
+ },
459
409
  {
460
410
  "internalType": "uint256",
461
- "name": "",
411
+ "name": "amountAVAXMin",
462
412
  "type": "uint256"
463
- }
464
- ],
465
- "stateMutability": "view",
466
- "type": "function"
467
- },
468
- {
469
- "inputs": [],
470
- "name": "feePool",
471
- "outputs": [
413
+ },
472
414
  {
473
- "internalType": "address payable",
474
- "name": "",
415
+ "internalType": "address",
416
+ "name": "to",
475
417
  "type": "address"
418
+ },
419
+ {
420
+ "internalType": "uint256",
421
+ "name": "deadline",
422
+ "type": "uint256"
476
423
  }
477
424
  ],
478
- "stateMutability": "view",
479
- "type": "function"
480
- },
481
- {
482
- "inputs": [],
483
- "name": "fetchPrice",
425
+ "name": "addLiquidityAVAX",
484
426
  "outputs": [
485
427
  {
486
428
  "internalType": "uint256",
487
- "name": "",
429
+ "name": "amountToken",
430
+ "type": "uint256"
431
+ },
432
+ {
433
+ "internalType": "uint256",
434
+ "name": "amountAVAX",
435
+ "type": "uint256"
436
+ },
437
+ {
438
+ "internalType": "uint256",
439
+ "name": "liquidity",
488
440
  "type": "uint256"
489
441
  }
490
442
  ],
491
- "stateMutability": "view",
443
+ "stateMutability": "payable",
492
444
  "type": "function"
493
445
  },
494
446
  {
495
447
  "inputs": [],
496
- "name": "frontEndTag",
448
+ "name": "factory",
497
449
  "outputs": [
498
450
  {
499
- "internalType": "address",
451
+ "internalType": "contract IBIFKN314FactoryV2",
500
452
  "name": "",
501
453
  "type": "address"
502
454
  }
@@ -506,12 +458,12 @@
506
458
  },
507
459
  {
508
460
  "inputs": [],
509
- "name": "gem",
461
+ "name": "getAllTokens",
510
462
  "outputs": [
511
463
  {
512
- "internalType": "contract ERC20",
513
- "name": "",
514
- "type": "address"
464
+ "internalType": "address[]",
465
+ "name": "tokens",
466
+ "type": "address[]"
515
467
  }
516
468
  ],
517
469
  "stateMutability": "view",
@@ -520,31 +472,31 @@
520
472
  {
521
473
  "inputs": [
522
474
  {
523
- "internalType": "contract IERC20",
524
- "name": "",
475
+ "internalType": "address",
476
+ "name": "token",
525
477
  "type": "address"
526
478
  },
527
479
  {
528
- "internalType": "contract IERC20",
529
- "name": "",
530
- "type": "address"
480
+ "internalType": "uint256",
481
+ "name": "amountOut",
482
+ "type": "uint256"
531
483
  },
532
484
  {
533
485
  "internalType": "uint256",
534
- "name": "srcQty",
486
+ "name": "reserveIn",
535
487
  "type": "uint256"
536
488
  },
537
489
  {
538
490
  "internalType": "uint256",
539
- "name": "",
491
+ "name": "reserveOut",
540
492
  "type": "uint256"
541
493
  }
542
494
  ],
543
- "name": "getConversionRate",
495
+ "name": "getAmountIn",
544
496
  "outputs": [
545
497
  {
546
498
  "internalType": "uint256",
547
- "name": "",
499
+ "name": "amountIn",
548
500
  "type": "uint256"
549
501
  }
550
502
  ],
@@ -554,124 +506,104 @@
554
506
  {
555
507
  "inputs": [
556
508
  {
557
- "internalType": "uint256",
558
- "name": "xQty",
559
- "type": "uint256"
509
+ "internalType": "address",
510
+ "name": "token",
511
+ "type": "address"
560
512
  },
561
513
  {
562
514
  "internalType": "uint256",
563
- "name": "xBalance",
515
+ "name": "amountIn",
564
516
  "type": "uint256"
565
517
  },
566
518
  {
567
519
  "internalType": "uint256",
568
- "name": "yBalance",
520
+ "name": "reserveIn",
569
521
  "type": "uint256"
570
522
  },
571
523
  {
572
524
  "internalType": "uint256",
573
- "name": "A",
525
+ "name": "reserveOut",
574
526
  "type": "uint256"
575
527
  }
576
528
  ],
577
- "name": "getReturn",
529
+ "name": "getAmountOut",
578
530
  "outputs": [
579
531
  {
580
532
  "internalType": "uint256",
581
- "name": "",
533
+ "name": "amountOut",
582
534
  "type": "uint256"
583
535
  }
584
536
  ],
585
- "stateMutability": "pure",
537
+ "stateMutability": "view",
586
538
  "type": "function"
587
539
  },
588
540
  {
589
541
  "inputs": [
590
542
  {
591
543
  "internalType": "uint256",
592
- "name": "x",
544
+ "name": "amountOut",
593
545
  "type": "uint256"
594
546
  },
595
547
  {
596
- "internalType": "uint256",
597
- "name": "y",
598
- "type": "uint256"
599
- },
600
- {
601
- "internalType": "uint256",
602
- "name": "A",
603
- "type": "uint256"
548
+ "internalType": "address[]",
549
+ "name": "path",
550
+ "type": "address[]"
604
551
  }
605
552
  ],
606
- "name": "getSumFixedPoint",
553
+ "name": "getAmountsIn",
607
554
  "outputs": [
608
555
  {
609
- "internalType": "uint256",
610
- "name": "",
611
- "type": "uint256"
556
+ "internalType": "uint256[]",
557
+ "name": "amounts",
558
+ "type": "uint256[]"
612
559
  }
613
560
  ],
614
- "stateMutability": "pure",
561
+ "stateMutability": "view",
615
562
  "type": "function"
616
563
  },
617
564
  {
618
565
  "inputs": [
619
566
  {
620
567
  "internalType": "uint256",
621
- "name": "lusdQty",
622
- "type": "uint256"
623
- }
624
- ],
625
- "name": "getSwapEthAmount",
626
- "outputs": [
627
- {
628
- "internalType": "uint256",
629
- "name": "ethAmount",
568
+ "name": "amountIn",
630
569
  "type": "uint256"
631
570
  },
632
571
  {
633
- "internalType": "uint256",
634
- "name": "feeEthAmount",
635
- "type": "uint256"
572
+ "internalType": "address[]",
573
+ "name": "path",
574
+ "type": "address[]"
636
575
  }
637
576
  ],
638
- "stateMutability": "view",
639
- "type": "function"
640
- },
641
- {
642
- "inputs": [],
643
- "name": "ilk",
577
+ "name": "getAmountsOut",
644
578
  "outputs": [
645
579
  {
646
- "internalType": "bytes32",
647
- "name": "",
648
- "type": "bytes32"
580
+ "internalType": "uint256[]",
581
+ "name": "amounts",
582
+ "type": "uint256[]"
649
583
  }
650
584
  ],
651
585
  "stateMutability": "view",
652
586
  "type": "function"
653
587
  },
654
588
  {
655
- "inputs": [],
656
- "name": "isOwner",
657
- "outputs": [
589
+ "inputs": [
658
590
  {
659
- "internalType": "bool",
660
- "name": "",
661
- "type": "bool"
591
+ "internalType": "address",
592
+ "name": "tokenA",
593
+ "type": "address"
594
+ },
595
+ {
596
+ "internalType": "address",
597
+ "name": "tokenB",
598
+ "type": "address"
662
599
  }
663
600
  ],
664
- "stateMutability": "view",
665
- "type": "function"
666
- },
667
- {
668
- "inputs": [],
669
- "name": "maxDiscount",
601
+ "name": "getPair",
670
602
  "outputs": [
671
603
  {
672
- "internalType": "uint256",
604
+ "internalType": "address",
673
605
  "name": "",
674
- "type": "uint256"
606
+ "type": "address"
675
607
  }
676
608
  ],
677
609
  "stateMutability": "view",
@@ -680,74 +612,79 @@
680
612
  {
681
613
  "inputs": [
682
614
  {
683
- "internalType": "uint256",
684
- "name": "x",
685
- "type": "uint256"
686
- },
687
- {
688
- "internalType": "uint256",
689
- "name": "y",
690
- "type": "uint256"
615
+ "internalType": "address",
616
+ "name": "token",
617
+ "type": "address"
691
618
  }
692
619
  ],
693
- "name": "mul",
620
+ "name": "getReserves",
694
621
  "outputs": [
695
622
  {
696
623
  "internalType": "uint256",
697
- "name": "z",
624
+ "name": "avaxReserve",
625
+ "type": "uint256"
626
+ },
627
+ {
628
+ "internalType": "uint256",
629
+ "name": "tokenReserve",
698
630
  "type": "uint256"
699
631
  }
700
632
  ],
701
- "stateMutability": "pure",
633
+ "stateMutability": "view",
702
634
  "type": "function"
703
635
  },
704
636
  {
705
- "inputs": [],
706
- "name": "name",
707
- "outputs": [
637
+ "inputs": [
708
638
  {
709
- "internalType": "string",
639
+ "internalType": "address",
710
640
  "name": "",
711
- "type": "string"
641
+ "type": "address"
712
642
  }
713
643
  ],
714
- "stateMutability": "view",
715
- "type": "function"
716
- },
717
- {
718
- "inputs": [],
719
- "name": "nav",
644
+ "name": "legacyERC314Tokens",
720
645
  "outputs": [
721
646
  {
722
- "internalType": "uint256",
647
+ "internalType": "bool",
723
648
  "name": "",
724
- "type": "uint256"
649
+ "type": "bool"
725
650
  }
726
651
  ],
727
- "stateMutability": "nonpayable",
652
+ "stateMutability": "view",
728
653
  "type": "function"
729
654
  },
730
655
  {
731
- "inputs": [],
732
- "name": "nps",
656
+ "inputs": [
657
+ {
658
+ "internalType": "address",
659
+ "name": "",
660
+ "type": "address"
661
+ }
662
+ ],
663
+ "name": "legacyWrappers",
733
664
  "outputs": [
734
665
  {
735
- "internalType": "uint256",
666
+ "internalType": "bool",
736
667
  "name": "",
737
- "type": "uint256"
668
+ "type": "bool"
738
669
  }
739
670
  ],
740
- "stateMutability": "nonpayable",
671
+ "stateMutability": "view",
741
672
  "type": "function"
742
673
  },
743
674
  {
744
- "inputs": [],
745
- "name": "owner",
675
+ "inputs": [
676
+ {
677
+ "internalType": "address[]",
678
+ "name": "path",
679
+ "type": "address[]"
680
+ }
681
+ ],
682
+ "name": "optimizePath",
746
683
  "outputs": [
747
684
  {
748
- "internalType": "address",
685
+ "internalType": "address[]",
749
686
  "name": "",
750
- "type": "address"
687
+ "type": "address[]"
751
688
  }
752
689
  ],
753
690
  "stateMutability": "view",
@@ -755,10 +692,10 @@
755
692
  },
756
693
  {
757
694
  "inputs": [],
758
- "name": "priceAggregator",
695
+ "name": "owner",
759
696
  "outputs": [
760
697
  {
761
- "internalType": "contract AggregatorV3Interface",
698
+ "internalType": "address",
762
699
  "name": "",
763
700
  "type": "address"
764
701
  }
@@ -770,20 +707,25 @@
770
707
  "inputs": [
771
708
  {
772
709
  "internalType": "uint256",
773
- "name": "x",
710
+ "name": "amountA",
711
+ "type": "uint256"
712
+ },
713
+ {
714
+ "internalType": "uint256",
715
+ "name": "reserveA",
774
716
  "type": "uint256"
775
717
  },
776
718
  {
777
719
  "internalType": "uint256",
778
- "name": "y",
720
+ "name": "reserveB",
779
721
  "type": "uint256"
780
722
  }
781
723
  ],
782
- "name": "rdiv",
724
+ "name": "quote",
783
725
  "outputs": [
784
726
  {
785
727
  "internalType": "uint256",
786
- "name": "z",
728
+ "name": "amountB",
787
729
  "type": "uint256"
788
730
  }
789
731
  ],
@@ -793,359 +735,382 @@
793
735
  {
794
736
  "inputs": [
795
737
  {
796
- "internalType": "uint256",
797
- "name": "x",
798
- "type": "uint256"
738
+ "internalType": "address",
739
+ "name": "token",
740
+ "type": "address"
799
741
  },
800
742
  {
801
743
  "internalType": "uint256",
802
- "name": "y",
744
+ "name": "liquidity",
803
745
  "type": "uint256"
804
- }
805
- ],
806
- "name": "rmul",
807
- "outputs": [
746
+ },
808
747
  {
809
748
  "internalType": "uint256",
810
- "name": "z",
749
+ "name": "amountTokenMin",
811
750
  "type": "uint256"
812
- }
813
- ],
814
- "stateMutability": "pure",
815
- "type": "function"
816
- },
817
- {
818
- "inputs": [
751
+ },
819
752
  {
820
753
  "internalType": "uint256",
821
- "name": "x",
754
+ "name": "amountAVAXMin",
822
755
  "type": "uint256"
823
756
  },
757
+ {
758
+ "internalType": "address",
759
+ "name": "to",
760
+ "type": "address"
761
+ },
824
762
  {
825
763
  "internalType": "uint256",
826
- "name": "y",
764
+ "name": "deadline",
827
765
  "type": "uint256"
828
766
  }
829
767
  ],
830
- "name": "rmulup",
768
+ "name": "removeLiquidityAVAX",
831
769
  "outputs": [
832
770
  {
833
771
  "internalType": "uint256",
834
- "name": "z",
772
+ "name": "amountToken",
773
+ "type": "uint256"
774
+ },
775
+ {
776
+ "internalType": "uint256",
777
+ "name": "amountAVAX",
835
778
  "type": "uint256"
836
779
  }
837
780
  ],
838
- "stateMutability": "pure",
781
+ "stateMutability": "nonpayable",
782
+ "type": "function"
783
+ },
784
+ {
785
+ "inputs": [],
786
+ "name": "renounceOwnership",
787
+ "outputs": [],
788
+ "stateMutability": "nonpayable",
839
789
  "type": "function"
840
790
  },
841
791
  {
842
792
  "inputs": [
843
793
  {
844
- "internalType": "uint256",
845
- "name": "_A",
846
- "type": "uint256"
794
+ "internalType": "address[]",
795
+ "name": "tokens",
796
+ "type": "address[]"
847
797
  },
848
798
  {
849
- "internalType": "uint256",
850
- "name": "_fee",
851
- "type": "uint256"
799
+ "internalType": "bool",
800
+ "name": "isLegacy",
801
+ "type": "bool"
852
802
  }
853
803
  ],
854
- "name": "setParams",
804
+ "name": "setLegacyTokens",
855
805
  "outputs": [],
856
806
  "stateMutability": "nonpayable",
857
807
  "type": "function"
858
808
  },
859
809
  {
860
- "inputs": [],
861
- "name": "share",
862
- "outputs": [
810
+ "inputs": [
863
811
  {
864
- "internalType": "uint256",
865
- "name": "",
866
- "type": "uint256"
812
+ "internalType": "address[]",
813
+ "name": "wrappers",
814
+ "type": "address[]"
815
+ },
816
+ {
817
+ "internalType": "bool",
818
+ "name": "isLegacy",
819
+ "type": "bool"
867
820
  }
868
821
  ],
869
- "stateMutability": "view",
822
+ "name": "setLegacyWrappers",
823
+ "outputs": [],
824
+ "stateMutability": "nonpayable",
870
825
  "type": "function"
871
826
  },
872
827
  {
873
828
  "inputs": [
829
+ {
830
+ "internalType": "uint256",
831
+ "name": "amountOutDesired",
832
+ "type": "uint256"
833
+ },
834
+ {
835
+ "internalType": "uint256",
836
+ "name": "amountOutMin",
837
+ "type": "uint256"
838
+ },
839
+ {
840
+ "internalType": "uint256",
841
+ "name": "amountInMax",
842
+ "type": "uint256"
843
+ },
844
+ {
845
+ "internalType": "address[]",
846
+ "name": "path",
847
+ "type": "address[]"
848
+ },
874
849
  {
875
850
  "internalType": "address",
876
- "name": "",
851
+ "name": "to",
877
852
  "type": "address"
878
- }
879
- ],
880
- "name": "stake",
881
- "outputs": [
853
+ },
882
854
  {
883
855
  "internalType": "uint256",
884
- "name": "",
856
+ "name": "deadline",
885
857
  "type": "uint256"
886
858
  }
887
859
  ],
888
- "stateMutability": "view",
889
- "type": "function"
890
- },
891
- {
892
- "inputs": [],
893
- "name": "stock",
860
+ "name": "swapAVAXForEstimatedTokens",
894
861
  "outputs": [
895
862
  {
896
- "internalType": "uint256",
897
- "name": "",
898
- "type": "uint256"
863
+ "internalType": "uint256[]",
864
+ "name": "amounts",
865
+ "type": "uint256[]"
899
866
  }
900
867
  ],
901
- "stateMutability": "view",
868
+ "stateMutability": "payable",
902
869
  "type": "function"
903
870
  },
904
871
  {
905
872
  "inputs": [
906
873
  {
907
874
  "internalType": "uint256",
908
- "name": "x",
875
+ "name": "amountOutMin",
909
876
  "type": "uint256"
910
877
  },
878
+ {
879
+ "internalType": "address[]",
880
+ "name": "path",
881
+ "type": "address[]"
882
+ },
883
+ {
884
+ "internalType": "address",
885
+ "name": "to",
886
+ "type": "address"
887
+ },
911
888
  {
912
889
  "internalType": "uint256",
913
- "name": "y",
890
+ "name": "deadline",
914
891
  "type": "uint256"
915
892
  }
916
893
  ],
917
- "name": "sub",
894
+ "name": "swapExactAVAXForTokens",
918
895
  "outputs": [
919
896
  {
920
- "internalType": "uint256",
921
- "name": "z",
922
- "type": "uint256"
897
+ "internalType": "uint256[]",
898
+ "name": "amounts",
899
+ "type": "uint256[]"
923
900
  }
924
901
  ],
925
- "stateMutability": "pure",
902
+ "stateMutability": "payable",
926
903
  "type": "function"
927
904
  },
928
905
  {
929
906
  "inputs": [
930
907
  {
931
908
  "internalType": "uint256",
932
- "name": "lusdAmount",
909
+ "name": "amountIn",
933
910
  "type": "uint256"
934
911
  },
935
912
  {
936
913
  "internalType": "uint256",
937
- "name": "minEthReturn",
914
+ "name": "amountOutMin",
938
915
  "type": "uint256"
939
916
  },
940
917
  {
941
- "internalType": "address payable",
942
- "name": "dest",
918
+ "internalType": "address[]",
919
+ "name": "path",
920
+ "type": "address[]"
921
+ },
922
+ {
923
+ "internalType": "address",
924
+ "name": "to",
943
925
  "type": "address"
944
- }
945
- ],
946
- "name": "swap",
947
- "outputs": [
926
+ },
948
927
  {
949
928
  "internalType": "uint256",
950
- "name": "",
929
+ "name": "deadline",
951
930
  "type": "uint256"
952
931
  }
953
932
  ],
954
- "stateMutability": "nonpayable",
955
- "type": "function"
956
- },
957
- {
958
- "inputs": [],
959
- "name": "symbol",
960
- "outputs": [
961
- {
962
- "internalType": "string",
963
- "name": "",
964
- "type": "string"
965
- }
966
- ],
967
- "stateMutability": "view",
968
- "type": "function"
969
- },
970
- {
971
- "inputs": [],
972
- "name": "total",
933
+ "name": "swapExactTokensForAVAX",
973
934
  "outputs": [
974
935
  {
975
- "internalType": "uint256",
976
- "name": "",
977
- "type": "uint256"
936
+ "internalType": "uint256[]",
937
+ "name": "amounts",
938
+ "type": "uint256[]"
978
939
  }
979
940
  ],
980
- "stateMutability": "view",
941
+ "stateMutability": "nonpayable",
981
942
  "type": "function"
982
943
  },
983
944
  {
984
- "inputs": [],
985
- "name": "totalSupply",
986
- "outputs": [
945
+ "inputs": [
987
946
  {
988
947
  "internalType": "uint256",
989
- "name": "",
948
+ "name": "amountIn",
990
949
  "type": "uint256"
991
- }
992
- ],
993
- "stateMutability": "view",
994
- "type": "function"
995
- },
996
- {
997
- "inputs": [
998
- {
999
- "internalType": "contract IERC20",
1000
- "name": "",
1001
- "type": "address"
1002
950
  },
1003
951
  {
1004
952
  "internalType": "uint256",
1005
- "name": "srcAmount",
953
+ "name": "amountOutMin",
1006
954
  "type": "uint256"
1007
955
  },
1008
956
  {
1009
- "internalType": "contract IERC20",
1010
- "name": "",
1011
- "type": "address"
957
+ "internalType": "address[]",
958
+ "name": "path",
959
+ "type": "address[]"
1012
960
  },
1013
961
  {
1014
- "internalType": "address payable",
1015
- "name": "destAddress",
962
+ "internalType": "address",
963
+ "name": "to",
1016
964
  "type": "address"
1017
965
  },
1018
966
  {
1019
967
  "internalType": "uint256",
1020
- "name": "",
968
+ "name": "deadline",
1021
969
  "type": "uint256"
1022
- },
1023
- {
1024
- "internalType": "bool",
1025
- "name": "",
1026
- "type": "bool"
1027
970
  }
1028
971
  ],
1029
- "name": "trade",
972
+ "name": "swapExactTokensForTokens",
1030
973
  "outputs": [
1031
974
  {
1032
- "internalType": "bool",
1033
- "name": "",
1034
- "type": "bool"
975
+ "internalType": "uint256[]",
976
+ "name": "amounts",
977
+ "type": "uint256[]"
1035
978
  }
1036
979
  ],
1037
- "stateMutability": "payable",
980
+ "stateMutability": "nonpayable",
1038
981
  "type": "function"
1039
982
  },
1040
983
  {
1041
984
  "inputs": [
985
+ {
986
+ "internalType": "uint256",
987
+ "name": "amountOutDesired",
988
+ "type": "uint256"
989
+ },
990
+ {
991
+ "internalType": "uint256",
992
+ "name": "amountOutMin",
993
+ "type": "uint256"
994
+ },
995
+ {
996
+ "internalType": "uint256",
997
+ "name": "amountInMax",
998
+ "type": "uint256"
999
+ },
1000
+ {
1001
+ "internalType": "address[]",
1002
+ "name": "path",
1003
+ "type": "address[]"
1004
+ },
1042
1005
  {
1043
1006
  "internalType": "address",
1044
- "name": "newOwner",
1007
+ "name": "to",
1045
1008
  "type": "address"
1009
+ },
1010
+ {
1011
+ "internalType": "uint256",
1012
+ "name": "deadline",
1013
+ "type": "uint256"
1046
1014
  }
1047
1015
  ],
1048
- "name": "transferOwnership",
1049
- "outputs": [],
1050
- "stateMutability": "nonpayable",
1051
- "type": "function"
1052
- },
1053
- {
1054
- "inputs": [],
1055
- "name": "vat",
1016
+ "name": "swapTokensForEstimatedAVAX",
1056
1017
  "outputs": [
1057
1018
  {
1058
- "internalType": "contract VatLike",
1059
- "name": "",
1060
- "type": "address"
1019
+ "internalType": "uint256[]",
1020
+ "name": "amounts",
1021
+ "type": "uint256[]"
1061
1022
  }
1062
1023
  ],
1063
- "stateMutability": "view",
1024
+ "stateMutability": "nonpayable",
1064
1025
  "type": "function"
1065
1026
  },
1066
1027
  {
1067
1028
  "inputs": [
1068
1029
  {
1069
1030
  "internalType": "uint256",
1070
- "name": "x",
1031
+ "name": "amountOutDesired",
1032
+ "type": "uint256"
1033
+ },
1034
+ {
1035
+ "internalType": "uint256",
1036
+ "name": "amountOutMin",
1037
+ "type": "uint256"
1038
+ },
1039
+ {
1040
+ "internalType": "uint256",
1041
+ "name": "amountInMax",
1071
1042
  "type": "uint256"
1072
1043
  },
1044
+ {
1045
+ "internalType": "address[]",
1046
+ "name": "path",
1047
+ "type": "address[]"
1048
+ },
1049
+ {
1050
+ "internalType": "address",
1051
+ "name": "to",
1052
+ "type": "address"
1053
+ },
1073
1054
  {
1074
1055
  "internalType": "uint256",
1075
- "name": "y",
1056
+ "name": "deadline",
1076
1057
  "type": "uint256"
1077
1058
  }
1078
1059
  ],
1079
- "name": "wdiv",
1060
+ "name": "swapTokensForEstimatedTokens",
1080
1061
  "outputs": [
1081
1062
  {
1082
- "internalType": "uint256",
1083
- "name": "z",
1084
- "type": "uint256"
1063
+ "internalType": "uint256[]",
1064
+ "name": "amounts",
1065
+ "type": "uint256[]"
1085
1066
  }
1086
1067
  ],
1087
- "stateMutability": "pure",
1068
+ "stateMutability": "nonpayable",
1088
1069
  "type": "function"
1089
1070
  },
1090
1071
  {
1091
1072
  "inputs": [
1092
1073
  {
1093
- "internalType": "uint256",
1094
- "name": "x",
1095
- "type": "uint256"
1096
- },
1097
- {
1098
- "internalType": "uint256",
1099
- "name": "y",
1100
- "type": "uint256"
1074
+ "internalType": "address",
1075
+ "name": "",
1076
+ "type": "address"
1101
1077
  }
1102
1078
  ],
1103
- "name": "wdivup",
1079
+ "name": "tokenToERC314Cache",
1104
1080
  "outputs": [
1105
1081
  {
1106
- "internalType": "uint256",
1107
- "name": "z",
1108
- "type": "uint256"
1082
+ "internalType": "address",
1083
+ "name": "",
1084
+ "type": "address"
1109
1085
  }
1110
1086
  ],
1111
- "stateMutability": "pure",
1087
+ "stateMutability": "view",
1112
1088
  "type": "function"
1113
1089
  },
1114
1090
  {
1115
1091
  "inputs": [
1116
1092
  {
1117
- "internalType": "uint256",
1118
- "name": "numShares",
1119
- "type": "uint256"
1093
+ "internalType": "address",
1094
+ "name": "newOwner",
1095
+ "type": "address"
1120
1096
  }
1121
1097
  ],
1122
- "name": "withdraw",
1098
+ "name": "transferOwnership",
1123
1099
  "outputs": [],
1124
1100
  "stateMutability": "nonpayable",
1125
1101
  "type": "function"
1126
1102
  },
1127
1103
  {
1128
- "inputs": [
1129
- {
1130
- "internalType": "uint256",
1131
- "name": "x",
1132
- "type": "uint256"
1133
- },
1134
- {
1135
- "internalType": "uint256",
1136
- "name": "y",
1137
- "type": "uint256"
1138
- }
1139
- ],
1140
- "name": "wmul",
1104
+ "inputs": [],
1105
+ "name": "wrapperFactory",
1141
1106
  "outputs": [
1142
1107
  {
1143
- "internalType": "uint256",
1144
- "name": "z",
1145
- "type": "uint256"
1108
+ "internalType": "contract IBIFKN314WrapperFactoryV2",
1109
+ "name": "",
1110
+ "type": "address"
1146
1111
  }
1147
1112
  ],
1148
- "stateMutability": "pure",
1113
+ "stateMutability": "view",
1149
1114
  "type": "function"
1150
1115
  },
1151
1116
  {