@paraswap/dex-lib 3.8.14 → 3.8.15

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 (237) hide show
  1. package/.vscode/launch.json +6 -43
  2. package/.vscode/settings.json +2 -1
  3. package/build/abi/Uncompressor.json +250 -0
  4. package/build/abi/concentrator/arUSD.json +568 -0
  5. package/build/abi/concentrator/arUSD5115.json +1746 -0
  6. package/build/abi/fx-protocol/FxMarket.json +1284 -0
  7. package/build/abi/{wombat/pool.json → fx-protocol/FxUSD.json} +541 -603
  8. package/build/abi/fx-protocol/weETHOralce.json +676 -0
  9. package/build/abi/integral/factory.json +333 -0
  10. package/build/abi/integral/oracle.json +501 -0
  11. package/build/abi/integral/pool.json +1041 -0
  12. package/build/abi/integral/relayer.json +1536 -0
  13. package/build/abi/oswap/oswap.abi.json +452 -0
  14. package/build/dex/aave-v1/aave-v1.d.ts +1 -2
  15. package/build/dex/aave-v1/aave-v1.js +0 -23
  16. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  17. package/build/dex/compound.js +1 -1
  18. package/build/dex/compound.js.map +1 -1
  19. package/build/dex/concentrator-arusd/concentrator-arusd-event.d.ts +17 -0
  20. package/build/dex/concentrator-arusd/concentrator-arusd-event.js +66 -0
  21. package/build/dex/concentrator-arusd/concentrator-arusd-event.js.map +1 -0
  22. package/build/dex/concentrator-arusd/concentrator-arusd.d.ts +41 -0
  23. package/build/dex/concentrator-arusd/concentrator-arusd.js +188 -0
  24. package/build/dex/concentrator-arusd/concentrator-arusd.js.map +1 -0
  25. package/build/dex/concentrator-arusd/config.d.ts +3 -0
  26. package/build/dex/concentrator-arusd/config.js +14 -0
  27. package/build/dex/concentrator-arusd/config.js.map +1 -0
  28. package/build/dex/concentrator-arusd/types.d.ts +14 -0
  29. package/build/dex/concentrator-arusd/types.js +3 -0
  30. package/build/dex/concentrator-arusd/types.js.map +1 -0
  31. package/build/dex/concentrator-arusd/utils.d.ts +4 -0
  32. package/build/dex/concentrator-arusd/utils.js +27 -0
  33. package/build/dex/concentrator-arusd/utils.js.map +1 -0
  34. package/build/dex/etherfi/etherfi.d.ts +26 -0
  35. package/build/dex/etherfi/etherfi.js +96 -0
  36. package/build/dex/etherfi/etherfi.js.map +1 -0
  37. package/build/dex/fx-protocol-rusd/config.d.ts +3 -0
  38. package/build/dex/fx-protocol-rusd/config.js +15 -0
  39. package/build/dex/fx-protocol-rusd/config.js.map +1 -0
  40. package/build/dex/fx-protocol-rusd/fx-protocol-rusd-event.d.ts +18 -0
  41. package/build/dex/fx-protocol-rusd/fx-protocol-rusd-event.js +71 -0
  42. package/build/dex/fx-protocol-rusd/fx-protocol-rusd-event.js.map +1 -0
  43. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.d.ts +39 -0
  44. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js +201 -0
  45. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js.map +1 -0
  46. package/build/dex/fx-protocol-rusd/types.d.ts +13 -0
  47. package/build/dex/fx-protocol-rusd/types.js +3 -0
  48. package/build/dex/fx-protocol-rusd/types.js.map +1 -0
  49. package/build/dex/fx-protocol-rusd/utils.d.ts +4 -0
  50. package/build/dex/fx-protocol-rusd/utils.js +26 -0
  51. package/build/dex/fx-protocol-rusd/utils.js.map +1 -0
  52. package/build/dex/index.js +4 -0
  53. package/build/dex/index.js.map +1 -1
  54. package/build/dex/integral/config.d.ts +4 -0
  55. package/build/dex/integral/config.js +20 -0
  56. package/build/dex/integral/config.js.map +1 -0
  57. package/build/dex/integral/context.d.ts +40 -0
  58. package/build/dex/integral/context.js +158 -0
  59. package/build/dex/integral/context.js.map +1 -0
  60. package/build/dex/integral/helpers.d.ts +17 -0
  61. package/build/dex/integral/helpers.js +157 -0
  62. package/build/dex/integral/helpers.js.map +1 -0
  63. package/build/dex/integral/integral-factory.d.ts +24 -0
  64. package/build/dex/integral/integral-factory.js +95 -0
  65. package/build/dex/integral/integral-factory.js.map +1 -0
  66. package/build/dex/integral/integral-pool.d.ts +50 -0
  67. package/build/dex/integral/integral-pool.js +149 -0
  68. package/build/dex/integral/integral-pool.js.map +1 -0
  69. package/build/dex/integral/integral-pricing.d.ts +18 -0
  70. package/build/dex/integral/integral-pricing.js +114 -0
  71. package/build/dex/integral/integral-pricing.js.map +1 -0
  72. package/build/dex/integral/integral-relayer.d.ts +42 -0
  73. package/build/dex/integral/integral-relayer.js +192 -0
  74. package/build/dex/integral/integral-relayer.js.map +1 -0
  75. package/build/dex/integral/integral-token.d.ts +27 -0
  76. package/build/dex/integral/integral-token.js +59 -0
  77. package/build/dex/integral/integral-token.js.map +1 -0
  78. package/build/dex/integral/integral.d.ts +41 -0
  79. package/build/dex/integral/integral.js +377 -0
  80. package/build/dex/integral/integral.js.map +1 -0
  81. package/build/dex/integral/types.d.ts +84 -0
  82. package/build/dex/integral/types.js +9 -0
  83. package/build/dex/integral/types.js.map +1 -0
  84. package/build/dex/integral/utils-e2e.d.ts +9 -0
  85. package/build/dex/integral/utils-e2e.js +131 -0
  86. package/build/dex/integral/utils-e2e.js.map +1 -0
  87. package/build/dex/integral/utils.d.ts +17 -0
  88. package/build/dex/integral/utils.js +94 -0
  89. package/build/dex/integral/utils.js.map +1 -0
  90. package/build/dex/oswap/config.d.ts +5 -0
  91. package/build/dex/oswap/config.js +31 -0
  92. package/build/dex/oswap/config.js.map +1 -0
  93. package/build/dex/oswap/oswap-pool.d.ts +51 -0
  94. package/build/dex/oswap/oswap-pool.js +150 -0
  95. package/build/dex/oswap/oswap-pool.js.map +1 -0
  96. package/build/dex/oswap/oswap.d.ts +46 -0
  97. package/build/dex/oswap/oswap.js +266 -0
  98. package/build/dex/oswap/oswap.js.map +1 -0
  99. package/build/dex/oswap/types.d.ts +20 -0
  100. package/build/dex/oswap/types.js +3 -0
  101. package/build/dex/oswap/types.js.map +1 -0
  102. package/build/dex/platypus/platypus.d.ts +1 -2
  103. package/build/dex/platypus/platypus.js +0 -45
  104. package/build/dex/platypus/platypus.js.map +1 -1
  105. package/build/dex/sdai/config.d.ts +11 -0
  106. package/build/dex/sdai/config.js +21 -0
  107. package/build/dex/sdai/config.js.map +1 -0
  108. package/build/dex/sdai/constants.d.ts +2 -0
  109. package/build/dex/sdai/constants.js +6 -0
  110. package/build/dex/sdai/constants.js.map +1 -0
  111. package/build/dex/sdai/scripts/validate-state.js +102 -0
  112. package/build/dex/sdai/scripts/validate-state.js.map +1 -0
  113. package/build/dex/sdai/sdai-pool.d.ts +16 -0
  114. package/build/dex/sdai/sdai-pool.js +85 -0
  115. package/build/dex/sdai/sdai-pool.js.map +1 -0
  116. package/build/dex/sdai/sdai.d.ts +51 -0
  117. package/build/dex/sdai/sdai.js +172 -0
  118. package/build/dex/sdai/sdai.js.map +1 -0
  119. package/build/dex/sdai/types.d.ts +21 -0
  120. package/build/dex/sdai/types.js +11 -0
  121. package/build/dex/sdai/types.js.map +1 -0
  122. package/build/dex/sdai/utils.d.ts +4 -0
  123. package/build/dex/sdai/utils.js +39 -0
  124. package/build/dex/sdai/utils.js.map +1 -0
  125. package/build/dex/stable-pool.js +8 -1
  126. package/build/dex/stable-pool.js.map +1 -1
  127. package/build/dex/swaap-v1/swaap-v1.d.ts +1 -2
  128. package/build/dex/swaap-v1/swaap-v1.js +0 -14
  129. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  130. package/build/executor/compressor/Compressor.d.ts +23 -0
  131. package/build/executor/compressor/Compressor.js +144 -0
  132. package/build/executor/compressor/Compressor.js.map +1 -0
  133. package/build/executor/compressor/compress.d.ts +17 -0
  134. package/build/executor/compressor/compress.js +187 -0
  135. package/build/executor/compressor/compress.js.map +1 -0
  136. package/build/executor/compressor/compress_functions/addressSubstitution.d.ts +6 -0
  137. package/build/executor/compressor/compress_functions/addressSubstitution.js +29 -0
  138. package/build/executor/compressor/compress_functions/addressSubstitution.js.map +1 -0
  139. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.d.ts +10 -0
  140. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.js +40 -0
  141. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.js.map +1 -0
  142. package/build/executor/compressor/compress_functions/byteSubstitution.d.ts +11 -0
  143. package/build/executor/compressor/compress_functions/byteSubstitution.js +64 -0
  144. package/build/executor/compressor/compress_functions/byteSubstitution.js.map +1 -0
  145. package/build/executor/compressor/compress_functions/ffSubstitution.d.ts +7 -0
  146. package/build/executor/compressor/compress_functions/ffSubstitution.js +54 -0
  147. package/build/executor/compressor/compress_functions/ffSubstitution.js.map +1 -0
  148. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.d.ts +8 -0
  149. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.js +67 -0
  150. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.js.map +1 -0
  151. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.d.ts +8 -0
  152. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.js +61 -0
  153. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.js.map +1 -0
  154. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.d.ts +6 -0
  155. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.js +37 -0
  156. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.js.map +1 -0
  157. package/build/executor/compressor/compress_functions/searchUnusedBytes.d.ts +9 -0
  158. package/build/executor/compressor/compress_functions/searchUnusedBytes.js +33 -0
  159. package/build/executor/compressor/compress_functions/searchUnusedBytes.js.map +1 -0
  160. package/build/executor/compressor/fetchSaved.js +17 -0
  161. package/build/executor/compressor/fetchSaved.js.map +1 -0
  162. package/build/executor/compressor/utils/computeCostL2.d.ts +2 -0
  163. package/build/executor/compressor/utils/computeCostL2.js +14 -0
  164. package/build/executor/compressor/utils/computeCostL2.js.map +1 -0
  165. package/build/executor/compressor/utils/findLongestDuplicatedString.d.ts +2 -0
  166. package/build/executor/compressor/utils/findLongestDuplicatedString.js +30 -0
  167. package/build/executor/compressor/utils/findLongestDuplicatedString.js.map +1 -0
  168. package/build/executor/compressor/utils/getAllIndexes.d.ts +2 -0
  169. package/build/executor/compressor/utils/getAllIndexes.js +12 -0
  170. package/build/executor/compressor/utils/getAllIndexes.js.map +1 -0
  171. package/build/executor/compressor/utils/getByteForAddress.d.ts +2 -0
  172. package/build/executor/compressor/utils/getByteForAddress.js +14 -0
  173. package/build/executor/compressor/utils/getByteForAddress.js.map +1 -0
  174. package/build/executor/compressor/utils/intTo2Bytes.d.ts +2 -0
  175. package/build/executor/compressor/utils/intTo2Bytes.js +14 -0
  176. package/build/executor/compressor/utils/intTo2Bytes.js.map +1 -0
  177. package/build/executor/compressor/utils/intTo3Bytes.d.ts +2 -0
  178. package/build/executor/compressor/utils/intTo3Bytes.js +18 -0
  179. package/build/executor/compressor/utils/intTo3Bytes.js.map +1 -0
  180. package/build/executor/compressor/utils/intToByte.d.ts +2 -0
  181. package/build/executor/compressor/utils/intToByte.js +10 -0
  182. package/build/executor/compressor/utils/intToByte.js.map +1 -0
  183. package/package.json +1 -1
  184. package/src/abi/concentrator/arUSD.json +568 -0
  185. package/src/abi/concentrator/arUSD5115.json +1746 -0
  186. package/src/abi/fx-protocol/FxMarket.json +1284 -0
  187. package/src/abi/fx-protocol/FxUSD.json +1227 -0
  188. package/src/abi/fx-protocol/weETHOralce.json +676 -0
  189. package/src/dex/concentrator-arusd/concentrator-arusd-e2e.test.ts +92 -0
  190. package/src/dex/concentrator-arusd/concentrator-arusd-event.ts +100 -0
  191. package/src/dex/concentrator-arusd/concentrator-arusd-integration.test.ts +104 -0
  192. package/src/dex/concentrator-arusd/concentrator-arusd.ts +269 -0
  193. package/src/dex/concentrator-arusd/concetrator-arusd-events.test.ts +97 -0
  194. package/src/dex/concentrator-arusd/config.ts +13 -0
  195. package/src/dex/concentrator-arusd/types.ts +16 -0
  196. package/src/dex/concentrator-arusd/utils.ts +36 -0
  197. package/src/dex/fx-protocol-rusd/config.ts +14 -0
  198. package/src/dex/fx-protocol-rusd/fx-protocol-e2e.test.ts +96 -0
  199. package/src/dex/fx-protocol-rusd/fx-protocol-events.test.ts +101 -0
  200. package/src/dex/fx-protocol-rusd/fx-protocol-integration.test.ts +104 -0
  201. package/src/dex/fx-protocol-rusd/fx-protocol-rusd-event.ts +112 -0
  202. package/src/dex/fx-protocol-rusd/fx-protocol-rusd.ts +282 -0
  203. package/src/dex/fx-protocol-rusd/types.ts +16 -0
  204. package/src/dex/fx-protocol-rusd/utils.ts +47 -0
  205. package/src/dex/index.ts +4 -0
  206. package/src/dex/wsteth/wsteth-integration.test.ts +0 -1
  207. package/tests/constants-e2e.ts +10 -0
  208. package/.vscode/tasks.json +0 -15
  209. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
  210. package/build/dex/aave-v2/tokens-avalanche.json +0 -44
  211. package/build/dex/aave-v2/tokens-mainnet.json +0 -188
  212. package/build/dex/aave-v2/tokens-polygon.json +0 -44
  213. package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
  214. package/build/dex/maker-psm/scripts/validate-state.js +0 -185
  215. package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
  216. package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
  217. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
  218. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
  219. package/build/dex/trader-joe-v2.1/base.d.ts +0 -18
  220. package/build/dex/trader-joe-v2.1/base.js +0 -99
  221. package/build/dex/trader-joe-v2.1/base.js.map +0 -1
  222. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +0 -7
  223. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +0 -20
  224. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +0 -1
  225. package/build/dex/trader-joe-v2.1/trader-joe-v2.2.d.ts +0 -7
  226. package/build/dex/trader-joe-v2.1/trader-joe-v2.2.js +0 -20
  227. package/build/dex/trader-joe-v2.1/trader-joe-v2.2.js.map +0 -1
  228. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
  229. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
  230. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
  231. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
  232. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
  233. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
  234. package/config.ts +0 -1946
  235. package/src/dex/dexs.txt +0 -58
  236. /package/build/dex/{solidly-v3/scripts/check-event-pool-event.d.ts → sdai/scripts/validate-state.d.ts} +0 -0
  237. /package/build/{dex/maker-psm/scripts/validate-state.d.ts → executor/compressor/fetchSaved.d.ts} +0 -0
@@ -1,21 +1,66 @@
1
1
  [
2
+ {
3
+ "inputs": [],
4
+ "name": "ErrorExceedMintCap",
5
+ "type": "error"
6
+ },
7
+ {
8
+ "inputs": [],
9
+ "name": "ErrorInsufficientLiquidity",
10
+ "type": "error"
11
+ },
12
+ {
13
+ "inputs": [],
14
+ "name": "ErrorLengthMismatch",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [],
19
+ "name": "ErrorMarketAlreadySupported",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "inputs": [],
24
+ "name": "ErrorMarketInStabilityMode",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [],
29
+ "name": "ErrorMarketWithInvalidPrice",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [],
34
+ "name": "ErrorUnderCollateral",
35
+ "type": "error"
36
+ },
37
+ {
38
+ "inputs": [],
39
+ "name": "ErrorUnsupportedMarket",
40
+ "type": "error"
41
+ },
42
+ {
43
+ "inputs": [],
44
+ "name": "ErrorUnsupportedRebalancePool",
45
+ "type": "error"
46
+ },
2
47
  {
3
48
  "anonymous": false,
4
49
  "inputs": [
5
50
  {
6
51
  "indexed": true,
7
52
  "internalType": "address",
8
- "name": "token",
53
+ "name": "baseToken",
9
54
  "type": "address"
10
55
  },
11
56
  {
12
- "indexed": true,
13
- "internalType": "address",
14
- "name": "asset",
15
- "type": "address"
57
+ "indexed": false,
58
+ "internalType": "uint256",
59
+ "name": "mintCap",
60
+ "type": "uint256"
16
61
  }
17
62
  ],
18
- "name": "AssetAdded",
63
+ "name": "AddMarket",
19
64
  "type": "event"
20
65
  },
21
66
  {
@@ -24,17 +69,17 @@
24
69
  {
25
70
  "indexed": true,
26
71
  "internalType": "address",
27
- "name": "token",
72
+ "name": "baseToken",
28
73
  "type": "address"
29
74
  },
30
75
  {
31
76
  "indexed": true,
32
77
  "internalType": "address",
33
- "name": "asset",
78
+ "name": "pool",
34
79
  "type": "address"
35
80
  }
36
81
  ],
37
- "name": "AssetRemoved",
82
+ "name": "AddRebalancePool",
38
83
  "type": "event"
39
84
  },
40
85
  {
@@ -43,54 +88,29 @@
43
88
  {
44
89
  "indexed": true,
45
90
  "internalType": "address",
46
- "name": "sender",
91
+ "name": "owner",
47
92
  "type": "address"
48
93
  },
49
94
  {
50
- "indexed": false,
95
+ "indexed": true,
51
96
  "internalType": "address",
52
- "name": "token",
97
+ "name": "spender",
53
98
  "type": "address"
54
99
  },
55
100
  {
56
101
  "indexed": false,
57
102
  "internalType": "uint256",
58
- "name": "amount",
59
- "type": "uint256"
60
- },
61
- {
62
- "indexed": false,
63
- "internalType": "uint256",
64
- "name": "liquidity",
103
+ "name": "value",
65
104
  "type": "uint256"
66
- },
67
- {
68
- "indexed": true,
69
- "internalType": "address",
70
- "name": "to",
71
- "type": "address"
72
105
  }
73
106
  ],
74
- "name": "Deposit",
107
+ "name": "Approval",
75
108
  "type": "event"
76
109
  },
77
110
  {
78
111
  "anonymous": false,
79
- "inputs": [
80
- {
81
- "indexed": false,
82
- "internalType": "address",
83
- "name": "token",
84
- "type": "address"
85
- },
86
- {
87
- "indexed": false,
88
- "internalType": "uint256",
89
- "name": "amount",
90
- "type": "uint256"
91
- }
92
- ],
93
- "name": "FillPool",
112
+ "inputs": [],
113
+ "name": "EIP712DomainChanged",
94
114
  "type": "event"
95
115
  },
96
116
  {
@@ -112,138 +132,109 @@
112
132
  {
113
133
  "indexed": true,
114
134
  "internalType": "address",
115
- "name": "previousOwner",
135
+ "name": "baseToken",
116
136
  "type": "address"
117
137
  },
118
138
  {
119
139
  "indexed": true,
120
140
  "internalType": "address",
121
- "name": "newOwner",
141
+ "name": "pool",
122
142
  "type": "address"
123
143
  }
124
144
  ],
125
- "name": "OwnershipTransferred",
145
+ "name": "RemoveRebalancePool",
126
146
  "type": "event"
127
147
  },
128
148
  {
129
149
  "anonymous": false,
130
150
  "inputs": [
131
151
  {
132
- "indexed": false,
133
- "internalType": "address",
134
- "name": "account",
135
- "type": "address"
152
+ "indexed": true,
153
+ "internalType": "bytes32",
154
+ "name": "role",
155
+ "type": "bytes32"
156
+ },
157
+ {
158
+ "indexed": true,
159
+ "internalType": "bytes32",
160
+ "name": "previousAdminRole",
161
+ "type": "bytes32"
162
+ },
163
+ {
164
+ "indexed": true,
165
+ "internalType": "bytes32",
166
+ "name": "newAdminRole",
167
+ "type": "bytes32"
136
168
  }
137
169
  ],
138
- "name": "Paused",
170
+ "name": "RoleAdminChanged",
139
171
  "type": "event"
140
172
  },
141
173
  {
142
174
  "anonymous": false,
143
175
  "inputs": [
144
176
  {
145
- "indexed": false,
146
- "internalType": "address",
147
- "name": "token",
148
- "type": "address"
177
+ "indexed": true,
178
+ "internalType": "bytes32",
179
+ "name": "role",
180
+ "type": "bytes32"
149
181
  },
150
182
  {
151
- "indexed": false,
183
+ "indexed": true,
152
184
  "internalType": "address",
153
185
  "name": "account",
154
186
  "type": "address"
155
- }
156
- ],
157
- "name": "PausedAsset",
158
- "type": "event"
159
- },
160
- {
161
- "anonymous": false,
162
- "inputs": [
163
- {
164
- "indexed": false,
165
- "internalType": "uint256",
166
- "name": "value",
167
- "type": "uint256"
168
- }
169
- ],
170
- "name": "SetAmpFactor",
171
- "type": "event"
172
- },
173
- {
174
- "anonymous": false,
175
- "inputs": [
187
+ },
176
188
  {
177
- "indexed": false,
189
+ "indexed": true,
178
190
  "internalType": "address",
179
- "name": "addr",
191
+ "name": "sender",
180
192
  "type": "address"
181
193
  }
182
194
  ],
183
- "name": "SetDev",
195
+ "name": "RoleGranted",
184
196
  "type": "event"
185
197
  },
186
198
  {
187
199
  "anonymous": false,
188
200
  "inputs": [
189
201
  {
190
- "indexed": false,
191
- "internalType": "uint256",
192
- "name": "lpDividendRatio",
193
- "type": "uint256"
202
+ "indexed": true,
203
+ "internalType": "bytes32",
204
+ "name": "role",
205
+ "type": "bytes32"
194
206
  },
195
207
  {
196
- "indexed": false,
197
- "internalType": "uint256",
198
- "name": "retentionRatio",
199
- "type": "uint256"
200
- }
201
- ],
202
- "name": "SetFee",
203
- "type": "event"
204
- },
205
- {
206
- "anonymous": false,
207
- "inputs": [
208
+ "indexed": true,
209
+ "internalType": "address",
210
+ "name": "account",
211
+ "type": "address"
212
+ },
208
213
  {
209
- "indexed": false,
214
+ "indexed": true,
210
215
  "internalType": "address",
211
- "name": "addr",
216
+ "name": "sender",
212
217
  "type": "address"
213
218
  }
214
219
  ],
215
- "name": "SetFeeTo",
220
+ "name": "RoleRevoked",
216
221
  "type": "event"
217
222
  },
218
223
  {
219
224
  "anonymous": false,
220
225
  "inputs": [
221
226
  {
222
- "indexed": false,
223
- "internalType": "uint256",
224
- "name": "value",
225
- "type": "uint256"
226
- }
227
- ],
228
- "name": "SetHaircutRate",
229
- "type": "event"
230
- },
231
- {
232
- "anonymous": false,
233
- "inputs": [
227
+ "indexed": true,
228
+ "internalType": "address",
229
+ "name": "from",
230
+ "type": "address"
231
+ },
234
232
  {
235
- "indexed": false,
233
+ "indexed": true,
236
234
  "internalType": "address",
237
- "name": "addr",
235
+ "name": "to",
238
236
  "type": "address"
239
- }
240
- ],
241
- "name": "SetMasterWombat",
242
- "type": "event"
243
- },
244
- {
245
- "anonymous": false,
246
- "inputs": [
237
+ },
247
238
  {
248
239
  "indexed": false,
249
240
  "internalType": "uint256",
@@ -251,7 +242,7 @@
251
242
  "type": "uint256"
252
243
  }
253
244
  ],
254
- "name": "SetMintFeeThreshold",
245
+ "name": "Transfer",
255
246
  "type": "event"
256
247
  },
257
248
  {
@@ -260,113 +251,75 @@
260
251
  {
261
252
  "indexed": true,
262
253
  "internalType": "address",
263
- "name": "sender",
254
+ "name": "baseToken",
264
255
  "type": "address"
265
256
  },
266
257
  {
267
- "indexed": false,
258
+ "indexed": true,
268
259
  "internalType": "address",
269
- "name": "fromToken",
260
+ "name": "owner",
270
261
  "type": "address"
271
262
  },
272
263
  {
273
- "indexed": false,
264
+ "indexed": true,
274
265
  "internalType": "address",
275
- "name": "toToken",
266
+ "name": "receiver",
276
267
  "type": "address"
277
268
  },
278
269
  {
279
270
  "indexed": false,
280
271
  "internalType": "uint256",
281
- "name": "fromAmount",
282
- "type": "uint256"
283
- },
284
- {
285
- "indexed": false,
286
- "internalType": "uint256",
287
- "name": "toAmount",
272
+ "name": "amount",
288
273
  "type": "uint256"
289
- },
290
- {
291
- "indexed": true,
292
- "internalType": "address",
293
- "name": "to",
294
- "type": "address"
295
274
  }
296
275
  ],
297
- "name": "Swap",
276
+ "name": "Unwrap",
298
277
  "type": "event"
299
278
  },
300
279
  {
301
280
  "anonymous": false,
302
281
  "inputs": [
303
282
  {
304
- "indexed": false,
283
+ "indexed": true,
305
284
  "internalType": "address",
306
- "name": "token",
285
+ "name": "baseToken",
307
286
  "type": "address"
308
287
  },
309
288
  {
310
289
  "indexed": false,
311
290
  "internalType": "uint256",
312
- "name": "amount",
291
+ "name": "oldCap",
313
292
  "type": "uint256"
314
293
  },
315
294
  {
316
295
  "indexed": false,
317
- "internalType": "address",
318
- "name": "to",
319
- "type": "address"
320
- }
321
- ],
322
- "name": "TransferTipBucket",
323
- "type": "event"
324
- },
325
- {
326
- "anonymous": false,
327
- "inputs": [
328
- {
329
- "indexed": false,
330
- "internalType": "address",
331
- "name": "account",
332
- "type": "address"
296
+ "internalType": "uint256",
297
+ "name": "newCap",
298
+ "type": "uint256"
333
299
  }
334
300
  ],
335
- "name": "Unpaused",
301
+ "name": "UpdateMintCap",
336
302
  "type": "event"
337
303
  },
338
304
  {
339
305
  "anonymous": false,
340
306
  "inputs": [
341
307
  {
342
- "indexed": false,
308
+ "indexed": true,
343
309
  "internalType": "address",
344
- "name": "token",
310
+ "name": "baseToken",
345
311
  "type": "address"
346
312
  },
347
- {
348
- "indexed": false,
349
- "internalType": "address",
350
- "name": "account",
351
- "type": "address"
352
- }
353
- ],
354
- "name": "UnpausedAsset",
355
- "type": "event"
356
- },
357
- {
358
- "anonymous": false,
359
- "inputs": [
360
313
  {
361
314
  "indexed": true,
362
315
  "internalType": "address",
363
- "name": "sender",
316
+ "name": "owner",
364
317
  "type": "address"
365
318
  },
366
319
  {
367
- "indexed": false,
320
+ "indexed": true,
368
321
  "internalType": "address",
369
- "name": "token",
322
+ "name": "receiver",
370
323
  "type": "address"
371
324
  },
372
325
  {
@@ -374,37 +327,51 @@
374
327
  "internalType": "uint256",
375
328
  "name": "amount",
376
329
  "type": "uint256"
377
- },
330
+ }
331
+ ],
332
+ "name": "Wrap",
333
+ "type": "event"
334
+ },
335
+ {
336
+ "inputs": [],
337
+ "name": "DEFAULT_ADMIN_ROLE",
338
+ "outputs": [
378
339
  {
379
- "indexed": false,
380
- "internalType": "uint256",
381
- "name": "liquidity",
382
- "type": "uint256"
383
- },
340
+ "internalType": "bytes32",
341
+ "name": "",
342
+ "type": "bytes32"
343
+ }
344
+ ],
345
+ "stateMutability": "view",
346
+ "type": "function"
347
+ },
348
+ {
349
+ "inputs": [],
350
+ "name": "DOMAIN_SEPARATOR",
351
+ "outputs": [
384
352
  {
385
- "indexed": true,
386
- "internalType": "address",
387
- "name": "to",
388
- "type": "address"
353
+ "internalType": "bytes32",
354
+ "name": "",
355
+ "type": "bytes32"
389
356
  }
390
357
  ],
391
- "name": "Withdraw",
392
- "type": "event"
358
+ "stateMutability": "view",
359
+ "type": "function"
393
360
  },
394
361
  {
395
362
  "inputs": [
396
363
  {
397
364
  "internalType": "address",
398
- "name": "token",
365
+ "name": "_market",
399
366
  "type": "address"
400
367
  },
401
368
  {
402
- "internalType": "address",
403
- "name": "asset",
404
- "type": "address"
369
+ "internalType": "uint256",
370
+ "name": "_mintCap",
371
+ "type": "uint256"
405
372
  }
406
373
  ],
407
- "name": "addAsset",
374
+ "name": "addMarket",
408
375
  "outputs": [],
409
376
  "stateMutability": "nonpayable",
410
377
  "type": "function"
@@ -412,25 +379,30 @@
412
379
  {
413
380
  "inputs": [
414
381
  {
415
- "internalType": "address",
416
- "name": "token",
417
- "type": "address"
382
+ "internalType": "address[]",
383
+ "name": "_pools",
384
+ "type": "address[]"
418
385
  }
419
386
  ],
420
- "name": "addressOfAsset",
421
- "outputs": [
387
+ "name": "addRebalancePools",
388
+ "outputs": [],
389
+ "stateMutability": "nonpayable",
390
+ "type": "function"
391
+ },
392
+ {
393
+ "inputs": [
422
394
  {
423
395
  "internalType": "address",
424
- "name": "",
396
+ "name": "owner",
397
+ "type": "address"
398
+ },
399
+ {
400
+ "internalType": "address",
401
+ "name": "spender",
425
402
  "type": "address"
426
403
  }
427
404
  ],
428
- "stateMutability": "view",
429
- "type": "function"
430
- },
431
- {
432
- "inputs": [],
433
- "name": "ampFactor",
405
+ "name": "allowance",
434
406
  "outputs": [
435
407
  {
436
408
  "internalType": "uint256",
@@ -445,67 +417,92 @@
445
417
  "inputs": [
446
418
  {
447
419
  "internalType": "address",
448
- "name": "token",
420
+ "name": "spender",
449
421
  "type": "address"
450
422
  },
451
423
  {
452
424
  "internalType": "uint256",
453
425
  "name": "amount",
454
426
  "type": "uint256"
455
- },
427
+ }
428
+ ],
429
+ "name": "approve",
430
+ "outputs": [
431
+ {
432
+ "internalType": "bool",
433
+ "name": "",
434
+ "type": "bool"
435
+ }
436
+ ],
437
+ "stateMutability": "nonpayable",
438
+ "type": "function"
439
+ },
440
+ {
441
+ "inputs": [
456
442
  {
457
443
  "internalType": "uint256",
458
- "name": "minimumLiquidity",
444
+ "name": "_amountIn",
459
445
  "type": "uint256"
460
446
  },
461
447
  {
462
448
  "internalType": "address",
463
- "name": "to",
449
+ "name": "_receiver",
464
450
  "type": "address"
465
451
  },
466
452
  {
467
- "internalType": "uint256",
468
- "name": "deadline",
469
- "type": "uint256"
470
- },
471
- {
472
- "internalType": "bool",
473
- "name": "shouldStake",
474
- "type": "bool"
453
+ "internalType": "uint256[]",
454
+ "name": "_minOuts",
455
+ "type": "uint256[]"
475
456
  }
476
457
  ],
477
- "name": "deposit",
458
+ "name": "autoRedeem",
478
459
  "outputs": [
479
460
  {
480
- "internalType": "uint256",
481
- "name": "liquidity",
482
- "type": "uint256"
461
+ "internalType": "address[]",
462
+ "name": "_baseTokens",
463
+ "type": "address[]"
464
+ },
465
+ {
466
+ "internalType": "uint256[]",
467
+ "name": "_amountOuts",
468
+ "type": "uint256[]"
469
+ },
470
+ {
471
+ "internalType": "uint256[]",
472
+ "name": "_bonusOuts",
473
+ "type": "uint256[]"
483
474
  }
484
475
  ],
485
476
  "stateMutability": "nonpayable",
486
477
  "type": "function"
487
478
  },
488
479
  {
489
- "inputs": [],
490
- "name": "dev",
491
- "outputs": [
480
+ "inputs": [
492
481
  {
493
482
  "internalType": "address",
494
- "name": "",
483
+ "name": "account",
495
484
  "type": "address"
496
485
  }
497
486
  ],
487
+ "name": "balanceOf",
488
+ "outputs": [
489
+ {
490
+ "internalType": "uint256",
491
+ "name": "",
492
+ "type": "uint256"
493
+ }
494
+ ],
498
495
  "stateMutability": "view",
499
496
  "type": "function"
500
497
  },
501
498
  {
502
499
  "inputs": [],
503
- "name": "endCovRatio",
500
+ "name": "decimals",
504
501
  "outputs": [
505
502
  {
506
- "internalType": "uint128",
503
+ "internalType": "uint8",
507
504
  "name": "",
508
- "type": "uint128"
505
+ "type": "uint8"
509
506
  }
510
507
  ],
511
508
  "stateMutability": "view",
@@ -515,59 +512,99 @@
515
512
  "inputs": [
516
513
  {
517
514
  "internalType": "address",
518
- "name": "token",
515
+ "name": "spender",
519
516
  "type": "address"
520
- }
521
- ],
522
- "name": "exchangeRate",
523
- "outputs": [
517
+ },
524
518
  {
525
519
  "internalType": "uint256",
526
- "name": "xr",
520
+ "name": "subtractedValue",
527
521
  "type": "uint256"
528
522
  }
529
523
  ],
530
- "stateMutability": "view",
531
- "type": "function"
532
- },
533
- {
534
- "inputs": [],
535
- "name": "feeTo",
524
+ "name": "decreaseAllowance",
536
525
  "outputs": [
537
526
  {
538
- "internalType": "address",
527
+ "internalType": "bool",
539
528
  "name": "",
540
- "type": "address"
529
+ "type": "bool"
541
530
  }
542
531
  ],
543
- "stateMutability": "view",
532
+ "stateMutability": "nonpayable",
544
533
  "type": "function"
545
534
  },
546
535
  {
547
536
  "inputs": [
548
537
  {
549
538
  "internalType": "address",
550
- "name": "token",
539
+ "name": "_pool",
551
540
  "type": "address"
552
541
  },
553
542
  {
554
543
  "internalType": "uint256",
555
- "name": "amount",
544
+ "name": "_amount",
556
545
  "type": "uint256"
546
+ },
547
+ {
548
+ "internalType": "address",
549
+ "name": "_receiver",
550
+ "type": "address"
557
551
  }
558
552
  ],
559
- "name": "fillPool",
553
+ "name": "earn",
560
554
  "outputs": [],
561
555
  "stateMutability": "nonpayable",
562
556
  "type": "function"
563
557
  },
564
558
  {
565
559
  "inputs": [],
566
- "name": "getTokens",
560
+ "name": "eip712Domain",
561
+ "outputs": [
562
+ {
563
+ "internalType": "bytes1",
564
+ "name": "fields",
565
+ "type": "bytes1"
566
+ },
567
+ {
568
+ "internalType": "string",
569
+ "name": "name",
570
+ "type": "string"
571
+ },
572
+ {
573
+ "internalType": "string",
574
+ "name": "version",
575
+ "type": "string"
576
+ },
577
+ {
578
+ "internalType": "uint256",
579
+ "name": "chainId",
580
+ "type": "uint256"
581
+ },
582
+ {
583
+ "internalType": "address",
584
+ "name": "verifyingContract",
585
+ "type": "address"
586
+ },
587
+ {
588
+ "internalType": "bytes32",
589
+ "name": "salt",
590
+ "type": "bytes32"
591
+ },
592
+ {
593
+ "internalType": "uint256[]",
594
+ "name": "extensions",
595
+ "type": "uint256[]"
596
+ }
597
+ ],
598
+ "stateMutability": "view",
599
+ "type": "function"
600
+ },
601
+ {
602
+ "inputs": [],
603
+ "name": "getMarkets",
567
604
  "outputs": [
568
605
  {
569
606
  "internalType": "address[]",
570
- "name": "",
607
+ "name": "_tokens",
571
608
  "type": "address[]"
572
609
  }
573
610
  ],
@@ -576,30 +613,31 @@
576
613
  },
577
614
  {
578
615
  "inputs": [],
579
- "name": "globalEquilCovRatio",
616
+ "name": "getRebalancePools",
580
617
  "outputs": [
581
618
  {
582
- "internalType": "uint256",
583
- "name": "equilCovRatio",
584
- "type": "uint256"
585
- },
586
- {
587
- "internalType": "uint256",
588
- "name": "invariantInUint",
589
- "type": "uint256"
619
+ "internalType": "address[]",
620
+ "name": "_pools",
621
+ "type": "address[]"
590
622
  }
591
623
  ],
592
624
  "stateMutability": "view",
593
625
  "type": "function"
594
626
  },
595
627
  {
596
- "inputs": [],
597
- "name": "haircutRate",
628
+ "inputs": [
629
+ {
630
+ "internalType": "bytes32",
631
+ "name": "role",
632
+ "type": "bytes32"
633
+ }
634
+ ],
635
+ "name": "getRoleAdmin",
598
636
  "outputs": [
599
637
  {
600
- "internalType": "uint256",
638
+ "internalType": "bytes32",
601
639
  "name": "",
602
- "type": "uint256"
640
+ "type": "bytes32"
603
641
  }
604
642
  ],
605
643
  "stateMutability": "view",
@@ -608,30 +646,35 @@
608
646
  {
609
647
  "inputs": [
610
648
  {
611
- "internalType": "uint256",
612
- "name": "ampFactor_",
613
- "type": "uint256"
649
+ "internalType": "bytes32",
650
+ "name": "role",
651
+ "type": "bytes32"
614
652
  },
615
653
  {
616
- "internalType": "uint256",
617
- "name": "haircutRate_",
618
- "type": "uint256"
654
+ "internalType": "address",
655
+ "name": "account",
656
+ "type": "address"
619
657
  }
620
658
  ],
621
- "name": "initialize",
659
+ "name": "grantRole",
622
660
  "outputs": [],
623
661
  "stateMutability": "nonpayable",
624
662
  "type": "function"
625
663
  },
626
664
  {
627
665
  "inputs": [
666
+ {
667
+ "internalType": "bytes32",
668
+ "name": "role",
669
+ "type": "bytes32"
670
+ },
628
671
  {
629
672
  "internalType": "address",
630
- "name": "token",
673
+ "name": "account",
631
674
  "type": "address"
632
675
  }
633
676
  ],
634
- "name": "isPaused",
677
+ "name": "hasRole",
635
678
  "outputs": [
636
679
  {
637
680
  "internalType": "bool",
@@ -643,137 +686,187 @@
643
686
  "type": "function"
644
687
  },
645
688
  {
646
- "inputs": [],
647
- "name": "lpDividendRatio",
648
- "outputs": [
689
+ "inputs": [
690
+ {
691
+ "internalType": "address",
692
+ "name": "spender",
693
+ "type": "address"
694
+ },
649
695
  {
650
696
  "internalType": "uint256",
651
- "name": "",
697
+ "name": "addedValue",
652
698
  "type": "uint256"
653
699
  }
654
700
  ],
655
- "stateMutability": "view",
656
- "type": "function"
657
- },
658
- {
659
- "inputs": [],
660
- "name": "masterWombat",
701
+ "name": "increaseAllowance",
661
702
  "outputs": [
662
703
  {
663
- "internalType": "address",
704
+ "internalType": "bool",
664
705
  "name": "",
665
- "type": "address"
706
+ "type": "bool"
666
707
  }
667
708
  ],
668
- "stateMutability": "view",
709
+ "stateMutability": "nonpayable",
669
710
  "type": "function"
670
711
  },
671
712
  {
672
713
  "inputs": [
673
714
  {
674
- "internalType": "address",
675
- "name": "token",
676
- "type": "address"
677
- }
678
- ],
679
- "name": "mintFee",
680
- "outputs": [
715
+ "internalType": "string",
716
+ "name": "_name",
717
+ "type": "string"
718
+ },
681
719
  {
682
- "internalType": "uint256",
683
- "name": "feeCollected",
684
- "type": "uint256"
720
+ "internalType": "string",
721
+ "name": "_symbol",
722
+ "type": "string"
685
723
  }
686
724
  ],
725
+ "name": "initialize",
726
+ "outputs": [],
687
727
  "stateMutability": "nonpayable",
688
728
  "type": "function"
689
729
  },
690
730
  {
691
731
  "inputs": [],
692
- "name": "mintFeeThreshold",
732
+ "name": "isUnderCollateral",
693
733
  "outputs": [
694
734
  {
695
- "internalType": "uint256",
735
+ "internalType": "bool",
696
736
  "name": "",
697
- "type": "uint256"
737
+ "type": "bool"
698
738
  }
699
739
  ],
700
740
  "stateMutability": "view",
701
741
  "type": "function"
702
742
  },
703
743
  {
704
- "inputs": [],
705
- "name": "owner",
706
- "outputs": [
744
+ "inputs": [
707
745
  {
708
746
  "internalType": "address",
709
747
  "name": "",
710
748
  "type": "address"
711
749
  }
712
750
  ],
751
+ "name": "markets",
752
+ "outputs": [
753
+ {
754
+ "internalType": "address",
755
+ "name": "fToken",
756
+ "type": "address"
757
+ },
758
+ {
759
+ "internalType": "address",
760
+ "name": "treasury",
761
+ "type": "address"
762
+ },
763
+ {
764
+ "internalType": "address",
765
+ "name": "market",
766
+ "type": "address"
767
+ },
768
+ {
769
+ "internalType": "uint256",
770
+ "name": "mintCap",
771
+ "type": "uint256"
772
+ },
773
+ {
774
+ "internalType": "uint256",
775
+ "name": "managed",
776
+ "type": "uint256"
777
+ }
778
+ ],
713
779
  "stateMutability": "view",
714
780
  "type": "function"
715
781
  },
716
- {
717
- "inputs": [],
718
- "name": "pause",
719
- "outputs": [],
720
- "stateMutability": "nonpayable",
721
- "type": "function"
722
- },
723
782
  {
724
783
  "inputs": [
725
784
  {
726
785
  "internalType": "address",
727
- "name": "token",
786
+ "name": "_baseToken",
728
787
  "type": "address"
788
+ },
789
+ {
790
+ "internalType": "uint256",
791
+ "name": "_amountIn",
792
+ "type": "uint256"
793
+ },
794
+ {
795
+ "internalType": "address",
796
+ "name": "_receiver",
797
+ "type": "address"
798
+ },
799
+ {
800
+ "internalType": "uint256",
801
+ "name": "_minOut",
802
+ "type": "uint256"
729
803
  }
730
804
  ],
731
- "name": "pauseAsset",
732
- "outputs": [],
733
- "stateMutability": "nonpayable",
734
- "type": "function"
735
- },
736
- {
737
- "inputs": [],
738
- "name": "paused",
805
+ "name": "mint",
739
806
  "outputs": [
740
807
  {
741
- "internalType": "bool",
742
- "name": "",
743
- "type": "bool"
808
+ "internalType": "uint256",
809
+ "name": "_amountOut",
810
+ "type": "uint256"
744
811
  }
745
812
  ],
746
- "stateMutability": "view",
813
+ "stateMutability": "nonpayable",
747
814
  "type": "function"
748
815
  },
749
816
  {
750
817
  "inputs": [
751
818
  {
752
819
  "internalType": "address",
753
- "name": "fromToken",
820
+ "name": "_pool",
754
821
  "type": "address"
755
822
  },
823
+ {
824
+ "internalType": "uint256",
825
+ "name": "_amountIn",
826
+ "type": "uint256"
827
+ },
756
828
  {
757
829
  "internalType": "address",
758
- "name": "toToken",
830
+ "name": "_receiver",
759
831
  "type": "address"
760
832
  },
761
833
  {
762
- "internalType": "int256",
763
- "name": "toAmount",
764
- "type": "int256"
834
+ "internalType": "uint256",
835
+ "name": "_minOut",
836
+ "type": "uint256"
837
+ }
838
+ ],
839
+ "name": "mintAndEarn",
840
+ "outputs": [
841
+ {
842
+ "internalType": "uint256",
843
+ "name": "_amountOut",
844
+ "type": "uint256"
765
845
  }
766
846
  ],
767
- "name": "quoteAmountIn",
847
+ "stateMutability": "nonpayable",
848
+ "type": "function"
849
+ },
850
+ {
851
+ "inputs": [],
852
+ "name": "name",
853
+ "outputs": [
854
+ {
855
+ "internalType": "string",
856
+ "name": "",
857
+ "type": "string"
858
+ }
859
+ ],
860
+ "stateMutability": "view",
861
+ "type": "function"
862
+ },
863
+ {
864
+ "inputs": [],
865
+ "name": "nav",
768
866
  "outputs": [
769
867
  {
770
868
  "internalType": "uint256",
771
- "name": "amountIn",
772
- "type": "uint256"
773
- },
774
- {
775
- "internalType": "uint256",
776
- "name": "haircut",
869
+ "name": "_nav",
777
870
  "type": "uint256"
778
871
  }
779
872
  ],
@@ -784,25 +877,15 @@
784
877
  "inputs": [
785
878
  {
786
879
  "internalType": "address",
787
- "name": "token",
880
+ "name": "owner",
788
881
  "type": "address"
789
- },
790
- {
791
- "internalType": "uint256",
792
- "name": "amount",
793
- "type": "uint256"
794
882
  }
795
883
  ],
796
- "name": "quotePotentialDeposit",
884
+ "name": "nonces",
797
885
  "outputs": [
798
886
  {
799
887
  "internalType": "uint256",
800
- "name": "liquidity",
801
- "type": "uint256"
802
- },
803
- {
804
- "internalType": "uint256",
805
- "name": "reward",
888
+ "name": "",
806
889
  "type": "uint256"
807
890
  }
808
891
  ],
@@ -813,141 +896,132 @@
813
896
  "inputs": [
814
897
  {
815
898
  "internalType": "address",
816
- "name": "fromToken",
899
+ "name": "owner",
817
900
  "type": "address"
818
901
  },
819
902
  {
820
903
  "internalType": "address",
821
- "name": "toToken",
904
+ "name": "spender",
822
905
  "type": "address"
823
906
  },
824
- {
825
- "internalType": "int256",
826
- "name": "fromAmount",
827
- "type": "int256"
828
- }
829
- ],
830
- "name": "quotePotentialSwap",
831
- "outputs": [
832
907
  {
833
908
  "internalType": "uint256",
834
- "name": "potentialOutcome",
909
+ "name": "value",
835
910
  "type": "uint256"
836
911
  },
837
912
  {
838
913
  "internalType": "uint256",
839
- "name": "haircut",
914
+ "name": "deadline",
840
915
  "type": "uint256"
916
+ },
917
+ {
918
+ "internalType": "uint8",
919
+ "name": "v",
920
+ "type": "uint8"
921
+ },
922
+ {
923
+ "internalType": "bytes32",
924
+ "name": "r",
925
+ "type": "bytes32"
926
+ },
927
+ {
928
+ "internalType": "bytes32",
929
+ "name": "s",
930
+ "type": "bytes32"
841
931
  }
842
932
  ],
843
- "stateMutability": "view",
933
+ "name": "permit",
934
+ "outputs": [],
935
+ "stateMutability": "nonpayable",
844
936
  "type": "function"
845
937
  },
846
938
  {
847
939
  "inputs": [
848
940
  {
849
941
  "internalType": "address",
850
- "name": "token",
942
+ "name": "_baseToken",
943
+ "type": "address"
944
+ },
945
+ {
946
+ "internalType": "uint256",
947
+ "name": "_amountIn",
948
+ "type": "uint256"
949
+ },
950
+ {
951
+ "internalType": "address",
952
+ "name": "_receiver",
851
953
  "type": "address"
852
954
  },
853
955
  {
854
956
  "internalType": "uint256",
855
- "name": "liquidity",
957
+ "name": "_minOut",
856
958
  "type": "uint256"
857
959
  }
858
960
  ],
859
- "name": "quotePotentialWithdraw",
961
+ "name": "redeem",
860
962
  "outputs": [
861
963
  {
862
964
  "internalType": "uint256",
863
- "name": "amount",
965
+ "name": "_amountOut",
864
966
  "type": "uint256"
865
967
  },
866
968
  {
867
969
  "internalType": "uint256",
868
- "name": "fee",
970
+ "name": "_bonusOut",
869
971
  "type": "uint256"
870
972
  }
871
973
  ],
872
- "stateMutability": "view",
974
+ "stateMutability": "nonpayable",
873
975
  "type": "function"
874
976
  },
875
977
  {
876
978
  "inputs": [
877
979
  {
878
980
  "internalType": "address",
879
- "name": "fromToken",
981
+ "name": "_pool",
880
982
  "type": "address"
881
983
  },
984
+ {
985
+ "internalType": "uint256",
986
+ "name": "_amountIn",
987
+ "type": "uint256"
988
+ },
882
989
  {
883
990
  "internalType": "address",
884
- "name": "toToken",
991
+ "name": "_receiver",
885
992
  "type": "address"
886
993
  },
887
994
  {
888
995
  "internalType": "uint256",
889
- "name": "liquidity",
996
+ "name": "_minOut",
890
997
  "type": "uint256"
891
998
  }
892
999
  ],
893
- "name": "quotePotentialWithdrawFromOtherAsset",
1000
+ "name": "redeemFrom",
894
1001
  "outputs": [
895
1002
  {
896
1003
  "internalType": "uint256",
897
- "name": "amount",
1004
+ "name": "_amountOut",
898
1005
  "type": "uint256"
899
1006
  },
900
1007
  {
901
1008
  "internalType": "uint256",
902
- "name": "withdrewAmount",
1009
+ "name": "_bonusOut",
903
1010
  "type": "uint256"
904
1011
  }
905
1012
  ],
906
- "stateMutability": "view",
907
- "type": "function"
908
- },
909
- {
910
- "inputs": [
911
- {
912
- "internalType": "address",
913
- "name": "token",
914
- "type": "address"
915
- }
916
- ],
917
- "name": "removeAsset",
918
- "outputs": [],
919
- "stateMutability": "nonpayable",
920
- "type": "function"
921
- },
922
- {
923
- "inputs": [],
924
- "name": "renounceOwnership",
925
- "outputs": [],
926
1013
  "stateMutability": "nonpayable",
927
1014
  "type": "function"
928
1015
  },
929
- {
930
- "inputs": [],
931
- "name": "retentionRatio",
932
- "outputs": [
933
- {
934
- "internalType": "uint256",
935
- "name": "",
936
- "type": "uint256"
937
- }
938
- ],
939
- "stateMutability": "view",
940
- "type": "function"
941
- },
942
1016
  {
943
1017
  "inputs": [
944
1018
  {
945
- "internalType": "uint256",
946
- "name": "ampFactor_",
947
- "type": "uint256"
1019
+ "internalType": "address[]",
1020
+ "name": "_pools",
1021
+ "type": "address[]"
948
1022
  }
949
1023
  ],
950
- "name": "setAmpFactor",
1024
+ "name": "removeRebalancePools",
951
1025
  "outputs": [],
952
1026
  "stateMutability": "nonpayable",
953
1027
  "type": "function"
@@ -955,30 +1029,17 @@
955
1029
  {
956
1030
  "inputs": [
957
1031
  {
958
- "internalType": "uint128",
959
- "name": "startCovRatio_",
960
- "type": "uint128"
1032
+ "internalType": "bytes32",
1033
+ "name": "role",
1034
+ "type": "bytes32"
961
1035
  },
962
- {
963
- "internalType": "uint128",
964
- "name": "endCovRatio_",
965
- "type": "uint128"
966
- }
967
- ],
968
- "name": "setCovRatioFeeParam",
969
- "outputs": [],
970
- "stateMutability": "nonpayable",
971
- "type": "function"
972
- },
973
- {
974
- "inputs": [
975
1036
  {
976
1037
  "internalType": "address",
977
- "name": "dev_",
1038
+ "name": "account",
978
1039
  "type": "address"
979
1040
  }
980
1041
  ],
981
- "name": "setDev",
1042
+ "name": "renounceRole",
982
1043
  "outputs": [],
983
1044
  "stateMutability": "nonpayable",
984
1045
  "type": "function"
@@ -986,30 +1047,17 @@
986
1047
  {
987
1048
  "inputs": [
988
1049
  {
989
- "internalType": "uint256",
990
- "name": "lpDividendRatio_",
991
- "type": "uint256"
1050
+ "internalType": "bytes32",
1051
+ "name": "role",
1052
+ "type": "bytes32"
992
1053
  },
993
- {
994
- "internalType": "uint256",
995
- "name": "retentionRatio_",
996
- "type": "uint256"
997
- }
998
- ],
999
- "name": "setFee",
1000
- "outputs": [],
1001
- "stateMutability": "nonpayable",
1002
- "type": "function"
1003
- },
1004
- {
1005
- "inputs": [
1006
1054
  {
1007
1055
  "internalType": "address",
1008
- "name": "feeTo_",
1056
+ "name": "account",
1009
1057
  "type": "address"
1010
1058
  }
1011
1059
  ],
1012
- "name": "setFeeTo",
1060
+ "name": "revokeRole",
1013
1061
  "outputs": [],
1014
1062
  "stateMutability": "nonpayable",
1015
1063
  "type": "function"
@@ -1017,50 +1065,43 @@
1017
1065
  {
1018
1066
  "inputs": [
1019
1067
  {
1020
- "internalType": "uint256",
1021
- "name": "haircutRate_",
1022
- "type": "uint256"
1068
+ "internalType": "bytes4",
1069
+ "name": "interfaceId",
1070
+ "type": "bytes4"
1023
1071
  }
1024
1072
  ],
1025
- "name": "setHaircutRate",
1026
- "outputs": [],
1027
- "stateMutability": "nonpayable",
1028
- "type": "function"
1029
- },
1030
- {
1031
- "inputs": [
1073
+ "name": "supportsInterface",
1074
+ "outputs": [
1032
1075
  {
1033
- "internalType": "address",
1034
- "name": "masterWombat_",
1035
- "type": "address"
1076
+ "internalType": "bool",
1077
+ "name": "",
1078
+ "type": "bool"
1036
1079
  }
1037
1080
  ],
1038
- "name": "setMasterWombat",
1039
- "outputs": [],
1040
- "stateMutability": "nonpayable",
1081
+ "stateMutability": "view",
1041
1082
  "type": "function"
1042
1083
  },
1043
1084
  {
1044
- "inputs": [
1085
+ "inputs": [],
1086
+ "name": "symbol",
1087
+ "outputs": [
1045
1088
  {
1046
- "internalType": "uint256",
1047
- "name": "mintFeeThreshold_",
1048
- "type": "uint256"
1089
+ "internalType": "string",
1090
+ "name": "",
1091
+ "type": "string"
1049
1092
  }
1050
1093
  ],
1051
- "name": "setMintFeeThreshold",
1052
- "outputs": [],
1053
- "stateMutability": "nonpayable",
1094
+ "stateMutability": "view",
1054
1095
  "type": "function"
1055
1096
  },
1056
1097
  {
1057
1098
  "inputs": [],
1058
- "name": "startCovRatio",
1099
+ "name": "totalSupply",
1059
1100
  "outputs": [
1060
1101
  {
1061
- "internalType": "uint128",
1102
+ "internalType": "uint256",
1062
1103
  "name": "",
1063
- "type": "uint128"
1104
+ "type": "uint256"
1064
1105
  }
1065
1106
  ],
1066
1107
  "stateMutability": "view",
@@ -1068,26 +1109,6 @@
1068
1109
  },
1069
1110
  {
1070
1111
  "inputs": [
1071
- {
1072
- "internalType": "address",
1073
- "name": "fromToken",
1074
- "type": "address"
1075
- },
1076
- {
1077
- "internalType": "address",
1078
- "name": "toToken",
1079
- "type": "address"
1080
- },
1081
- {
1082
- "internalType": "uint256",
1083
- "name": "fromAmount",
1084
- "type": "uint256"
1085
- },
1086
- {
1087
- "internalType": "uint256",
1088
- "name": "minimumToAmount",
1089
- "type": "uint256"
1090
- },
1091
1112
  {
1092
1113
  "internalType": "address",
1093
1114
  "name": "to",
@@ -1095,21 +1116,16 @@
1095
1116
  },
1096
1117
  {
1097
1118
  "internalType": "uint256",
1098
- "name": "deadline",
1119
+ "name": "amount",
1099
1120
  "type": "uint256"
1100
1121
  }
1101
1122
  ],
1102
- "name": "swap",
1123
+ "name": "transfer",
1103
1124
  "outputs": [
1104
1125
  {
1105
- "internalType": "uint256",
1106
- "name": "actualToAmount",
1107
- "type": "uint256"
1108
- },
1109
- {
1110
- "internalType": "uint256",
1111
- "name": "haircut",
1112
- "type": "uint256"
1126
+ "internalType": "bool",
1127
+ "name": "",
1128
+ "type": "bool"
1113
1129
  }
1114
1130
  ],
1115
1131
  "stateMutability": "nonpayable",
@@ -1119,31 +1135,28 @@
1119
1135
  "inputs": [
1120
1136
  {
1121
1137
  "internalType": "address",
1122
- "name": "token",
1138
+ "name": "from",
1123
1139
  "type": "address"
1124
- }
1125
- ],
1126
- "name": "tipBucketBalance",
1127
- "outputs": [
1140
+ },
1141
+ {
1142
+ "internalType": "address",
1143
+ "name": "to",
1144
+ "type": "address"
1145
+ },
1128
1146
  {
1129
1147
  "internalType": "uint256",
1130
- "name": "balance",
1148
+ "name": "amount",
1131
1149
  "type": "uint256"
1132
1150
  }
1133
1151
  ],
1134
- "stateMutability": "view",
1135
- "type": "function"
1136
- },
1137
- {
1138
- "inputs": [
1152
+ "name": "transferFrom",
1153
+ "outputs": [
1139
1154
  {
1140
- "internalType": "address",
1141
- "name": "newOwner",
1142
- "type": "address"
1155
+ "internalType": "bool",
1156
+ "name": "",
1157
+ "type": "bool"
1143
1158
  }
1144
1159
  ],
1145
- "name": "transferOwnership",
1146
- "outputs": [],
1147
1160
  "stateMutability": "nonpayable",
1148
1161
  "type": "function"
1149
1162
  },
@@ -1151,41 +1164,16 @@
1151
1164
  "inputs": [
1152
1165
  {
1153
1166
  "internalType": "address",
1154
- "name": "token",
1167
+ "name": "_baseToken",
1155
1168
  "type": "address"
1156
1169
  },
1157
1170
  {
1158
1171
  "internalType": "uint256",
1159
- "name": "amount",
1172
+ "name": "_newCap",
1160
1173
  "type": "uint256"
1161
- },
1162
- {
1163
- "internalType": "address",
1164
- "name": "to",
1165
- "type": "address"
1166
- }
1167
- ],
1168
- "name": "transferTipBucket",
1169
- "outputs": [],
1170
- "stateMutability": "nonpayable",
1171
- "type": "function"
1172
- },
1173
- {
1174
- "inputs": [],
1175
- "name": "unpause",
1176
- "outputs": [],
1177
- "stateMutability": "nonpayable",
1178
- "type": "function"
1179
- },
1180
- {
1181
- "inputs": [
1182
- {
1183
- "internalType": "address",
1184
- "name": "token",
1185
- "type": "address"
1186
1174
  }
1187
1175
  ],
1188
- "name": "unpauseAsset",
1176
+ "name": "updateMintCap",
1189
1177
  "outputs": [],
1190
1178
  "stateMutability": "nonpayable",
1191
1179
  "type": "function"
@@ -1194,38 +1182,22 @@
1194
1182
  "inputs": [
1195
1183
  {
1196
1184
  "internalType": "address",
1197
- "name": "token",
1185
+ "name": "_baseToken",
1198
1186
  "type": "address"
1199
1187
  },
1200
1188
  {
1201
1189
  "internalType": "uint256",
1202
- "name": "liquidity",
1203
- "type": "uint256"
1204
- },
1205
- {
1206
- "internalType": "uint256",
1207
- "name": "minimumAmount",
1190
+ "name": "_amount",
1208
1191
  "type": "uint256"
1209
1192
  },
1210
1193
  {
1211
1194
  "internalType": "address",
1212
- "name": "to",
1195
+ "name": "_receiver",
1213
1196
  "type": "address"
1214
- },
1215
- {
1216
- "internalType": "uint256",
1217
- "name": "deadline",
1218
- "type": "uint256"
1219
- }
1220
- ],
1221
- "name": "withdraw",
1222
- "outputs": [
1223
- {
1224
- "internalType": "uint256",
1225
- "name": "amount",
1226
- "type": "uint256"
1227
1197
  }
1228
1198
  ],
1199
+ "name": "wrap",
1200
+ "outputs": [],
1229
1201
  "stateMutability": "nonpayable",
1230
1202
  "type": "function"
1231
1203
  },
@@ -1233,57 +1205,23 @@
1233
1205
  "inputs": [
1234
1206
  {
1235
1207
  "internalType": "address",
1236
- "name": "fromToken",
1237
- "type": "address"
1238
- },
1239
- {
1240
- "internalType": "address",
1241
- "name": "toToken",
1208
+ "name": "_pool",
1242
1209
  "type": "address"
1243
1210
  },
1244
1211
  {
1245
1212
  "internalType": "uint256",
1246
- "name": "liquidity",
1247
- "type": "uint256"
1248
- },
1249
- {
1250
- "internalType": "uint256",
1251
- "name": "minimumAmount",
1213
+ "name": "_amount",
1252
1214
  "type": "uint256"
1253
1215
  },
1254
1216
  {
1255
1217
  "internalType": "address",
1256
- "name": "to",
1218
+ "name": "_receiver",
1257
1219
  "type": "address"
1258
- },
1259
- {
1260
- "internalType": "uint256",
1261
- "name": "deadline",
1262
- "type": "uint256"
1263
- }
1264
- ],
1265
- "name": "withdrawFromOtherAsset",
1266
- "outputs": [
1267
- {
1268
- "internalType": "uint256",
1269
- "name": "toAmount",
1270
- "type": "uint256"
1271
1220
  }
1272
1221
  ],
1222
+ "name": "wrapFrom",
1223
+ "outputs": [],
1273
1224
  "stateMutability": "nonpayable",
1274
1225
  "type": "function"
1275
- },
1276
- {
1277
- "inputs": [],
1278
- "name": "creditForTokensHaircut",
1279
- "outputs": [
1280
- {
1281
- "internalType": "uint128",
1282
- "name": "",
1283
- "type": "uint128"
1284
- }
1285
- ],
1286
- "stateMutability": "view",
1287
- "type": "function"
1288
1226
  }
1289
1227
  ]