@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.
- package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldActionHelper.sol/LongYieldActionHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/{base/BotActionHelper.sol/BotActionHelper.json → LongYield/LongYieldActionHelper.sol/LongYieldActionHelper.json} +2 -119
- package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.json +2 -2
- package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol/LongYieldTradingBot.json +2 -119
- package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldActionHelper.sol/ShortYieldActionHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldActionHelper.sol/ShortYieldActionHelper.json +765 -0
- package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldDecisionHelper.sol/ShortYieldDecisionHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldDecisionHelper.sol/ShortYieldDecisionHelper.json +2 -2
- package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol/ShortYieldTradingBot.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol/ShortYieldTradingBot.json +6 -173
- package/build/artifacts/contracts/core/TradingBot/base/BotActionCallback.sol/BotActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/base/BotActionCallback.sol/BotActionCallback.json +0 -117
- package/build/artifacts/contracts/core/TradingBot/base/BotDecisionHelperBase.sol/BotDecisionHelperBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/base/TradingBotBase.sol/TradingBotBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/base/TradingBotBase.sol/TradingBotBase.json +0 -117
- package/build/artifacts/contracts/core/TradingBot/libraries/BotSimulationLib.sol/BotSimulationLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/libraries/BotSimulationLib.sol/BotSimulationLib.json +2 -2
- package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.json +2 -2
- package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldDecisionHelper.sol/ILongYieldDecisionHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +0 -117
- package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldDecisionHelper.sol/IShortYieldDecisionHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol/IShortYieldTradingBot.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol/IShortYieldTradingBot.json +4 -121
- package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +0 -117
- package/contracts/core/TradingBot/{base/BotActionHelper.sol → LongYield/LongYieldActionHelper.sol} +4 -81
- package/contracts/core/TradingBot/LongYield/LongYieldTradingBot.sol +2 -2
- package/contracts/core/TradingBot/ShortYield/ShortYieldActionHelper.sol +54 -0
- package/contracts/core/TradingBot/ShortYield/ShortYieldTradingBot.sol +2 -2
- package/contracts/core/TradingBot/base/TradingBotBase.sol +5 -5
- package/contracts/interfaces/TradingBot/ITradingBotBase.sol +0 -4
- package/package.json +1 -1
- package/typechain-types/BotActionCallback.ts +0 -50
- package/typechain-types/ILongYieldTradingBot.ts +0 -50
- package/typechain-types/IShortYieldTradingBot.ts +2 -52
- package/typechain-types/ITradingBotBase.ts +0 -50
- package/typechain-types/LongYieldActionHelper.ts +900 -0
- package/typechain-types/LongYieldTradingBot.ts +0 -50
- package/typechain-types/ShortYieldActionHelper.ts +856 -0
- package/typechain-types/ShortYieldTradingBot.ts +2 -96
- package/typechain-types/TradingBotBase.ts +0 -50
- package/typechain-types/factories/BotActionCallback__factory.ts +0 -117
- package/typechain-types/factories/ILongYieldTradingBot__factory.ts +0 -117
- package/typechain-types/factories/IShortYieldTradingBot__factory.ts +4 -121
- package/typechain-types/factories/ITradingBotBase__factory.ts +0 -117
- package/typechain-types/factories/LongYieldActionHelper__factory.ts +834 -0
- package/typechain-types/factories/LongYieldDecisionHelper__factory.ts +1 -1
- package/typechain-types/factories/LongYieldTradingBot__factory.ts +1 -118
- package/typechain-types/factories/ShortYieldActionHelper__factory.ts +784 -0
- package/typechain-types/factories/ShortYieldDecisionHelper__factory.ts +1 -1
- package/typechain-types/factories/ShortYieldTradingBot__factory.ts +5 -172
- package/typechain-types/factories/TradingBotBase__factory.ts +0 -117
- package/typechain-types/hardhat.d.ts +18 -0
- package/typechain-types/index.ts +4 -0
- package/build/artifacts/contracts/core/TradingBot/base/BotActionHelper.sol/BotActionHelper.dbg.json +0 -4
package/build/artifacts/contracts/core/TradingBot/base/BotActionCallback.sol/BotActionCallback.json
CHANGED
|
@@ -490,123 +490,6 @@
|
|
|
490
490
|
"stateMutability": "view",
|
|
491
491
|
"type": "function"
|
|
492
492
|
},
|
|
493
|
-
{
|
|
494
|
-
"inputs": [],
|
|
495
|
-
"name": "readBotState",
|
|
496
|
-
"outputs": [
|
|
497
|
-
{
|
|
498
|
-
"components": [
|
|
499
|
-
{
|
|
500
|
-
"internalType": "uint256",
|
|
501
|
-
"name": "lpBalance",
|
|
502
|
-
"type": "uint256"
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
"internalType": "uint256",
|
|
506
|
-
"name": "ytBalance",
|
|
507
|
-
"type": "uint256"
|
|
508
|
-
},
|
|
509
|
-
{
|
|
510
|
-
"internalType": "uint256",
|
|
511
|
-
"name": "ptBalance",
|
|
512
|
-
"type": "uint256"
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
"internalType": "uint256",
|
|
516
|
-
"name": "syBalance",
|
|
517
|
-
"type": "uint256"
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
"internalType": "uint256",
|
|
521
|
-
"name": "buyBins",
|
|
522
|
-
"type": "uint256"
|
|
523
|
-
}
|
|
524
|
-
],
|
|
525
|
-
"internalType": "struct BotState",
|
|
526
|
-
"name": "botState",
|
|
527
|
-
"type": "tuple"
|
|
528
|
-
}
|
|
529
|
-
],
|
|
530
|
-
"stateMutability": "view",
|
|
531
|
-
"type": "function"
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
"inputs": [],
|
|
535
|
-
"name": "readMarketExtState",
|
|
536
|
-
"outputs": [
|
|
537
|
-
{
|
|
538
|
-
"components": [
|
|
539
|
-
{
|
|
540
|
-
"components": [
|
|
541
|
-
{
|
|
542
|
-
"internalType": "int256",
|
|
543
|
-
"name": "totalPt",
|
|
544
|
-
"type": "int256"
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
"internalType": "int256",
|
|
548
|
-
"name": "totalSy",
|
|
549
|
-
"type": "int256"
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
"internalType": "int256",
|
|
553
|
-
"name": "totalLp",
|
|
554
|
-
"type": "int256"
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
"internalType": "address",
|
|
558
|
-
"name": "treasury",
|
|
559
|
-
"type": "address"
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
"internalType": "int256",
|
|
563
|
-
"name": "scalarRoot",
|
|
564
|
-
"type": "int256"
|
|
565
|
-
},
|
|
566
|
-
{
|
|
567
|
-
"internalType": "uint256",
|
|
568
|
-
"name": "expiry",
|
|
569
|
-
"type": "uint256"
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
"internalType": "uint256",
|
|
573
|
-
"name": "lnFeeRateRoot",
|
|
574
|
-
"type": "uint256"
|
|
575
|
-
},
|
|
576
|
-
{
|
|
577
|
-
"internalType": "uint256",
|
|
578
|
-
"name": "reserveFeePercent",
|
|
579
|
-
"type": "uint256"
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
"internalType": "uint256",
|
|
583
|
-
"name": "lastLnImpliedRate",
|
|
584
|
-
"type": "uint256"
|
|
585
|
-
}
|
|
586
|
-
],
|
|
587
|
-
"internalType": "struct MarketState",
|
|
588
|
-
"name": "state",
|
|
589
|
-
"type": "tuple"
|
|
590
|
-
},
|
|
591
|
-
{
|
|
592
|
-
"internalType": "PYIndex",
|
|
593
|
-
"name": "index",
|
|
594
|
-
"type": "uint256"
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
"internalType": "uint256",
|
|
598
|
-
"name": "blockTime",
|
|
599
|
-
"type": "uint256"
|
|
600
|
-
}
|
|
601
|
-
],
|
|
602
|
-
"internalType": "struct MarketExtState",
|
|
603
|
-
"name": "marketExt",
|
|
604
|
-
"type": "tuple"
|
|
605
|
-
}
|
|
606
|
-
],
|
|
607
|
-
"stateMutability": "nonpayable",
|
|
608
|
-
"type": "function"
|
|
609
|
-
},
|
|
610
493
|
{
|
|
611
494
|
"inputs": [],
|
|
612
495
|
"name": "readStrategyData",
|
package/build/artifacts/contracts/core/TradingBot/base/TradingBotBase.sol/TradingBotBase.json
CHANGED
|
@@ -463,123 +463,6 @@
|
|
|
463
463
|
"stateMutability": "view",
|
|
464
464
|
"type": "function"
|
|
465
465
|
},
|
|
466
|
-
{
|
|
467
|
-
"inputs": [],
|
|
468
|
-
"name": "readBotState",
|
|
469
|
-
"outputs": [
|
|
470
|
-
{
|
|
471
|
-
"components": [
|
|
472
|
-
{
|
|
473
|
-
"internalType": "uint256",
|
|
474
|
-
"name": "lpBalance",
|
|
475
|
-
"type": "uint256"
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
"internalType": "uint256",
|
|
479
|
-
"name": "ytBalance",
|
|
480
|
-
"type": "uint256"
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
"internalType": "uint256",
|
|
484
|
-
"name": "ptBalance",
|
|
485
|
-
"type": "uint256"
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
"internalType": "uint256",
|
|
489
|
-
"name": "syBalance",
|
|
490
|
-
"type": "uint256"
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
"internalType": "uint256",
|
|
494
|
-
"name": "buyBins",
|
|
495
|
-
"type": "uint256"
|
|
496
|
-
}
|
|
497
|
-
],
|
|
498
|
-
"internalType": "struct BotState",
|
|
499
|
-
"name": "botState",
|
|
500
|
-
"type": "tuple"
|
|
501
|
-
}
|
|
502
|
-
],
|
|
503
|
-
"stateMutability": "view",
|
|
504
|
-
"type": "function"
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
"inputs": [],
|
|
508
|
-
"name": "readMarketExtState",
|
|
509
|
-
"outputs": [
|
|
510
|
-
{
|
|
511
|
-
"components": [
|
|
512
|
-
{
|
|
513
|
-
"components": [
|
|
514
|
-
{
|
|
515
|
-
"internalType": "int256",
|
|
516
|
-
"name": "totalPt",
|
|
517
|
-
"type": "int256"
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
"internalType": "int256",
|
|
521
|
-
"name": "totalSy",
|
|
522
|
-
"type": "int256"
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
"internalType": "int256",
|
|
526
|
-
"name": "totalLp",
|
|
527
|
-
"type": "int256"
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
"internalType": "address",
|
|
531
|
-
"name": "treasury",
|
|
532
|
-
"type": "address"
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
"internalType": "int256",
|
|
536
|
-
"name": "scalarRoot",
|
|
537
|
-
"type": "int256"
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
"internalType": "uint256",
|
|
541
|
-
"name": "expiry",
|
|
542
|
-
"type": "uint256"
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"internalType": "uint256",
|
|
546
|
-
"name": "lnFeeRateRoot",
|
|
547
|
-
"type": "uint256"
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
"internalType": "uint256",
|
|
551
|
-
"name": "reserveFeePercent",
|
|
552
|
-
"type": "uint256"
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
"internalType": "uint256",
|
|
556
|
-
"name": "lastLnImpliedRate",
|
|
557
|
-
"type": "uint256"
|
|
558
|
-
}
|
|
559
|
-
],
|
|
560
|
-
"internalType": "struct MarketState",
|
|
561
|
-
"name": "state",
|
|
562
|
-
"type": "tuple"
|
|
563
|
-
},
|
|
564
|
-
{
|
|
565
|
-
"internalType": "PYIndex",
|
|
566
|
-
"name": "index",
|
|
567
|
-
"type": "uint256"
|
|
568
|
-
},
|
|
569
|
-
{
|
|
570
|
-
"internalType": "uint256",
|
|
571
|
-
"name": "blockTime",
|
|
572
|
-
"type": "uint256"
|
|
573
|
-
}
|
|
574
|
-
],
|
|
575
|
-
"internalType": "struct MarketExtState",
|
|
576
|
-
"name": "marketExt",
|
|
577
|
-
"type": "tuple"
|
|
578
|
-
}
|
|
579
|
-
],
|
|
580
|
-
"stateMutability": "nonpayable",
|
|
581
|
-
"type": "function"
|
|
582
|
-
},
|
|
583
466
|
{
|
|
584
467
|
"inputs": [],
|
|
585
468
|
"name": "readStrategyData",
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"contractName": "BotSimulationLib",
|
|
4
4
|
"sourceName": "contracts/core/TradingBot/libraries/BotSimulationLib.sol",
|
|
5
5
|
"abi": [],
|
|
6
|
-
"bytecode": "
|
|
7
|
-
"deployedBytecode": "
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203c8cf81ccd60d7c57230b2895304d245adb9d3d119f5cd78a3e73124bd53202264736f6c63430008110033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212203c8cf81ccd60d7c57230b2895304d245adb9d3d119f5cd78a3e73124bd53202264736f6c63430008110033",
|
|
8
8
|
"linkReferences": {},
|
|
9
9
|
"deployedLinkReferences": {}
|
|
10
10
|
}
|
package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"contractName": "SpecSegmentLib",
|
|
4
4
|
"sourceName": "contracts/core/TradingBot/libraries/SpecSegmentLib.sol",
|
|
5
5
|
"abi": [],
|
|
6
|
-
"bytecode": "
|
|
7
|
-
"deployedBytecode": "
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202418d755689c0521f8c868e88a4ab40e5d3f5c40fdf24e3e503e1009bf59909e64736f6c63430008110033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202418d755689c0521f8c868e88a4ab40e5d3f5c40fdf24e3e503e1009bf59909e64736f6c63430008110033",
|
|
8
8
|
"linkReferences": {},
|
|
9
9
|
"deployedLinkReferences": {}
|
|
10
10
|
}
|
|
@@ -648,123 +648,6 @@
|
|
|
648
648
|
"stateMutability": "payable",
|
|
649
649
|
"type": "function"
|
|
650
650
|
},
|
|
651
|
-
{
|
|
652
|
-
"inputs": [],
|
|
653
|
-
"name": "readBotState",
|
|
654
|
-
"outputs": [
|
|
655
|
-
{
|
|
656
|
-
"components": [
|
|
657
|
-
{
|
|
658
|
-
"internalType": "uint256",
|
|
659
|
-
"name": "lpBalance",
|
|
660
|
-
"type": "uint256"
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
"internalType": "uint256",
|
|
664
|
-
"name": "ytBalance",
|
|
665
|
-
"type": "uint256"
|
|
666
|
-
},
|
|
667
|
-
{
|
|
668
|
-
"internalType": "uint256",
|
|
669
|
-
"name": "ptBalance",
|
|
670
|
-
"type": "uint256"
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
"internalType": "uint256",
|
|
674
|
-
"name": "syBalance",
|
|
675
|
-
"type": "uint256"
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
"internalType": "uint256",
|
|
679
|
-
"name": "buyBins",
|
|
680
|
-
"type": "uint256"
|
|
681
|
-
}
|
|
682
|
-
],
|
|
683
|
-
"internalType": "struct BotState",
|
|
684
|
-
"name": "botState",
|
|
685
|
-
"type": "tuple"
|
|
686
|
-
}
|
|
687
|
-
],
|
|
688
|
-
"stateMutability": "view",
|
|
689
|
-
"type": "function"
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
"inputs": [],
|
|
693
|
-
"name": "readMarketExtState",
|
|
694
|
-
"outputs": [
|
|
695
|
-
{
|
|
696
|
-
"components": [
|
|
697
|
-
{
|
|
698
|
-
"components": [
|
|
699
|
-
{
|
|
700
|
-
"internalType": "int256",
|
|
701
|
-
"name": "totalPt",
|
|
702
|
-
"type": "int256"
|
|
703
|
-
},
|
|
704
|
-
{
|
|
705
|
-
"internalType": "int256",
|
|
706
|
-
"name": "totalSy",
|
|
707
|
-
"type": "int256"
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
"internalType": "int256",
|
|
711
|
-
"name": "totalLp",
|
|
712
|
-
"type": "int256"
|
|
713
|
-
},
|
|
714
|
-
{
|
|
715
|
-
"internalType": "address",
|
|
716
|
-
"name": "treasury",
|
|
717
|
-
"type": "address"
|
|
718
|
-
},
|
|
719
|
-
{
|
|
720
|
-
"internalType": "int256",
|
|
721
|
-
"name": "scalarRoot",
|
|
722
|
-
"type": "int256"
|
|
723
|
-
},
|
|
724
|
-
{
|
|
725
|
-
"internalType": "uint256",
|
|
726
|
-
"name": "expiry",
|
|
727
|
-
"type": "uint256"
|
|
728
|
-
},
|
|
729
|
-
{
|
|
730
|
-
"internalType": "uint256",
|
|
731
|
-
"name": "lnFeeRateRoot",
|
|
732
|
-
"type": "uint256"
|
|
733
|
-
},
|
|
734
|
-
{
|
|
735
|
-
"internalType": "uint256",
|
|
736
|
-
"name": "reserveFeePercent",
|
|
737
|
-
"type": "uint256"
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
"internalType": "uint256",
|
|
741
|
-
"name": "lastLnImpliedRate",
|
|
742
|
-
"type": "uint256"
|
|
743
|
-
}
|
|
744
|
-
],
|
|
745
|
-
"internalType": "struct MarketState",
|
|
746
|
-
"name": "state",
|
|
747
|
-
"type": "tuple"
|
|
748
|
-
},
|
|
749
|
-
{
|
|
750
|
-
"internalType": "PYIndex",
|
|
751
|
-
"name": "index",
|
|
752
|
-
"type": "uint256"
|
|
753
|
-
},
|
|
754
|
-
{
|
|
755
|
-
"internalType": "uint256",
|
|
756
|
-
"name": "blockTime",
|
|
757
|
-
"type": "uint256"
|
|
758
|
-
}
|
|
759
|
-
],
|
|
760
|
-
"internalType": "struct MarketExtState",
|
|
761
|
-
"name": "marketExt",
|
|
762
|
-
"type": "tuple"
|
|
763
|
-
}
|
|
764
|
-
],
|
|
765
|
-
"stateMutability": "nonpayable",
|
|
766
|
-
"type": "function"
|
|
767
|
-
},
|
|
768
651
|
{
|
|
769
652
|
"inputs": [],
|
|
770
653
|
"name": "readStrategyData",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
"internalType": "uint256",
|
|
147
|
-
"name": "
|
|
147
|
+
"name": "minAmountOut",
|
|
148
148
|
"type": "uint256"
|
|
149
149
|
},
|
|
150
150
|
{
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
246
|
"internalType": "uint256",
|
|
247
|
-
"name": "
|
|
247
|
+
"name": "minAmountOut",
|
|
248
248
|
"type": "uint256"
|
|
249
249
|
},
|
|
250
250
|
{
|
|
@@ -534,123 +534,6 @@
|
|
|
534
534
|
"stateMutability": "nonpayable",
|
|
535
535
|
"type": "function"
|
|
536
536
|
},
|
|
537
|
-
{
|
|
538
|
-
"inputs": [],
|
|
539
|
-
"name": "readBotState",
|
|
540
|
-
"outputs": [
|
|
541
|
-
{
|
|
542
|
-
"components": [
|
|
543
|
-
{
|
|
544
|
-
"internalType": "uint256",
|
|
545
|
-
"name": "lpBalance",
|
|
546
|
-
"type": "uint256"
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
"internalType": "uint256",
|
|
550
|
-
"name": "ytBalance",
|
|
551
|
-
"type": "uint256"
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
"internalType": "uint256",
|
|
555
|
-
"name": "ptBalance",
|
|
556
|
-
"type": "uint256"
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
"internalType": "uint256",
|
|
560
|
-
"name": "syBalance",
|
|
561
|
-
"type": "uint256"
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
"internalType": "uint256",
|
|
565
|
-
"name": "buyBins",
|
|
566
|
-
"type": "uint256"
|
|
567
|
-
}
|
|
568
|
-
],
|
|
569
|
-
"internalType": "struct BotState",
|
|
570
|
-
"name": "botState",
|
|
571
|
-
"type": "tuple"
|
|
572
|
-
}
|
|
573
|
-
],
|
|
574
|
-
"stateMutability": "view",
|
|
575
|
-
"type": "function"
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
"inputs": [],
|
|
579
|
-
"name": "readMarketExtState",
|
|
580
|
-
"outputs": [
|
|
581
|
-
{
|
|
582
|
-
"components": [
|
|
583
|
-
{
|
|
584
|
-
"components": [
|
|
585
|
-
{
|
|
586
|
-
"internalType": "int256",
|
|
587
|
-
"name": "totalPt",
|
|
588
|
-
"type": "int256"
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
"internalType": "int256",
|
|
592
|
-
"name": "totalSy",
|
|
593
|
-
"type": "int256"
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
"internalType": "int256",
|
|
597
|
-
"name": "totalLp",
|
|
598
|
-
"type": "int256"
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
"internalType": "address",
|
|
602
|
-
"name": "treasury",
|
|
603
|
-
"type": "address"
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
"internalType": "int256",
|
|
607
|
-
"name": "scalarRoot",
|
|
608
|
-
"type": "int256"
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
"internalType": "uint256",
|
|
612
|
-
"name": "expiry",
|
|
613
|
-
"type": "uint256"
|
|
614
|
-
},
|
|
615
|
-
{
|
|
616
|
-
"internalType": "uint256",
|
|
617
|
-
"name": "lnFeeRateRoot",
|
|
618
|
-
"type": "uint256"
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
"internalType": "uint256",
|
|
622
|
-
"name": "reserveFeePercent",
|
|
623
|
-
"type": "uint256"
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
"internalType": "uint256",
|
|
627
|
-
"name": "lastLnImpliedRate",
|
|
628
|
-
"type": "uint256"
|
|
629
|
-
}
|
|
630
|
-
],
|
|
631
|
-
"internalType": "struct MarketState",
|
|
632
|
-
"name": "state",
|
|
633
|
-
"type": "tuple"
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
"internalType": "PYIndex",
|
|
637
|
-
"name": "index",
|
|
638
|
-
"type": "uint256"
|
|
639
|
-
},
|
|
640
|
-
{
|
|
641
|
-
"internalType": "uint256",
|
|
642
|
-
"name": "blockTime",
|
|
643
|
-
"type": "uint256"
|
|
644
|
-
}
|
|
645
|
-
],
|
|
646
|
-
"internalType": "struct MarketExtState",
|
|
647
|
-
"name": "marketExt",
|
|
648
|
-
"type": "tuple"
|
|
649
|
-
}
|
|
650
|
-
],
|
|
651
|
-
"stateMutability": "nonpayable",
|
|
652
|
-
"type": "function"
|
|
653
|
-
},
|
|
654
537
|
{
|
|
655
538
|
"inputs": [],
|
|
656
539
|
"name": "readStrategyData",
|
|
@@ -919,7 +802,7 @@
|
|
|
919
802
|
},
|
|
920
803
|
{
|
|
921
804
|
"internalType": "uint256",
|
|
922
|
-
"name": "
|
|
805
|
+
"name": "minAmountOut",
|
|
923
806
|
"type": "uint256"
|
|
924
807
|
},
|
|
925
808
|
{
|
|
@@ -1019,7 +902,7 @@
|
|
|
1019
902
|
},
|
|
1020
903
|
{
|
|
1021
904
|
"internalType": "uint256",
|
|
1022
|
-
"name": "
|
|
905
|
+
"name": "minAmountOut",
|
|
1023
906
|
"type": "uint256"
|
|
1024
907
|
},
|
|
1025
908
|
{
|