@paraswap/dex-lib 4.7.13-from-amount-pos.0 → 4.7.13-unified-pair-restriction.1

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