@pendle/core-v2 2.20.0 → 2.21.0-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/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
- 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/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +2 -2
- 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/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
- 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/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
- 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/VeBalanceLib.sol/VeBalanceLib.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.json +0 -19
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -21
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
- package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.json +2 -2
- 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/SYUtils.sol/SYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.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/Ape/sAPE.sol/sAPE.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/BbAPoolHelper.sol/BbAWethHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearMath.sol/LinearMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/Linear/LinearPreview.sol/LinearPreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.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/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.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/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.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/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.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/GLPPreviewHelper.sol/GLPPreviewHelper.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/GLP/PendleGlpSY.sol/PendleGlpSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
- package/build/artifacts/contracts/core/TradingBot/DecisionHelper/BotDecisionHelperBase.sol/BotDecisionHelperBase.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/DecisionHelper/BotDecisionHelperBase.sol/BotDecisionHelperBase.json +816 -0
- package/build/artifacts/contracts/core/TradingBot/DecisionHelper/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/DecisionHelper/LongYieldDecisionHelper.sol/LongYieldDecisionHelper.json +1411 -0
- package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/LongYieldTradingBot.sol/LongYieldTradingBot.json +2240 -0
- package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/TradingBotBase.sol/TradingBotBase.json +1641 -0
- package/build/artifacts/contracts/core/TradingBot/libraries/BotSimulationLib.sol/BotSimulationLib.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/libraries/BotSimulationLib.sol/BotSimulationLib.json +10 -0
- package/build/artifacts/contracts/core/TradingBot/libraries/LongYieldActionLib.sol/LongYieldActionLib.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/libraries/LongYieldActionLib.sol/LongYieldActionLib.json +154 -0
- package/build/artifacts/contracts/core/TradingBot/libraries/MarketExtLib.sol/MarketExtLib.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/libraries/MarketExtLib.sol/MarketExtLib.json +24 -0
- package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/libraries/SpecSegmentLib.sol/SpecSegmentLib.json +10 -0
- package/build/artifacts/contracts/core/TradingBot/libraries/TvlLib.sol/TvlLib.dbg.json +4 -0
- package/build/artifacts/contracts/core/TradingBot/libraries/TvlLib.sol/TvlLib.json +262 -0
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
- package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +2 -2
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +2 -2
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +2 -2
- package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +151 -2
- package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.dbg.json +4 -0
- package/build/artifacts/contracts/core/libraries/TokenAmountLib.sol/TokenAmountLib.json +10 -0
- package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IERC4626LinearPool.sol/IERC4626LinearPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotFactory.sol/ICamelotFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTFactory.sol/ICamelotNFTFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTHandler.sol/ICamelotNFTHandler.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPool.sol/ICamelotNitroPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol/ICamelotNitroPoolFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotPair.sol/ICamelotPair.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotRouter.sol/ICamelotRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotYieldBooster.sol/ICamelotYieldBooster.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/IXGrail.sol/IXGrail.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Curve/ITriCrvPool.sol/ITriCrvPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Frax/IFrxEthMinter.sol/IFrxEthMinter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILooksFeeSharing.sol/ILooksFeeSharing.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILooksStaking.sol/ILooksStaking.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/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.json +6 -82
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.json +22 -22
- 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/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.json +4 -42
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.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/IPActionVePendleStatic.sol/IPActionVePendleStatic.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/IPBulkSellerFactory.sol/IPBulkSellerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSellerSYCallback.sol/IPBulkSellerCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.json +0 -19
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +0 -19
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPtOracle.sol/IPPtOracle.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/IPRouterStatic.sol/IPRouterStatic.json +32 -146
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.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/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateLP.sol/IStargateLP.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateStaking.sol/IStargateStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.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 +679 -0
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldDecisionHelper.sol/ILongYieldDecisionHelper.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldDecisionHelper.sol/ILongYieldDecisionHelper.json +698 -0
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol/ILongYieldTradingBot.json +745 -0
- package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldDecisionHelper.sol/IShortYieldDecisionHelper.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldDecisionHelper.sol/IShortYieldDecisionHelper.json +679 -0
- package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol/IShortYieldTradingBot.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol/IShortYieldTradingBot.json +794 -0
- package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/TradingBot/ITradingBotBase.sol/ITradingBotBase.json +351 -0
- package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
- 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/Broadcaster.sol/Broadcaster.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.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/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
- 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/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
- 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/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +8 -84
- 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/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +24 -24
- 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/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +6 -44
- 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/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
- 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/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
- 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/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.json +2 -2
- package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.json +2 -2
- package/build/artifacts/contracts/oracles/samples/PendlePtUsdChainlinkOracle.sol/PendlePtUsdChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +2 -2
- 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/MarketApproxPtInLib.json +2 -2
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IExecutorHelper.sol/IExecutorHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IHashflow.sol/IHashflow.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberInputScalingHelper.sol/KyberInputScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScalingDataLib.sol/ScalingDataLib.dbg.json +1 -1
- package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +0 -4
- package/contracts/core/Market/PendleGauge.sol +2 -3
- package/contracts/core/StandardizedYield/PYIndex.sol +14 -0
- package/contracts/core/TradingBot/DecisionHelper/BotDecisionHelperBase.sol +265 -0
- package/contracts/core/TradingBot/DecisionHelper/LongYieldDecisionHelper.sol +333 -0
- package/contracts/core/TradingBot/LongYieldTradingBot.sol +144 -0
- package/contracts/core/TradingBot/TradingBotBase.sol +253 -0
- package/contracts/core/TradingBot/libraries/BotSimulationLib.sol +99 -0
- package/contracts/core/TradingBot/libraries/LongYieldActionLib.sol +308 -0
- package/contracts/core/TradingBot/libraries/MarketExtLib.sol +272 -0
- package/contracts/core/TradingBot/libraries/SpecSegmentLib.sol +78 -0
- package/contracts/core/TradingBot/libraries/TvlLib.sol +69 -0
- package/contracts/core/libraries/Errors.sol +12 -0
- package/contracts/core/libraries/TokenAmountLib.sol +47 -0
- package/contracts/interfaces/IPActionInfoStatic.sol +7 -8
- package/contracts/interfaces/IPActionMarketAuxStatic.sol +14 -21
- package/contracts/interfaces/IPActionMarketCoreStatic.sol +67 -70
- package/contracts/interfaces/IPActionMintRedeemStatic.sol +11 -23
- package/contracts/interfaces/IPGauge.sol +0 -3
- package/contracts/interfaces/IPRouterStatic.sol +1 -5
- package/contracts/interfaces/IStandardizedYield.sol +10 -15
- package/contracts/interfaces/TradingBot/IBotDecisionHelper.sol +76 -0
- package/contracts/interfaces/TradingBot/ILongYieldDecisionHelper.sol +8 -0
- package/contracts/interfaces/TradingBot/ILongYieldTradingBot.sol +74 -0
- package/contracts/interfaces/TradingBot/IShortYieldDecisionHelper.sol +7 -0
- package/contracts/interfaces/TradingBot/IShortYieldTradingBot.sol +27 -0
- package/contracts/interfaces/TradingBot/ITradingBotBase.sol +54 -0
- package/contracts/offchain-helpers/BulkSellerOffchain.sol +8 -11
- package/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol +11 -14
- package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +37 -96
- package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +80 -88
- package/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol +14 -43
- package/contracts/oracles/PendleLpOracleLib.sol +1 -1
- package/deployments/core.ts +29 -0
- package/deployments/index.ts +4 -0
- package/deployments/markets/ape-june-29-2023.ts +3 -0
- package/deployments/markets/balancer-reth-dec-28-2023.ts +3 -0
- package/deployments/markets/balancer-wsteth-jun-27-2024.ts +3 -0
- package/deployments/markets/curve-fraxusdc-march-30-2023.ts +3 -0
- package/deployments/markets/index.ts +17 -0
- package/deployments/markets/looks-march-30-2023.ts +3 -0
- package/deployments/markets/steth-june-29-2023.ts +3 -0
- package/deployments/markets/steth-march-30-2023.ts +3 -0
- package/deployments/markets/types.ts +9 -0
- package/deployments/misc.ts +23 -0
- package/package.json +1 -1
- package/typechain-types/ActionMarketAuxStatic.ts +38 -191
- package/typechain-types/ActionMarketCoreStatic.ts +134 -600
- package/typechain-types/ActionMintRedeemStatic.ts +26 -92
- package/typechain-types/AuraEthxBbAWethSY.ts +1532 -0
- package/typechain-types/AuraSwEthBbAWethSYV2.ts +1532 -0
- package/typechain-types/AutomateReady.ts +102 -0
- package/typechain-types/AutomationBase.ts +57 -0
- package/typechain-types/AutomationCompatible.ts +140 -0
- package/typechain-types/AutomationCompatibleInterface.ts +141 -0
- package/typechain-types/BotDecisionHelperBase.ts +508 -0
- package/typechain-types/ChainlinkRelayerAutomation.ts +305 -0
- package/typechain-types/ChainlinkRelayerGelato.ts +311 -0
- package/typechain-types/ComposableStablePreviewProxy.ts +352 -0
- package/typechain-types/ComposableStablePreviewV4.ts +217 -0
- package/typechain-types/ComposableStablePreviewV5.ts +217 -0
- package/typechain-types/{CamelotV1Preview.ts → HLPPricingHelper.ts} +50 -84
- package/typechain-types/IAnkrBNB.ts +150 -0
- package/typechain-types/IAnkrLiquidStaking.ts +253 -0
- package/typechain-types/IAutomate.ts +203 -0
- package/typechain-types/IBotDecisionHelper.ts +208 -239
- package/typechain-types/IEUSD.ts +194 -0
- package/typechain-types/IFluxErc20.ts +298 -0
- package/typechain-types/IFluxInterestRateModel.ts +113 -0
- package/typechain-types/IHLPStaking.ts +154 -0
- package/typechain-types/IHMXCalculator.ts +96 -0
- package/typechain-types/IHMXCompounder.ts +122 -0
- package/typechain-types/IHMXStaking.ts +165 -0
- package/typechain-types/IHMXVester.ts +163 -0
- package/typechain-types/IInterestUSTP.ts +156 -0
- package/typechain-types/IKyberElasticFactory.ts +734 -0
- package/typechain-types/IKyberElasticPool.ts +514 -0
- package/typechain-types/IKyberElasticRouter.ts +315 -0
- package/typechain-types/IKyberLiquidityMining.ts +968 -0
- package/typechain-types/IKyberMathHelper.ts +231 -0
- package/typechain-types/IKyberPositionManager.ts +773 -0
- package/typechain-types/ILongYieldDecisionHelper.ts +512 -0
- package/typechain-types/ILongYieldTradingBot.ts +197 -502
- package/typechain-types/IOpsProxyFactory.ts +93 -0
- package/typechain-types/IPActionMarketAuxStatic.ts +38 -191
- package/typechain-types/IPActionMarketCoreStatic.ts +134 -600
- package/typechain-types/IPActionMintRedeemStatic.ts +26 -92
- package/typechain-types/IPComposableStablePreview.ts +217 -0
- package/typechain-types/IPExternalRewardDistributor.ts +198 -0
- package/typechain-types/IPGauge.ts +3 -23
- package/typechain-types/IPMarket.ts +0 -18
- package/typechain-types/IPMarketFactoryV2.ts +253 -0
- package/typechain-types/{ICamelotSY.ts → IPOracleForSy.ts} +13 -26
- package/typechain-types/IPRouterStatic.ts +197 -888
- package/typechain-types/IRebasingUSTP.ts +133 -0
- package/typechain-types/IShortYieldDecisionHelper.ts +476 -0
- package/typechain-types/IShortYieldTradingBot.ts +574 -0
- package/typechain-types/IStaderStakeManager.ts +700 -0
- package/typechain-types/{IExecutorHelper2.ts → ISwETH.ts} +40 -32
- package/typechain-types/ITaskTreasuryUpgradable.ts +160 -0
- package/typechain-types/ITradingBotBase.ts +97 -247
- package/typechain-types/IUSTP.ts +127 -0
- package/typechain-types/IVersion.ts +81 -0
- package/typechain-types/KyberMathHelper.ts +583 -0
- package/typechain-types/KyberNftManagerBase.ts +364 -0
- package/typechain-types/LegacyNFTHelper.ts +87 -0
- package/typechain-types/LongYieldActionLib.ts +57 -0
- package/typechain-types/LongYieldDecisionHelper.ts +663 -0
- package/typechain-types/LongYieldTradingBot.ts +1374 -437
- package/typechain-types/PendleAnkrBNBSY.ts +1235 -0
- package/typechain-types/PendleAuraWethVethSY.ts +1511 -0
- package/typechain-types/PendleAuraWstethAnkreth.ts +1511 -0
- package/typechain-types/PendleBridgedLSDSY.ts +1222 -0
- package/typechain-types/PendleChainlinkReceiver.ts +239 -0
- package/typechain-types/PendleChainlinkRelayer.ts +158 -0
- package/typechain-types/{PendleBinanceEth.ts → PendleERC4626SY.ts} +18 -31
- package/typechain-types/PendleETHXSY.ts +1231 -0
- package/typechain-types/PendleEUSDSY.ts +1216 -0
- package/typechain-types/PendleExternalRewardDistributor.ts +596 -0
- package/typechain-types/PendleFluxLendingSY.ts +1232 -0
- package/typechain-types/PendleGauge.ts +3 -23
- package/typechain-types/PendleGaugeV2.ts +225 -0
- package/typechain-types/PendleHlpSY.ts +1517 -0
- package/typechain-types/PendleIUSTPSY.ts +1255 -0
- package/typechain-types/{PendleCamelotV1SY.ts → PendleKyberElasticSY.ts} +385 -516
- package/typechain-types/PendleMantleStakedEthSY.ts +1222 -0
- package/typechain-types/PendleMarket.ts +0 -18
- package/typechain-types/PendleMarketFactoryV2.ts +932 -0
- package/typechain-types/PendleMarketV2.ts +1311 -0
- package/typechain-types/PendleMulticallV2.ts +241 -0
- package/typechain-types/PendleOracleForSyProxy.ts +275 -0
- package/typechain-types/SDKErrorsDirectory.ts +57 -0
- package/typechain-types/StarNFTV1.ts +880 -0
- package/typechain-types/SwETHSY.ts +1216 -0
- package/typechain-types/TradingBotBase.ts +1275 -157
- package/typechain-types/TvlLib.ts +215 -0
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +7 -83
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +23 -23
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +5 -43
- package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/AuraEthxBbAWethSY__factory.ts +1240 -0
- package/typechain-types/factories/AuraSwEthBbAWethSYV2__factory.ts +1244 -0
- package/typechain-types/factories/{ICamelotSY__factory.ts → AutomateReady__factory.ts} +9 -9
- package/typechain-types/factories/AutomationBase__factory.ts +69 -0
- package/typechain-types/factories/AutomationCompatibleInterface__factory.ts +67 -0
- package/typechain-types/factories/AutomationCompatible__factory.ts +72 -0
- package/typechain-types/factories/BotDecisionHelperBase__factory.ts +835 -0
- package/typechain-types/factories/Broadcaster__factory.ts +1 -1
- package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
- package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
- package/typechain-types/factories/BulkSeller__factory.ts +1 -1
- package/typechain-types/factories/ChainlinkRelayerAutomation__factory.ts +238 -0
- package/typechain-types/factories/ChainlinkRelayerGelato__factory.ts +263 -0
- package/typechain-types/factories/ComposableStablePreviewProxy__factory.ts +288 -0
- package/typechain-types/factories/ComposableStablePreviewV4__factory.ts +190 -0
- package/typechain-types/factories/ComposableStablePreviewV5__factory.ts +190 -0
- package/typechain-types/factories/Errors__factory.ts +150 -1
- package/typechain-types/factories/HLPPricingHelper__factory.ts +311 -0
- package/typechain-types/factories/IAnkrBNB__factory.ts +74 -0
- package/typechain-types/factories/IAnkrLiquidStaking__factory.ts +123 -0
- package/typechain-types/factories/IAutomate__factory.ts +126 -0
- package/typechain-types/factories/IBotDecisionHelper__factory.ts +377 -615
- package/typechain-types/factories/IEUSD__factory.ts +101 -0
- package/typechain-types/factories/IFluxErc20__factory.ts +178 -0
- package/typechain-types/factories/{IExecutorHelper2__factory.ts → IFluxInterestRateModel__factory.ts} +19 -15
- package/typechain-types/factories/IHLPStaking__factory.ts +67 -0
- package/typechain-types/factories/IHMXCalculator__factory.ts +45 -0
- package/typechain-types/factories/IHMXCompounder__factory.ts +59 -0
- package/typechain-types/factories/IHMXStaking__factory.ts +78 -0
- package/typechain-types/factories/IHMXVester__factory.ts +85 -0
- package/typechain-types/factories/IInterestUSTP__factory.ts +75 -0
- package/typechain-types/factories/IKyberElasticFactory__factory.ts +455 -0
- package/typechain-types/factories/IKyberElasticPool__factory.ts +315 -0
- package/typechain-types/factories/IKyberElasticRouter__factory.ts +240 -0
- package/typechain-types/factories/IKyberLiquidityMining__factory.ts +913 -0
- package/typechain-types/factories/IKyberMathHelper__factory.ts +143 -0
- package/typechain-types/factories/IKyberPositionManager__factory.ts +633 -0
- package/typechain-types/factories/ILongYieldDecisionHelper__factory.ts +717 -0
- package/typechain-types/factories/ILongYieldTradingBot__factory.ts +250 -658
- package/typechain-types/factories/IOpsProxyFactory__factory.ts +50 -0
- package/typechain-types/factories/IPActionMarketAuxStatic__factory.ts +6 -82
- package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +22 -22
- package/typechain-types/factories/IPActionMintRedeemStatic__factory.ts +4 -42
- package/typechain-types/factories/IPComposableStablePreview__factory.ts +152 -0
- package/typechain-types/factories/IPExternalRewardDistributor__factory.ts +128 -0
- package/typechain-types/factories/IPGauge__factory.ts +0 -19
- package/typechain-types/factories/IPMarketFactoryV2__factory.ts +181 -0
- package/typechain-types/factories/IPMarket__factory.ts +0 -19
- package/typechain-types/factories/IPOracleForSy__factory.ts +36 -0
- package/typechain-types/factories/IPRouterStatic__factory.ts +32 -146
- package/typechain-types/factories/IRebasingUSTP__factory.ts +49 -0
- package/typechain-types/factories/IShortYieldDecisionHelper__factory.ts +698 -0
- package/typechain-types/factories/IShortYieldTradingBot__factory.ts +813 -0
- package/typechain-types/factories/IStaderStakeManager__factory.ts +435 -0
- package/typechain-types/factories/ISwETH__factory.ts +53 -0
- package/typechain-types/factories/ITaskTreasuryUpgradable__factory.ts +76 -0
- package/typechain-types/factories/ITradingBotBase__factory.ts +138 -227
- package/typechain-types/factories/IUSTP__factory.ts +46 -0
- package/typechain-types/factories/IVersion__factory.ts +36 -0
- package/typechain-types/factories/KyberMathHelper__factory.ts +417 -0
- package/typechain-types/factories/KyberNftManagerBase__factory.ts +279 -0
- package/typechain-types/factories/LegacyNFTHelper__factory.ts +83 -0
- package/typechain-types/factories/LongYieldActionLib__factory.ts +207 -0
- package/typechain-types/factories/LongYieldDecisionHelper__factory.ts +1468 -0
- package/typechain-types/factories/LongYieldTradingBot__factory.ts +1153 -748
- package/typechain-types/factories/MarketExtLib__factory.ts +1 -1
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/PendleAnkrBNBSY__factory.ts +1100 -0
- package/typechain-types/factories/PendleArbitrumStakedEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraBbAWethSwethSY__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethAnkrethSYV2__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethRocketEthSYV2__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethStafiEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethVethSY__factory.ts +1231 -0
- package/typechain-types/factories/PendleAuraWethWstethSYV2__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWstethAnkreth__factory.ts +1244 -0
- package/typechain-types/factories/PendleBridgedLSDSY__factory.ts +1064 -0
- package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +1 -1
- package/typechain-types/factories/PendleChainlinkReceiver__factory.ts +216 -0
- package/typechain-types/factories/PendleChainlinkRelayer__factory.ts +180 -0
- package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
- package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
- package/typechain-types/factories/PendleERC4626SY__factory.ts +1030 -0
- package/typechain-types/factories/PendleETHXSY__factory.ts +1059 -0
- package/typechain-types/factories/PendleEUSDSY__factory.ts +1022 -0
- package/typechain-types/factories/PendleExternalRewardDistributor__factory.ts +437 -0
- package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleFluxLendingSY__factory.ts +1049 -0
- package/typechain-types/factories/PendleGDaiSY__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
- package/typechain-types/factories/{CamelotV1LpHelper__factory.ts → PendleGaugeV2__factory.ts} +50 -53
- package/typechain-types/factories/PendleGauge__factory.ts +0 -19
- package/typechain-types/factories/PendleGlpSY__factory.ts +1 -1
- package/typechain-types/factories/PendleHlpSY__factory.ts +1283 -0
- package/typechain-types/factories/PendleIUSTPSY__factory.ts +1061 -0
- package/typechain-types/factories/PendleKyberElasticSY__factory.ts +1512 -0
- package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
- package/typechain-types/factories/PendleLpGlpOracle__factory.ts +1 -1
- package/typechain-types/factories/PendleMantleStakedEthSY__factory.ts +1068 -0
- package/typechain-types/factories/PendleMarketFactoryV2__factory.ts +770 -0
- package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketV2__factory.ts +1299 -0
- package/typechain-types/factories/PendleMarket__factory.ts +1 -20
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleMulticallV2__factory.ts +212 -0
- package/typechain-types/factories/PendleOracleForSyProxy__factory.ts +211 -0
- package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -1
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendlePtGlpOracle__factory.ts +1 -1
- package/typechain-types/factories/PendlePtOracle__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleSfrxEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleStargateLPSY__factory.ts +1 -1
- package/typechain-types/factories/PendleThenaSY__factory.ts +1 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleWbEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/PtAndLpToAsset__factory.ts +1 -1
- package/typechain-types/factories/SAPE__factory.ts +1 -1
- package/typechain-types/factories/SDKErrorsDirectory__factory.ts +1596 -0
- package/typechain-types/factories/StarNFTV1__factory.ts +584 -0
- package/typechain-types/factories/SwETHSY__factory.ts +1022 -0
- package/typechain-types/factories/ThenaPreview__factory.ts +1 -1
- package/typechain-types/factories/TradingBotBase__factory.ts +1258 -230
- package/typechain-types/factories/TvlLib__factory.ts +309 -0
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +115 -232
- package/typechain-types/index.ts +34 -50
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.json +0 -976
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWbEthSY.sol/PendleWbEthSY.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWbEthSY.sol/PendleWbEthSY.json +0 -979
- package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/BinanceEth/IWBETH.sol/IWBETH.json +0 -42
- package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/PtAndLpToAsset.sol/PtAndLpToAsset.json +0 -97
- package/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol +0 -120
- package/contracts/core/StandardizedYield/implementations/PendleWbEthSY.sol +0 -108
- package/contracts/interfaces/BinanceEth/IWBETH.sol +0 -9
- package/contracts/offchain-helpers/PtAndLpToAsset.sol +0 -62
- package/deployments/42161-markets/RETH-ARBITRUM-JUNE2025.json +0 -10
- package/deployments/42161-markets/WSTETH-ARBITRUM-JUNE2024.json +0 -10
- package/deployments/42161-markets/WSTETH-ARBITRUM-JUNE2025.json +0 -10
- package/deployments/56-core.json +0 -28
- package/deployments/56-markets/THENA-FRXETH-ETH-JUNE2024.json +0 -10
- package/deployments/56-markets/WBETH-DEC2024.json +0 -10
- package/deployments/56-offchain-helper.json +0 -4
- package/typechain-types/BotActionCallback.ts +0 -763
- package/typechain-types/BotActionHelper.ts +0 -763
- package/typechain-types/BotDecisionHelper.ts +0 -527
- package/typechain-types/BotDecisionLib.ts +0 -335
- package/typechain-types/CamelotV1LpHelper.ts +0 -203
- package/typechain-types/IExecutorHelper1.ts +0 -643
- package/typechain-types/IExecutorHelperEthereum1.ts +0 -643
- package/typechain-types/PendleSwapArbitrum.ts +0 -126
- package/typechain-types/PendleSwapEthereum.ts +0 -126
- package/typechain-types/TradingBotOffchain.ts +0 -568
- package/typechain-types/factories/BotActionCallback__factory.ts +0 -678
- package/typechain-types/factories/BotActionHelper__factory.ts +0 -678
- package/typechain-types/factories/BotDecisionHelper__factory.ts +0 -1123
- package/typechain-types/factories/BotDecisionLib__factory.ts +0 -642
- package/typechain-types/factories/CamelotV1Preview__factory.ts +0 -309
- package/typechain-types/factories/IExecutorHelper1__factory.ts +0 -403
- package/typechain-types/factories/IExecutorHelperEthereum1__factory.ts +0 -407
- package/typechain-types/factories/PendleBinanceEth__factory.ts +0 -1052
- package/typechain-types/factories/PendleCamelotV1SY__factory.ts +0 -1595
- package/typechain-types/factories/PendleSwapArbitrum__factory.ts +0 -129
- package/typechain-types/factories/PendleSwapEthereum__factory.ts +0 -129
- package/typechain-types/factories/TradingBotOffchain__factory.ts +0 -1133
|
@@ -46,70 +46,6 @@ const _abi = [
|
|
|
46
46
|
name: "botParams",
|
|
47
47
|
type: "tuple",
|
|
48
48
|
},
|
|
49
|
-
{
|
|
50
|
-
indexed: false,
|
|
51
|
-
internalType: "uint256",
|
|
52
|
-
name: "maxSyIn",
|
|
53
|
-
type: "uint256",
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
indexed: false,
|
|
57
|
-
internalType: "uint256",
|
|
58
|
-
name: "netSyIn",
|
|
59
|
-
type: "uint256",
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
indexed: false,
|
|
63
|
-
internalType: "uint256",
|
|
64
|
-
name: "netLpOut",
|
|
65
|
-
type: "uint256",
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
name: "AddLiqFromSy",
|
|
69
|
-
type: "event",
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
anonymous: false,
|
|
73
|
-
inputs: [
|
|
74
|
-
{
|
|
75
|
-
components: [
|
|
76
|
-
{
|
|
77
|
-
internalType: "uint256",
|
|
78
|
-
name: "guessMin",
|
|
79
|
-
type: "uint256",
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
internalType: "uint256",
|
|
83
|
-
name: "guessMax",
|
|
84
|
-
type: "uint256",
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
internalType: "uint256",
|
|
88
|
-
name: "guessOffchain",
|
|
89
|
-
type: "uint256",
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
internalType: "uint256",
|
|
93
|
-
name: "maxIteration",
|
|
94
|
-
type: "uint256",
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
internalType: "uint256",
|
|
98
|
-
name: "eps",
|
|
99
|
-
type: "uint256",
|
|
100
|
-
},
|
|
101
|
-
],
|
|
102
|
-
indexed: false,
|
|
103
|
-
internalType: "struct ApproxParams",
|
|
104
|
-
name: "botParams",
|
|
105
|
-
type: "tuple",
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
indexed: false,
|
|
109
|
-
internalType: "uint256",
|
|
110
|
-
name: "maxYtIn",
|
|
111
|
-
type: "uint256",
|
|
112
|
-
},
|
|
113
49
|
{
|
|
114
50
|
indexed: false,
|
|
115
51
|
internalType: "uint256",
|
|
@@ -129,45 +65,6 @@ const _abi = [
|
|
|
129
65
|
{
|
|
130
66
|
anonymous: false,
|
|
131
67
|
inputs: [
|
|
132
|
-
{
|
|
133
|
-
components: [
|
|
134
|
-
{
|
|
135
|
-
internalType: "uint256",
|
|
136
|
-
name: "guessMin",
|
|
137
|
-
type: "uint256",
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
internalType: "uint256",
|
|
141
|
-
name: "guessMax",
|
|
142
|
-
type: "uint256",
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
internalType: "uint256",
|
|
146
|
-
name: "guessOffchain",
|
|
147
|
-
type: "uint256",
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
internalType: "uint256",
|
|
151
|
-
name: "maxIteration",
|
|
152
|
-
type: "uint256",
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
internalType: "uint256",
|
|
156
|
-
name: "eps",
|
|
157
|
-
type: "uint256",
|
|
158
|
-
},
|
|
159
|
-
],
|
|
160
|
-
indexed: false,
|
|
161
|
-
internalType: "struct ApproxParams",
|
|
162
|
-
name: "botParams",
|
|
163
|
-
type: "tuple",
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
indexed: false,
|
|
167
|
-
internalType: "uint256",
|
|
168
|
-
name: "maxSyIn",
|
|
169
|
-
type: "uint256",
|
|
170
|
-
},
|
|
171
68
|
{
|
|
172
69
|
indexed: false,
|
|
173
70
|
internalType: "uint256",
|
|
@@ -199,12 +96,6 @@ const _abi = [
|
|
|
199
96
|
name: "netSyOut",
|
|
200
97
|
type: "uint256",
|
|
201
98
|
},
|
|
202
|
-
{
|
|
203
|
-
indexed: false,
|
|
204
|
-
internalType: "uint256",
|
|
205
|
-
name: "netPendleOut",
|
|
206
|
-
type: "uint256",
|
|
207
|
-
},
|
|
208
99
|
],
|
|
209
100
|
name: "ClaimAndCompound",
|
|
210
101
|
type: "event",
|
|
@@ -277,12 +168,6 @@ const _abi = [
|
|
|
277
168
|
name: "botParams",
|
|
278
169
|
type: "tuple",
|
|
279
170
|
},
|
|
280
|
-
{
|
|
281
|
-
indexed: false,
|
|
282
|
-
internalType: "uint256",
|
|
283
|
-
name: "maxLpRemoved",
|
|
284
|
-
type: "uint256",
|
|
285
|
-
},
|
|
286
171
|
{
|
|
287
172
|
indexed: false,
|
|
288
173
|
internalType: "uint256",
|
|
@@ -299,64 +184,6 @@ const _abi = [
|
|
|
299
184
|
name: "RemoveLiqToYt",
|
|
300
185
|
type: "event",
|
|
301
186
|
},
|
|
302
|
-
{
|
|
303
|
-
anonymous: false,
|
|
304
|
-
inputs: [
|
|
305
|
-
{
|
|
306
|
-
components: [
|
|
307
|
-
{
|
|
308
|
-
internalType: "uint256",
|
|
309
|
-
name: "guessMin",
|
|
310
|
-
type: "uint256",
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
internalType: "uint256",
|
|
314
|
-
name: "guessMax",
|
|
315
|
-
type: "uint256",
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
internalType: "uint256",
|
|
319
|
-
name: "guessOffchain",
|
|
320
|
-
type: "uint256",
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
internalType: "uint256",
|
|
324
|
-
name: "maxIteration",
|
|
325
|
-
type: "uint256",
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
internalType: "uint256",
|
|
329
|
-
name: "eps",
|
|
330
|
-
type: "uint256",
|
|
331
|
-
},
|
|
332
|
-
],
|
|
333
|
-
indexed: false,
|
|
334
|
-
internalType: "struct ApproxParams",
|
|
335
|
-
name: "botParams",
|
|
336
|
-
type: "tuple",
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
indexed: false,
|
|
340
|
-
internalType: "uint256",
|
|
341
|
-
name: "maxSyIn",
|
|
342
|
-
type: "uint256",
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
indexed: false,
|
|
346
|
-
internalType: "uint256",
|
|
347
|
-
name: "exactYtOut",
|
|
348
|
-
type: "uint256",
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
indexed: false,
|
|
352
|
-
internalType: "uint256",
|
|
353
|
-
name: "netSyIn",
|
|
354
|
-
type: "uint256",
|
|
355
|
-
},
|
|
356
|
-
],
|
|
357
|
-
name: "SwapSyToYt",
|
|
358
|
-
type: "event",
|
|
359
|
-
},
|
|
360
187
|
{
|
|
361
188
|
anonymous: false,
|
|
362
189
|
inputs: [
|
|
@@ -381,111 +208,57 @@ const _abi = [
|
|
|
381
208
|
{
|
|
382
209
|
components: [
|
|
383
210
|
{
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
internalType: "uint256",
|
|
415
|
-
name: "minLpOut",
|
|
416
|
-
type: "uint256",
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
internalType: "uint256",
|
|
420
|
-
name: "maxSyIn",
|
|
421
|
-
type: "uint256",
|
|
422
|
-
},
|
|
423
|
-
],
|
|
424
|
-
name: "addLiqFromSy",
|
|
425
|
-
outputs: [
|
|
426
|
-
{
|
|
427
|
-
internalType: "uint256",
|
|
428
|
-
name: "netPtFromSwap",
|
|
429
|
-
type: "uint256",
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
internalType: "uint256",
|
|
433
|
-
name: "netLpOut",
|
|
434
|
-
type: "uint256",
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
internalType: "uint256",
|
|
438
|
-
name: "netSyIn",
|
|
439
|
-
type: "uint256",
|
|
440
|
-
},
|
|
441
|
-
],
|
|
442
|
-
stateMutability: "nonpayable",
|
|
443
|
-
type: "function",
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
inputs: [
|
|
447
|
-
{
|
|
448
|
-
components: [
|
|
449
|
-
{
|
|
450
|
-
internalType: "uint256",
|
|
451
|
-
name: "guessMin",
|
|
452
|
-
type: "uint256",
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
internalType: "uint256",
|
|
456
|
-
name: "guessMax",
|
|
457
|
-
type: "uint256",
|
|
211
|
+
components: [
|
|
212
|
+
{
|
|
213
|
+
internalType: "uint256",
|
|
214
|
+
name: "guessMin",
|
|
215
|
+
type: "uint256",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
internalType: "uint256",
|
|
219
|
+
name: "guessMax",
|
|
220
|
+
type: "uint256",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
internalType: "uint256",
|
|
224
|
+
name: "guessOffchain",
|
|
225
|
+
type: "uint256",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
internalType: "uint256",
|
|
229
|
+
name: "maxIteration",
|
|
230
|
+
type: "uint256",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
internalType: "uint256",
|
|
234
|
+
name: "eps",
|
|
235
|
+
type: "uint256",
|
|
236
|
+
},
|
|
237
|
+
],
|
|
238
|
+
internalType: "struct ApproxParams",
|
|
239
|
+
name: "botParams",
|
|
240
|
+
type: "tuple",
|
|
458
241
|
},
|
|
459
242
|
{
|
|
460
243
|
internalType: "uint256",
|
|
461
|
-
name: "
|
|
244
|
+
name: "minLpOut",
|
|
462
245
|
type: "uint256",
|
|
463
246
|
},
|
|
464
247
|
{
|
|
465
248
|
internalType: "uint256",
|
|
466
|
-
name: "
|
|
249
|
+
name: "targetIy",
|
|
467
250
|
type: "uint256",
|
|
468
251
|
},
|
|
469
252
|
{
|
|
470
|
-
internalType: "
|
|
471
|
-
name: "
|
|
472
|
-
type: "
|
|
253
|
+
internalType: "int256",
|
|
254
|
+
name: "currentBin",
|
|
255
|
+
type: "int256",
|
|
473
256
|
},
|
|
474
257
|
],
|
|
475
|
-
internalType: "struct
|
|
476
|
-
name: "
|
|
258
|
+
internalType: "struct ILongYieldTradingBot.AddLiqFromYtInput",
|
|
259
|
+
name: "inputParams",
|
|
477
260
|
type: "tuple",
|
|
478
261
|
},
|
|
479
|
-
{
|
|
480
|
-
internalType: "uint256",
|
|
481
|
-
name: "minLpOut",
|
|
482
|
-
type: "uint256",
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
internalType: "uint256",
|
|
486
|
-
name: "maxYtIn",
|
|
487
|
-
type: "uint256",
|
|
488
|
-
},
|
|
489
262
|
],
|
|
490
263
|
name: "addLiqFromYt",
|
|
491
264
|
outputs: [
|
|
@@ -510,46 +283,9 @@ const _abi = [
|
|
|
510
283
|
},
|
|
511
284
|
{
|
|
512
285
|
inputs: [
|
|
513
|
-
{
|
|
514
|
-
internalType: "address",
|
|
515
|
-
name: "router",
|
|
516
|
-
type: "address",
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
components: [
|
|
520
|
-
{
|
|
521
|
-
internalType: "uint256",
|
|
522
|
-
name: "guessMin",
|
|
523
|
-
type: "uint256",
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
internalType: "uint256",
|
|
527
|
-
name: "guessMax",
|
|
528
|
-
type: "uint256",
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
internalType: "uint256",
|
|
532
|
-
name: "guessOffchain",
|
|
533
|
-
type: "uint256",
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
internalType: "uint256",
|
|
537
|
-
name: "maxIteration",
|
|
538
|
-
type: "uint256",
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
internalType: "uint256",
|
|
542
|
-
name: "eps",
|
|
543
|
-
type: "uint256",
|
|
544
|
-
},
|
|
545
|
-
],
|
|
546
|
-
internalType: "struct ApproxParams",
|
|
547
|
-
name: "botParams",
|
|
548
|
-
type: "tuple",
|
|
549
|
-
},
|
|
550
286
|
{
|
|
551
287
|
internalType: "uint256",
|
|
552
|
-
name: "
|
|
288
|
+
name: "netSyIn",
|
|
553
289
|
type: "uint256",
|
|
554
290
|
},
|
|
555
291
|
{
|
|
@@ -565,11 +301,6 @@ const _abi = [
|
|
|
565
301
|
],
|
|
566
302
|
name: "addLiqKeepYt",
|
|
567
303
|
outputs: [
|
|
568
|
-
{
|
|
569
|
-
internalType: "uint256",
|
|
570
|
-
name: "netSyIn",
|
|
571
|
-
type: "uint256",
|
|
572
|
-
},
|
|
573
304
|
{
|
|
574
305
|
internalType: "uint256",
|
|
575
306
|
name: "netLpOut",
|
|
@@ -577,171 +308,15 @@ const _abi = [
|
|
|
577
308
|
},
|
|
578
309
|
{
|
|
579
310
|
internalType: "uint256",
|
|
580
|
-
name: "netYtOut",
|
|
581
|
-
type: "uint256",
|
|
582
|
-
},
|
|
583
|
-
],
|
|
584
|
-
stateMutability: "nonpayable",
|
|
585
|
-
type: "function",
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
inputs: [
|
|
589
|
-
{
|
|
590
|
-
components: [
|
|
591
|
-
{
|
|
592
|
-
internalType: "address[]",
|
|
593
|
-
name: "tokens",
|
|
594
|
-
type: "address[]",
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
internalType: "address",
|
|
598
|
-
name: "spender",
|
|
599
|
-
type: "address",
|
|
600
|
-
},
|
|
601
|
-
],
|
|
602
|
-
internalType: "struct ITradingBotBase.MultiApproval[]",
|
|
603
|
-
name: "arr",
|
|
604
|
-
type: "tuple[]",
|
|
605
|
-
},
|
|
606
|
-
],
|
|
607
|
-
name: "approveInf",
|
|
608
|
-
outputs: [],
|
|
609
|
-
stateMutability: "nonpayable",
|
|
610
|
-
type: "function",
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
inputs: [
|
|
614
|
-
{
|
|
615
|
-
internalType: "address",
|
|
616
|
-
name: "router",
|
|
617
|
-
type: "address",
|
|
618
|
-
},
|
|
619
|
-
{
|
|
620
|
-
components: [
|
|
621
|
-
{
|
|
622
|
-
internalType: "address",
|
|
623
|
-
name: "tokenIn",
|
|
624
|
-
type: "address",
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
internalType: "uint256",
|
|
628
|
-
name: "netTokenIn",
|
|
629
|
-
type: "uint256",
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
internalType: "address",
|
|
633
|
-
name: "tokenMintSy",
|
|
634
|
-
type: "address",
|
|
635
|
-
},
|
|
636
|
-
{
|
|
637
|
-
internalType: "address",
|
|
638
|
-
name: "bulk",
|
|
639
|
-
type: "address",
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
internalType: "address",
|
|
643
|
-
name: "pendleSwap",
|
|
644
|
-
type: "address",
|
|
645
|
-
},
|
|
646
|
-
{
|
|
647
|
-
components: [
|
|
648
|
-
{
|
|
649
|
-
internalType: "enum SwapType",
|
|
650
|
-
name: "swapType",
|
|
651
|
-
type: "uint8",
|
|
652
|
-
},
|
|
653
|
-
{
|
|
654
|
-
internalType: "address",
|
|
655
|
-
name: "extRouter",
|
|
656
|
-
type: "address",
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
internalType: "bytes",
|
|
660
|
-
name: "extCalldata",
|
|
661
|
-
type: "bytes",
|
|
662
|
-
},
|
|
663
|
-
{
|
|
664
|
-
internalType: "bool",
|
|
665
|
-
name: "needScale",
|
|
666
|
-
type: "bool",
|
|
667
|
-
},
|
|
668
|
-
],
|
|
669
|
-
internalType: "struct SwapData",
|
|
670
|
-
name: "swapData",
|
|
671
|
-
type: "tuple",
|
|
672
|
-
},
|
|
673
|
-
],
|
|
674
|
-
internalType: "struct TokenInput[]",
|
|
675
|
-
name: "inps",
|
|
676
|
-
type: "tuple[]",
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
internalType: "uint256",
|
|
680
|
-
name: "minSyOut",
|
|
681
|
-
type: "uint256",
|
|
682
|
-
},
|
|
683
|
-
],
|
|
684
|
-
name: "claimAndCompound",
|
|
685
|
-
outputs: [
|
|
686
|
-
{
|
|
687
|
-
internalType: "uint256",
|
|
688
|
-
name: "netSyOut",
|
|
689
|
-
type: "uint256",
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
internalType: "uint256",
|
|
693
|
-
name: "netPendleOut",
|
|
694
|
-
type: "uint256",
|
|
695
|
-
},
|
|
696
|
-
],
|
|
697
|
-
stateMutability: "nonpayable",
|
|
698
|
-
type: "function",
|
|
699
|
-
},
|
|
700
|
-
{
|
|
701
|
-
inputs: [],
|
|
702
|
-
name: "claimWithoutCompound",
|
|
703
|
-
outputs: [
|
|
704
|
-
{
|
|
705
|
-
components: [
|
|
706
|
-
{
|
|
707
|
-
internalType: "address",
|
|
708
|
-
name: "token",
|
|
709
|
-
type: "address",
|
|
710
|
-
},
|
|
711
|
-
{
|
|
712
|
-
internalType: "uint256",
|
|
713
|
-
name: "amount",
|
|
714
|
-
type: "uint256",
|
|
715
|
-
},
|
|
716
|
-
],
|
|
717
|
-
internalType: "struct TokenAmount[]",
|
|
718
|
-
name: "rewards",
|
|
719
|
-
type: "tuple[]",
|
|
720
|
-
},
|
|
721
|
-
],
|
|
722
|
-
stateMutability: "nonpayable",
|
|
723
|
-
type: "function",
|
|
724
|
-
},
|
|
725
|
-
{
|
|
726
|
-
inputs: [
|
|
727
|
-
{
|
|
728
|
-
internalType: "uint256",
|
|
729
|
-
name: "netSyIn",
|
|
311
|
+
name: "netYtOut",
|
|
730
312
|
type: "uint256",
|
|
731
313
|
},
|
|
732
314
|
],
|
|
733
|
-
name: "depositSy",
|
|
734
|
-
outputs: [],
|
|
735
315
|
stateMutability: "nonpayable",
|
|
736
316
|
type: "function",
|
|
737
317
|
},
|
|
738
318
|
{
|
|
739
319
|
inputs: [
|
|
740
|
-
{
|
|
741
|
-
internalType: "address",
|
|
742
|
-
name: "router",
|
|
743
|
-
type: "address",
|
|
744
|
-
},
|
|
745
320
|
{
|
|
746
321
|
components: [
|
|
747
322
|
{
|
|
@@ -807,122 +382,168 @@ const _abi = [
|
|
|
807
382
|
type: "uint256",
|
|
808
383
|
},
|
|
809
384
|
],
|
|
810
|
-
name: "
|
|
811
|
-
outputs: [],
|
|
812
|
-
stateMutability: "payable",
|
|
813
|
-
type: "function",
|
|
814
|
-
},
|
|
815
|
-
{
|
|
816
|
-
inputs: [],
|
|
817
|
-
name: "readBotState",
|
|
385
|
+
name: "compound",
|
|
818
386
|
outputs: [
|
|
819
387
|
{
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
name: "lpBalance",
|
|
824
|
-
type: "uint256",
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
internalType: "uint256",
|
|
828
|
-
name: "ytBalance",
|
|
829
|
-
type: "uint256",
|
|
830
|
-
},
|
|
831
|
-
{
|
|
832
|
-
internalType: "uint256",
|
|
833
|
-
name: "syBalance",
|
|
834
|
-
type: "uint256",
|
|
835
|
-
},
|
|
836
|
-
],
|
|
837
|
-
internalType: "struct BotState",
|
|
838
|
-
name: "botState",
|
|
839
|
-
type: "tuple",
|
|
388
|
+
internalType: "uint256",
|
|
389
|
+
name: "netSyOut",
|
|
390
|
+
type: "uint256",
|
|
840
391
|
},
|
|
841
392
|
],
|
|
842
|
-
stateMutability: "
|
|
393
|
+
stateMutability: "nonpayable",
|
|
843
394
|
type: "function",
|
|
844
395
|
},
|
|
845
396
|
{
|
|
846
|
-
inputs: [
|
|
847
|
-
|
|
848
|
-
internalType: "address",
|
|
849
|
-
name: "router",
|
|
850
|
-
type: "address",
|
|
851
|
-
},
|
|
852
|
-
],
|
|
853
|
-
name: "readMarketExtState",
|
|
397
|
+
inputs: [],
|
|
398
|
+
name: "readStrategyData",
|
|
854
399
|
outputs: [
|
|
855
400
|
{
|
|
856
401
|
components: [
|
|
857
402
|
{
|
|
858
403
|
components: [
|
|
859
404
|
{
|
|
860
|
-
internalType: "
|
|
861
|
-
name: "
|
|
862
|
-
type: "
|
|
405
|
+
internalType: "uint256",
|
|
406
|
+
name: "lpBalance",
|
|
407
|
+
type: "uint256",
|
|
863
408
|
},
|
|
864
409
|
{
|
|
865
|
-
internalType: "
|
|
866
|
-
name: "
|
|
867
|
-
type: "
|
|
410
|
+
internalType: "uint256",
|
|
411
|
+
name: "ytBalance",
|
|
412
|
+
type: "uint256",
|
|
868
413
|
},
|
|
869
414
|
{
|
|
870
|
-
internalType: "
|
|
871
|
-
name: "
|
|
872
|
-
type: "
|
|
415
|
+
internalType: "uint256",
|
|
416
|
+
name: "ptBalance",
|
|
417
|
+
type: "uint256",
|
|
873
418
|
},
|
|
874
419
|
{
|
|
875
|
-
internalType: "
|
|
876
|
-
name: "
|
|
877
|
-
type: "
|
|
420
|
+
internalType: "uint256",
|
|
421
|
+
name: "syBalance",
|
|
422
|
+
type: "uint256",
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
internalType: "uint256",
|
|
426
|
+
name: "buyBins",
|
|
427
|
+
type: "uint256",
|
|
428
|
+
},
|
|
429
|
+
],
|
|
430
|
+
internalType: "struct BotState",
|
|
431
|
+
name: "botState",
|
|
432
|
+
type: "tuple",
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
components: [
|
|
436
|
+
{
|
|
437
|
+
components: [
|
|
438
|
+
{
|
|
439
|
+
internalType: "int256",
|
|
440
|
+
name: "totalPt",
|
|
441
|
+
type: "int256",
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
internalType: "int256",
|
|
445
|
+
name: "totalSy",
|
|
446
|
+
type: "int256",
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
internalType: "int256",
|
|
450
|
+
name: "totalLp",
|
|
451
|
+
type: "int256",
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
internalType: "address",
|
|
455
|
+
name: "treasury",
|
|
456
|
+
type: "address",
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
internalType: "int256",
|
|
460
|
+
name: "scalarRoot",
|
|
461
|
+
type: "int256",
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
internalType: "uint256",
|
|
465
|
+
name: "expiry",
|
|
466
|
+
type: "uint256",
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
internalType: "uint256",
|
|
470
|
+
name: "lnFeeRateRoot",
|
|
471
|
+
type: "uint256",
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
internalType: "uint256",
|
|
475
|
+
name: "reserveFeePercent",
|
|
476
|
+
type: "uint256",
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
internalType: "uint256",
|
|
480
|
+
name: "lastLnImpliedRate",
|
|
481
|
+
type: "uint256",
|
|
482
|
+
},
|
|
483
|
+
],
|
|
484
|
+
internalType: "struct MarketState",
|
|
485
|
+
name: "state",
|
|
486
|
+
type: "tuple",
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
internalType: "PYIndex",
|
|
490
|
+
name: "index",
|
|
491
|
+
type: "uint256",
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
internalType: "uint256",
|
|
495
|
+
name: "blockTime",
|
|
496
|
+
type: "uint256",
|
|
497
|
+
},
|
|
498
|
+
],
|
|
499
|
+
internalType: "struct MarketExtState",
|
|
500
|
+
name: "marketExt",
|
|
501
|
+
type: "tuple",
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
components: [
|
|
505
|
+
{
|
|
506
|
+
internalType: "uint256",
|
|
507
|
+
name: "buyYtIy",
|
|
508
|
+
type: "uint256",
|
|
878
509
|
},
|
|
879
510
|
{
|
|
880
|
-
internalType: "
|
|
881
|
-
name: "
|
|
882
|
-
type: "
|
|
511
|
+
internalType: "uint256",
|
|
512
|
+
name: "sellYtIy",
|
|
513
|
+
type: "uint256",
|
|
883
514
|
},
|
|
884
515
|
{
|
|
885
516
|
internalType: "uint256",
|
|
886
|
-
name: "
|
|
517
|
+
name: "targetSyRatio",
|
|
887
518
|
type: "uint256",
|
|
888
519
|
},
|
|
889
520
|
{
|
|
890
521
|
internalType: "uint256",
|
|
891
|
-
name: "
|
|
522
|
+
name: "bufferSyRatio",
|
|
892
523
|
type: "uint256",
|
|
893
524
|
},
|
|
894
525
|
{
|
|
895
526
|
internalType: "uint256",
|
|
896
|
-
name: "
|
|
527
|
+
name: "minYtPtRatio",
|
|
897
528
|
type: "uint256",
|
|
898
529
|
},
|
|
899
530
|
{
|
|
900
531
|
internalType: "uint256",
|
|
901
|
-
name: "
|
|
532
|
+
name: "numOfBins",
|
|
902
533
|
type: "uint256",
|
|
903
534
|
},
|
|
904
535
|
],
|
|
905
|
-
internalType: "struct
|
|
906
|
-
name: "
|
|
536
|
+
internalType: "struct TradingSpecs",
|
|
537
|
+
name: "specs",
|
|
907
538
|
type: "tuple",
|
|
908
539
|
},
|
|
909
|
-
{
|
|
910
|
-
internalType: "PYIndex",
|
|
911
|
-
name: "index",
|
|
912
|
-
type: "uint256",
|
|
913
|
-
},
|
|
914
|
-
{
|
|
915
|
-
internalType: "uint256",
|
|
916
|
-
name: "blockTime",
|
|
917
|
-
type: "uint256",
|
|
918
|
-
},
|
|
919
540
|
],
|
|
920
|
-
internalType: "struct
|
|
921
|
-
name: "
|
|
541
|
+
internalType: "struct StrategyData",
|
|
542
|
+
name: "strategyData",
|
|
922
543
|
type: "tuple",
|
|
923
544
|
},
|
|
924
545
|
],
|
|
925
|
-
stateMutability: "
|
|
546
|
+
stateMutability: "view",
|
|
926
547
|
type: "function",
|
|
927
548
|
},
|
|
928
549
|
{
|
|
@@ -930,93 +551,124 @@ const _abi = [
|
|
|
930
551
|
{
|
|
931
552
|
components: [
|
|
932
553
|
{
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
components: [
|
|
964
|
-
{
|
|
965
|
-
internalType: "uint256",
|
|
966
|
-
name: "guessMin",
|
|
967
|
-
type: "uint256",
|
|
554
|
+
components: [
|
|
555
|
+
{
|
|
556
|
+
internalType: "uint256",
|
|
557
|
+
name: "guessMin",
|
|
558
|
+
type: "uint256",
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
internalType: "uint256",
|
|
562
|
+
name: "guessMax",
|
|
563
|
+
type: "uint256",
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
internalType: "uint256",
|
|
567
|
+
name: "guessOffchain",
|
|
568
|
+
type: "uint256",
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
internalType: "uint256",
|
|
572
|
+
name: "maxIteration",
|
|
573
|
+
type: "uint256",
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
internalType: "uint256",
|
|
577
|
+
name: "eps",
|
|
578
|
+
type: "uint256",
|
|
579
|
+
},
|
|
580
|
+
],
|
|
581
|
+
internalType: "struct ApproxParams",
|
|
582
|
+
name: "botParams",
|
|
583
|
+
type: "tuple",
|
|
968
584
|
},
|
|
969
585
|
{
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
586
|
+
components: [
|
|
587
|
+
{
|
|
588
|
+
internalType: "uint256",
|
|
589
|
+
name: "guessMin",
|
|
590
|
+
type: "uint256",
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
internalType: "uint256",
|
|
594
|
+
name: "guessMax",
|
|
595
|
+
type: "uint256",
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
internalType: "uint256",
|
|
599
|
+
name: "guessOffchain",
|
|
600
|
+
type: "uint256",
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
internalType: "uint256",
|
|
604
|
+
name: "maxIteration",
|
|
605
|
+
type: "uint256",
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
internalType: "uint256",
|
|
609
|
+
name: "eps",
|
|
610
|
+
type: "uint256",
|
|
611
|
+
},
|
|
612
|
+
],
|
|
613
|
+
internalType: "struct ApproxParams",
|
|
614
|
+
name: "guessTotalPtToSwap",
|
|
615
|
+
type: "tuple",
|
|
973
616
|
},
|
|
974
617
|
{
|
|
975
618
|
internalType: "uint256",
|
|
976
|
-
name: "
|
|
619
|
+
name: "minYtOut",
|
|
977
620
|
type: "uint256",
|
|
978
621
|
},
|
|
979
622
|
{
|
|
980
623
|
internalType: "uint256",
|
|
981
|
-
name: "
|
|
624
|
+
name: "targetIy",
|
|
982
625
|
type: "uint256",
|
|
983
626
|
},
|
|
984
627
|
{
|
|
985
|
-
internalType: "
|
|
986
|
-
name: "
|
|
987
|
-
type: "
|
|
628
|
+
internalType: "int256",
|
|
629
|
+
name: "currentBin",
|
|
630
|
+
type: "int256",
|
|
988
631
|
},
|
|
989
632
|
],
|
|
990
|
-
internalType: "struct
|
|
991
|
-
name: "
|
|
633
|
+
internalType: "struct ILongYieldTradingBot.RemoveLiqToYtInput",
|
|
634
|
+
name: "inputParams",
|
|
992
635
|
type: "tuple",
|
|
993
636
|
},
|
|
637
|
+
],
|
|
638
|
+
name: "removeLiqToYt",
|
|
639
|
+
outputs: [
|
|
994
640
|
{
|
|
995
641
|
internalType: "uint256",
|
|
996
|
-
name: "
|
|
642
|
+
name: "netLpRemoved",
|
|
997
643
|
type: "uint256",
|
|
998
644
|
},
|
|
999
645
|
{
|
|
1000
646
|
internalType: "uint256",
|
|
1001
|
-
name: "
|
|
647
|
+
name: "netYtOut",
|
|
1002
648
|
type: "uint256",
|
|
1003
649
|
},
|
|
1004
650
|
],
|
|
1005
|
-
|
|
1006
|
-
|
|
651
|
+
stateMutability: "nonpayable",
|
|
652
|
+
type: "function",
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
inputs: [
|
|
1007
656
|
{
|
|
1008
657
|
internalType: "uint256",
|
|
1009
|
-
name: "
|
|
658
|
+
name: "netLpToRemove",
|
|
1010
659
|
type: "uint256",
|
|
1011
660
|
},
|
|
1012
661
|
{
|
|
1013
662
|
internalType: "uint256",
|
|
1014
|
-
name: "
|
|
663
|
+
name: "minSyOut",
|
|
1015
664
|
type: "uint256",
|
|
1016
665
|
},
|
|
666
|
+
],
|
|
667
|
+
name: "removeLiquidityToSy",
|
|
668
|
+
outputs: [
|
|
1017
669
|
{
|
|
1018
670
|
internalType: "uint256",
|
|
1019
|
-
name: "
|
|
671
|
+
name: "netSyOut",
|
|
1020
672
|
type: "uint256",
|
|
1021
673
|
},
|
|
1022
674
|
],
|
|
@@ -1029,36 +681,36 @@ const _abi = [
|
|
|
1029
681
|
components: [
|
|
1030
682
|
{
|
|
1031
683
|
internalType: "uint256",
|
|
1032
|
-
name: "
|
|
684
|
+
name: "buyYtIy",
|
|
1033
685
|
type: "uint256",
|
|
1034
686
|
},
|
|
1035
687
|
{
|
|
1036
688
|
internalType: "uint256",
|
|
1037
|
-
name: "
|
|
689
|
+
name: "sellYtIy",
|
|
1038
690
|
type: "uint256",
|
|
1039
691
|
},
|
|
1040
692
|
{
|
|
1041
693
|
internalType: "uint256",
|
|
1042
|
-
name: "
|
|
694
|
+
name: "targetSyRatio",
|
|
1043
695
|
type: "uint256",
|
|
1044
696
|
},
|
|
1045
697
|
{
|
|
1046
698
|
internalType: "uint256",
|
|
1047
|
-
name: "
|
|
699
|
+
name: "bufferSyRatio",
|
|
1048
700
|
type: "uint256",
|
|
1049
701
|
},
|
|
1050
702
|
{
|
|
1051
703
|
internalType: "uint256",
|
|
1052
|
-
name: "
|
|
704
|
+
name: "minYtPtRatio",
|
|
1053
705
|
type: "uint256",
|
|
1054
706
|
},
|
|
1055
707
|
{
|
|
1056
708
|
internalType: "uint256",
|
|
1057
|
-
name: "
|
|
709
|
+
name: "numOfBins",
|
|
1058
710
|
type: "uint256",
|
|
1059
711
|
},
|
|
1060
712
|
],
|
|
1061
|
-
internalType: "struct
|
|
713
|
+
internalType: "struct TradingSpecs",
|
|
1062
714
|
name: "_specs",
|
|
1063
715
|
type: "tuple",
|
|
1064
716
|
},
|
|
@@ -1070,85 +722,25 @@ const _abi = [
|
|
|
1070
722
|
},
|
|
1071
723
|
{
|
|
1072
724
|
inputs: [
|
|
1073
|
-
{
|
|
1074
|
-
internalType: "address",
|
|
1075
|
-
name: "router",
|
|
1076
|
-
type: "address",
|
|
1077
|
-
},
|
|
1078
|
-
{
|
|
1079
|
-
components: [
|
|
1080
|
-
{
|
|
1081
|
-
internalType: "uint256",
|
|
1082
|
-
name: "guessMin",
|
|
1083
|
-
type: "uint256",
|
|
1084
|
-
},
|
|
1085
|
-
{
|
|
1086
|
-
internalType: "uint256",
|
|
1087
|
-
name: "guessMax",
|
|
1088
|
-
type: "uint256",
|
|
1089
|
-
},
|
|
1090
|
-
{
|
|
1091
|
-
internalType: "uint256",
|
|
1092
|
-
name: "guessOffchain",
|
|
1093
|
-
type: "uint256",
|
|
1094
|
-
},
|
|
1095
|
-
{
|
|
1096
|
-
internalType: "uint256",
|
|
1097
|
-
name: "maxIteration",
|
|
1098
|
-
type: "uint256",
|
|
1099
|
-
},
|
|
1100
|
-
{
|
|
1101
|
-
internalType: "uint256",
|
|
1102
|
-
name: "eps",
|
|
1103
|
-
type: "uint256",
|
|
1104
|
-
},
|
|
1105
|
-
],
|
|
1106
|
-
internalType: "struct ApproxParams",
|
|
1107
|
-
name: "botParams",
|
|
1108
|
-
type: "tuple",
|
|
1109
|
-
},
|
|
1110
725
|
{
|
|
1111
726
|
internalType: "uint256",
|
|
1112
|
-
name: "
|
|
727
|
+
name: "netYtToSell",
|
|
1113
728
|
type: "uint256",
|
|
1114
729
|
},
|
|
1115
730
|
{
|
|
1116
731
|
internalType: "uint256",
|
|
1117
|
-
name: "
|
|
732
|
+
name: "minSyOut",
|
|
1118
733
|
type: "uint256",
|
|
1119
734
|
},
|
|
1120
735
|
],
|
|
1121
|
-
name: "
|
|
736
|
+
name: "swapYtToSy",
|
|
1122
737
|
outputs: [
|
|
1123
738
|
{
|
|
1124
739
|
internalType: "uint256",
|
|
1125
|
-
name: "
|
|
1126
|
-
type: "uint256",
|
|
1127
|
-
},
|
|
1128
|
-
{
|
|
1129
|
-
internalType: "uint256",
|
|
1130
|
-
name: "netSyIn",
|
|
1131
|
-
type: "uint256",
|
|
1132
|
-
},
|
|
1133
|
-
],
|
|
1134
|
-
stateMutability: "nonpayable",
|
|
1135
|
-
type: "function",
|
|
1136
|
-
},
|
|
1137
|
-
{
|
|
1138
|
-
inputs: [
|
|
1139
|
-
{
|
|
1140
|
-
internalType: "address",
|
|
1141
|
-
name: "token",
|
|
1142
|
-
type: "address",
|
|
1143
|
-
},
|
|
1144
|
-
{
|
|
1145
|
-
internalType: "uint256",
|
|
1146
|
-
name: "amount",
|
|
740
|
+
name: "netSyOut",
|
|
1147
741
|
type: "uint256",
|
|
1148
742
|
},
|
|
1149
743
|
],
|
|
1150
|
-
name: "withdrawFunds",
|
|
1151
|
-
outputs: [],
|
|
1152
744
|
stateMutability: "nonpayable",
|
|
1153
745
|
type: "function",
|
|
1154
746
|
},
|