@pendle/core-v2 2.19.0-tradingbot → 2.19.1-tradingbot

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 (60) hide show
  1. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldActionHelper.sol/LongYieldActionHelper.dbg.json +4 -0
  2. package/build/artifacts/contracts/core/TradingBot/{base/BotActionHelper.sol/BotActionHelper.json → LongYield/LongYieldActionHelper.sol/LongYieldActionHelper.json} +2 -119
  3. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.dbg.json +1 -1
  4. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.json +2 -2
  5. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +1 -1
  6. package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol/LongYieldTradingBot.json +2 -119
  7. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldActionHelper.sol/ShortYieldActionHelper.dbg.json +4 -0
  8. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldActionHelper.sol/ShortYieldActionHelper.json +765 -0
  9. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldDecisionHelper.sol/ShortYieldDecisionHelper.dbg.json +1 -1
  10. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldDecisionHelper.sol/ShortYieldDecisionHelper.json +2 -2
  11. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol/ShortYieldTradingBot.dbg.json +1 -1
  12. package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol/ShortYieldTradingBot.json +6 -173
  13. package/build/artifacts/contracts/core/TradingBot/base/BotActionCallback.sol/BotActionCallback.dbg.json +1 -1
  14. package/build/artifacts/contracts/core/TradingBot/base/BotActionCallback.sol/BotActionCallback.json +0 -117
  15. package/build/artifacts/contracts/core/TradingBot/base/BotDecisionHelperBase.sol/BotDecisionHelperBase.dbg.json +1 -1
  16. package/build/artifacts/contracts/core/TradingBot/base/TradingBotBase.sol/TradingBotBase.dbg.json +1 -1
  17. package/build/artifacts/contracts/core/TradingBot/base/TradingBotBase.sol/TradingBotBase.json +0 -117
  18. package/build/artifacts/contracts/core/TradingBot/libraries/BotSimulationLib.sol/BotSimulationLib.dbg.json +1 -1
  19. package/build/artifacts/contracts/core/TradingBot/libraries/BotSimulationLib.sol/BotSimulationLib.json +2 -2
  20. package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.dbg.json +1 -1
  21. package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.json +2 -2
  22. package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.dbg.json +1 -1
  23. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldDecisionHelper.sol/ILongYieldDecisionHelper.dbg.json +1 -1
  24. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +1 -1
  25. package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +0 -117
  26. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldDecisionHelper.sol/IShortYieldDecisionHelper.dbg.json +1 -1
  27. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol/IShortYieldTradingBot.dbg.json +1 -1
  28. package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol/IShortYieldTradingBot.json +4 -121
  29. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +1 -1
  30. package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +0 -117
  31. package/contracts/core/TradingBot/{base/BotActionHelper.sol → LongYield/LongYieldActionHelper.sol} +4 -81
  32. package/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol +2 -2
  33. package/contracts/core/TradingBot/ShortYield/ShortYieldActionHelper.sol +54 -0
  34. package/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol +2 -2
  35. package/contracts/core/TradingBot/base/TradingBotBase.sol +5 -5
  36. package/contracts/interfaces/TradingBot/ITradingBotBase.sol +0 -4
  37. package/package.json +1 -1
  38. package/typechain-types/BotActionCallback.ts +0 -50
  39. package/typechain-types/ILongYieldTradingBot.ts +0 -50
  40. package/typechain-types/IShortYieldTradingBot.ts +2 -52
  41. package/typechain-types/ITradingBotBase.ts +0 -50
  42. package/typechain-types/LongYieldActionHelper.ts +900 -0
  43. package/typechain-types/LongYieldTradingBot.ts +0 -50
  44. package/typechain-types/ShortYieldActionHelper.ts +856 -0
  45. package/typechain-types/ShortYieldTradingBot.ts +2 -96
  46. package/typechain-types/TradingBotBase.ts +0 -50
  47. package/typechain-types/factories/BotActionCallback__factory.ts +0 -117
  48. package/typechain-types/factories/ILongYieldTradingBot__factory.ts +0 -117
  49. package/typechain-types/factories/IShortYieldTradingBot__factory.ts +4 -121
  50. package/typechain-types/factories/ITradingBotBase__factory.ts +0 -117
  51. package/typechain-types/factories/LongYieldActionHelper__factory.ts +834 -0
  52. package/typechain-types/factories/LongYieldDecisionHelper__factory.ts +1 -1
  53. package/typechain-types/factories/LongYieldTradingBot__factory.ts +1 -118
  54. package/typechain-types/factories/ShortYieldActionHelper__factory.ts +784 -0
  55. package/typechain-types/factories/ShortYieldDecisionHelper__factory.ts +1 -1
  56. package/typechain-types/factories/ShortYieldTradingBot__factory.ts +5 -172
  57. package/typechain-types/factories/TradingBotBase__factory.ts +0 -117
  58. package/typechain-types/hardhat.d.ts +18 -0
  59. package/typechain-types/index.ts +4 -0
  60. package/build/artifacts/contracts/core/TradingBot/base/BotActionHelper.sol/BotActionHelper.dbg.json +0 -4
@@ -0,0 +1,765 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ShortYieldActionHelper",
4
+ "sourceName": "contracts/core/TradingBot/ShortYield/ShortYieldActionHelper.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint256",
10
+ "name": "actualSyOut",
11
+ "type": "uint256"
12
+ },
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "requiredSyOut",
16
+ "type": "uint256"
17
+ }
18
+ ],
19
+ "name": "BotInsufficientSyOut",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "anonymous": false,
24
+ "inputs": [
25
+ {
26
+ "indexed": false,
27
+ "internalType": "uint256",
28
+ "name": "netSyOut",
29
+ "type": "uint256"
30
+ },
31
+ {
32
+ "indexed": false,
33
+ "internalType": "uint256",
34
+ "name": "netPendleOut",
35
+ "type": "uint256"
36
+ }
37
+ ],
38
+ "name": "ClaimAndCompound",
39
+ "type": "event"
40
+ },
41
+ {
42
+ "anonymous": false,
43
+ "inputs": [
44
+ {
45
+ "indexed": false,
46
+ "internalType": "uint256",
47
+ "name": "netSyIn",
48
+ "type": "uint256"
49
+ }
50
+ ],
51
+ "name": "DepositSy",
52
+ "type": "event"
53
+ },
54
+ {
55
+ "anonymous": false,
56
+ "inputs": [
57
+ {
58
+ "indexed": true,
59
+ "internalType": "address",
60
+ "name": "token",
61
+ "type": "address"
62
+ },
63
+ {
64
+ "indexed": false,
65
+ "internalType": "uint256",
66
+ "name": "netTokenIn",
67
+ "type": "uint256"
68
+ }
69
+ ],
70
+ "name": "DepositToken",
71
+ "type": "event"
72
+ },
73
+ {
74
+ "anonymous": false,
75
+ "inputs": [
76
+ {
77
+ "indexed": false,
78
+ "internalType": "uint8",
79
+ "name": "version",
80
+ "type": "uint8"
81
+ }
82
+ ],
83
+ "name": "Initialized",
84
+ "type": "event"
85
+ },
86
+ {
87
+ "anonymous": false,
88
+ "inputs": [
89
+ {
90
+ "indexed": true,
91
+ "internalType": "address",
92
+ "name": "previousOwner",
93
+ "type": "address"
94
+ },
95
+ {
96
+ "indexed": true,
97
+ "internalType": "address",
98
+ "name": "newOwner",
99
+ "type": "address"
100
+ }
101
+ ],
102
+ "name": "OwnershipTransferred",
103
+ "type": "event"
104
+ },
105
+ {
106
+ "anonymous": false,
107
+ "inputs": [
108
+ {
109
+ "indexed": true,
110
+ "internalType": "address",
111
+ "name": "token",
112
+ "type": "address"
113
+ },
114
+ {
115
+ "indexed": false,
116
+ "internalType": "uint256",
117
+ "name": "amount",
118
+ "type": "uint256"
119
+ }
120
+ ],
121
+ "name": "WithdrawFunds",
122
+ "type": "event"
123
+ },
124
+ {
125
+ "inputs": [],
126
+ "name": "PENDLE",
127
+ "outputs": [
128
+ {
129
+ "internalType": "address",
130
+ "name": "",
131
+ "type": "address"
132
+ }
133
+ ],
134
+ "stateMutability": "view",
135
+ "type": "function"
136
+ },
137
+ {
138
+ "inputs": [],
139
+ "name": "PT",
140
+ "outputs": [
141
+ {
142
+ "internalType": "address",
143
+ "name": "",
144
+ "type": "address"
145
+ }
146
+ ],
147
+ "stateMutability": "view",
148
+ "type": "function"
149
+ },
150
+ {
151
+ "inputs": [],
152
+ "name": "SY",
153
+ "outputs": [
154
+ {
155
+ "internalType": "address",
156
+ "name": "",
157
+ "type": "address"
158
+ }
159
+ ],
160
+ "stateMutability": "view",
161
+ "type": "function"
162
+ },
163
+ {
164
+ "inputs": [],
165
+ "name": "YT",
166
+ "outputs": [
167
+ {
168
+ "internalType": "address",
169
+ "name": "",
170
+ "type": "address"
171
+ }
172
+ ],
173
+ "stateMutability": "view",
174
+ "type": "function"
175
+ },
176
+ {
177
+ "inputs": [
178
+ {
179
+ "components": [
180
+ {
181
+ "internalType": "address[]",
182
+ "name": "tokens",
183
+ "type": "address[]"
184
+ },
185
+ {
186
+ "internalType": "address",
187
+ "name": "spender",
188
+ "type": "address"
189
+ }
190
+ ],
191
+ "internalType": "struct ITradingBotBase.MultiApproval[]",
192
+ "name": "arr",
193
+ "type": "tuple[]"
194
+ }
195
+ ],
196
+ "name": "approveInf",
197
+ "outputs": [],
198
+ "stateMutability": "nonpayable",
199
+ "type": "function"
200
+ },
201
+ {
202
+ "inputs": [],
203
+ "name": "buyBins",
204
+ "outputs": [
205
+ {
206
+ "internalType": "uint256",
207
+ "name": "",
208
+ "type": "uint256"
209
+ }
210
+ ],
211
+ "stateMutability": "view",
212
+ "type": "function"
213
+ },
214
+ {
215
+ "inputs": [
216
+ {
217
+ "components": [
218
+ {
219
+ "internalType": "address",
220
+ "name": "tokenIn",
221
+ "type": "address"
222
+ },
223
+ {
224
+ "internalType": "uint256",
225
+ "name": "netTokenIn",
226
+ "type": "uint256"
227
+ },
228
+ {
229
+ "internalType": "address",
230
+ "name": "tokenMintSy",
231
+ "type": "address"
232
+ },
233
+ {
234
+ "internalType": "address",
235
+ "name": "bulk",
236
+ "type": "address"
237
+ },
238
+ {
239
+ "internalType": "address",
240
+ "name": "pendleSwap",
241
+ "type": "address"
242
+ },
243
+ {
244
+ "components": [
245
+ {
246
+ "internalType": "enum SwapType",
247
+ "name": "swapType",
248
+ "type": "uint8"
249
+ },
250
+ {
251
+ "internalType": "address",
252
+ "name": "extRouter",
253
+ "type": "address"
254
+ },
255
+ {
256
+ "internalType": "bytes",
257
+ "name": "extCalldata",
258
+ "type": "bytes"
259
+ },
260
+ {
261
+ "internalType": "bool",
262
+ "name": "needScale",
263
+ "type": "bool"
264
+ }
265
+ ],
266
+ "internalType": "struct SwapData",
267
+ "name": "swapData",
268
+ "type": "tuple"
269
+ }
270
+ ],
271
+ "internalType": "struct TokenInput[]",
272
+ "name": "inps",
273
+ "type": "tuple[]"
274
+ },
275
+ {
276
+ "internalType": "uint256",
277
+ "name": "minSyOut",
278
+ "type": "uint256"
279
+ }
280
+ ],
281
+ "name": "claimAndCompound",
282
+ "outputs": [
283
+ {
284
+ "internalType": "uint256",
285
+ "name": "netSyOut",
286
+ "type": "uint256"
287
+ },
288
+ {
289
+ "internalType": "uint256",
290
+ "name": "netPendleOut",
291
+ "type": "uint256"
292
+ }
293
+ ],
294
+ "stateMutability": "nonpayable",
295
+ "type": "function"
296
+ },
297
+ {
298
+ "inputs": [],
299
+ "name": "claimOwnership",
300
+ "outputs": [],
301
+ "stateMutability": "nonpayable",
302
+ "type": "function"
303
+ },
304
+ {
305
+ "inputs": [],
306
+ "name": "claimWithoutCompound",
307
+ "outputs": [
308
+ {
309
+ "components": [
310
+ {
311
+ "internalType": "address",
312
+ "name": "token",
313
+ "type": "address"
314
+ },
315
+ {
316
+ "internalType": "uint256",
317
+ "name": "amount",
318
+ "type": "uint256"
319
+ }
320
+ ],
321
+ "internalType": "struct TokenAmount[]",
322
+ "name": "rewards",
323
+ "type": "tuple[]"
324
+ }
325
+ ],
326
+ "stateMutability": "nonpayable",
327
+ "type": "function"
328
+ },
329
+ {
330
+ "inputs": [],
331
+ "name": "decisionHelper",
332
+ "outputs": [
333
+ {
334
+ "internalType": "contract IBotDecisionHelper",
335
+ "name": "",
336
+ "type": "address"
337
+ }
338
+ ],
339
+ "stateMutability": "view",
340
+ "type": "function"
341
+ },
342
+ {
343
+ "inputs": [
344
+ {
345
+ "internalType": "uint256",
346
+ "name": "netSyIn",
347
+ "type": "uint256"
348
+ }
349
+ ],
350
+ "name": "depositSy",
351
+ "outputs": [],
352
+ "stateMutability": "nonpayable",
353
+ "type": "function"
354
+ },
355
+ {
356
+ "inputs": [
357
+ {
358
+ "components": [
359
+ {
360
+ "internalType": "address",
361
+ "name": "tokenIn",
362
+ "type": "address"
363
+ },
364
+ {
365
+ "internalType": "uint256",
366
+ "name": "netTokenIn",
367
+ "type": "uint256"
368
+ },
369
+ {
370
+ "internalType": "address",
371
+ "name": "tokenMintSy",
372
+ "type": "address"
373
+ },
374
+ {
375
+ "internalType": "address",
376
+ "name": "bulk",
377
+ "type": "address"
378
+ },
379
+ {
380
+ "internalType": "address",
381
+ "name": "pendleSwap",
382
+ "type": "address"
383
+ },
384
+ {
385
+ "components": [
386
+ {
387
+ "internalType": "enum SwapType",
388
+ "name": "swapType",
389
+ "type": "uint8"
390
+ },
391
+ {
392
+ "internalType": "address",
393
+ "name": "extRouter",
394
+ "type": "address"
395
+ },
396
+ {
397
+ "internalType": "bytes",
398
+ "name": "extCalldata",
399
+ "type": "bytes"
400
+ },
401
+ {
402
+ "internalType": "bool",
403
+ "name": "needScale",
404
+ "type": "bool"
405
+ }
406
+ ],
407
+ "internalType": "struct SwapData",
408
+ "name": "swapData",
409
+ "type": "tuple"
410
+ }
411
+ ],
412
+ "internalType": "struct TokenInput",
413
+ "name": "inp",
414
+ "type": "tuple"
415
+ },
416
+ {
417
+ "internalType": "uint256",
418
+ "name": "minSyOut",
419
+ "type": "uint256"
420
+ }
421
+ ],
422
+ "name": "depositToken",
423
+ "outputs": [],
424
+ "stateMutability": "payable",
425
+ "type": "function"
426
+ },
427
+ {
428
+ "inputs": [],
429
+ "name": "market",
430
+ "outputs": [
431
+ {
432
+ "internalType": "address",
433
+ "name": "",
434
+ "type": "address"
435
+ }
436
+ ],
437
+ "stateMutability": "view",
438
+ "type": "function"
439
+ },
440
+ {
441
+ "inputs": [],
442
+ "name": "owner",
443
+ "outputs": [
444
+ {
445
+ "internalType": "address",
446
+ "name": "",
447
+ "type": "address"
448
+ }
449
+ ],
450
+ "stateMutability": "view",
451
+ "type": "function"
452
+ },
453
+ {
454
+ "inputs": [],
455
+ "name": "pendingOwner",
456
+ "outputs": [
457
+ {
458
+ "internalType": "address",
459
+ "name": "",
460
+ "type": "address"
461
+ }
462
+ ],
463
+ "stateMutability": "view",
464
+ "type": "function"
465
+ },
466
+ {
467
+ "inputs": [],
468
+ "name": "readStrategyData",
469
+ "outputs": [
470
+ {
471
+ "components": [
472
+ {
473
+ "components": [
474
+ {
475
+ "internalType": "uint256",
476
+ "name": "lpBalance",
477
+ "type": "uint256"
478
+ },
479
+ {
480
+ "internalType": "uint256",
481
+ "name": "ytBalance",
482
+ "type": "uint256"
483
+ },
484
+ {
485
+ "internalType": "uint256",
486
+ "name": "ptBalance",
487
+ "type": "uint256"
488
+ },
489
+ {
490
+ "internalType": "uint256",
491
+ "name": "syBalance",
492
+ "type": "uint256"
493
+ },
494
+ {
495
+ "internalType": "uint256",
496
+ "name": "buyBins",
497
+ "type": "uint256"
498
+ }
499
+ ],
500
+ "internalType": "struct BotState",
501
+ "name": "botState",
502
+ "type": "tuple"
503
+ },
504
+ {
505
+ "components": [
506
+ {
507
+ "components": [
508
+ {
509
+ "internalType": "int256",
510
+ "name": "totalPt",
511
+ "type": "int256"
512
+ },
513
+ {
514
+ "internalType": "int256",
515
+ "name": "totalSy",
516
+ "type": "int256"
517
+ },
518
+ {
519
+ "internalType": "int256",
520
+ "name": "totalLp",
521
+ "type": "int256"
522
+ },
523
+ {
524
+ "internalType": "address",
525
+ "name": "treasury",
526
+ "type": "address"
527
+ },
528
+ {
529
+ "internalType": "int256",
530
+ "name": "scalarRoot",
531
+ "type": "int256"
532
+ },
533
+ {
534
+ "internalType": "uint256",
535
+ "name": "expiry",
536
+ "type": "uint256"
537
+ },
538
+ {
539
+ "internalType": "uint256",
540
+ "name": "lnFeeRateRoot",
541
+ "type": "uint256"
542
+ },
543
+ {
544
+ "internalType": "uint256",
545
+ "name": "reserveFeePercent",
546
+ "type": "uint256"
547
+ },
548
+ {
549
+ "internalType": "uint256",
550
+ "name": "lastLnImpliedRate",
551
+ "type": "uint256"
552
+ }
553
+ ],
554
+ "internalType": "struct MarketState",
555
+ "name": "state",
556
+ "type": "tuple"
557
+ },
558
+ {
559
+ "internalType": "PYIndex",
560
+ "name": "index",
561
+ "type": "uint256"
562
+ },
563
+ {
564
+ "internalType": "uint256",
565
+ "name": "blockTime",
566
+ "type": "uint256"
567
+ }
568
+ ],
569
+ "internalType": "struct MarketExtState",
570
+ "name": "marketExt",
571
+ "type": "tuple"
572
+ },
573
+ {
574
+ "components": [
575
+ {
576
+ "internalType": "uint256",
577
+ "name": "buyYtIy",
578
+ "type": "uint256"
579
+ },
580
+ {
581
+ "internalType": "uint256",
582
+ "name": "sellYtIy",
583
+ "type": "uint256"
584
+ },
585
+ {
586
+ "internalType": "uint256",
587
+ "name": "targetSyRatio",
588
+ "type": "uint256"
589
+ },
590
+ {
591
+ "internalType": "uint256",
592
+ "name": "maxSyRatio",
593
+ "type": "uint256"
594
+ },
595
+ {
596
+ "internalType": "uint256",
597
+ "name": "targetYtPtRatio",
598
+ "type": "uint256"
599
+ },
600
+ {
601
+ "internalType": "uint256",
602
+ "name": "numOfBins",
603
+ "type": "uint256"
604
+ }
605
+ ],
606
+ "internalType": "struct TradingSpecs",
607
+ "name": "specs",
608
+ "type": "tuple"
609
+ }
610
+ ],
611
+ "internalType": "struct StrategyData",
612
+ "name": "strategyData",
613
+ "type": "tuple"
614
+ }
615
+ ],
616
+ "stateMutability": "nonpayable",
617
+ "type": "function"
618
+ },
619
+ {
620
+ "inputs": [],
621
+ "name": "router",
622
+ "outputs": [
623
+ {
624
+ "internalType": "address",
625
+ "name": "",
626
+ "type": "address"
627
+ }
628
+ ],
629
+ "stateMutability": "view",
630
+ "type": "function"
631
+ },
632
+ {
633
+ "inputs": [
634
+ {
635
+ "components": [
636
+ {
637
+ "internalType": "uint256",
638
+ "name": "buyYtIy",
639
+ "type": "uint256"
640
+ },
641
+ {
642
+ "internalType": "uint256",
643
+ "name": "sellYtIy",
644
+ "type": "uint256"
645
+ },
646
+ {
647
+ "internalType": "uint256",
648
+ "name": "targetSyRatio",
649
+ "type": "uint256"
650
+ },
651
+ {
652
+ "internalType": "uint256",
653
+ "name": "maxSyRatio",
654
+ "type": "uint256"
655
+ },
656
+ {
657
+ "internalType": "uint256",
658
+ "name": "targetYtPtRatio",
659
+ "type": "uint256"
660
+ },
661
+ {
662
+ "internalType": "uint256",
663
+ "name": "numOfBins",
664
+ "type": "uint256"
665
+ }
666
+ ],
667
+ "internalType": "struct TradingSpecs",
668
+ "name": "_specs",
669
+ "type": "tuple"
670
+ }
671
+ ],
672
+ "name": "setSpecs",
673
+ "outputs": [],
674
+ "stateMutability": "nonpayable",
675
+ "type": "function"
676
+ },
677
+ {
678
+ "inputs": [],
679
+ "name": "specs",
680
+ "outputs": [
681
+ {
682
+ "internalType": "uint256",
683
+ "name": "buyYtIy",
684
+ "type": "uint256"
685
+ },
686
+ {
687
+ "internalType": "uint256",
688
+ "name": "sellYtIy",
689
+ "type": "uint256"
690
+ },
691
+ {
692
+ "internalType": "uint256",
693
+ "name": "targetSyRatio",
694
+ "type": "uint256"
695
+ },
696
+ {
697
+ "internalType": "uint256",
698
+ "name": "maxSyRatio",
699
+ "type": "uint256"
700
+ },
701
+ {
702
+ "internalType": "uint256",
703
+ "name": "targetYtPtRatio",
704
+ "type": "uint256"
705
+ },
706
+ {
707
+ "internalType": "uint256",
708
+ "name": "numOfBins",
709
+ "type": "uint256"
710
+ }
711
+ ],
712
+ "stateMutability": "view",
713
+ "type": "function"
714
+ },
715
+ {
716
+ "inputs": [
717
+ {
718
+ "internalType": "address",
719
+ "name": "newOwner",
720
+ "type": "address"
721
+ },
722
+ {
723
+ "internalType": "bool",
724
+ "name": "direct",
725
+ "type": "bool"
726
+ },
727
+ {
728
+ "internalType": "bool",
729
+ "name": "renounce",
730
+ "type": "bool"
731
+ }
732
+ ],
733
+ "name": "transferOwnership",
734
+ "outputs": [],
735
+ "stateMutability": "nonpayable",
736
+ "type": "function"
737
+ },
738
+ {
739
+ "inputs": [
740
+ {
741
+ "internalType": "address",
742
+ "name": "token",
743
+ "type": "address"
744
+ },
745
+ {
746
+ "internalType": "uint256",
747
+ "name": "amount",
748
+ "type": "uint256"
749
+ }
750
+ ],
751
+ "name": "withdrawFunds",
752
+ "outputs": [],
753
+ "stateMutability": "nonpayable",
754
+ "type": "function"
755
+ },
756
+ {
757
+ "stateMutability": "payable",
758
+ "type": "receive"
759
+ }
760
+ ],
761
+ "bytecode": "0x",
762
+ "deployedBytecode": "0x",
763
+ "linkReferences": {},
764
+ "deployedLinkReferences": {}
765
+ }