@pendle/core-v2 2.22.1 → 2.22.2
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/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/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/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/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/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/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/Ankr/PendleAnkrBNBSY.sol/PendleAnkrBNBSY.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/PendleAuraWethVethSY.sol/PendleAuraWethVethSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethVethSY.sol/PendleAuraWethVethSY.json +1166 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWstethAnkreth.sol/PendleAuraWstethAnkreth.dbg.json +1 -1
- 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/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
- 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/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/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/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.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/PendleWbEthSY.sol/PendleWbEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwETH.sol/SwETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/PendleThenaSY.sol/PendleThenaSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaLpHelper.sol/ThenaLpHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaMath.sol/ThenaMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaPreview.sol/IThenaSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/ThenaPreview.sol/ThenaPreview.dbg.json +1 -1
- 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/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/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/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/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/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/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/Ankr/IAnkrBNB.sol/IAnkrBNB.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Ankr/IAnkrLiquidStaking.sol/IAnkrLiquidStaking.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/BinanceEth/IWBETH.sol/IWBETH.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/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/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/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/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/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/IPendlePreviewHelper.sol/IPendlePreviewHelper.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/ISwETH.sol/ISwETH.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/Thena/IThenaFactory.sol/IThenaFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Thena/IThenaGaugeV2.sol/IThenaGaugeV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Thena/IThenaPair.sol/IThenaPair.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Thena/IThenaRouter.sol/IThenaRouter.dbg.json +1 -1
- 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/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
- 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/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/PtAndLpToAsset.sol/PtAndLpToAsset.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/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/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- 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/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/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +1 -1
- 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/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/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethVethSY.sol +147 -0
- package/package.json +1 -1
- package/typechain-types/BotActionCallback.ts +900 -0
- package/typechain-types/BotActionHelper.ts +950 -0
- package/typechain-types/BotDecisionHelper.ts +561 -0
- package/typechain-types/BotDecisionHelperBase.ts +484 -0
- package/typechain-types/BotDecisionLib.ts +335 -0
- package/typechain-types/{PendleCamelotV1RouterHelper.ts → CamelotV1LpHelper.ts} +75 -5
- package/typechain-types/{CamelotV1PreviewHelper.ts → CamelotV1Preview.ts} +23 -63
- package/typechain-types/IBotDecisionHelper.ts +452 -0
- package/typechain-types/ICamelotSY.ts +100 -0
- package/typechain-types/ILongYieldDecisionHelper.ts +486 -0
- package/typechain-types/ILongYieldTradingBot.ts +878 -0
- package/typechain-types/IPExternalRewardDistributor.ts +192 -0
- package/typechain-types/IPMarketFactoryV2.ts +253 -0
- package/typechain-types/IShortYieldDecisionHelper.ts +452 -0
- package/typechain-types/IShortYieldTradingBot.ts +770 -0
- package/typechain-types/ITradingBotBase.ts +569 -0
- package/typechain-types/LongYieldActionHelper.ts +900 -0
- package/typechain-types/LongYieldDecisionHelper.ts +601 -0
- package/typechain-types/LongYieldTradingBot.ts +1364 -0
- package/typechain-types/MarketExtLib.ts +81 -0
- package/typechain-types/PendleAuraWethVethSY.ts +1511 -0
- package/typechain-types/PendleBinanceEth.ts +1229 -0
- package/typechain-types/PendleCamelotV1SY.ts +245 -0
- package/typechain-types/PendleExternalRewardDistributor.ts +546 -0
- package/typechain-types/PendleGaugeV2.ts +225 -0
- package/typechain-types/PendleMarketFactoryV2.ts +930 -0
- package/typechain-types/PendleMarketV2.ts +1311 -0
- package/typechain-types/PendleSwETH.ts +1216 -0
- package/typechain-types/ShortYieldActionHelper.ts +856 -0
- package/typechain-types/ShortYieldDecisionHelper.ts +601 -0
- package/typechain-types/ShortYieldTradingBot.ts +1212 -0
- package/typechain-types/TradingBotBase.ts +856 -0
- package/typechain-types/TradingBotOffchain.ts +568 -0
- package/typechain-types/factories/BotActionCallback__factory.ts +830 -0
- package/typechain-types/factories/BotActionHelper__factory.ts +947 -0
- package/typechain-types/factories/BotDecisionHelperBase__factory.ts +808 -0
- package/typechain-types/factories/BotDecisionHelper__factory.ts +1192 -0
- package/typechain-types/factories/BotDecisionLib__factory.ts +642 -0
- package/typechain-types/factories/{PendleCamelotV1RouterHelper__factory.ts → CamelotV1LpHelper__factory.ts} +60 -12
- package/typechain-types/factories/CamelotV1Preview__factory.ts +309 -0
- package/typechain-types/factories/IBotDecisionHelper__factory.ts +667 -0
- package/typechain-types/factories/ICamelotSY__factory.ts +49 -0
- package/typechain-types/factories/ILongYieldDecisionHelper__factory.ts +690 -0
- package/typechain-types/factories/ILongYieldTradingBot__factory.ts +996 -0
- package/typechain-types/factories/IPExternalRewardDistributor__factory.ts +128 -0
- package/typechain-types/factories/IPMarketFactoryV2__factory.ts +181 -0
- package/typechain-types/factories/IShortYieldDecisionHelper__factory.ts +671 -0
- package/typechain-types/factories/IShortYieldTradingBot__factory.ts +977 -0
- package/typechain-types/factories/ITradingBotBase__factory.ts +530 -0
- package/typechain-types/factories/LongYieldActionHelper__factory.ts +834 -0
- package/typechain-types/factories/LongYieldDecisionHelper__factory.ts +1272 -0
- package/typechain-types/factories/LongYieldTradingBot__factory.ts +1637 -0
- package/typechain-types/factories/MarketExtLib__factory.ts +74 -0
- package/typechain-types/factories/PendleAuraWethVethSY__factory.ts +1231 -0
- package/typechain-types/factories/PendleBinanceEth__factory.ts +1052 -0
- package/typechain-types/factories/PendleCamelotV1SY__factory.ts +156 -9
- package/typechain-types/factories/PendleExternalRewardDistributor__factory.ts +414 -0
- package/typechain-types/factories/PendleGaugeV2__factory.ts +140 -0
- package/typechain-types/factories/PendleMarketFactoryV2__factory.ts +770 -0
- package/typechain-types/factories/PendleMarketV2__factory.ts +1290 -0
- package/typechain-types/factories/PendleSwETH__factory.ts +1022 -0
- package/typechain-types/factories/ShortYieldActionHelper__factory.ts +784 -0
- package/typechain-types/factories/ShortYieldDecisionHelper__factory.ts +1272 -0
- package/typechain-types/factories/ShortYieldTradingBot__factory.ts +1445 -0
- package/typechain-types/factories/TradingBotBase__factory.ts +780 -0
- package/typechain-types/factories/TradingBotOffchain__factory.ts +1133 -0
- package/typechain-types/hardhat.d.ts +153 -0
- package/typechain-types/index.ts +34 -0
- package/typechain-types/IPVotingEscrowSidechain.ts +0 -155
- package/typechain-types/PendleCamelotRewardHelper.ts +0 -347
- package/typechain-types/factories/CamelotV1PreviewHelper__factory.ts +0 -400
- package/typechain-types/factories/IPVotingEscrowSidechain__factory.ts +0 -112
- package/typechain-types/factories/PendleCamelotRewardHelper__factory.ts +0 -317
|
@@ -0,0 +1,1192 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
+
import type {
|
|
7
|
+
BotDecisionHelper,
|
|
8
|
+
BotDecisionHelperInterface,
|
|
9
|
+
} from "../BotDecisionHelper";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [],
|
|
14
|
+
name: "ApproxFail",
|
|
15
|
+
type: "error",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
inputs: [
|
|
19
|
+
{
|
|
20
|
+
internalType: "uint256",
|
|
21
|
+
name: "guessMin",
|
|
22
|
+
type: "uint256",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
internalType: "uint256",
|
|
26
|
+
name: "guessMax",
|
|
27
|
+
type: "uint256",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
internalType: "uint256",
|
|
31
|
+
name: "eps",
|
|
32
|
+
type: "uint256",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
name: "ApproxParamsInvalid",
|
|
36
|
+
type: "error",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
inputs: [],
|
|
40
|
+
name: "BotBinarySearchFail",
|
|
41
|
+
type: "error",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
inputs: [
|
|
45
|
+
{
|
|
46
|
+
internalType: "uint256",
|
|
47
|
+
name: "action",
|
|
48
|
+
type: "uint256",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
internalType: "uint256",
|
|
52
|
+
name: "guessMin",
|
|
53
|
+
type: "uint256",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
internalType: "uint256",
|
|
57
|
+
name: "guessMax",
|
|
58
|
+
type: "uint256",
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
name: "BotBinarySearchInvalidRange",
|
|
62
|
+
type: "error",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
inputs: [
|
|
66
|
+
{
|
|
67
|
+
internalType: "int256",
|
|
68
|
+
name: "exchangeRate",
|
|
69
|
+
type: "int256",
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
name: "MarketExchangeRateBelowOne",
|
|
73
|
+
type: "error",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
inputs: [],
|
|
77
|
+
name: "MarketExpired",
|
|
78
|
+
type: "error",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
inputs: [
|
|
82
|
+
{
|
|
83
|
+
internalType: "int256",
|
|
84
|
+
name: "currentAmount",
|
|
85
|
+
type: "int256",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
internalType: "int256",
|
|
89
|
+
name: "requiredAmount",
|
|
90
|
+
type: "int256",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
name: "MarketInsufficientPtForTrade",
|
|
94
|
+
type: "error",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
inputs: [],
|
|
98
|
+
name: "MarketProportionMustNotEqualOne",
|
|
99
|
+
type: "error",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
inputs: [
|
|
103
|
+
{
|
|
104
|
+
internalType: "int256",
|
|
105
|
+
name: "proportion",
|
|
106
|
+
type: "int256",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
internalType: "int256",
|
|
110
|
+
name: "maxProportion",
|
|
111
|
+
type: "int256",
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
name: "MarketProportionTooHigh",
|
|
115
|
+
type: "error",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
inputs: [
|
|
119
|
+
{
|
|
120
|
+
internalType: "int256",
|
|
121
|
+
name: "rateScalar",
|
|
122
|
+
type: "int256",
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
name: "MarketRateScalarBelowZero",
|
|
126
|
+
type: "error",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
inputs: [],
|
|
130
|
+
name: "MarketZeroLnImpliedRate",
|
|
131
|
+
type: "error",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
inputs: [
|
|
135
|
+
{
|
|
136
|
+
internalType: "int256",
|
|
137
|
+
name: "totalPt",
|
|
138
|
+
type: "int256",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
internalType: "int256",
|
|
142
|
+
name: "totalAsset",
|
|
143
|
+
type: "int256",
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
name: "MarketZeroTotalPtOrTotalAsset",
|
|
147
|
+
type: "error",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
inputs: [],
|
|
151
|
+
name: "INF",
|
|
152
|
+
outputs: [
|
|
153
|
+
{
|
|
154
|
+
internalType: "uint256",
|
|
155
|
+
name: "",
|
|
156
|
+
type: "uint256",
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
stateMutability: "view",
|
|
160
|
+
type: "function",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
inputs: [],
|
|
164
|
+
name: "MINIMAL_EPS",
|
|
165
|
+
outputs: [
|
|
166
|
+
{
|
|
167
|
+
internalType: "uint256",
|
|
168
|
+
name: "",
|
|
169
|
+
type: "uint256",
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
stateMutability: "view",
|
|
173
|
+
type: "function",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
inputs: [
|
|
177
|
+
{
|
|
178
|
+
components: [
|
|
179
|
+
{
|
|
180
|
+
components: [
|
|
181
|
+
{
|
|
182
|
+
internalType: "int256",
|
|
183
|
+
name: "totalPt",
|
|
184
|
+
type: "int256",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
internalType: "int256",
|
|
188
|
+
name: "totalSy",
|
|
189
|
+
type: "int256",
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
internalType: "int256",
|
|
193
|
+
name: "totalLp",
|
|
194
|
+
type: "int256",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
internalType: "address",
|
|
198
|
+
name: "treasury",
|
|
199
|
+
type: "address",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
internalType: "int256",
|
|
203
|
+
name: "scalarRoot",
|
|
204
|
+
type: "int256",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
internalType: "uint256",
|
|
208
|
+
name: "expiry",
|
|
209
|
+
type: "uint256",
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
internalType: "uint256",
|
|
213
|
+
name: "lnFeeRateRoot",
|
|
214
|
+
type: "uint256",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
internalType: "uint256",
|
|
218
|
+
name: "reserveFeePercent",
|
|
219
|
+
type: "uint256",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
internalType: "uint256",
|
|
223
|
+
name: "lastLnImpliedRate",
|
|
224
|
+
type: "uint256",
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
internalType: "struct MarketState",
|
|
228
|
+
name: "state",
|
|
229
|
+
type: "tuple",
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
internalType: "PYIndex",
|
|
233
|
+
name: "index",
|
|
234
|
+
type: "uint256",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
internalType: "uint256",
|
|
238
|
+
name: "blockTime",
|
|
239
|
+
type: "uint256",
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
internalType: "struct MarketExtState",
|
|
243
|
+
name: "marketExt",
|
|
244
|
+
type: "tuple",
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
internalType: "enum ActionType",
|
|
248
|
+
name: "action",
|
|
249
|
+
type: "uint8",
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
internalType: "uint256",
|
|
253
|
+
name: "botParam",
|
|
254
|
+
type: "uint256",
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
components: [
|
|
258
|
+
{
|
|
259
|
+
internalType: "uint256",
|
|
260
|
+
name: "guessMin",
|
|
261
|
+
type: "uint256",
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
internalType: "uint256",
|
|
265
|
+
name: "guessMax",
|
|
266
|
+
type: "uint256",
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
internalType: "uint256",
|
|
270
|
+
name: "guessOffchain",
|
|
271
|
+
type: "uint256",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
internalType: "uint256",
|
|
275
|
+
name: "maxIteration",
|
|
276
|
+
type: "uint256",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
internalType: "uint256",
|
|
280
|
+
name: "eps",
|
|
281
|
+
type: "uint256",
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
internalType: "struct ApproxParams",
|
|
285
|
+
name: "intParams",
|
|
286
|
+
type: "tuple",
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
name: "_searchForIntParam",
|
|
290
|
+
outputs: [
|
|
291
|
+
{
|
|
292
|
+
internalType: "uint256",
|
|
293
|
+
name: "",
|
|
294
|
+
type: "uint256",
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
stateMutability: "pure",
|
|
298
|
+
type: "function",
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
inputs: [
|
|
302
|
+
{
|
|
303
|
+
components: [
|
|
304
|
+
{
|
|
305
|
+
internalType: "uint256",
|
|
306
|
+
name: "lpBalance",
|
|
307
|
+
type: "uint256",
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
internalType: "uint256",
|
|
311
|
+
name: "ytBalance",
|
|
312
|
+
type: "uint256",
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
internalType: "uint256",
|
|
316
|
+
name: "syBalance",
|
|
317
|
+
type: "uint256",
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
internalType: "uint256",
|
|
321
|
+
name: "buyBins",
|
|
322
|
+
type: "uint256",
|
|
323
|
+
},
|
|
324
|
+
],
|
|
325
|
+
internalType: "struct BotState",
|
|
326
|
+
name: "botState",
|
|
327
|
+
type: "tuple",
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
components: [
|
|
331
|
+
{
|
|
332
|
+
components: [
|
|
333
|
+
{
|
|
334
|
+
internalType: "int256",
|
|
335
|
+
name: "totalPt",
|
|
336
|
+
type: "int256",
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
internalType: "int256",
|
|
340
|
+
name: "totalSy",
|
|
341
|
+
type: "int256",
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
internalType: "int256",
|
|
345
|
+
name: "totalLp",
|
|
346
|
+
type: "int256",
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
internalType: "address",
|
|
350
|
+
name: "treasury",
|
|
351
|
+
type: "address",
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
internalType: "int256",
|
|
355
|
+
name: "scalarRoot",
|
|
356
|
+
type: "int256",
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
internalType: "uint256",
|
|
360
|
+
name: "expiry",
|
|
361
|
+
type: "uint256",
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
internalType: "uint256",
|
|
365
|
+
name: "lnFeeRateRoot",
|
|
366
|
+
type: "uint256",
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
internalType: "uint256",
|
|
370
|
+
name: "reserveFeePercent",
|
|
371
|
+
type: "uint256",
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
internalType: "uint256",
|
|
375
|
+
name: "lastLnImpliedRate",
|
|
376
|
+
type: "uint256",
|
|
377
|
+
},
|
|
378
|
+
],
|
|
379
|
+
internalType: "struct MarketState",
|
|
380
|
+
name: "state",
|
|
381
|
+
type: "tuple",
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
internalType: "PYIndex",
|
|
385
|
+
name: "index",
|
|
386
|
+
type: "uint256",
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
internalType: "uint256",
|
|
390
|
+
name: "blockTime",
|
|
391
|
+
type: "uint256",
|
|
392
|
+
},
|
|
393
|
+
],
|
|
394
|
+
internalType: "struct MarketExtState",
|
|
395
|
+
name: "marketExt",
|
|
396
|
+
type: "tuple",
|
|
397
|
+
},
|
|
398
|
+
],
|
|
399
|
+
name: "botExtStats",
|
|
400
|
+
outputs: [
|
|
401
|
+
{
|
|
402
|
+
internalType: "uint256",
|
|
403
|
+
name: "tvlInSy",
|
|
404
|
+
type: "uint256",
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
internalType: "uint256",
|
|
408
|
+
name: "iy",
|
|
409
|
+
type: "uint256",
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
internalType: "uint256",
|
|
413
|
+
name: "currentSyRatio",
|
|
414
|
+
type: "uint256",
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
internalType: "uint256",
|
|
418
|
+
name: "currentYtPtRatio",
|
|
419
|
+
type: "uint256",
|
|
420
|
+
},
|
|
421
|
+
],
|
|
422
|
+
stateMutability: "pure",
|
|
423
|
+
type: "function",
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
inputs: [
|
|
427
|
+
{
|
|
428
|
+
internalType: "address",
|
|
429
|
+
name: "botAddress",
|
|
430
|
+
type: "address",
|
|
431
|
+
},
|
|
432
|
+
],
|
|
433
|
+
name: "getActionDetails",
|
|
434
|
+
outputs: [
|
|
435
|
+
{
|
|
436
|
+
components: [
|
|
437
|
+
{
|
|
438
|
+
internalType: "enum ActionType",
|
|
439
|
+
name: "action",
|
|
440
|
+
type: "uint8",
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
internalType: "int256",
|
|
444
|
+
name: "currentBin",
|
|
445
|
+
type: "int256",
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
internalType: "uint256",
|
|
449
|
+
name: "guessBotParams",
|
|
450
|
+
type: "uint256",
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
internalType: "uint256",
|
|
454
|
+
name: "guessIntParams",
|
|
455
|
+
type: "uint256",
|
|
456
|
+
},
|
|
457
|
+
],
|
|
458
|
+
internalType: "struct IBotDecisionHelper.ActionToTakeResult",
|
|
459
|
+
name: "res",
|
|
460
|
+
type: "tuple",
|
|
461
|
+
},
|
|
462
|
+
],
|
|
463
|
+
stateMutability: "nonpayable",
|
|
464
|
+
type: "function",
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
inputs: [
|
|
468
|
+
{
|
|
469
|
+
components: [
|
|
470
|
+
{
|
|
471
|
+
components: [
|
|
472
|
+
{
|
|
473
|
+
internalType: "uint256",
|
|
474
|
+
name: "lpBalance",
|
|
475
|
+
type: "uint256",
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
internalType: "uint256",
|
|
479
|
+
name: "ytBalance",
|
|
480
|
+
type: "uint256",
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
internalType: "uint256",
|
|
484
|
+
name: "syBalance",
|
|
485
|
+
type: "uint256",
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
internalType: "uint256",
|
|
489
|
+
name: "buyBins",
|
|
490
|
+
type: "uint256",
|
|
491
|
+
},
|
|
492
|
+
],
|
|
493
|
+
internalType: "struct BotState",
|
|
494
|
+
name: "botState",
|
|
495
|
+
type: "tuple",
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
components: [
|
|
499
|
+
{
|
|
500
|
+
components: [
|
|
501
|
+
{
|
|
502
|
+
internalType: "int256",
|
|
503
|
+
name: "totalPt",
|
|
504
|
+
type: "int256",
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
internalType: "int256",
|
|
508
|
+
name: "totalSy",
|
|
509
|
+
type: "int256",
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
internalType: "int256",
|
|
513
|
+
name: "totalLp",
|
|
514
|
+
type: "int256",
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
internalType: "address",
|
|
518
|
+
name: "treasury",
|
|
519
|
+
type: "address",
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
internalType: "int256",
|
|
523
|
+
name: "scalarRoot",
|
|
524
|
+
type: "int256",
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
internalType: "uint256",
|
|
528
|
+
name: "expiry",
|
|
529
|
+
type: "uint256",
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
internalType: "uint256",
|
|
533
|
+
name: "lnFeeRateRoot",
|
|
534
|
+
type: "uint256",
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
internalType: "uint256",
|
|
538
|
+
name: "reserveFeePercent",
|
|
539
|
+
type: "uint256",
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
internalType: "uint256",
|
|
543
|
+
name: "lastLnImpliedRate",
|
|
544
|
+
type: "uint256",
|
|
545
|
+
},
|
|
546
|
+
],
|
|
547
|
+
internalType: "struct MarketState",
|
|
548
|
+
name: "state",
|
|
549
|
+
type: "tuple",
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
internalType: "PYIndex",
|
|
553
|
+
name: "index",
|
|
554
|
+
type: "uint256",
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
internalType: "uint256",
|
|
558
|
+
name: "blockTime",
|
|
559
|
+
type: "uint256",
|
|
560
|
+
},
|
|
561
|
+
],
|
|
562
|
+
internalType: "struct MarketExtState",
|
|
563
|
+
name: "marketExt",
|
|
564
|
+
type: "tuple",
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
components: [
|
|
568
|
+
{
|
|
569
|
+
internalType: "uint256",
|
|
570
|
+
name: "buyYtIy",
|
|
571
|
+
type: "uint256",
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
internalType: "uint256",
|
|
575
|
+
name: "sellYtIy",
|
|
576
|
+
type: "uint256",
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
internalType: "uint256",
|
|
580
|
+
name: "targetSyRatio",
|
|
581
|
+
type: "uint256",
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
internalType: "uint256",
|
|
585
|
+
name: "maxSyRatio",
|
|
586
|
+
type: "uint256",
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
internalType: "uint256",
|
|
590
|
+
name: "minYtPtRatio",
|
|
591
|
+
type: "uint256",
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
internalType: "uint256",
|
|
595
|
+
name: "numOfBins",
|
|
596
|
+
type: "uint256",
|
|
597
|
+
},
|
|
598
|
+
],
|
|
599
|
+
internalType: "struct LongTradingSpecs",
|
|
600
|
+
name: "specs",
|
|
601
|
+
type: "tuple",
|
|
602
|
+
},
|
|
603
|
+
],
|
|
604
|
+
internalType: "struct StrategyData",
|
|
605
|
+
name: "strategyData",
|
|
606
|
+
type: "tuple",
|
|
607
|
+
},
|
|
608
|
+
],
|
|
609
|
+
name: "getCurrentBin",
|
|
610
|
+
outputs: [
|
|
611
|
+
{
|
|
612
|
+
internalType: "int256",
|
|
613
|
+
name: "",
|
|
614
|
+
type: "int256",
|
|
615
|
+
},
|
|
616
|
+
],
|
|
617
|
+
stateMutability: "pure",
|
|
618
|
+
type: "function",
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
inputs: [
|
|
622
|
+
{
|
|
623
|
+
components: [
|
|
624
|
+
{
|
|
625
|
+
components: [
|
|
626
|
+
{
|
|
627
|
+
internalType: "uint256",
|
|
628
|
+
name: "lpBalance",
|
|
629
|
+
type: "uint256",
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
internalType: "uint256",
|
|
633
|
+
name: "ytBalance",
|
|
634
|
+
type: "uint256",
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
internalType: "uint256",
|
|
638
|
+
name: "syBalance",
|
|
639
|
+
type: "uint256",
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
internalType: "uint256",
|
|
643
|
+
name: "buyBins",
|
|
644
|
+
type: "uint256",
|
|
645
|
+
},
|
|
646
|
+
],
|
|
647
|
+
internalType: "struct BotState",
|
|
648
|
+
name: "botState",
|
|
649
|
+
type: "tuple",
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
components: [
|
|
653
|
+
{
|
|
654
|
+
components: [
|
|
655
|
+
{
|
|
656
|
+
internalType: "int256",
|
|
657
|
+
name: "totalPt",
|
|
658
|
+
type: "int256",
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
internalType: "int256",
|
|
662
|
+
name: "totalSy",
|
|
663
|
+
type: "int256",
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
internalType: "int256",
|
|
667
|
+
name: "totalLp",
|
|
668
|
+
type: "int256",
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
internalType: "address",
|
|
672
|
+
name: "treasury",
|
|
673
|
+
type: "address",
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
internalType: "int256",
|
|
677
|
+
name: "scalarRoot",
|
|
678
|
+
type: "int256",
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
internalType: "uint256",
|
|
682
|
+
name: "expiry",
|
|
683
|
+
type: "uint256",
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
internalType: "uint256",
|
|
687
|
+
name: "lnFeeRateRoot",
|
|
688
|
+
type: "uint256",
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
internalType: "uint256",
|
|
692
|
+
name: "reserveFeePercent",
|
|
693
|
+
type: "uint256",
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
internalType: "uint256",
|
|
697
|
+
name: "lastLnImpliedRate",
|
|
698
|
+
type: "uint256",
|
|
699
|
+
},
|
|
700
|
+
],
|
|
701
|
+
internalType: "struct MarketState",
|
|
702
|
+
name: "state",
|
|
703
|
+
type: "tuple",
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
internalType: "PYIndex",
|
|
707
|
+
name: "index",
|
|
708
|
+
type: "uint256",
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
internalType: "uint256",
|
|
712
|
+
name: "blockTime",
|
|
713
|
+
type: "uint256",
|
|
714
|
+
},
|
|
715
|
+
],
|
|
716
|
+
internalType: "struct MarketExtState",
|
|
717
|
+
name: "marketExt",
|
|
718
|
+
type: "tuple",
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
components: [
|
|
722
|
+
{
|
|
723
|
+
internalType: "uint256",
|
|
724
|
+
name: "buyYtIy",
|
|
725
|
+
type: "uint256",
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
internalType: "uint256",
|
|
729
|
+
name: "sellYtIy",
|
|
730
|
+
type: "uint256",
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
internalType: "uint256",
|
|
734
|
+
name: "targetSyRatio",
|
|
735
|
+
type: "uint256",
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
internalType: "uint256",
|
|
739
|
+
name: "maxSyRatio",
|
|
740
|
+
type: "uint256",
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
internalType: "uint256",
|
|
744
|
+
name: "minYtPtRatio",
|
|
745
|
+
type: "uint256",
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
internalType: "uint256",
|
|
749
|
+
name: "numOfBins",
|
|
750
|
+
type: "uint256",
|
|
751
|
+
},
|
|
752
|
+
],
|
|
753
|
+
internalType: "struct LongTradingSpecs",
|
|
754
|
+
name: "specs",
|
|
755
|
+
type: "tuple",
|
|
756
|
+
},
|
|
757
|
+
],
|
|
758
|
+
internalType: "struct StrategyData",
|
|
759
|
+
name: "strategyData",
|
|
760
|
+
type: "tuple",
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
internalType: "enum ActionType",
|
|
764
|
+
name: "action",
|
|
765
|
+
type: "uint8",
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
internalType: "uint256",
|
|
769
|
+
name: "botParam",
|
|
770
|
+
type: "uint256",
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
components: [
|
|
774
|
+
{
|
|
775
|
+
internalType: "uint256",
|
|
776
|
+
name: "guessMin",
|
|
777
|
+
type: "uint256",
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
internalType: "uint256",
|
|
781
|
+
name: "guessMax",
|
|
782
|
+
type: "uint256",
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
internalType: "uint256",
|
|
786
|
+
name: "guessOffchain",
|
|
787
|
+
type: "uint256",
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
internalType: "uint256",
|
|
791
|
+
name: "maxIteration",
|
|
792
|
+
type: "uint256",
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
internalType: "uint256",
|
|
796
|
+
name: "eps",
|
|
797
|
+
type: "uint256",
|
|
798
|
+
},
|
|
799
|
+
],
|
|
800
|
+
internalType: "struct ApproxParams",
|
|
801
|
+
name: "swapApproxParams",
|
|
802
|
+
type: "tuple",
|
|
803
|
+
},
|
|
804
|
+
],
|
|
805
|
+
name: "previewAction",
|
|
806
|
+
outputs: [
|
|
807
|
+
{
|
|
808
|
+
internalType: "bool",
|
|
809
|
+
name: "success",
|
|
810
|
+
type: "bool",
|
|
811
|
+
},
|
|
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: "uint256",
|
|
831
|
+
name: "buyBins",
|
|
832
|
+
type: "uint256",
|
|
833
|
+
},
|
|
834
|
+
],
|
|
835
|
+
internalType: "struct BotState",
|
|
836
|
+
name: "bot",
|
|
837
|
+
type: "tuple",
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
components: [
|
|
841
|
+
{
|
|
842
|
+
components: [
|
|
843
|
+
{
|
|
844
|
+
internalType: "int256",
|
|
845
|
+
name: "totalPt",
|
|
846
|
+
type: "int256",
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
internalType: "int256",
|
|
850
|
+
name: "totalSy",
|
|
851
|
+
type: "int256",
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
internalType: "int256",
|
|
855
|
+
name: "totalLp",
|
|
856
|
+
type: "int256",
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
internalType: "address",
|
|
860
|
+
name: "treasury",
|
|
861
|
+
type: "address",
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
internalType: "int256",
|
|
865
|
+
name: "scalarRoot",
|
|
866
|
+
type: "int256",
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
internalType: "uint256",
|
|
870
|
+
name: "expiry",
|
|
871
|
+
type: "uint256",
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
internalType: "uint256",
|
|
875
|
+
name: "lnFeeRateRoot",
|
|
876
|
+
type: "uint256",
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
internalType: "uint256",
|
|
880
|
+
name: "reserveFeePercent",
|
|
881
|
+
type: "uint256",
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
internalType: "uint256",
|
|
885
|
+
name: "lastLnImpliedRate",
|
|
886
|
+
type: "uint256",
|
|
887
|
+
},
|
|
888
|
+
],
|
|
889
|
+
internalType: "struct MarketState",
|
|
890
|
+
name: "state",
|
|
891
|
+
type: "tuple",
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
internalType: "PYIndex",
|
|
895
|
+
name: "index",
|
|
896
|
+
type: "uint256",
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
internalType: "uint256",
|
|
900
|
+
name: "blockTime",
|
|
901
|
+
type: "uint256",
|
|
902
|
+
},
|
|
903
|
+
],
|
|
904
|
+
internalType: "struct MarketExtState",
|
|
905
|
+
name: "marketExt",
|
|
906
|
+
type: "tuple",
|
|
907
|
+
},
|
|
908
|
+
],
|
|
909
|
+
stateMutability: "pure",
|
|
910
|
+
type: "function",
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
inputs: [
|
|
914
|
+
{
|
|
915
|
+
components: [
|
|
916
|
+
{
|
|
917
|
+
components: [
|
|
918
|
+
{
|
|
919
|
+
internalType: "uint256",
|
|
920
|
+
name: "lpBalance",
|
|
921
|
+
type: "uint256",
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
internalType: "uint256",
|
|
925
|
+
name: "ytBalance",
|
|
926
|
+
type: "uint256",
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
internalType: "uint256",
|
|
930
|
+
name: "syBalance",
|
|
931
|
+
type: "uint256",
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
internalType: "uint256",
|
|
935
|
+
name: "buyBins",
|
|
936
|
+
type: "uint256",
|
|
937
|
+
},
|
|
938
|
+
],
|
|
939
|
+
internalType: "struct BotState",
|
|
940
|
+
name: "botState",
|
|
941
|
+
type: "tuple",
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
components: [
|
|
945
|
+
{
|
|
946
|
+
components: [
|
|
947
|
+
{
|
|
948
|
+
internalType: "int256",
|
|
949
|
+
name: "totalPt",
|
|
950
|
+
type: "int256",
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
internalType: "int256",
|
|
954
|
+
name: "totalSy",
|
|
955
|
+
type: "int256",
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
internalType: "int256",
|
|
959
|
+
name: "totalLp",
|
|
960
|
+
type: "int256",
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
internalType: "address",
|
|
964
|
+
name: "treasury",
|
|
965
|
+
type: "address",
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
internalType: "int256",
|
|
969
|
+
name: "scalarRoot",
|
|
970
|
+
type: "int256",
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
internalType: "uint256",
|
|
974
|
+
name: "expiry",
|
|
975
|
+
type: "uint256",
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
internalType: "uint256",
|
|
979
|
+
name: "lnFeeRateRoot",
|
|
980
|
+
type: "uint256",
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
internalType: "uint256",
|
|
984
|
+
name: "reserveFeePercent",
|
|
985
|
+
type: "uint256",
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
internalType: "uint256",
|
|
989
|
+
name: "lastLnImpliedRate",
|
|
990
|
+
type: "uint256",
|
|
991
|
+
},
|
|
992
|
+
],
|
|
993
|
+
internalType: "struct MarketState",
|
|
994
|
+
name: "state",
|
|
995
|
+
type: "tuple",
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
internalType: "PYIndex",
|
|
999
|
+
name: "index",
|
|
1000
|
+
type: "uint256",
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
internalType: "uint256",
|
|
1004
|
+
name: "blockTime",
|
|
1005
|
+
type: "uint256",
|
|
1006
|
+
},
|
|
1007
|
+
],
|
|
1008
|
+
internalType: "struct MarketExtState",
|
|
1009
|
+
name: "marketExt",
|
|
1010
|
+
type: "tuple",
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
components: [
|
|
1014
|
+
{
|
|
1015
|
+
internalType: "uint256",
|
|
1016
|
+
name: "buyYtIy",
|
|
1017
|
+
type: "uint256",
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
internalType: "uint256",
|
|
1021
|
+
name: "sellYtIy",
|
|
1022
|
+
type: "uint256",
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
internalType: "uint256",
|
|
1026
|
+
name: "targetSyRatio",
|
|
1027
|
+
type: "uint256",
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
internalType: "uint256",
|
|
1031
|
+
name: "maxSyRatio",
|
|
1032
|
+
type: "uint256",
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
internalType: "uint256",
|
|
1036
|
+
name: "minYtPtRatio",
|
|
1037
|
+
type: "uint256",
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
internalType: "uint256",
|
|
1041
|
+
name: "numOfBins",
|
|
1042
|
+
type: "uint256",
|
|
1043
|
+
},
|
|
1044
|
+
],
|
|
1045
|
+
internalType: "struct LongTradingSpecs",
|
|
1046
|
+
name: "specs",
|
|
1047
|
+
type: "tuple",
|
|
1048
|
+
},
|
|
1049
|
+
],
|
|
1050
|
+
internalType: "struct StrategyData",
|
|
1051
|
+
name: "strategyData",
|
|
1052
|
+
type: "tuple",
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
internalType: "enum ActionType",
|
|
1056
|
+
name: "action",
|
|
1057
|
+
type: "uint8",
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
internalType: "uint256",
|
|
1061
|
+
name: "targetIy",
|
|
1062
|
+
type: "uint256",
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
components: [
|
|
1066
|
+
{
|
|
1067
|
+
internalType: "uint256",
|
|
1068
|
+
name: "guessMin",
|
|
1069
|
+
type: "uint256",
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
internalType: "uint256",
|
|
1073
|
+
name: "guessMax",
|
|
1074
|
+
type: "uint256",
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
internalType: "uint256",
|
|
1078
|
+
name: "guessOffchain",
|
|
1079
|
+
type: "uint256",
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
internalType: "uint256",
|
|
1083
|
+
name: "maxIteration",
|
|
1084
|
+
type: "uint256",
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
internalType: "uint256",
|
|
1088
|
+
name: "eps",
|
|
1089
|
+
type: "uint256",
|
|
1090
|
+
},
|
|
1091
|
+
],
|
|
1092
|
+
internalType: "struct ApproxParams",
|
|
1093
|
+
name: "botParams",
|
|
1094
|
+
type: "tuple",
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
components: [
|
|
1098
|
+
{
|
|
1099
|
+
internalType: "uint256",
|
|
1100
|
+
name: "guessMin",
|
|
1101
|
+
type: "uint256",
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
internalType: "uint256",
|
|
1105
|
+
name: "guessMax",
|
|
1106
|
+
type: "uint256",
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
internalType: "uint256",
|
|
1110
|
+
name: "guessOffchain",
|
|
1111
|
+
type: "uint256",
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
internalType: "uint256",
|
|
1115
|
+
name: "maxIteration",
|
|
1116
|
+
type: "uint256",
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
internalType: "uint256",
|
|
1120
|
+
name: "eps",
|
|
1121
|
+
type: "uint256",
|
|
1122
|
+
},
|
|
1123
|
+
],
|
|
1124
|
+
internalType: "struct ApproxParams",
|
|
1125
|
+
name: "intParams",
|
|
1126
|
+
type: "tuple",
|
|
1127
|
+
},
|
|
1128
|
+
],
|
|
1129
|
+
name: "searchForBotParam",
|
|
1130
|
+
outputs: [
|
|
1131
|
+
{
|
|
1132
|
+
internalType: "uint256",
|
|
1133
|
+
name: "",
|
|
1134
|
+
type: "uint256",
|
|
1135
|
+
},
|
|
1136
|
+
],
|
|
1137
|
+
stateMutability: "pure",
|
|
1138
|
+
type: "function",
|
|
1139
|
+
},
|
|
1140
|
+
];
|
|
1141
|
+
|
|
1142
|
+
const _bytecode =
|
|
1143
|
+
"0x608060405234801561001057600080fd5b506135d4806100206000396000f3fe608060405234801561001057600080fd5b50600436106100785760003560e01c80631cd7e2011461007d578063329fea081461015f5780638e7274461461018057806397491860146101a05780639d2a679f146101d3578063ac4c7e84146101dc578063c2d38e62146101e9578063d8b88a1a146101fc575b600080fd5b61009061008b366004613079565b61020f565b604051610156939291906000610200820190508415158252835160208301526020840151604083015260408401516060830152606084015160808301528251805160a0840152602081015160c0840152604081015160e0840152606081015161010060018060a01b03821681860152608083015161012086015260a083015161014086015260c083015161016086015260e0830151610180860152808301516101a086015250505060208301516101c083015260408301516101e0830152949350505050565b60405180910390f35b61017261016d3660046130cc565b61029c565b604051908152602001610156565b61019361018e366004613114565b6102e4565b6040516101569190613147565b6101b36101ae366004613194565b610485565b604080519485526020850193909352918301526060820152608001610156565b61017260001981565b610172655af3107a400081565b6101726101f73660046131ca565b6104f9565b61017261020a366004613230565b6106f1565b6000610219612c97565b610221612cbf565b865161022c90610718565b915061023b8760200151610758565b9050600086600281111561025157610251613131565b0361026857610261828287610796565b9250610292565b600186600281111561027c5761027c613131565b0361028d57610261828287876107f6565b600092505b9450945094915050565b600060018460028111156102b2576102b2613131565b036102d85760006102ce84846102c789610758565b9190610852565b92506102dc915050565b5060005b949350505050565b610310604080516080810190915280600081526020016000815260200160008152602001600081525090565b6000826001600160a01b031663eb983ce56040518163ffffffff1660e01b81526004016102a0604051808303816000875af1158015610353573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037791906132b0565b9050600061038882602001516108ef565b905061039d826000015183604001518361093c565b602084018190526000036103b657505060028152919050565b600080846020015112156103f25760018452825180516020860151606090920151604086015160a001516103eb939190610949565b9050610426565b6000808552610400846109e9565b9050610422818660200151866000015160600151876040015160a00151610949565b9150505b61045a838560000151610446866000015187604001518960200151610acd565b61044f85610b21565b6101f7600019610b21565b60408501819052602084015185516104779261016d600019610b21565b606085015250919392505050565b60008080806104948686610b61565b935061049f856108ef565b60408701519093506104b19085610c3a565b915060006104cc87600001516104c688610758565b90610c69565b91505080156104e95760208701516104e49082610c3a565b6104ed565b6000195b91505092959194509250565b600080604051806060016040528088815260200187600281111561051f5761051f613131565b815260200186905260408501519091501561056c57600161054a828660400151876080015187610d20565b600281111561055b5761055b613131565b0361056c57505060408201516106e8565b60006105818860000151896020015189610db3565b9050808560200151111561059757602085018190525b6020850151855111156105e2578660028111156105b6576105b6613131565b8551602087015160405163f25ccea360e01b81526105d9939291906004016133de565b60405180910390fd5b5060026105f9828660200151876080015187610d20565b600281111561060a5761060a613131565b1461061b57505060208201516106e8565b60005b84606001518110156106ce576000600286600001518760200151610642919061340a565b61064c9190613433565b86516106589190613447565b9050600061066c8483896080015189610d20565b9050600181600281111561068257610682613131565b03610692575092506106e8915050565b60008160028111156106a6576106a6613131565b036106b3578187526106bb565b602087018290525b5050806106c79061345a565b905061061e565b5060405163fef33c9d60e01b815260040160405180910390fd5b95945050505050565b60006107128260000151836040015161070d85602001516108ef565b61093c565b92915050565b610720612c97565b604051806080016040528083600001518152602001836020015181526020018360400151815260200183606001518152509050919050565b610760612cbf565b60405180606001604052806107788460000151610e06565b81526020018360200151815260200183604001518152509050919050565b600080806107a48585610e83565b9150915085602001518111156107bf576000925050506107ef565b80866020018181516107d1919061340a565b9052508551829087906107e5908390613447565b9052506001925050505b9392505050565b835160009083111561080a575060006102dc565b6000610817858585610852565b509050838660000181815161082c919061340a565b905250602086018051829190610843908390613447565b90525060019695505050505050565b6000806000806108628787610c69565b91509150600061087f838960200151610f8790919063ffffffff16565b9050600061088d8284613447565b905060006108b38a60200151838c604001516108a88c610f93565b8e5193929190610fdd565b5060208c015160408d01518d519299509293506108d19289906110fe565b50505080836108e09190613447565b96505050505050935093915050565b6000670de0b6b3a76400006109326109238460400151856000015160a00151610918919061340a565b6301e1338090610c3a565b61092c8561114f565b9061119c565b610712919061340a565b60006102dc838584611345565b60008360000361095b5761095b613473565b600080851261097f5783610970846002613489565b61097a919061340a565b610981565b835b9050600081670de0b6b3a76400006109988861135a565b6109a29190613489565b6109ac9190613433565b90506000670de0b6b3a76400006109c78361092c8184613447565b6109d1919061340a565b90506109dd8882611375565b98975050505050505050565b6000806109fd836000015160200151610b21565b90506000610a0c600019610b21565b90505b8151602083015114610ac5576000600283600001518460200151610a33919061340a565b610a3d9190613433565b8351610a499190613447565b90506000806000610a5d886000868861020f565b92509250925082610a8257610a7360018561340a565b602087015250610a0f92505050565b6000610a8e8383610485565b93505050508860400151608001518110610aaa57848752610abb565b610ab560018661340a565b60208801525b5050505050610a0f565b505192915050565b600081600003610adf57610adf613473565b6000610aeb8584611393565b90506000831215610b1357610b0b610b04826001613447565b85906113da565b9150506107ef565b610b0b610b0460018361340a565b610b29612ce6565b6040518060a0016040528060008152602001838152602001600081526020016101008152602001655af3107a40008152509050919050565b600080610b6d83610758565b9050600080610b89866000015184610c6990919063ffffffff16565b915091506000828760400151610b9f9190613447565b905086602001518211610bed57610bb6848361143e565b610bc09082613447565b9050610bdc828860200151610bd5919061340a565b8590611450565b610be69082613447565b9050610c30565b6020870151610bfd90859061143e565b610c079082613447565b9050610c23876020015183610c1c919061340a565b85906114ab565b610c2d9082613447565b90505b9695505050505050565b600080610c4f670de0b6b3a764000085613489565b9050828181610c6057610c6061341d565b04949350505050565b6000806000610c77846114cf565b85516040810151602090910151919250600091610c9490846134a0565b610c9e91906134d0565b865160408101519051919250600091610cb790856134a0565b610cc191906134d0565b875160400151909150610cd490846114e5565b875160400152865151610ce790826114e5565b875152865160200151610cfa90836114e5565b875160200152610d098261152c565b610d128261152c565b945094505050509250929050565b6000806000610d3987600001518860200151888761020f565b925050915081610d4e576002925050506102dc565b6000610d59826108ef565b9050600088602001516002811115610d7357610d73613131565b03610da457610d878189604001518861153b565b15610d9857600193505050506102dc565b600293505050506102dc565b610d878189604001518861156e565b600080826002811115610dc857610dc8613131565b03610ddd57610dd68361159c565b90506107ef565b6001826002811115610df157610df1613131565b03610dfe575082516107ef565b5060006107ef565b610e0e612d15565b60405180610120016040528083600001518152602001836020015181526020018360400151815260200183606001516001600160a01b03168152602001836080015181526020018360a0015181526020018360c0015181526020018360e0015181526020018361010001518152509050919050565b6000806000610eab856020015185876040015188600001516115c2909392919063ffffffff16565b505060208601519091506000610ec18284613489565b610ed3670de0b6b3a764000088613489565b610edd919061340a565b875151909150600090610eef9061152c565b83610f018a600001516020015161152c565b610f0b9190613489565b610f159190613433565b610f2790670de0b6b3a7640000613447565b90506000610f358284613433565b9050610f41818961340a565b95506000610f5c878b602001516115eb90919063ffffffff16565b90506000610f6a878361340a565b9050610f778b82856115f7565b9850505050505050509250929050565b60006107ef83836117cd565b610f9b612ce6565b6040518060a001604052808360000151815260200183602001518152602001836040015181526020018360600151815260200183608001518152509050919050565b6000808080610fed8989886117ec565b9050846040015160000361102f57845161100790886118ed565b855260208501516110219061101c8b84611903565b611987565b602086015261102f85611996565b60005b85606001518110156110d957600061104a87836119e4565b905060008061105b8d868e86611a50565b509092509050600061106d8d84610f87565b9050600061107b828661340a565b90508c81116110b257611093818e8d6080015161156e565b156110aa575097509195509093506110f392505050565b848b526110c3565b6110bd60018661340a565b60208c01525b5050505050806110d29061345a565b9050611032565b50604051637d388ed960e11b815260040160405180910390fd5b955095509592505050565b60008060008060008061111b8a8a6111158b611a81565b8a611a98565b92509250925061112a8361152c565b95506111358261152c565b94506111408161152c565b93505050509450945094915050565b602081015160408201518251600092839261116b9291906117ec565b905060006111918460000151600001518360200151846000015185604001516000611b33565b90506102dc8161152c565b6000816000036111b55750670de0b6b3a7640000610712565b826000036111c557506000610712565b600160ff1b831061120a5760405162461bcd60e51b815260206004820152600f60248201526e78206f7574206f6620626f756e647360881b60448201526064016105d9565b82770bce5086492111aea88f4bb1ca6bcf584181ea8059f7653283106112645760405162461bcd60e51b815260206004820152600f60248201526e79206f7574206f6620626f756e647360881b60448201526064016105d9565b826000670c7d713b49da0000831380156112855750670f43fc2c04ee000083125b156112bc57600061129584611bf0565b9050670de0b6b3a764000080820784020583670de0b6b3a7640000830502019150506112ca565b816112c684611d0f565b0290505b670de0b6b3a76400009005680238fd42c5cf03ffff1981128015906112f8575068070c1cc73b00c800008113155b61133c5760405162461bcd60e51b815260206004820152601560248201527470726f64756374206f7574206f6620626f756e647360581b60448201526064016105d9565b610c30816120b2565b60006102dc8361135586856124c7565b61252c565b60008082136113715761136c826134fe565b610712565b5090565b6000806113828385613489565b9050670de0b6b3a764000081610c60565b6000816000036113a5576113a5613473565b600182126113bb57816113b78161351a565b9250505b6107ef6113cb84606001516114cf565b6113d59084613532565b61152c565b600081158015906113fa575060a08301516113f6906002613489565b8214155b61140657611406613473565b600061141184612563565b905061141e600282613433565b6114288483613489565b85516114349190613447565b6102dc9190613447565b60208201516000906107ef90836115eb565b602082015160408301518351600092839261146e92919086906115c2565b50509050600061148b82866020015161259490919063ffffffff16565b90506000611499828661340a565b6020870151909150610c3090826115eb565b6020820151604083015183516000926114c59285906110fe565b5090949350505050565b60006001600160ff1b0382111561137157600080fd5b6000818312156115225760405162461bcd60e51b81526020600482015260086024820152676e6567617469766560c01b60448201526064016105d9565b6107ef828461355a565b60008082121561137157600080fd5b60008284101580156102dc57506115638361155e84670de0b6b3a7640000613447565b611375565b909311159392505050565b60008284111580156102dc57506115918361155e84670de0b6b3a764000061340a565b909310159392505050565b602081015160408201518251600092610712926115ba9291906117ec565b8351516125a1565b6000806000806000806115d98a8a6111158b6114cf565b92509250925061112a6113d584612639565b60006107ef8383612647565b825160a001516040840151600091116116515760405162461bcd60e51b815260206004820152601c60248201527b13585c9ad95d115e1d131a588e88195e1c1a5c9959081b585c9ad95d60221b60448201526064016105d9565b83516040015160001261169d5760405162461bcd60e51b815260206004820152601460248201527304d61726b65744578744c69623a204c50203c20360641b60448201526064016105d9565b60006116a8846114cf565b905060006116b5846114cf565b90506000806000808960000151600001518a6000015160400151866116da91906134a0565b6116e491906134d0565b8a51602081015160409091015191925060009161170190896134a0565b61170b91906134d0565b905080821215611746578a51604081015160209091015192955086945085926117359084906134a0565b61173f91906134d0565b925061176f565b8a516040810151905191955087935085916117629083906134a0565b61176c91906134d0565b93505b828b600001516020018181516117859190613532565b9052508a51805185919061179a908390613532565b9052508a5160400180518691906117b2908390613532565b9052506117be8561152c565b9b9a5050505050505050505050565b6000670de0b6b3a76400006117e28484613489565b6107ef9190613433565b6118176040518060800160405280600081526020016000815260200160008152602001600081525090565b60a0840151821061183b5760405163b2094b5960e01b815260040160405180910390fd5b6000828560a0015161184d919061340a565b9050611859858261265c565b8252602085015161186b9085906126bd565b60208301528451158061188057506020820151155b156118ae578451602083015160405163b1c4aefb60e01b8152600481019290925260248201526044016105d9565b6118cc856000015186610100015184602001518560000151856126f4565b604083015260c08501516118e09082612775565b6060830152509392505050565b60008183116118fc57816107ef565b5090919050565b6000806000905060006001846020015161191d919061340a565b90505b80821461197f57600060026119358385613447565b611940906001613447565b61194a9190613433565b9050600061195d868860000151846127a9565b12156119755761196e60018261340a565b9150611979565b8092505b50611920565b509392505050565b60008183106118fc57816107ef565b6020810151815111806119b45750670de0b6b3a76400008160800151115b156119e157805160208201516080830151604051632cc06bc160e21b81526105d9939291906004016133de565b50565b6000811580156119f75750604083015115155b15611a0757506040820151610712565b6020830151835111611a375760208301518351600291611a2691613447565b611a309190613433565b9050610712565b604051637d388ed960e11b815260040160405180910390fd5b60008080808080611a6e8989611a658a6134fe565b8d92919061289b565b919c909b50909950975050505050505050565b6000611a8c826114cf565b610712906000196134a0565b6000806000611aab8760a0015185101590565b15611ac95760405163b2094b5960e01b815260040160405180910390fd5b86518512611af7578651604051632185509b60e21b81526004810191909152602481018690526044016105d9565b6000611b048888876117ec565b9050611b128882898961289b565b91955093509150611b288882898988878b6129ef565b509450945094915050565b600080611b4087846114e5565b90506000611b58611b51888a613532565b8390612a81565b9050670d529ae9e8600000811315611b9457604051637e34684f60e11b815260048101829052670d529ae9e860000060248201526044016105d9565b6000611b9f82612ab0565b905085611bac8289612a81565b611bb69190613532565b9350670de0b6b3a7640000841215611be45760405163329e322960e21b8152600481018590526024016105d9565b50505095945050505050565b670de0b6b3a7640000026000806a0c097ce7bc90715b34b9f160241b808401906ec097ce7bc90715b34b9f0fffffffff1985010281611c3157611c3161341d565b05905060006a0c097ce7bc90715b34b9f160241b82800205905081806a0c097ce7bc90715b34b9f160241b81840205915060038205016a0c097ce7bc90715b34b9f160241b82840205915060058205016a0c097ce7bc90715b34b9f160241b82840205915060078205016a0c097ce7bc90715b34b9f160241b82840205915060098205016a0c097ce7bc90715b34b9f160241b828402059150600b8205016a0c097ce7bc90715b34b9f160241b828402059150600d8205016a0c097ce7bc90715b34b9f160241b828402059150600f82050160020295945050505050565b6000670de0b6b3a7640000821215611d5057611d47826a0c097ce7bc90715b34b9f160241b81611d4157611d4161341d565b05611d0f565b60000392915050565b6000775803bcc5cb9634ba4cfb2213f784019318ed4dcb6017880f60361b8312611d9b5772195e54c5dd42177f53a27172fa9ec63026282760241b830592506806f05b59d3b2000000015b6f8bcc0026baae9e45e470190267a230cf60191b8312611dd2576b1425982cf597cd205cef7380830592506803782dace9d9000000015b606492830292026e01855144814a7ff805980ff00840008312611e1a576e01855144814a7ff805980ff008400068056bc75e2d63100000840205925068ad78ebc5ac62000000015b6b02df0ab5a80a22c61ab5a7008312611e55576b02df0ab5a80a22c61ab5a70068056bc75e2d6310000084020592506856bc75e2d631000000015b693f1fce3da636ea5cf8508312611e8c57693f1fce3da636ea5cf85068056bc75e2d631000008402059250682b5e3af16b18800000015b690127fa27722cc06cc5e28312611ec357690127fa27722cc06cc5e268056bc75e2d6310000084020592506815af1d78b58c400000015b68280e60114edb805d038312611ef85768280e60114edb805d0368056bc75e2d631000008402059250680ad78ebc5ac6200000015b680ebc5fb417461211108312611f2357680ebc5fb4174612111068056bc75e2d631000009384020592015b6808f00f760a4b2db55d8312611f58576808f00f760a4b2db55d68056bc75e2d6310000084020592506802b5e3af16b1880000015b6806f5f17757889379378312611f8d576806f5f177578893793768056bc75e2d63100000840205925068015af1d78b58c40000015b6806248f33704b2866038312611fc1576806248f33704b28660368056bc75e2d63100000840205925067ad78ebc5ac620000015b6805c548670b9510e7ac8312611ff5576805c548670b9510e7ac68056bc75e2d6310000084020592506756bc75e2d6310000015b600068056bc75e2d63100000840168056bc75e2d63100000808603028161201e5761201e61341d565b059050600068056bc75e2d63100000828002059050818068056bc75e2d63100000818402059150600382050168056bc75e2d63100000828402059150600582050168056bc75e2d63100000828402059150600782050168056bc75e2d63100000828402059150600982050168056bc75e2d63100000828402059150600b820501600202606485820105979650505050505050565b6000680238fd42c5cf03ffff1982121580156120d7575068070c1cc73b00c800008213155b6121165760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b60448201526064016105d9565b600082121561214e5761212b826000036120b2565b6a0c097ce7bc90715b34b9f160241b816121475761214761341d565b0592915050565b60006806f05b59d3b2000000831261218c57506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b6121c2565b6803782dace9d900000083126121be57506803782dace9d8ffffff19909101906b1425982cf597cd205cef73806121c2565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac6200000084126122125768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d631000000841261224e576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b18800000841261228857682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c40000084126122c2576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac620000084126122fb57680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d6310000084126123345768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b1880000841261236d576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c4000084126123a65768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b81516000908210156124db57506000610712565b82602001518211156125025760a08301516124f7906002613489565b611a30906001613447565b61250b83612563565b8351612517908461340a565b6125219190613433565b6107ef906001613447565b60008061253c84606001516114cf565b612545846114cf565b61254f919061355a565b9050600181126107ef57806106e881613581565b60008160a00151600283600001518460200151612580919061340a565b61258a9190613433565b6107129190613489565b6000826102dc8184612b03565b6000806125ce6125c98560000151866040015187606001516125c3919061355a565b90612b2f565b6120b2565b905060006125e7611b51670de0b6b3a764000084613532565b905060006126058660200151866125fe9190613532565b8390612b2f565b90506000612613828761355a565b90506103e8612624826103e7613489565b61262e9190613433565b979650505050505050565b6000610712826000196134a0565b6000826117e2670de0b6b3a764000084613489565b6000612667826114cf565b61267e6126796201518061016d613489565b6114cf565b846080015161268d91906134a0565b61269791906134d0565b90506000811361071257604051630e520c3b60e11b8152600481018290526024016105d9565b600080600083126126cf5760016126d3565b6000195b90506126ea612679856126e58661135a565b6117cd565b6102dc90826134a0565b6000806127018684612775565b9050670de0b6b3a764000081121561272f5760405163329e322960e21b8152600481018290526024016105d9565b600061274561273e878a613532565b8990612a81565b9050600061275282612ab0565b905061275e8187612a81565b612768908461355a565b9998505050505050505050565b6000806127876201518061016d613489565b6127918486613489565b61279b9190613433565b90506102dc6125c9826114cf565b6000808285602001516127bc919061355a565b905060006127ca8585613532565b90506000821380156127dc5750600081135b61281d5760405162461bcd60e51b81526020600482015260126024820152711a5b9d985b1a59081c1d151bd3585c9ad95d60721b60448201526064016105d9565b600061284b61282c84846134a0565b602089015161283b9089613532565b61284590886134a0565b90612a81565b9050600061286161285c8486612a81565b612b4d565b885190915060009061287c90670de0b6b3a764000090612a81565b905061288c816125c3848661355a565b8960400151612768919061355a565b6000806000806128be8860000151886020015189600001518a6040015189611b33565b905060006128d46128cf8784612a81565b612639565b606089015190915060008713156129435760006128f18483612a81565b9050670de0b6b3a764000081121561291f5760405163329e322960e21b8152600481018290526024016105d9565b61293b61293483670de0b6b3a764000061355a565b8490612b2f565b915050612970565b61296d8161295981670de0b6b3a764000061355a565b61296390856134a0565b6128cf91906134d0565b90505b600060646129818c60e001516114cf565b61298b90846134a0565b61299591906134d0565b905060006129a3838561355a565b9050600081126129bc576129b78a82612bde565b6129c6565b6129c68a82612c0b565b97506129d28a84612bde565b96506129de8a83612bde565b955050505050509450945094915050565b6000818860a00151612a01919061340a565b8851909150612a1090866114e5565b8852612a2a612a1f8486613532565b60208a0151906114e5565b602089018190528851612a4f91612a429089906126bd565b895160408b015185612c38565b6101008901819052600003612a7757604051635534d70f60e11b815260040160405180910390fd5b5050505050505050565b600080612a96670de0b6b3a7640000856134a0565b9050828181612aa757612aa761341d565b05949350505050565b6000670de0b6b3a76400008203612ada5760405163a9c8b14d60e01b815260040160405180910390fd5b6000612af8612af184670de0b6b3a764000061355a565b8490612a81565b90506107ef81612b4d565b6000670de0b6b3a7640000600181612b1b8686613489565b612b259190613447565b6117e2919061340a565b600080612b3c83856134a0565b9050670de0b6b3a764000081612aa7565b6000808213612b8e5760405162461bcd60e51b815260206004820152600d60248201526c6f7574206f6620626f756e647360981b60448201526064016105d9565b670c7d713b49da000082138015612bac5750670f43fc2c04ee000082125b15612bd057670de0b6b3a7640000612bc383611bf0565b816121475761214761341d565b61071282611d0f565b919050565b60008060008312612bf0576001612bf4565b6000195b90506126ea61267985612c068661135a565b612647565b60008060008312612c1d576001612c21565b6000195b90506126ea61267985612c338661135a565b612c7f565b600080612c49878787876000611b33565b90506000612c596113d583612b4d565b905083612c6b6201518061016d613489565b612c759083613489565b6109dd9190613433565b600082600181612b1b670de0b6b3a764000086613489565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b6040518060600160405280612cd2612d15565b815260200160008152602001600081525090565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b60405180610120016040528060008152602001600081526020016000815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081525090565b604051608081016001600160401b0381118282101715612d9a57634e487b7160e01b600052604160045260246000fd5b60405290565b604051606081016001600160401b0381118282101715612d9a57634e487b7160e01b600052604160045260246000fd5b60405161012081016001600160401b0381118282101715612d9a57634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b0381118282101715612d9a57634e487b7160e01b600052604160045260246000fd5b600060808284031215612e4357600080fd5b612e4b612d6a565b90508135815260208201356020820152604082013560408201526060820135606082015292915050565b6001600160a01b03811681146119e157600080fd5b8035612bd981612e75565b6000818303610160811215612ea957600080fd5b612eb1612da0565b915061012080821215612ec357600080fd5b612ecb612dd0565b9150833582526020840135602083015260408401356040830152612ef160608501612e8a565b60608301526080840135608083015260a084013560a083015260c084013560c083015260e084013560e08301526101008085013581840152508183528084013560208401525050610140820135604082015292915050565b60008183036102a0811215612f5d57600080fd5b612f65612da0565b9150612f718484612e31565b8252612f808460808501612e95565b602083015260c06101df1982011215612f9857600080fd5b50612fa1612e01565b6101e08301358152610200830135602082015261022083013560408201526102408301356060820152610260830135608082015261028083013560a08201528060408301525092915050565b803560038110612bd957600080fd5b600060a0828403121561300e57600080fd5b60405160a081016001600160401b038111828210171561303e57634e487b7160e01b600052604160045260246000fd5b806040525080915082358152602083013560208201526040830135604082015260608301356060820152608083013560808201525092915050565b600080600080610380858703121561309057600080fd5b61309a8686612f49565b93506130a96102a08601612fed565b92506102c085013591506130c1866102e08701612ffc565b905092959194509250565b60008060008061024085870312156130e357600080fd5b6130ed8686612e95565b93506130fc6101608601612fed565b925061018085013591506130c1866101a08701612ffc565b60006020828403121561312657600080fd5b81356107ef81612e75565b634e487b7160e01b600052602160045260246000fd5b815160808201906003811061316c57634e487b7160e01b600052602160045260246000fd5b8083525060208301516020830152604083015160408301526060830151606083015292915050565b6000806101e083850312156131a857600080fd5b6131b28484612e31565b91506131c18460808501612e95565b90509250929050565b600080600080600061042086880312156131e357600080fd5b6131ed8787612f49565b94506131fc6102a08701612fed565b93506102c08601359250613214876102e08801612ffc565b9150613224876103808801612ffc565b90509295509295909350565b60006102a0828403121561324357600080fd5b6107ef8383612f49565b8051612bd981612e75565b600060c0828403121561326a57600080fd5b613272612e01565b9050815181526020820151602082015260408201516040820152606082015160608201526080820151608082015260a082015160a082015292915050565b60008183036102a08112156132c457600080fd5b6132cc612da0565b60808212156132da57600080fd5b6132e2612d6a565b8451815260208501516020820152604085015160408201526060850151606082015280825250607f19820191506101608083121561331f57600080fd5b613327612da0565b6101208085121561333757600080fd5b61333f612dd0565b94506080870151855260a0870151602086015260c0870151604086015261336860e0880161324d565b60608601526101008088015160808701528188015160a087015261014088015160c08701528388015160e08701526101808801518187015250508381526101a086015160208201526101c0860151604082015280602084015250506133d1856101e08601613258565b6040820152949350505050565b9283526020830191909152604082015260600190565b634e487b7160e01b600052601160045260246000fd5b81810381811115610712576107126133f4565b634e487b7160e01b600052601260045260246000fd5b6000826134425761344261341d565b500490565b80820180821115610712576107126133f4565b60006001820161346c5761346c6133f4565b5060010190565b634e487b7160e01b600052600160045260246000fd5b8082028115828204841417610712576107126133f4565b80820260008212600160ff1b841416156134bc576134bc6133f4565b8181058314821517610712576107126133f4565b6000826134df576134df61341d565b600160ff1b8214600019841416156134f9576134f96133f4565b500590565b6000600160ff1b8201613513576135136133f4565b5060000390565b60006001600160ff1b01820161346c5761346c6133f4565b8082018281126000831280158216821582161715613552576135526133f4565b505092915050565b818103600083128015838313168383128216171561357a5761357a6133f4565b5092915050565b6000600160ff1b8201613596576135966133f4565b50600019019056fea26469706673582212206b14e8332aa1741158eb23a791a6e1d3a2e1b3ac6096d642d49b11fe8a5a00b764736f6c63430008110033";
|
|
1144
|
+
|
|
1145
|
+
type BotDecisionHelperConstructorParams =
|
|
1146
|
+
| [signer?: Signer]
|
|
1147
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
1148
|
+
|
|
1149
|
+
const isSuperArgs = (
|
|
1150
|
+
xs: BotDecisionHelperConstructorParams
|
|
1151
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
1152
|
+
|
|
1153
|
+
export class BotDecisionHelper__factory extends ContractFactory {
|
|
1154
|
+
constructor(...args: BotDecisionHelperConstructorParams) {
|
|
1155
|
+
if (isSuperArgs(args)) {
|
|
1156
|
+
super(...args);
|
|
1157
|
+
} else {
|
|
1158
|
+
super(_abi, _bytecode, args[0]);
|
|
1159
|
+
}
|
|
1160
|
+
this.contractName = "BotDecisionHelper";
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
deploy(
|
|
1164
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1165
|
+
): Promise<BotDecisionHelper> {
|
|
1166
|
+
return super.deploy(overrides || {}) as Promise<BotDecisionHelper>;
|
|
1167
|
+
}
|
|
1168
|
+
getDeployTransaction(
|
|
1169
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1170
|
+
): TransactionRequest {
|
|
1171
|
+
return super.getDeployTransaction(overrides || {});
|
|
1172
|
+
}
|
|
1173
|
+
attach(address: string): BotDecisionHelper {
|
|
1174
|
+
return super.attach(address) as BotDecisionHelper;
|
|
1175
|
+
}
|
|
1176
|
+
connect(signer: Signer): BotDecisionHelper__factory {
|
|
1177
|
+
return super.connect(signer) as BotDecisionHelper__factory;
|
|
1178
|
+
}
|
|
1179
|
+
static readonly contractName: "BotDecisionHelper";
|
|
1180
|
+
public readonly contractName: "BotDecisionHelper";
|
|
1181
|
+
static readonly bytecode = _bytecode;
|
|
1182
|
+
static readonly abi = _abi;
|
|
1183
|
+
static createInterface(): BotDecisionHelperInterface {
|
|
1184
|
+
return new utils.Interface(_abi) as BotDecisionHelperInterface;
|
|
1185
|
+
}
|
|
1186
|
+
static connect(
|
|
1187
|
+
address: string,
|
|
1188
|
+
signerOrProvider: Signer | Provider
|
|
1189
|
+
): BotDecisionHelper {
|
|
1190
|
+
return new Contract(address, _abi, signerOrProvider) as BotDecisionHelper;
|
|
1191
|
+
}
|
|
1192
|
+
}
|