@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,609 +0,0 @@
1
- [
2
- {
3
- "inputs": [],
4
- "stateMutability": "nonpayable",
5
- "type": "constructor"
6
- },
7
- {
8
- "inputs": [
9
- {
10
- "internalType": "address",
11
- "name": "spender",
12
- "type": "address"
13
- },
14
- {
15
- "internalType": "uint256",
16
- "name": "allowance",
17
- "type": "uint256"
18
- },
19
- {
20
- "internalType": "uint256",
21
- "name": "needed",
22
- "type": "uint256"
23
- }
24
- ],
25
- "name": "ERC20InsufficientAllowance",
26
- "type": "error"
27
- },
28
- {
29
- "inputs": [
30
- {
31
- "internalType": "address",
32
- "name": "sender",
33
- "type": "address"
34
- },
35
- {
36
- "internalType": "uint256",
37
- "name": "balance",
38
- "type": "uint256"
39
- },
40
- {
41
- "internalType": "uint256",
42
- "name": "needed",
43
- "type": "uint256"
44
- }
45
- ],
46
- "name": "ERC20InsufficientBalance",
47
- "type": "error"
48
- },
49
- {
50
- "inputs": [
51
- {
52
- "internalType": "address",
53
- "name": "approver",
54
- "type": "address"
55
- }
56
- ],
57
- "name": "ERC20InvalidApprover",
58
- "type": "error"
59
- },
60
- {
61
- "inputs": [
62
- {
63
- "internalType": "address",
64
- "name": "receiver",
65
- "type": "address"
66
- }
67
- ],
68
- "name": "ERC20InvalidReceiver",
69
- "type": "error"
70
- },
71
- {
72
- "inputs": [
73
- {
74
- "internalType": "address",
75
- "name": "sender",
76
- "type": "address"
77
- }
78
- ],
79
- "name": "ERC20InvalidSender",
80
- "type": "error"
81
- },
82
- {
83
- "inputs": [
84
- {
85
- "internalType": "address",
86
- "name": "spender",
87
- "type": "address"
88
- }
89
- ],
90
- "name": "ERC20InvalidSpender",
91
- "type": "error"
92
- },
93
- {
94
- "inputs": [],
95
- "name": "EnforcedPause",
96
- "type": "error"
97
- },
98
- {
99
- "inputs": [],
100
- "name": "ExpectedPause",
101
- "type": "error"
102
- },
103
- {
104
- "inputs": [],
105
- "name": "InvalidInitialization",
106
- "type": "error"
107
- },
108
- {
109
- "inputs": [],
110
- "name": "MathOverflowedMulDiv",
111
- "type": "error"
112
- },
113
- {
114
- "inputs": [],
115
- "name": "NotInitializing",
116
- "type": "error"
117
- },
118
- {
119
- "inputs": [],
120
- "name": "OnlyGovernanceAllowed",
121
- "type": "error"
122
- },
123
- {
124
- "inputs": [],
125
- "name": "OnlyOperatorAllowed",
126
- "type": "error"
127
- },
128
- {
129
- "inputs": [],
130
- "name": "OnlyRestakingPoolAllowed",
131
- "type": "error"
132
- },
133
- {
134
- "anonymous": false,
135
- "inputs": [
136
- {
137
- "indexed": true,
138
- "internalType": "address",
139
- "name": "owner",
140
- "type": "address"
141
- },
142
- {
143
- "indexed": true,
144
- "internalType": "address",
145
- "name": "spender",
146
- "type": "address"
147
- },
148
- {
149
- "indexed": false,
150
- "internalType": "uint256",
151
- "name": "value",
152
- "type": "uint256"
153
- }
154
- ],
155
- "name": "Approval",
156
- "type": "event"
157
- },
158
- {
159
- "anonymous": false,
160
- "inputs": [
161
- {
162
- "indexed": false,
163
- "internalType": "uint64",
164
- "name": "version",
165
- "type": "uint64"
166
- }
167
- ],
168
- "name": "Initialized",
169
- "type": "event"
170
- },
171
- {
172
- "anonymous": false,
173
- "inputs": [
174
- {
175
- "indexed": false,
176
- "internalType": "string",
177
- "name": "newName",
178
- "type": "string"
179
- }
180
- ],
181
- "name": "NameChanged",
182
- "type": "event"
183
- },
184
- {
185
- "anonymous": false,
186
- "inputs": [
187
- {
188
- "indexed": false,
189
- "internalType": "address",
190
- "name": "account",
191
- "type": "address"
192
- }
193
- ],
194
- "name": "Paused",
195
- "type": "event"
196
- },
197
- {
198
- "anonymous": false,
199
- "inputs": [
200
- {
201
- "indexed": false,
202
- "internalType": "string",
203
- "name": "newSymbol",
204
- "type": "string"
205
- }
206
- ],
207
- "name": "SymbolChanged",
208
- "type": "event"
209
- },
210
- {
211
- "anonymous": false,
212
- "inputs": [
213
- {
214
- "indexed": true,
215
- "internalType": "address",
216
- "name": "from",
217
- "type": "address"
218
- },
219
- {
220
- "indexed": true,
221
- "internalType": "address",
222
- "name": "to",
223
- "type": "address"
224
- },
225
- {
226
- "indexed": false,
227
- "internalType": "uint256",
228
- "name": "value",
229
- "type": "uint256"
230
- }
231
- ],
232
- "name": "Transfer",
233
- "type": "event"
234
- },
235
- {
236
- "anonymous": false,
237
- "inputs": [
238
- {
239
- "indexed": false,
240
- "internalType": "address",
241
- "name": "account",
242
- "type": "address"
243
- }
244
- ],
245
- "name": "Unpaused",
246
- "type": "event"
247
- },
248
- {
249
- "inputs": [
250
- {
251
- "internalType": "address",
252
- "name": "owner",
253
- "type": "address"
254
- },
255
- {
256
- "internalType": "address",
257
- "name": "spender",
258
- "type": "address"
259
- }
260
- ],
261
- "name": "allowance",
262
- "outputs": [
263
- {
264
- "internalType": "uint256",
265
- "name": "",
266
- "type": "uint256"
267
- }
268
- ],
269
- "stateMutability": "view",
270
- "type": "function"
271
- },
272
- {
273
- "inputs": [
274
- {
275
- "internalType": "address",
276
- "name": "spender",
277
- "type": "address"
278
- },
279
- {
280
- "internalType": "uint256",
281
- "name": "value",
282
- "type": "uint256"
283
- }
284
- ],
285
- "name": "approve",
286
- "outputs": [
287
- {
288
- "internalType": "bool",
289
- "name": "",
290
- "type": "bool"
291
- }
292
- ],
293
- "stateMutability": "nonpayable",
294
- "type": "function"
295
- },
296
- {
297
- "inputs": [
298
- {
299
- "internalType": "address",
300
- "name": "account",
301
- "type": "address"
302
- }
303
- ],
304
- "name": "balanceOf",
305
- "outputs": [
306
- {
307
- "internalType": "uint256",
308
- "name": "",
309
- "type": "uint256"
310
- }
311
- ],
312
- "stateMutability": "view",
313
- "type": "function"
314
- },
315
- {
316
- "inputs": [
317
- {
318
- "internalType": "address",
319
- "name": "account",
320
- "type": "address"
321
- },
322
- {
323
- "internalType": "uint256",
324
- "name": "shares",
325
- "type": "uint256"
326
- }
327
- ],
328
- "name": "burn",
329
- "outputs": [],
330
- "stateMutability": "nonpayable",
331
- "type": "function"
332
- },
333
- {
334
- "inputs": [
335
- {
336
- "internalType": "string",
337
- "name": "newName",
338
- "type": "string"
339
- }
340
- ],
341
- "name": "changeName",
342
- "outputs": [],
343
- "stateMutability": "nonpayable",
344
- "type": "function"
345
- },
346
- {
347
- "inputs": [
348
- {
349
- "internalType": "string",
350
- "name": "newSymbol",
351
- "type": "string"
352
- }
353
- ],
354
- "name": "changeSymbol",
355
- "outputs": [],
356
- "stateMutability": "nonpayable",
357
- "type": "function"
358
- },
359
- {
360
- "inputs": [],
361
- "name": "config",
362
- "outputs": [
363
- {
364
- "internalType": "contract IProtocolConfig",
365
- "name": "",
366
- "type": "address"
367
- }
368
- ],
369
- "stateMutability": "view",
370
- "type": "function"
371
- },
372
- {
373
- "inputs": [
374
- {
375
- "internalType": "uint256",
376
- "name": "shares",
377
- "type": "uint256"
378
- }
379
- ],
380
- "name": "convertToAmount",
381
- "outputs": [
382
- {
383
- "internalType": "uint256",
384
- "name": "",
385
- "type": "uint256"
386
- }
387
- ],
388
- "stateMutability": "view",
389
- "type": "function"
390
- },
391
- {
392
- "inputs": [
393
- {
394
- "internalType": "uint256",
395
- "name": "amount",
396
- "type": "uint256"
397
- }
398
- ],
399
- "name": "convertToShares",
400
- "outputs": [
401
- {
402
- "internalType": "uint256",
403
- "name": "",
404
- "type": "uint256"
405
- }
406
- ],
407
- "stateMutability": "view",
408
- "type": "function"
409
- },
410
- {
411
- "inputs": [],
412
- "name": "decimals",
413
- "outputs": [
414
- {
415
- "internalType": "uint8",
416
- "name": "",
417
- "type": "uint8"
418
- }
419
- ],
420
- "stateMutability": "view",
421
- "type": "function"
422
- },
423
- {
424
- "inputs": [
425
- {
426
- "internalType": "contract IProtocolConfig",
427
- "name": "config",
428
- "type": "address"
429
- },
430
- {
431
- "internalType": "string",
432
- "name": "name",
433
- "type": "string"
434
- },
435
- {
436
- "internalType": "string",
437
- "name": "symbol",
438
- "type": "string"
439
- }
440
- ],
441
- "name": "initialize",
442
- "outputs": [],
443
- "stateMutability": "nonpayable",
444
- "type": "function"
445
- },
446
- {
447
- "inputs": [
448
- {
449
- "internalType": "address",
450
- "name": "account",
451
- "type": "address"
452
- },
453
- {
454
- "internalType": "uint256",
455
- "name": "shares",
456
- "type": "uint256"
457
- }
458
- ],
459
- "name": "mint",
460
- "outputs": [],
461
- "stateMutability": "nonpayable",
462
- "type": "function"
463
- },
464
- {
465
- "inputs": [],
466
- "name": "name",
467
- "outputs": [
468
- {
469
- "internalType": "string",
470
- "name": "",
471
- "type": "string"
472
- }
473
- ],
474
- "stateMutability": "view",
475
- "type": "function"
476
- },
477
- {
478
- "inputs": [],
479
- "name": "pause",
480
- "outputs": [],
481
- "stateMutability": "nonpayable",
482
- "type": "function"
483
- },
484
- {
485
- "inputs": [],
486
- "name": "paused",
487
- "outputs": [
488
- {
489
- "internalType": "bool",
490
- "name": "",
491
- "type": "bool"
492
- }
493
- ],
494
- "stateMutability": "view",
495
- "type": "function"
496
- },
497
- {
498
- "inputs": [],
499
- "name": "ratio",
500
- "outputs": [
501
- {
502
- "internalType": "uint256",
503
- "name": "",
504
- "type": "uint256"
505
- }
506
- ],
507
- "stateMutability": "view",
508
- "type": "function"
509
- },
510
- {
511
- "inputs": [],
512
- "name": "symbol",
513
- "outputs": [
514
- {
515
- "internalType": "string",
516
- "name": "",
517
- "type": "string"
518
- }
519
- ],
520
- "stateMutability": "view",
521
- "type": "function"
522
- },
523
- {
524
- "inputs": [],
525
- "name": "totalAssets",
526
- "outputs": [
527
- {
528
- "internalType": "uint256",
529
- "name": "totalManagedEth",
530
- "type": "uint256"
531
- }
532
- ],
533
- "stateMutability": "view",
534
- "type": "function"
535
- },
536
- {
537
- "inputs": [],
538
- "name": "totalSupply",
539
- "outputs": [
540
- {
541
- "internalType": "uint256",
542
- "name": "",
543
- "type": "uint256"
544
- }
545
- ],
546
- "stateMutability": "view",
547
- "type": "function"
548
- },
549
- {
550
- "inputs": [
551
- {
552
- "internalType": "address",
553
- "name": "to",
554
- "type": "address"
555
- },
556
- {
557
- "internalType": "uint256",
558
- "name": "value",
559
- "type": "uint256"
560
- }
561
- ],
562
- "name": "transfer",
563
- "outputs": [
564
- {
565
- "internalType": "bool",
566
- "name": "",
567
- "type": "bool"
568
- }
569
- ],
570
- "stateMutability": "nonpayable",
571
- "type": "function"
572
- },
573
- {
574
- "inputs": [
575
- {
576
- "internalType": "address",
577
- "name": "from",
578
- "type": "address"
579
- },
580
- {
581
- "internalType": "address",
582
- "name": "to",
583
- "type": "address"
584
- },
585
- {
586
- "internalType": "uint256",
587
- "name": "value",
588
- "type": "uint256"
589
- }
590
- ],
591
- "name": "transferFrom",
592
- "outputs": [
593
- {
594
- "internalType": "bool",
595
- "name": "",
596
- "type": "bool"
597
- }
598
- ],
599
- "stateMutability": "nonpayable",
600
- "type": "function"
601
- },
602
- {
603
- "inputs": [],
604
- "name": "unpause",
605
- "outputs": [],
606
- "stateMutability": "nonpayable",
607
- "type": "function"
608
- }
609
- ]
@@ -1,93 +0,0 @@
1
- [
2
- {
3
- "anonymous": false,
4
- "inputs": [
5
- {
6
- "indexed": true,
7
- "internalType": "address",
8
- "name": "tokenAddress",
9
- "type": "address"
10
- },
11
- {
12
- "indexed": false,
13
- "internalType": "uint256",
14
- "name": "oldRatio",
15
- "type": "uint256"
16
- },
17
- {
18
- "indexed": false,
19
- "internalType": "uint256",
20
- "name": "newRatio",
21
- "type": "uint256"
22
- }
23
- ],
24
- "name": "RatioUpdated",
25
- "type": "event"
26
- },
27
- {
28
- "inputs": [],
29
- "name": "MAX_THRESHOLD",
30
- "outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }],
31
- "stateMutability": "view",
32
- "type": "function"
33
- },
34
- {
35
- "inputs": [
36
- { "internalType": "address", "name": "token", "type": "address" },
37
- { "internalType": "uint256", "name": "day", "type": "uint256" }
38
- ],
39
- "name": "averagePercentageRate",
40
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
41
- "stateMutability": "view",
42
- "type": "function"
43
- },
44
- {
45
- "inputs": [
46
- { "internalType": "address", "name": "token", "type": "address" }
47
- ],
48
- "name": "getRatioFor",
49
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
50
- "stateMutability": "view",
51
- "type": "function"
52
- },
53
- {
54
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
55
- "name": "historicalRatios",
56
- "outputs": [
57
- { "internalType": "uint40", "name": "lastUpdate", "type": "uint40" }
58
- ],
59
- "stateMutability": "view",
60
- "type": "function"
61
- },
62
- {
63
- "inputs": [],
64
- "name": "inceptionOperator",
65
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
66
- "stateMutability": "view",
67
- "type": "function"
68
- },
69
- {
70
- "inputs": [],
71
- "name": "initialize",
72
- "outputs": [],
73
- "stateMutability": "nonpayable",
74
- "type": "function"
75
- },
76
- {
77
- "inputs": [],
78
- "name": "ratioThreshold",
79
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
80
- "stateMutability": "view",
81
- "type": "function"
82
- },
83
- {
84
- "inputs": [
85
- { "internalType": "address[]", "name": "addresses", "type": "address[]" },
86
- { "internalType": "uint256[]", "name": "ratios", "type": "uint256[]" }
87
- ],
88
- "name": "updateRatioBatch",
89
- "outputs": [],
90
- "stateMutability": "nonpayable",
91
- "type": "function"
92
- }
93
- ]