@pendle/core-v2 2.17.5-tradingbot → 2.17.7-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/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/BotActionCallback.sol/BotActionCallback.json +25 -0
- package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/BotActionHelper.sol/BotActionHelper.json +25 -0
- package/build/artifacts/contracts/core/TradingBot/BotDecisionHelper.sol/BotDecisionHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/BotDecisionHelper.sol/BotDecisionHelper.json +1070 -0
- package/build/artifacts/contracts/core/TradingBot/BotSimulationLib.sol/BotSimulationLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/BotSimulationLib.sol/BotSimulationLib.json +2 -2
- package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.json +60 -180
- package/build/artifacts/contracts/core/TradingBot/MarketExtLib.sol/MarketExtLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/MarketExtLib.sol/MarketExtLib.json +2 -2
- package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.json +25 -0
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/TradingBot/IBotDecisionHelper.sol/IBotDecisionHelper.json +917 -0
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +425 -161
- package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +50 -0
- package/build/artifacts/contracts/offchain-helpers/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/contracts/core/TradingBot/BotActionCallback.sol +1 -1
- package/contracts/core/TradingBot/BotDecisionHelper.sol +306 -0
- package/contracts/core/TradingBot/BotSimulationLib.sol +8 -7
- package/contracts/core/TradingBot/LongYieldTradingBot.sol +20 -24
- package/contracts/core/TradingBot/MarketExtLib.sol +64 -31
- package/contracts/core/TradingBot/README.md +27 -25
- package/contracts/core/TradingBot/TradingBotBase.sol +36 -16
- package/contracts/interfaces/TradingBot/IBotDecisionHelper.sol +91 -0
- package/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol +7 -32
- package/contracts/interfaces/TradingBot/ITradingBotBase.sol +6 -4
- package/package.json +1 -1
- package/typechain-types/BotActionCallback.ts +36 -0
- package/typechain-types/BotActionHelper.ts +36 -0
- package/typechain-types/BotDecisionHelper.ts +527 -0
- package/typechain-types/IBotDecisionHelper.ts +507 -0
- package/typechain-types/ILongYieldTradingBot.ts +481 -129
- package/typechain-types/ITradingBotBase.ts +76 -0
- package/typechain-types/IWBETH.ts +128 -0
- package/typechain-types/LongYieldTradingBot.ts +85 -141
- package/typechain-types/PendleBinanceEth.ts +1229 -0
- package/typechain-types/PtAndLpToAsset.ts +136 -0
- package/typechain-types/TradingBotBase.ts +36 -0
- package/typechain-types/factories/BotActionCallback__factory.ts +25 -0
- package/typechain-types/factories/BotActionHelper__factory.ts +25 -0
- package/typechain-types/factories/BotDecisionHelper__factory.ts +1123 -0
- package/typechain-types/factories/IBotDecisionHelper__factory.ts +932 -0
- package/typechain-types/factories/ILongYieldTradingBot__factory.ts +425 -161
- package/typechain-types/factories/ITradingBotBase__factory.ts +50 -0
- package/typechain-types/factories/IWBETH__factory.ts +51 -0
- package/typechain-types/factories/LongYieldTradingBot__factory.ts +63 -183
- package/typechain-types/factories/MarketExtLib__factory.ts +1 -1
- package/typechain-types/factories/PendleBinanceEth__factory.ts +1052 -0
- package/typechain-types/factories/PtAndLpToAsset__factory.ts +150 -0
- package/typechain-types/factories/TradingBotBase__factory.ts +25 -0
- package/typechain-types/hardhat.d.ts +49 -13
- package/typechain-types/index.ts +12 -4
- package/build/artifacts/contracts/core/TradingBot/BotDecisionLib.sol/BotDecisionLib.dbg.json +0 -4
- package/build/artifacts/contracts/core/TradingBot/BotDecisionLib.sol/BotDecisionLib.json +0 -589
- package/build/artifacts/contracts/core/TradingBot/TradingBotOffchain.sol/TradingBotOffchain.dbg.json +0 -4
- package/build/artifacts/contracts/core/TradingBot/TradingBotOffchain.sol/TradingBotOffchain.json +0 -1075
- package/contracts/core/TradingBot/BotDecisionLib.sol +0 -274
- package/contracts/core/TradingBot/TradingBotOffchain.sol +0 -141
|
@@ -6,24 +6,6 @@
|
|
|
6
6
|
{
|
|
7
7
|
"anonymous": false,
|
|
8
8
|
"inputs": [
|
|
9
|
-
{
|
|
10
|
-
"components": [
|
|
11
|
-
{
|
|
12
|
-
"internalType": "enum StrategyFlag",
|
|
13
|
-
"name": "iyFlag",
|
|
14
|
-
"type": "uint8"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"internalType": "enum StrategyFlag",
|
|
18
|
-
"name": "syRatioFlag",
|
|
19
|
-
"type": "uint8"
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"indexed": false,
|
|
23
|
-
"internalType": "struct StrategyState",
|
|
24
|
-
"name": "state",
|
|
25
|
-
"type": "tuple"
|
|
26
|
-
},
|
|
27
9
|
{
|
|
28
10
|
"components": [
|
|
29
11
|
{
|
|
@@ -82,24 +64,6 @@
|
|
|
82
64
|
{
|
|
83
65
|
"anonymous": false,
|
|
84
66
|
"inputs": [
|
|
85
|
-
{
|
|
86
|
-
"components": [
|
|
87
|
-
{
|
|
88
|
-
"internalType": "enum StrategyFlag",
|
|
89
|
-
"name": "iyFlag",
|
|
90
|
-
"type": "uint8"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"internalType": "enum StrategyFlag",
|
|
94
|
-
"name": "syRatioFlag",
|
|
95
|
-
"type": "uint8"
|
|
96
|
-
}
|
|
97
|
-
],
|
|
98
|
-
"indexed": false,
|
|
99
|
-
"internalType": "struct StrategyState",
|
|
100
|
-
"name": "state",
|
|
101
|
-
"type": "tuple"
|
|
102
|
-
},
|
|
103
67
|
{
|
|
104
68
|
"components": [
|
|
105
69
|
{
|
|
@@ -158,24 +122,6 @@
|
|
|
158
122
|
{
|
|
159
123
|
"anonymous": false,
|
|
160
124
|
"inputs": [
|
|
161
|
-
{
|
|
162
|
-
"components": [
|
|
163
|
-
{
|
|
164
|
-
"internalType": "enum StrategyFlag",
|
|
165
|
-
"name": "iyFlag",
|
|
166
|
-
"type": "uint8"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"internalType": "enum StrategyFlag",
|
|
170
|
-
"name": "syRatioFlag",
|
|
171
|
-
"type": "uint8"
|
|
172
|
-
}
|
|
173
|
-
],
|
|
174
|
-
"indexed": false,
|
|
175
|
-
"internalType": "struct StrategyState",
|
|
176
|
-
"name": "state",
|
|
177
|
-
"type": "tuple"
|
|
178
|
-
},
|
|
179
125
|
{
|
|
180
126
|
"components": [
|
|
181
127
|
{
|
|
@@ -241,23 +187,56 @@
|
|
|
241
187
|
"anonymous": false,
|
|
242
188
|
"inputs": [
|
|
243
189
|
{
|
|
244
|
-
"components": [
|
|
245
|
-
{
|
|
246
|
-
"internalType": "enum StrategyFlag",
|
|
247
|
-
"name": "iyFlag",
|
|
248
|
-
"type": "uint8"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"internalType": "enum StrategyFlag",
|
|
252
|
-
"name": "syRatioFlag",
|
|
253
|
-
"type": "uint8"
|
|
254
|
-
}
|
|
255
|
-
],
|
|
256
190
|
"indexed": false,
|
|
257
|
-
"internalType": "
|
|
258
|
-
"name": "
|
|
259
|
-
"type": "
|
|
191
|
+
"internalType": "uint256",
|
|
192
|
+
"name": "netSyOut",
|
|
193
|
+
"type": "uint256"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"indexed": false,
|
|
197
|
+
"internalType": "uint256",
|
|
198
|
+
"name": "netPendleOut",
|
|
199
|
+
"type": "uint256"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"name": "ClaimAndCompound",
|
|
203
|
+
"type": "event"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"anonymous": false,
|
|
207
|
+
"inputs": [
|
|
208
|
+
{
|
|
209
|
+
"indexed": false,
|
|
210
|
+
"internalType": "uint256",
|
|
211
|
+
"name": "netSyIn",
|
|
212
|
+
"type": "uint256"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"name": "DepositSy",
|
|
216
|
+
"type": "event"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"anonymous": false,
|
|
220
|
+
"inputs": [
|
|
221
|
+
{
|
|
222
|
+
"indexed": true,
|
|
223
|
+
"internalType": "address",
|
|
224
|
+
"name": "token",
|
|
225
|
+
"type": "address"
|
|
260
226
|
},
|
|
227
|
+
{
|
|
228
|
+
"indexed": false,
|
|
229
|
+
"internalType": "uint256",
|
|
230
|
+
"name": "netTokenIn",
|
|
231
|
+
"type": "uint256"
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
"name": "DepositToken",
|
|
235
|
+
"type": "event"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"anonymous": false,
|
|
239
|
+
"inputs": [
|
|
261
240
|
{
|
|
262
241
|
"components": [
|
|
263
242
|
{
|
|
@@ -316,24 +295,6 @@
|
|
|
316
295
|
{
|
|
317
296
|
"anonymous": false,
|
|
318
297
|
"inputs": [
|
|
319
|
-
{
|
|
320
|
-
"components": [
|
|
321
|
-
{
|
|
322
|
-
"internalType": "enum StrategyFlag",
|
|
323
|
-
"name": "iyFlag",
|
|
324
|
-
"type": "uint8"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"internalType": "enum StrategyFlag",
|
|
328
|
-
"name": "syRatioFlag",
|
|
329
|
-
"type": "uint8"
|
|
330
|
-
}
|
|
331
|
-
],
|
|
332
|
-
"indexed": false,
|
|
333
|
-
"internalType": "struct StrategyState",
|
|
334
|
-
"name": "state",
|
|
335
|
-
"type": "tuple"
|
|
336
|
-
},
|
|
337
298
|
{
|
|
338
299
|
"components": [
|
|
339
300
|
{
|
|
@@ -390,24 +351,26 @@
|
|
|
390
351
|
"type": "event"
|
|
391
352
|
},
|
|
392
353
|
{
|
|
354
|
+
"anonymous": false,
|
|
393
355
|
"inputs": [
|
|
394
356
|
{
|
|
395
|
-
"
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
"type": "uint8"
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
"internalType": "enum StrategyFlag",
|
|
403
|
-
"name": "syRatioFlag",
|
|
404
|
-
"type": "uint8"
|
|
405
|
-
}
|
|
406
|
-
],
|
|
407
|
-
"internalType": "struct StrategyState",
|
|
408
|
-
"name": "oldState",
|
|
409
|
-
"type": "tuple"
|
|
357
|
+
"indexed": true,
|
|
358
|
+
"internalType": "address",
|
|
359
|
+
"name": "token",
|
|
360
|
+
"type": "address"
|
|
410
361
|
},
|
|
362
|
+
{
|
|
363
|
+
"indexed": false,
|
|
364
|
+
"internalType": "uint256",
|
|
365
|
+
"name": "amount",
|
|
366
|
+
"type": "uint256"
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
"name": "WithdrawFunds",
|
|
370
|
+
"type": "event"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"inputs": [
|
|
411
374
|
{
|
|
412
375
|
"components": [
|
|
413
376
|
{
|
|
@@ -474,23 +437,6 @@
|
|
|
474
437
|
},
|
|
475
438
|
{
|
|
476
439
|
"inputs": [
|
|
477
|
-
{
|
|
478
|
-
"components": [
|
|
479
|
-
{
|
|
480
|
-
"internalType": "enum StrategyFlag",
|
|
481
|
-
"name": "iyFlag",
|
|
482
|
-
"type": "uint8"
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
"internalType": "enum StrategyFlag",
|
|
486
|
-
"name": "syRatioFlag",
|
|
487
|
-
"type": "uint8"
|
|
488
|
-
}
|
|
489
|
-
],
|
|
490
|
-
"internalType": "struct StrategyState",
|
|
491
|
-
"name": "oldState",
|
|
492
|
-
"type": "tuple"
|
|
493
|
-
},
|
|
494
440
|
{
|
|
495
441
|
"components": [
|
|
496
442
|
{
|
|
@@ -562,23 +508,6 @@
|
|
|
562
508
|
"name": "router",
|
|
563
509
|
"type": "address"
|
|
564
510
|
},
|
|
565
|
-
{
|
|
566
|
-
"components": [
|
|
567
|
-
{
|
|
568
|
-
"internalType": "enum StrategyFlag",
|
|
569
|
-
"name": "iyFlag",
|
|
570
|
-
"type": "uint8"
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
"internalType": "enum StrategyFlag",
|
|
574
|
-
"name": "syRatioFlag",
|
|
575
|
-
"type": "uint8"
|
|
576
|
-
}
|
|
577
|
-
],
|
|
578
|
-
"internalType": "struct StrategyState",
|
|
579
|
-
"name": "oldState",
|
|
580
|
-
"type": "tuple"
|
|
581
|
-
},
|
|
582
511
|
{
|
|
583
512
|
"components": [
|
|
584
513
|
{
|
|
@@ -653,20 +582,344 @@
|
|
|
653
582
|
{
|
|
654
583
|
"components": [
|
|
655
584
|
{
|
|
656
|
-
"internalType": "
|
|
657
|
-
"name": "
|
|
658
|
-
"type": "
|
|
585
|
+
"internalType": "address[]",
|
|
586
|
+
"name": "tokens",
|
|
587
|
+
"type": "address[]"
|
|
659
588
|
},
|
|
660
589
|
{
|
|
661
|
-
"internalType": "
|
|
662
|
-
"name": "
|
|
663
|
-
"type": "
|
|
590
|
+
"internalType": "address",
|
|
591
|
+
"name": "spender",
|
|
592
|
+
"type": "address"
|
|
664
593
|
}
|
|
665
594
|
],
|
|
666
|
-
"internalType": "struct
|
|
667
|
-
"name": "
|
|
595
|
+
"internalType": "struct ITradingBotBase.MultiApproval[]",
|
|
596
|
+
"name": "arr",
|
|
597
|
+
"type": "tuple[]"
|
|
598
|
+
}
|
|
599
|
+
],
|
|
600
|
+
"name": "approveInf",
|
|
601
|
+
"outputs": [],
|
|
602
|
+
"stateMutability": "nonpayable",
|
|
603
|
+
"type": "function"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"inputs": [
|
|
607
|
+
{
|
|
608
|
+
"internalType": "address",
|
|
609
|
+
"name": "router",
|
|
610
|
+
"type": "address"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"components": [
|
|
614
|
+
{
|
|
615
|
+
"internalType": "address",
|
|
616
|
+
"name": "tokenIn",
|
|
617
|
+
"type": "address"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"internalType": "uint256",
|
|
621
|
+
"name": "netTokenIn",
|
|
622
|
+
"type": "uint256"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"internalType": "address",
|
|
626
|
+
"name": "tokenMintSy",
|
|
627
|
+
"type": "address"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"internalType": "address",
|
|
631
|
+
"name": "bulk",
|
|
632
|
+
"type": "address"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"internalType": "address",
|
|
636
|
+
"name": "pendleSwap",
|
|
637
|
+
"type": "address"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"components": [
|
|
641
|
+
{
|
|
642
|
+
"internalType": "enum SwapType",
|
|
643
|
+
"name": "swapType",
|
|
644
|
+
"type": "uint8"
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"internalType": "address",
|
|
648
|
+
"name": "extRouter",
|
|
649
|
+
"type": "address"
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"internalType": "bytes",
|
|
653
|
+
"name": "extCalldata",
|
|
654
|
+
"type": "bytes"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"internalType": "bool",
|
|
658
|
+
"name": "needScale",
|
|
659
|
+
"type": "bool"
|
|
660
|
+
}
|
|
661
|
+
],
|
|
662
|
+
"internalType": "struct SwapData",
|
|
663
|
+
"name": "swapData",
|
|
664
|
+
"type": "tuple"
|
|
665
|
+
}
|
|
666
|
+
],
|
|
667
|
+
"internalType": "struct TokenInput[]",
|
|
668
|
+
"name": "inps",
|
|
669
|
+
"type": "tuple[]"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"internalType": "uint256",
|
|
673
|
+
"name": "minSyOut",
|
|
674
|
+
"type": "uint256"
|
|
675
|
+
}
|
|
676
|
+
],
|
|
677
|
+
"name": "claimAndCompound",
|
|
678
|
+
"outputs": [
|
|
679
|
+
{
|
|
680
|
+
"internalType": "uint256",
|
|
681
|
+
"name": "netSyOut",
|
|
682
|
+
"type": "uint256"
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
"internalType": "uint256",
|
|
686
|
+
"name": "netPendleOut",
|
|
687
|
+
"type": "uint256"
|
|
688
|
+
}
|
|
689
|
+
],
|
|
690
|
+
"stateMutability": "nonpayable",
|
|
691
|
+
"type": "function"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"inputs": [],
|
|
695
|
+
"name": "claimWithoutCompound",
|
|
696
|
+
"outputs": [
|
|
697
|
+
{
|
|
698
|
+
"components": [
|
|
699
|
+
{
|
|
700
|
+
"internalType": "address",
|
|
701
|
+
"name": "token",
|
|
702
|
+
"type": "address"
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"internalType": "uint256",
|
|
706
|
+
"name": "amount",
|
|
707
|
+
"type": "uint256"
|
|
708
|
+
}
|
|
709
|
+
],
|
|
710
|
+
"internalType": "struct TokenAmount[]",
|
|
711
|
+
"name": "rewards",
|
|
712
|
+
"type": "tuple[]"
|
|
713
|
+
}
|
|
714
|
+
],
|
|
715
|
+
"stateMutability": "nonpayable",
|
|
716
|
+
"type": "function"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"inputs": [
|
|
720
|
+
{
|
|
721
|
+
"internalType": "uint256",
|
|
722
|
+
"name": "netSyIn",
|
|
723
|
+
"type": "uint256"
|
|
724
|
+
}
|
|
725
|
+
],
|
|
726
|
+
"name": "depositSy",
|
|
727
|
+
"outputs": [],
|
|
728
|
+
"stateMutability": "nonpayable",
|
|
729
|
+
"type": "function"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"inputs": [
|
|
733
|
+
{
|
|
734
|
+
"internalType": "address",
|
|
735
|
+
"name": "router",
|
|
736
|
+
"type": "address"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"components": [
|
|
740
|
+
{
|
|
741
|
+
"internalType": "address",
|
|
742
|
+
"name": "tokenIn",
|
|
743
|
+
"type": "address"
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"internalType": "uint256",
|
|
747
|
+
"name": "netTokenIn",
|
|
748
|
+
"type": "uint256"
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"internalType": "address",
|
|
752
|
+
"name": "tokenMintSy",
|
|
753
|
+
"type": "address"
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
"internalType": "address",
|
|
757
|
+
"name": "bulk",
|
|
758
|
+
"type": "address"
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"internalType": "address",
|
|
762
|
+
"name": "pendleSwap",
|
|
763
|
+
"type": "address"
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"components": [
|
|
767
|
+
{
|
|
768
|
+
"internalType": "enum SwapType",
|
|
769
|
+
"name": "swapType",
|
|
770
|
+
"type": "uint8"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"internalType": "address",
|
|
774
|
+
"name": "extRouter",
|
|
775
|
+
"type": "address"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"internalType": "bytes",
|
|
779
|
+
"name": "extCalldata",
|
|
780
|
+
"type": "bytes"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"internalType": "bool",
|
|
784
|
+
"name": "needScale",
|
|
785
|
+
"type": "bool"
|
|
786
|
+
}
|
|
787
|
+
],
|
|
788
|
+
"internalType": "struct SwapData",
|
|
789
|
+
"name": "swapData",
|
|
790
|
+
"type": "tuple"
|
|
791
|
+
}
|
|
792
|
+
],
|
|
793
|
+
"internalType": "struct TokenInput",
|
|
794
|
+
"name": "inp",
|
|
668
795
|
"type": "tuple"
|
|
669
796
|
},
|
|
797
|
+
{
|
|
798
|
+
"internalType": "uint256",
|
|
799
|
+
"name": "minSyOut",
|
|
800
|
+
"type": "uint256"
|
|
801
|
+
}
|
|
802
|
+
],
|
|
803
|
+
"name": "depositToken",
|
|
804
|
+
"outputs": [],
|
|
805
|
+
"stateMutability": "payable",
|
|
806
|
+
"type": "function"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"inputs": [],
|
|
810
|
+
"name": "readBotState",
|
|
811
|
+
"outputs": [
|
|
812
|
+
{
|
|
813
|
+
"components": [
|
|
814
|
+
{
|
|
815
|
+
"internalType": "uint256",
|
|
816
|
+
"name": "lpBalance",
|
|
817
|
+
"type": "uint256"
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"internalType": "uint256",
|
|
821
|
+
"name": "ytBalance",
|
|
822
|
+
"type": "uint256"
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
"internalType": "uint256",
|
|
826
|
+
"name": "syBalance",
|
|
827
|
+
"type": "uint256"
|
|
828
|
+
}
|
|
829
|
+
],
|
|
830
|
+
"internalType": "struct BotState",
|
|
831
|
+
"name": "botState",
|
|
832
|
+
"type": "tuple"
|
|
833
|
+
}
|
|
834
|
+
],
|
|
835
|
+
"stateMutability": "view",
|
|
836
|
+
"type": "function"
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"inputs": [
|
|
840
|
+
{
|
|
841
|
+
"internalType": "address",
|
|
842
|
+
"name": "router",
|
|
843
|
+
"type": "address"
|
|
844
|
+
}
|
|
845
|
+
],
|
|
846
|
+
"name": "readMarketExtState",
|
|
847
|
+
"outputs": [
|
|
848
|
+
{
|
|
849
|
+
"components": [
|
|
850
|
+
{
|
|
851
|
+
"components": [
|
|
852
|
+
{
|
|
853
|
+
"internalType": "int256",
|
|
854
|
+
"name": "totalPt",
|
|
855
|
+
"type": "int256"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"internalType": "int256",
|
|
859
|
+
"name": "totalSy",
|
|
860
|
+
"type": "int256"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"internalType": "int256",
|
|
864
|
+
"name": "totalLp",
|
|
865
|
+
"type": "int256"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"internalType": "address",
|
|
869
|
+
"name": "treasury",
|
|
870
|
+
"type": "address"
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"internalType": "int256",
|
|
874
|
+
"name": "scalarRoot",
|
|
875
|
+
"type": "int256"
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"internalType": "uint256",
|
|
879
|
+
"name": "expiry",
|
|
880
|
+
"type": "uint256"
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"internalType": "uint256",
|
|
884
|
+
"name": "lnFeeRateRoot",
|
|
885
|
+
"type": "uint256"
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"internalType": "uint256",
|
|
889
|
+
"name": "reserveFeePercent",
|
|
890
|
+
"type": "uint256"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"internalType": "uint256",
|
|
894
|
+
"name": "lastLnImpliedRate",
|
|
895
|
+
"type": "uint256"
|
|
896
|
+
}
|
|
897
|
+
],
|
|
898
|
+
"internalType": "struct MarketState",
|
|
899
|
+
"name": "state",
|
|
900
|
+
"type": "tuple"
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
"internalType": "PYIndex",
|
|
904
|
+
"name": "index",
|
|
905
|
+
"type": "uint256"
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"internalType": "uint256",
|
|
909
|
+
"name": "blockTime",
|
|
910
|
+
"type": "uint256"
|
|
911
|
+
}
|
|
912
|
+
],
|
|
913
|
+
"internalType": "struct MarketExtState",
|
|
914
|
+
"name": "marketExt",
|
|
915
|
+
"type": "tuple"
|
|
916
|
+
}
|
|
917
|
+
],
|
|
918
|
+
"stateMutability": "nonpayable",
|
|
919
|
+
"type": "function"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"inputs": [
|
|
670
923
|
{
|
|
671
924
|
"components": [
|
|
672
925
|
{
|
|
@@ -782,10 +1035,20 @@
|
|
|
782
1035
|
"name": "floatingSyRatioLimit",
|
|
783
1036
|
"type": "uint256"
|
|
784
1037
|
},
|
|
1038
|
+
{
|
|
1039
|
+
"internalType": "uint256",
|
|
1040
|
+
"name": "floatingSyRatioTarget",
|
|
1041
|
+
"type": "uint256"
|
|
1042
|
+
},
|
|
785
1043
|
{
|
|
786
1044
|
"internalType": "uint256",
|
|
787
1045
|
"name": "ytPtRatioLimit",
|
|
788
1046
|
"type": "uint256"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"internalType": "uint256",
|
|
1050
|
+
"name": "ytPtRatioTarget",
|
|
1051
|
+
"type": "uint256"
|
|
789
1052
|
}
|
|
790
1053
|
],
|
|
791
1054
|
"internalType": "struct LongTradingSpecs",
|
|
@@ -805,23 +1068,6 @@
|
|
|
805
1068
|
"name": "router",
|
|
806
1069
|
"type": "address"
|
|
807
1070
|
},
|
|
808
|
-
{
|
|
809
|
-
"components": [
|
|
810
|
-
{
|
|
811
|
-
"internalType": "enum StrategyFlag",
|
|
812
|
-
"name": "iyFlag",
|
|
813
|
-
"type": "uint8"
|
|
814
|
-
},
|
|
815
|
-
{
|
|
816
|
-
"internalType": "enum StrategyFlag",
|
|
817
|
-
"name": "syRatioFlag",
|
|
818
|
-
"type": "uint8"
|
|
819
|
-
}
|
|
820
|
-
],
|
|
821
|
-
"internalType": "struct StrategyState",
|
|
822
|
-
"name": "oldState",
|
|
823
|
-
"type": "tuple"
|
|
824
|
-
},
|
|
825
1071
|
{
|
|
826
1072
|
"components": [
|
|
827
1073
|
{
|
|
@@ -880,6 +1126,24 @@
|
|
|
880
1126
|
],
|
|
881
1127
|
"stateMutability": "nonpayable",
|
|
882
1128
|
"type": "function"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"inputs": [
|
|
1132
|
+
{
|
|
1133
|
+
"internalType": "address",
|
|
1134
|
+
"name": "token",
|
|
1135
|
+
"type": "address"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"internalType": "uint256",
|
|
1139
|
+
"name": "amount",
|
|
1140
|
+
"type": "uint256"
|
|
1141
|
+
}
|
|
1142
|
+
],
|
|
1143
|
+
"name": "withdrawFunds",
|
|
1144
|
+
"outputs": [],
|
|
1145
|
+
"stateMutability": "nonpayable",
|
|
1146
|
+
"type": "function"
|
|
883
1147
|
}
|
|
884
1148
|
],
|
|
885
1149
|
"bytecode": "0x",
|