@paraswap/dex-lib 3.8.13 → 3.8.14

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