@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,1445 @@
|
|
|
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
|
+
ShortYieldTradingBot,
|
|
8
|
+
ShortYieldTradingBotInterface,
|
|
9
|
+
} from "../ShortYieldTradingBot";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
internalType: "address",
|
|
16
|
+
name: "_market",
|
|
17
|
+
type: "address",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
internalType: "address",
|
|
21
|
+
name: "_router",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
internalType: "address",
|
|
26
|
+
name: "_PENDLE",
|
|
27
|
+
type: "address",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
internalType: "address",
|
|
31
|
+
name: "_decisionHelper",
|
|
32
|
+
type: "address",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
stateMutability: "nonpayable",
|
|
36
|
+
type: "constructor",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
inputs: [
|
|
40
|
+
{
|
|
41
|
+
internalType: "uint256",
|
|
42
|
+
name: "actualSyOut",
|
|
43
|
+
type: "uint256",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
internalType: "uint256",
|
|
47
|
+
name: "requiredSyOut",
|
|
48
|
+
type: "uint256",
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
name: "BotInsufficientSyOut",
|
|
52
|
+
type: "error",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
anonymous: false,
|
|
56
|
+
inputs: [
|
|
57
|
+
{
|
|
58
|
+
indexed: false,
|
|
59
|
+
internalType: "address",
|
|
60
|
+
name: "previousAdmin",
|
|
61
|
+
type: "address",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
indexed: false,
|
|
65
|
+
internalType: "address",
|
|
66
|
+
name: "newAdmin",
|
|
67
|
+
type: "address",
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
name: "AdminChanged",
|
|
71
|
+
type: "event",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
anonymous: false,
|
|
75
|
+
inputs: [
|
|
76
|
+
{
|
|
77
|
+
indexed: true,
|
|
78
|
+
internalType: "address",
|
|
79
|
+
name: "beacon",
|
|
80
|
+
type: "address",
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
name: "BeaconUpgraded",
|
|
84
|
+
type: "event",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
anonymous: false,
|
|
88
|
+
inputs: [
|
|
89
|
+
{
|
|
90
|
+
indexed: false,
|
|
91
|
+
internalType: "uint256",
|
|
92
|
+
name: "netSyOut",
|
|
93
|
+
type: "uint256",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
indexed: false,
|
|
97
|
+
internalType: "uint256",
|
|
98
|
+
name: "netPendleOut",
|
|
99
|
+
type: "uint256",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
name: "ClaimAndCompound",
|
|
103
|
+
type: "event",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
anonymous: false,
|
|
107
|
+
inputs: [
|
|
108
|
+
{
|
|
109
|
+
indexed: false,
|
|
110
|
+
internalType: "uint256",
|
|
111
|
+
name: "netSyIn",
|
|
112
|
+
type: "uint256",
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
name: "DepositSy",
|
|
116
|
+
type: "event",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
anonymous: false,
|
|
120
|
+
inputs: [
|
|
121
|
+
{
|
|
122
|
+
indexed: true,
|
|
123
|
+
internalType: "address",
|
|
124
|
+
name: "token",
|
|
125
|
+
type: "address",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
indexed: false,
|
|
129
|
+
internalType: "uint256",
|
|
130
|
+
name: "netTokenIn",
|
|
131
|
+
type: "uint256",
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
name: "DepositToken",
|
|
135
|
+
type: "event",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
anonymous: false,
|
|
139
|
+
inputs: [
|
|
140
|
+
{
|
|
141
|
+
indexed: false,
|
|
142
|
+
internalType: "uint8",
|
|
143
|
+
name: "version",
|
|
144
|
+
type: "uint8",
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
name: "Initialized",
|
|
148
|
+
type: "event",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
anonymous: false,
|
|
152
|
+
inputs: [
|
|
153
|
+
{
|
|
154
|
+
indexed: false,
|
|
155
|
+
internalType: "uint256",
|
|
156
|
+
name: "netSyIn",
|
|
157
|
+
type: "uint256",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
indexed: false,
|
|
161
|
+
internalType: "uint256",
|
|
162
|
+
name: "netPyOut",
|
|
163
|
+
type: "uint256",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
name: "MintPy",
|
|
167
|
+
type: "event",
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
anonymous: false,
|
|
171
|
+
inputs: [
|
|
172
|
+
{
|
|
173
|
+
indexed: true,
|
|
174
|
+
internalType: "address",
|
|
175
|
+
name: "previousOwner",
|
|
176
|
+
type: "address",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
indexed: true,
|
|
180
|
+
internalType: "address",
|
|
181
|
+
name: "newOwner",
|
|
182
|
+
type: "address",
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
name: "OwnershipTransferred",
|
|
186
|
+
type: "event",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
anonymous: false,
|
|
190
|
+
inputs: [
|
|
191
|
+
{
|
|
192
|
+
components: [
|
|
193
|
+
{
|
|
194
|
+
components: [
|
|
195
|
+
{
|
|
196
|
+
internalType: "uint256",
|
|
197
|
+
name: "guessMin",
|
|
198
|
+
type: "uint256",
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
internalType: "uint256",
|
|
202
|
+
name: "guessMax",
|
|
203
|
+
type: "uint256",
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
internalType: "uint256",
|
|
207
|
+
name: "guessOffchain",
|
|
208
|
+
type: "uint256",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
internalType: "uint256",
|
|
212
|
+
name: "maxIteration",
|
|
213
|
+
type: "uint256",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
internalType: "uint256",
|
|
217
|
+
name: "eps",
|
|
218
|
+
type: "uint256",
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
internalType: "struct ApproxParams",
|
|
222
|
+
name: "botParams",
|
|
223
|
+
type: "tuple",
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
components: [
|
|
227
|
+
{
|
|
228
|
+
internalType: "uint256",
|
|
229
|
+
name: "guessMin",
|
|
230
|
+
type: "uint256",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
internalType: "uint256",
|
|
234
|
+
name: "guessMax",
|
|
235
|
+
type: "uint256",
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
internalType: "uint256",
|
|
239
|
+
name: "guessOffchain",
|
|
240
|
+
type: "uint256",
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
internalType: "uint256",
|
|
244
|
+
name: "maxIteration",
|
|
245
|
+
type: "uint256",
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
internalType: "uint256",
|
|
249
|
+
name: "eps",
|
|
250
|
+
type: "uint256",
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
internalType: "struct ApproxParams",
|
|
254
|
+
name: "guessTotalPtToSwap",
|
|
255
|
+
type: "tuple",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
internalType: "uint256",
|
|
259
|
+
name: "minAmountOut",
|
|
260
|
+
type: "uint256",
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
internalType: "uint256",
|
|
264
|
+
name: "targetIy",
|
|
265
|
+
type: "uint256",
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
internalType: "int256",
|
|
269
|
+
name: "currentBin",
|
|
270
|
+
type: "int256",
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
indexed: false,
|
|
274
|
+
internalType: "struct IShortYieldTradingBot.SwapInput",
|
|
275
|
+
name: "inputParams",
|
|
276
|
+
type: "tuple",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
indexed: false,
|
|
280
|
+
internalType: "uint256",
|
|
281
|
+
name: "netYtOut",
|
|
282
|
+
type: "uint256",
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
name: "SwapPtForYt",
|
|
286
|
+
type: "event",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
anonymous: false,
|
|
290
|
+
inputs: [
|
|
291
|
+
{
|
|
292
|
+
components: [
|
|
293
|
+
{
|
|
294
|
+
components: [
|
|
295
|
+
{
|
|
296
|
+
internalType: "uint256",
|
|
297
|
+
name: "guessMin",
|
|
298
|
+
type: "uint256",
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
internalType: "uint256",
|
|
302
|
+
name: "guessMax",
|
|
303
|
+
type: "uint256",
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
internalType: "uint256",
|
|
307
|
+
name: "guessOffchain",
|
|
308
|
+
type: "uint256",
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
internalType: "uint256",
|
|
312
|
+
name: "maxIteration",
|
|
313
|
+
type: "uint256",
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
internalType: "uint256",
|
|
317
|
+
name: "eps",
|
|
318
|
+
type: "uint256",
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
internalType: "struct ApproxParams",
|
|
322
|
+
name: "botParams",
|
|
323
|
+
type: "tuple",
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
components: [
|
|
327
|
+
{
|
|
328
|
+
internalType: "uint256",
|
|
329
|
+
name: "guessMin",
|
|
330
|
+
type: "uint256",
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
internalType: "uint256",
|
|
334
|
+
name: "guessMax",
|
|
335
|
+
type: "uint256",
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
internalType: "uint256",
|
|
339
|
+
name: "guessOffchain",
|
|
340
|
+
type: "uint256",
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
internalType: "uint256",
|
|
344
|
+
name: "maxIteration",
|
|
345
|
+
type: "uint256",
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
internalType: "uint256",
|
|
349
|
+
name: "eps",
|
|
350
|
+
type: "uint256",
|
|
351
|
+
},
|
|
352
|
+
],
|
|
353
|
+
internalType: "struct ApproxParams",
|
|
354
|
+
name: "guessTotalPtToSwap",
|
|
355
|
+
type: "tuple",
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
internalType: "uint256",
|
|
359
|
+
name: "minAmountOut",
|
|
360
|
+
type: "uint256",
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
internalType: "uint256",
|
|
364
|
+
name: "targetIy",
|
|
365
|
+
type: "uint256",
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
internalType: "int256",
|
|
369
|
+
name: "currentBin",
|
|
370
|
+
type: "int256",
|
|
371
|
+
},
|
|
372
|
+
],
|
|
373
|
+
indexed: false,
|
|
374
|
+
internalType: "struct IShortYieldTradingBot.SwapInput",
|
|
375
|
+
name: "inputParams",
|
|
376
|
+
type: "tuple",
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
indexed: false,
|
|
380
|
+
internalType: "uint256",
|
|
381
|
+
name: "netPtOut",
|
|
382
|
+
type: "uint256",
|
|
383
|
+
},
|
|
384
|
+
],
|
|
385
|
+
name: "SwapYtForPt",
|
|
386
|
+
type: "event",
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
anonymous: false,
|
|
390
|
+
inputs: [
|
|
391
|
+
{
|
|
392
|
+
indexed: true,
|
|
393
|
+
internalType: "address",
|
|
394
|
+
name: "implementation",
|
|
395
|
+
type: "address",
|
|
396
|
+
},
|
|
397
|
+
],
|
|
398
|
+
name: "Upgraded",
|
|
399
|
+
type: "event",
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
anonymous: false,
|
|
403
|
+
inputs: [
|
|
404
|
+
{
|
|
405
|
+
indexed: true,
|
|
406
|
+
internalType: "address",
|
|
407
|
+
name: "token",
|
|
408
|
+
type: "address",
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
indexed: false,
|
|
412
|
+
internalType: "uint256",
|
|
413
|
+
name: "amount",
|
|
414
|
+
type: "uint256",
|
|
415
|
+
},
|
|
416
|
+
],
|
|
417
|
+
name: "WithdrawFunds",
|
|
418
|
+
type: "event",
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
inputs: [],
|
|
422
|
+
name: "PENDLE",
|
|
423
|
+
outputs: [
|
|
424
|
+
{
|
|
425
|
+
internalType: "address",
|
|
426
|
+
name: "",
|
|
427
|
+
type: "address",
|
|
428
|
+
},
|
|
429
|
+
],
|
|
430
|
+
stateMutability: "view",
|
|
431
|
+
type: "function",
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
inputs: [],
|
|
435
|
+
name: "PT",
|
|
436
|
+
outputs: [
|
|
437
|
+
{
|
|
438
|
+
internalType: "address",
|
|
439
|
+
name: "",
|
|
440
|
+
type: "address",
|
|
441
|
+
},
|
|
442
|
+
],
|
|
443
|
+
stateMutability: "view",
|
|
444
|
+
type: "function",
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
inputs: [],
|
|
448
|
+
name: "SY",
|
|
449
|
+
outputs: [
|
|
450
|
+
{
|
|
451
|
+
internalType: "address",
|
|
452
|
+
name: "",
|
|
453
|
+
type: "address",
|
|
454
|
+
},
|
|
455
|
+
],
|
|
456
|
+
stateMutability: "view",
|
|
457
|
+
type: "function",
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
inputs: [],
|
|
461
|
+
name: "YT",
|
|
462
|
+
outputs: [
|
|
463
|
+
{
|
|
464
|
+
internalType: "address",
|
|
465
|
+
name: "",
|
|
466
|
+
type: "address",
|
|
467
|
+
},
|
|
468
|
+
],
|
|
469
|
+
stateMutability: "view",
|
|
470
|
+
type: "function",
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
inputs: [
|
|
474
|
+
{
|
|
475
|
+
components: [
|
|
476
|
+
{
|
|
477
|
+
internalType: "address[]",
|
|
478
|
+
name: "tokens",
|
|
479
|
+
type: "address[]",
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
internalType: "address",
|
|
483
|
+
name: "spender",
|
|
484
|
+
type: "address",
|
|
485
|
+
},
|
|
486
|
+
],
|
|
487
|
+
internalType: "struct ITradingBotBase.MultiApproval[]",
|
|
488
|
+
name: "arr",
|
|
489
|
+
type: "tuple[]",
|
|
490
|
+
},
|
|
491
|
+
],
|
|
492
|
+
name: "approveInf",
|
|
493
|
+
outputs: [],
|
|
494
|
+
stateMutability: "nonpayable",
|
|
495
|
+
type: "function",
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
inputs: [],
|
|
499
|
+
name: "buyBins",
|
|
500
|
+
outputs: [
|
|
501
|
+
{
|
|
502
|
+
internalType: "uint256",
|
|
503
|
+
name: "",
|
|
504
|
+
type: "uint256",
|
|
505
|
+
},
|
|
506
|
+
],
|
|
507
|
+
stateMutability: "view",
|
|
508
|
+
type: "function",
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
inputs: [
|
|
512
|
+
{
|
|
513
|
+
components: [
|
|
514
|
+
{
|
|
515
|
+
internalType: "address",
|
|
516
|
+
name: "tokenIn",
|
|
517
|
+
type: "address",
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
internalType: "uint256",
|
|
521
|
+
name: "netTokenIn",
|
|
522
|
+
type: "uint256",
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
internalType: "address",
|
|
526
|
+
name: "tokenMintSy",
|
|
527
|
+
type: "address",
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
internalType: "address",
|
|
531
|
+
name: "bulk",
|
|
532
|
+
type: "address",
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
internalType: "address",
|
|
536
|
+
name: "pendleSwap",
|
|
537
|
+
type: "address",
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
components: [
|
|
541
|
+
{
|
|
542
|
+
internalType: "enum SwapType",
|
|
543
|
+
name: "swapType",
|
|
544
|
+
type: "uint8",
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
internalType: "address",
|
|
548
|
+
name: "extRouter",
|
|
549
|
+
type: "address",
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
internalType: "bytes",
|
|
553
|
+
name: "extCalldata",
|
|
554
|
+
type: "bytes",
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
internalType: "bool",
|
|
558
|
+
name: "needScale",
|
|
559
|
+
type: "bool",
|
|
560
|
+
},
|
|
561
|
+
],
|
|
562
|
+
internalType: "struct SwapData",
|
|
563
|
+
name: "swapData",
|
|
564
|
+
type: "tuple",
|
|
565
|
+
},
|
|
566
|
+
],
|
|
567
|
+
internalType: "struct TokenInput[]",
|
|
568
|
+
name: "inps",
|
|
569
|
+
type: "tuple[]",
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
internalType: "uint256",
|
|
573
|
+
name: "minSyOut",
|
|
574
|
+
type: "uint256",
|
|
575
|
+
},
|
|
576
|
+
],
|
|
577
|
+
name: "claimAndCompound",
|
|
578
|
+
outputs: [
|
|
579
|
+
{
|
|
580
|
+
internalType: "uint256",
|
|
581
|
+
name: "netSyOut",
|
|
582
|
+
type: "uint256",
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
internalType: "uint256",
|
|
586
|
+
name: "netPendleOut",
|
|
587
|
+
type: "uint256",
|
|
588
|
+
},
|
|
589
|
+
],
|
|
590
|
+
stateMutability: "nonpayable",
|
|
591
|
+
type: "function",
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
inputs: [],
|
|
595
|
+
name: "claimOwnership",
|
|
596
|
+
outputs: [],
|
|
597
|
+
stateMutability: "nonpayable",
|
|
598
|
+
type: "function",
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
inputs: [],
|
|
602
|
+
name: "claimWithoutCompound",
|
|
603
|
+
outputs: [
|
|
604
|
+
{
|
|
605
|
+
components: [
|
|
606
|
+
{
|
|
607
|
+
internalType: "address",
|
|
608
|
+
name: "token",
|
|
609
|
+
type: "address",
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
internalType: "uint256",
|
|
613
|
+
name: "amount",
|
|
614
|
+
type: "uint256",
|
|
615
|
+
},
|
|
616
|
+
],
|
|
617
|
+
internalType: "struct TokenAmount[]",
|
|
618
|
+
name: "rewards",
|
|
619
|
+
type: "tuple[]",
|
|
620
|
+
},
|
|
621
|
+
],
|
|
622
|
+
stateMutability: "nonpayable",
|
|
623
|
+
type: "function",
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
inputs: [],
|
|
627
|
+
name: "decisionHelper",
|
|
628
|
+
outputs: [
|
|
629
|
+
{
|
|
630
|
+
internalType: "contract IBotDecisionHelper",
|
|
631
|
+
name: "",
|
|
632
|
+
type: "address",
|
|
633
|
+
},
|
|
634
|
+
],
|
|
635
|
+
stateMutability: "view",
|
|
636
|
+
type: "function",
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
inputs: [
|
|
640
|
+
{
|
|
641
|
+
internalType: "uint256",
|
|
642
|
+
name: "netSyIn",
|
|
643
|
+
type: "uint256",
|
|
644
|
+
},
|
|
645
|
+
],
|
|
646
|
+
name: "depositSy",
|
|
647
|
+
outputs: [],
|
|
648
|
+
stateMutability: "nonpayable",
|
|
649
|
+
type: "function",
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
inputs: [
|
|
653
|
+
{
|
|
654
|
+
components: [
|
|
655
|
+
{
|
|
656
|
+
internalType: "address",
|
|
657
|
+
name: "tokenIn",
|
|
658
|
+
type: "address",
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
internalType: "uint256",
|
|
662
|
+
name: "netTokenIn",
|
|
663
|
+
type: "uint256",
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
internalType: "address",
|
|
667
|
+
name: "tokenMintSy",
|
|
668
|
+
type: "address",
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
internalType: "address",
|
|
672
|
+
name: "bulk",
|
|
673
|
+
type: "address",
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
internalType: "address",
|
|
677
|
+
name: "pendleSwap",
|
|
678
|
+
type: "address",
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
components: [
|
|
682
|
+
{
|
|
683
|
+
internalType: "enum SwapType",
|
|
684
|
+
name: "swapType",
|
|
685
|
+
type: "uint8",
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
internalType: "address",
|
|
689
|
+
name: "extRouter",
|
|
690
|
+
type: "address",
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
internalType: "bytes",
|
|
694
|
+
name: "extCalldata",
|
|
695
|
+
type: "bytes",
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
internalType: "bool",
|
|
699
|
+
name: "needScale",
|
|
700
|
+
type: "bool",
|
|
701
|
+
},
|
|
702
|
+
],
|
|
703
|
+
internalType: "struct SwapData",
|
|
704
|
+
name: "swapData",
|
|
705
|
+
type: "tuple",
|
|
706
|
+
},
|
|
707
|
+
],
|
|
708
|
+
internalType: "struct TokenInput",
|
|
709
|
+
name: "inp",
|
|
710
|
+
type: "tuple",
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
internalType: "uint256",
|
|
714
|
+
name: "minSyOut",
|
|
715
|
+
type: "uint256",
|
|
716
|
+
},
|
|
717
|
+
],
|
|
718
|
+
name: "depositToken",
|
|
719
|
+
outputs: [],
|
|
720
|
+
stateMutability: "payable",
|
|
721
|
+
type: "function",
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
inputs: [
|
|
725
|
+
{
|
|
726
|
+
components: [
|
|
727
|
+
{
|
|
728
|
+
internalType: "uint256",
|
|
729
|
+
name: "buyYtIy",
|
|
730
|
+
type: "uint256",
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
internalType: "uint256",
|
|
734
|
+
name: "sellYtIy",
|
|
735
|
+
type: "uint256",
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
internalType: "uint256",
|
|
739
|
+
name: "targetSyRatio",
|
|
740
|
+
type: "uint256",
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
internalType: "uint256",
|
|
744
|
+
name: "maxSyRatio",
|
|
745
|
+
type: "uint256",
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
internalType: "uint256",
|
|
749
|
+
name: "targetYtPtRatio",
|
|
750
|
+
type: "uint256",
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
internalType: "uint256",
|
|
754
|
+
name: "numOfBins",
|
|
755
|
+
type: "uint256",
|
|
756
|
+
},
|
|
757
|
+
],
|
|
758
|
+
internalType: "struct TradingSpecs",
|
|
759
|
+
name: "_specs",
|
|
760
|
+
type: "tuple",
|
|
761
|
+
},
|
|
762
|
+
],
|
|
763
|
+
name: "initialize",
|
|
764
|
+
outputs: [],
|
|
765
|
+
stateMutability: "nonpayable",
|
|
766
|
+
type: "function",
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
inputs: [],
|
|
770
|
+
name: "market",
|
|
771
|
+
outputs: [
|
|
772
|
+
{
|
|
773
|
+
internalType: "address",
|
|
774
|
+
name: "",
|
|
775
|
+
type: "address",
|
|
776
|
+
},
|
|
777
|
+
],
|
|
778
|
+
stateMutability: "view",
|
|
779
|
+
type: "function",
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
inputs: [
|
|
783
|
+
{
|
|
784
|
+
internalType: "uint256",
|
|
785
|
+
name: "netSyIn",
|
|
786
|
+
type: "uint256",
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
internalType: "uint256",
|
|
790
|
+
name: "minPyOut",
|
|
791
|
+
type: "uint256",
|
|
792
|
+
},
|
|
793
|
+
],
|
|
794
|
+
name: "mintPY",
|
|
795
|
+
outputs: [
|
|
796
|
+
{
|
|
797
|
+
internalType: "uint256",
|
|
798
|
+
name: "netPyOut",
|
|
799
|
+
type: "uint256",
|
|
800
|
+
},
|
|
801
|
+
],
|
|
802
|
+
stateMutability: "nonpayable",
|
|
803
|
+
type: "function",
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
inputs: [],
|
|
807
|
+
name: "owner",
|
|
808
|
+
outputs: [
|
|
809
|
+
{
|
|
810
|
+
internalType: "address",
|
|
811
|
+
name: "",
|
|
812
|
+
type: "address",
|
|
813
|
+
},
|
|
814
|
+
],
|
|
815
|
+
stateMutability: "view",
|
|
816
|
+
type: "function",
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
inputs: [],
|
|
820
|
+
name: "pendingOwner",
|
|
821
|
+
outputs: [
|
|
822
|
+
{
|
|
823
|
+
internalType: "address",
|
|
824
|
+
name: "",
|
|
825
|
+
type: "address",
|
|
826
|
+
},
|
|
827
|
+
],
|
|
828
|
+
stateMutability: "view",
|
|
829
|
+
type: "function",
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
inputs: [],
|
|
833
|
+
name: "proxiableUUID",
|
|
834
|
+
outputs: [
|
|
835
|
+
{
|
|
836
|
+
internalType: "bytes32",
|
|
837
|
+
name: "",
|
|
838
|
+
type: "bytes32",
|
|
839
|
+
},
|
|
840
|
+
],
|
|
841
|
+
stateMutability: "view",
|
|
842
|
+
type: "function",
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
inputs: [],
|
|
846
|
+
name: "readStrategyData",
|
|
847
|
+
outputs: [
|
|
848
|
+
{
|
|
849
|
+
components: [
|
|
850
|
+
{
|
|
851
|
+
components: [
|
|
852
|
+
{
|
|
853
|
+
internalType: "uint256",
|
|
854
|
+
name: "lpBalance",
|
|
855
|
+
type: "uint256",
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
internalType: "uint256",
|
|
859
|
+
name: "ytBalance",
|
|
860
|
+
type: "uint256",
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
internalType: "uint256",
|
|
864
|
+
name: "ptBalance",
|
|
865
|
+
type: "uint256",
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
internalType: "uint256",
|
|
869
|
+
name: "syBalance",
|
|
870
|
+
type: "uint256",
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
internalType: "uint256",
|
|
874
|
+
name: "buyBins",
|
|
875
|
+
type: "uint256",
|
|
876
|
+
},
|
|
877
|
+
],
|
|
878
|
+
internalType: "struct BotState",
|
|
879
|
+
name: "botState",
|
|
880
|
+
type: "tuple",
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
components: [
|
|
884
|
+
{
|
|
885
|
+
components: [
|
|
886
|
+
{
|
|
887
|
+
internalType: "int256",
|
|
888
|
+
name: "totalPt",
|
|
889
|
+
type: "int256",
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
internalType: "int256",
|
|
893
|
+
name: "totalSy",
|
|
894
|
+
type: "int256",
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
internalType: "int256",
|
|
898
|
+
name: "totalLp",
|
|
899
|
+
type: "int256",
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
internalType: "address",
|
|
903
|
+
name: "treasury",
|
|
904
|
+
type: "address",
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
internalType: "int256",
|
|
908
|
+
name: "scalarRoot",
|
|
909
|
+
type: "int256",
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
internalType: "uint256",
|
|
913
|
+
name: "expiry",
|
|
914
|
+
type: "uint256",
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
internalType: "uint256",
|
|
918
|
+
name: "lnFeeRateRoot",
|
|
919
|
+
type: "uint256",
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
internalType: "uint256",
|
|
923
|
+
name: "reserveFeePercent",
|
|
924
|
+
type: "uint256",
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
internalType: "uint256",
|
|
928
|
+
name: "lastLnImpliedRate",
|
|
929
|
+
type: "uint256",
|
|
930
|
+
},
|
|
931
|
+
],
|
|
932
|
+
internalType: "struct MarketState",
|
|
933
|
+
name: "state",
|
|
934
|
+
type: "tuple",
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
internalType: "PYIndex",
|
|
938
|
+
name: "index",
|
|
939
|
+
type: "uint256",
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
internalType: "uint256",
|
|
943
|
+
name: "blockTime",
|
|
944
|
+
type: "uint256",
|
|
945
|
+
},
|
|
946
|
+
],
|
|
947
|
+
internalType: "struct MarketExtState",
|
|
948
|
+
name: "marketExt",
|
|
949
|
+
type: "tuple",
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
components: [
|
|
953
|
+
{
|
|
954
|
+
internalType: "uint256",
|
|
955
|
+
name: "buyYtIy",
|
|
956
|
+
type: "uint256",
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
internalType: "uint256",
|
|
960
|
+
name: "sellYtIy",
|
|
961
|
+
type: "uint256",
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
internalType: "uint256",
|
|
965
|
+
name: "targetSyRatio",
|
|
966
|
+
type: "uint256",
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
internalType: "uint256",
|
|
970
|
+
name: "maxSyRatio",
|
|
971
|
+
type: "uint256",
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
internalType: "uint256",
|
|
975
|
+
name: "targetYtPtRatio",
|
|
976
|
+
type: "uint256",
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
internalType: "uint256",
|
|
980
|
+
name: "numOfBins",
|
|
981
|
+
type: "uint256",
|
|
982
|
+
},
|
|
983
|
+
],
|
|
984
|
+
internalType: "struct TradingSpecs",
|
|
985
|
+
name: "specs",
|
|
986
|
+
type: "tuple",
|
|
987
|
+
},
|
|
988
|
+
],
|
|
989
|
+
internalType: "struct StrategyData",
|
|
990
|
+
name: "strategyData",
|
|
991
|
+
type: "tuple",
|
|
992
|
+
},
|
|
993
|
+
],
|
|
994
|
+
stateMutability: "nonpayable",
|
|
995
|
+
type: "function",
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
inputs: [],
|
|
999
|
+
name: "router",
|
|
1000
|
+
outputs: [
|
|
1001
|
+
{
|
|
1002
|
+
internalType: "address",
|
|
1003
|
+
name: "",
|
|
1004
|
+
type: "address",
|
|
1005
|
+
},
|
|
1006
|
+
],
|
|
1007
|
+
stateMutability: "view",
|
|
1008
|
+
type: "function",
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
inputs: [
|
|
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: "targetYtPtRatio",
|
|
1037
|
+
type: "uint256",
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
internalType: "uint256",
|
|
1041
|
+
name: "numOfBins",
|
|
1042
|
+
type: "uint256",
|
|
1043
|
+
},
|
|
1044
|
+
],
|
|
1045
|
+
internalType: "struct TradingSpecs",
|
|
1046
|
+
name: "_specs",
|
|
1047
|
+
type: "tuple",
|
|
1048
|
+
},
|
|
1049
|
+
],
|
|
1050
|
+
name: "setSpecs",
|
|
1051
|
+
outputs: [],
|
|
1052
|
+
stateMutability: "nonpayable",
|
|
1053
|
+
type: "function",
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
inputs: [],
|
|
1057
|
+
name: "specs",
|
|
1058
|
+
outputs: [
|
|
1059
|
+
{
|
|
1060
|
+
internalType: "uint256",
|
|
1061
|
+
name: "buyYtIy",
|
|
1062
|
+
type: "uint256",
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
internalType: "uint256",
|
|
1066
|
+
name: "sellYtIy",
|
|
1067
|
+
type: "uint256",
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
internalType: "uint256",
|
|
1071
|
+
name: "targetSyRatio",
|
|
1072
|
+
type: "uint256",
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
internalType: "uint256",
|
|
1076
|
+
name: "maxSyRatio",
|
|
1077
|
+
type: "uint256",
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
internalType: "uint256",
|
|
1081
|
+
name: "targetYtPtRatio",
|
|
1082
|
+
type: "uint256",
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
internalType: "uint256",
|
|
1086
|
+
name: "numOfBins",
|
|
1087
|
+
type: "uint256",
|
|
1088
|
+
},
|
|
1089
|
+
],
|
|
1090
|
+
stateMutability: "view",
|
|
1091
|
+
type: "function",
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
inputs: [
|
|
1095
|
+
{
|
|
1096
|
+
components: [
|
|
1097
|
+
{
|
|
1098
|
+
components: [
|
|
1099
|
+
{
|
|
1100
|
+
internalType: "uint256",
|
|
1101
|
+
name: "guessMin",
|
|
1102
|
+
type: "uint256",
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
internalType: "uint256",
|
|
1106
|
+
name: "guessMax",
|
|
1107
|
+
type: "uint256",
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
internalType: "uint256",
|
|
1111
|
+
name: "guessOffchain",
|
|
1112
|
+
type: "uint256",
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
internalType: "uint256",
|
|
1116
|
+
name: "maxIteration",
|
|
1117
|
+
type: "uint256",
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
internalType: "uint256",
|
|
1121
|
+
name: "eps",
|
|
1122
|
+
type: "uint256",
|
|
1123
|
+
},
|
|
1124
|
+
],
|
|
1125
|
+
internalType: "struct ApproxParams",
|
|
1126
|
+
name: "botParams",
|
|
1127
|
+
type: "tuple",
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
components: [
|
|
1131
|
+
{
|
|
1132
|
+
internalType: "uint256",
|
|
1133
|
+
name: "guessMin",
|
|
1134
|
+
type: "uint256",
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
internalType: "uint256",
|
|
1138
|
+
name: "guessMax",
|
|
1139
|
+
type: "uint256",
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
internalType: "uint256",
|
|
1143
|
+
name: "guessOffchain",
|
|
1144
|
+
type: "uint256",
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
internalType: "uint256",
|
|
1148
|
+
name: "maxIteration",
|
|
1149
|
+
type: "uint256",
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
internalType: "uint256",
|
|
1153
|
+
name: "eps",
|
|
1154
|
+
type: "uint256",
|
|
1155
|
+
},
|
|
1156
|
+
],
|
|
1157
|
+
internalType: "struct ApproxParams",
|
|
1158
|
+
name: "guessTotalPtToSwap",
|
|
1159
|
+
type: "tuple",
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
internalType: "uint256",
|
|
1163
|
+
name: "minAmountOut",
|
|
1164
|
+
type: "uint256",
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
internalType: "uint256",
|
|
1168
|
+
name: "targetIy",
|
|
1169
|
+
type: "uint256",
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
internalType: "int256",
|
|
1173
|
+
name: "currentBin",
|
|
1174
|
+
type: "int256",
|
|
1175
|
+
},
|
|
1176
|
+
],
|
|
1177
|
+
internalType: "struct IShortYieldTradingBot.SwapInput",
|
|
1178
|
+
name: "inputParams",
|
|
1179
|
+
type: "tuple",
|
|
1180
|
+
},
|
|
1181
|
+
],
|
|
1182
|
+
name: "swapPtForYt",
|
|
1183
|
+
outputs: [
|
|
1184
|
+
{
|
|
1185
|
+
internalType: "uint256",
|
|
1186
|
+
name: "netYtOut",
|
|
1187
|
+
type: "uint256",
|
|
1188
|
+
},
|
|
1189
|
+
],
|
|
1190
|
+
stateMutability: "nonpayable",
|
|
1191
|
+
type: "function",
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
inputs: [
|
|
1195
|
+
{
|
|
1196
|
+
components: [
|
|
1197
|
+
{
|
|
1198
|
+
components: [
|
|
1199
|
+
{
|
|
1200
|
+
internalType: "uint256",
|
|
1201
|
+
name: "guessMin",
|
|
1202
|
+
type: "uint256",
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
internalType: "uint256",
|
|
1206
|
+
name: "guessMax",
|
|
1207
|
+
type: "uint256",
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
internalType: "uint256",
|
|
1211
|
+
name: "guessOffchain",
|
|
1212
|
+
type: "uint256",
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
internalType: "uint256",
|
|
1216
|
+
name: "maxIteration",
|
|
1217
|
+
type: "uint256",
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
internalType: "uint256",
|
|
1221
|
+
name: "eps",
|
|
1222
|
+
type: "uint256",
|
|
1223
|
+
},
|
|
1224
|
+
],
|
|
1225
|
+
internalType: "struct ApproxParams",
|
|
1226
|
+
name: "botParams",
|
|
1227
|
+
type: "tuple",
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
components: [
|
|
1231
|
+
{
|
|
1232
|
+
internalType: "uint256",
|
|
1233
|
+
name: "guessMin",
|
|
1234
|
+
type: "uint256",
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
internalType: "uint256",
|
|
1238
|
+
name: "guessMax",
|
|
1239
|
+
type: "uint256",
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
internalType: "uint256",
|
|
1243
|
+
name: "guessOffchain",
|
|
1244
|
+
type: "uint256",
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
internalType: "uint256",
|
|
1248
|
+
name: "maxIteration",
|
|
1249
|
+
type: "uint256",
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
internalType: "uint256",
|
|
1253
|
+
name: "eps",
|
|
1254
|
+
type: "uint256",
|
|
1255
|
+
},
|
|
1256
|
+
],
|
|
1257
|
+
internalType: "struct ApproxParams",
|
|
1258
|
+
name: "guessTotalPtToSwap",
|
|
1259
|
+
type: "tuple",
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
internalType: "uint256",
|
|
1263
|
+
name: "minAmountOut",
|
|
1264
|
+
type: "uint256",
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
internalType: "uint256",
|
|
1268
|
+
name: "targetIy",
|
|
1269
|
+
type: "uint256",
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
internalType: "int256",
|
|
1273
|
+
name: "currentBin",
|
|
1274
|
+
type: "int256",
|
|
1275
|
+
},
|
|
1276
|
+
],
|
|
1277
|
+
internalType: "struct IShortYieldTradingBot.SwapInput",
|
|
1278
|
+
name: "inputParams",
|
|
1279
|
+
type: "tuple",
|
|
1280
|
+
},
|
|
1281
|
+
],
|
|
1282
|
+
name: "swapYtForPt",
|
|
1283
|
+
outputs: [
|
|
1284
|
+
{
|
|
1285
|
+
internalType: "uint256",
|
|
1286
|
+
name: "netPtOut",
|
|
1287
|
+
type: "uint256",
|
|
1288
|
+
},
|
|
1289
|
+
],
|
|
1290
|
+
stateMutability: "nonpayable",
|
|
1291
|
+
type: "function",
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
inputs: [
|
|
1295
|
+
{
|
|
1296
|
+
internalType: "address",
|
|
1297
|
+
name: "newOwner",
|
|
1298
|
+
type: "address",
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
internalType: "bool",
|
|
1302
|
+
name: "direct",
|
|
1303
|
+
type: "bool",
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
internalType: "bool",
|
|
1307
|
+
name: "renounce",
|
|
1308
|
+
type: "bool",
|
|
1309
|
+
},
|
|
1310
|
+
],
|
|
1311
|
+
name: "transferOwnership",
|
|
1312
|
+
outputs: [],
|
|
1313
|
+
stateMutability: "nonpayable",
|
|
1314
|
+
type: "function",
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
inputs: [
|
|
1318
|
+
{
|
|
1319
|
+
internalType: "address",
|
|
1320
|
+
name: "newImplementation",
|
|
1321
|
+
type: "address",
|
|
1322
|
+
},
|
|
1323
|
+
],
|
|
1324
|
+
name: "upgradeTo",
|
|
1325
|
+
outputs: [],
|
|
1326
|
+
stateMutability: "nonpayable",
|
|
1327
|
+
type: "function",
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
inputs: [
|
|
1331
|
+
{
|
|
1332
|
+
internalType: "address",
|
|
1333
|
+
name: "newImplementation",
|
|
1334
|
+
type: "address",
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
internalType: "bytes",
|
|
1338
|
+
name: "data",
|
|
1339
|
+
type: "bytes",
|
|
1340
|
+
},
|
|
1341
|
+
],
|
|
1342
|
+
name: "upgradeToAndCall",
|
|
1343
|
+
outputs: [],
|
|
1344
|
+
stateMutability: "payable",
|
|
1345
|
+
type: "function",
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
inputs: [
|
|
1349
|
+
{
|
|
1350
|
+
internalType: "address",
|
|
1351
|
+
name: "token",
|
|
1352
|
+
type: "address",
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
internalType: "uint256",
|
|
1356
|
+
name: "amount",
|
|
1357
|
+
type: "uint256",
|
|
1358
|
+
},
|
|
1359
|
+
],
|
|
1360
|
+
name: "withdrawFunds",
|
|
1361
|
+
outputs: [],
|
|
1362
|
+
stateMutability: "nonpayable",
|
|
1363
|
+
type: "function",
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
stateMutability: "payable",
|
|
1367
|
+
type: "receive",
|
|
1368
|
+
},
|
|
1369
|
+
];
|
|
1370
|
+
|
|
1371
|
+
const _bytecode =
|
|
1372
|
+
"0x61018060405230610160523480156200001757600080fd5b50604051620041ce380380620041ce8339810160408190526200003a91620002ea565b6001548490849084908490600160a81b900460ff161580801562000069575060018054600160a01b900460ff16105b806200009f575062000086306200023f60201b620016dd1760201c565b1580156200009f575060018054600160a01b900460ff16145b620001085760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b6001805460ff60a01b1916600160a01b179055801562000136576001805460ff60a81b1916600160a81b1790555b6000806000876001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156200017a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001a0919062000352565b6001600160a01b03808c1660a0528a811660c05280841660e052808316610100528082166101205289811661014052881660805291945092509050620001e56200024e565b505050801562000230576001805460ff60a81b191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050505050620003a6565b6001600160a01b03163b151590565b600154600160a81b900460ff16620002bd5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401620000ff565b600080546001600160a01b03191633179055565b6001600160a01b0381168114620002e757600080fd5b50565b600080600080608085870312156200030157600080fd5b84516200030e81620002d1565b60208601519094506200032181620002d1565b60408601519093506200033481620002d1565b60608601519092506200034781620002d1565b939692955090935050565b6000806000606084860312156200036857600080fd5b83516200037581620002d1565b60208501519093506200038881620002d1565b60408501519092506200039b81620002d1565b809150509250925092565b60805160a05160c05160e05161010051610120516101405161016051613cc662000508600039600081816106a8015281816106e801528181610ac601528181610b060152610b7e0152600081816102ce015281816108e6015261091601526000818161028d015281816112e6015281816113700152818161196801528181611ef7015281816122e10152612408015260008181610495015261230f01526000818161040e01528181610a600152818161141b015281816114a501528181611a02015281816120c901526122b301526000818161057701528181611d7401528181611f300152818161208b01528181612166015261238f01526000818161030201528181611549015281816115d301528181611a9601528181611da30152818161219501528181612288015261236201526000818161052101528181610c5e01528181610d1f0152818161110b015281816111cc0152611e200152613cc66000f3fe60806040526004361061014b5760003560e01c8063078dfbe7146101575780633659cfe61461017957806337deed8d1461019957806343833bd6146101b95780634e71e0c8146101f05780634f0364b1146102055780634f1ef2861461022557806352d1902d14610238578063673729e21461025b578063781c18db1461027b5780637cf738d2146102bc57806380f55605146102f05780638da5cb5b14610324578063961434ba14610344578063a7584e5e14610364578063acdb32df14610384578063adb7c3f7146103a4578063afd27bf5146103fc578063c09aa0d214610430578063c107532914610443578063c23b340a14610463578063d94073d414610483578063dbeadc07146104b7578063e138b2ee146104d9578063e30c3978146104ef578063e82cee791461050f578063eb983ce514610543578063f887ea401461056557600080fd5b3661015257005b600080fd5b34801561016357600080fd5b50610177610172366004612dba565b610599565b005b34801561018557600080fd5b50610177610194366004612e05565b61069e565b3480156101a557600080fd5b506101776101b4366004612e91565b610766565b3480156101c557600080fd5b506101d96101d4366004612f55565b61089f565b6040516101e7929190612fa0565b60405180910390f35b3480156101fc57600080fd5b50610177610986565b34801561021157600080fd5b50610177610220366004612fae565b610a31565b610177610233366004613036565b610abc565b34801561024457600080fd5b5061024d610b71565b6040519081526020016101e7565b34801561026757600080fd5b5061024d610276366004613085565b610c1f565b34801561028757600080fd5b506102af7f000000000000000000000000000000000000000000000000000000000000000081565b6040516101e7919061309e565b3480156102c857600080fd5b506102af7f000000000000000000000000000000000000000000000000000000000000000081565b3480156102fc57600080fd5b506102af7f000000000000000000000000000000000000000000000000000000000000000081565b34801561033057600080fd5b506000546102af906001600160a01b031681565b34801561035057600080fd5b5061024d61035f3660046130b2565b610e16565b34801561037057600080fd5b5061017761037f3660046130e6565b610e8c565b34801561039057600080fd5b5061017761039f366004613102565b610ecd565b3480156103b057600080fd5b506032546033546034546035546036546037546103cf95949392919086565b604080519687526020870195909552938501929092526060840152608083015260a082015260c0016101e7565b34801561040857600080fd5b506102af7f000000000000000000000000000000000000000000000000000000000000000081565b61017761043e366004613143565b610f98565b34801561044f57600080fd5b5061017761045e366004613187565b611047565b34801561046f57600080fd5b5061024d61047e366004613085565b6110cc565b34801561048f57600080fd5b506102af7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104c357600080fd5b506104cc6112b5565b6040516101e791906131b3565b3480156104e557600080fd5b5061024d60385481565b3480156104fb57600080fd5b506001546102af906001600160a01b031681565b34801561051b57600080fd5b506102af7f000000000000000000000000000000000000000000000000000000000000000081565b34801561054f57600080fd5b5061055861167c565b6040516101e79190613315565b34801561057157600080fd5b506102af7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031633146105cc5760405162461bcd60e51b81526004016105c390613324565b60405180910390fd5b811561067d576001600160a01b0383161515806105e65750805b61062a5760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b60448201526064016105c3565b600080546040516001600160a01b0380871693921691600080516020613c4a83398151915291a3600080546001600160a01b0385166001600160a01b031991821617909155600180549091169055505050565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036106e65760405162461bcd60e51b81526004016105c390613359565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166107186116ec565b6001600160a01b03161461073e5760405162461bcd60e51b81526004016105c390613393565b61074781611708565b6040805160008082526020820190925261076391839190611732565b50565b600154600160a81b900460ff161580801561078c575060018054600160a01b900460ff16105b806107b3575061079b306116dd565b1580156107b3575060018054600160a01b900460ff16145b6108165760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016105c3565b6001805460ff60a01b1916600160a01b1790558015610843576001805460ff60a81b1916600160a81b1790555b61084c8261189d565b6108546118d0565b801561089b576001805460ff60a81b191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050565b6000805481906001600160a01b031633146108cc5760405162461bcd60e51b81526004016105c390613324565b6108d4611951565b6108df858585611b12565b915061090a7f0000000000000000000000000000000000000000000000000000000000000000611b9e565b600054909150610945907f0000000000000000000000000000000000000000000000000000000000000000906001600160a01b031683611c29565b7f9fdfc39e9c36ec108e0a3b25ecb0818f9dba6993f27c8ab183d6f707c0a0e3198282604051610976929190612fa0565b60405180910390a1935093915050565b6001546001600160a01b03163381146109e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e657260448201526064016105c3565b600080546040516001600160a01b0380851693921691600080516020613c4a83398151915291a3600080546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b6000546001600160a01b03163314610a5b5760405162461bcd60e51b81526004016105c390613324565b610a867f00000000000000000000000000000000000000000000000000000000000000003383611cf3565b6040518181527ffbf5b64cc7bd746fa51ff05d539d45d159c0bd41ae16d90375281f2925062bb19060200160405180910390a150565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610b045760405162461bcd60e51b81526004016105c390613359565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610b366116ec565b6001600160a01b031614610b5c5760405162461bcd60e51b81526004016105c390613393565b610b6582611708565b61089b82826001611732565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c0c5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b60648201526084016105c3565b50600080516020613c2a83398151915290565b600080546001600160a01b03163314610c4a5760405162461bcd60e51b81526004016105c390613324565b6000610c5461167c565b90508261018001357f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a76541e5836040518263ffffffff1660e01b8152600401610ca89190613315565b602060405180830381865afa158015610cc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce991906133cd565b14610d065760405162461bcd60e51b81526004016105c3906133e6565b60405162c9c2bd60e21b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906303270af490610d689085906004906101608a013590600019908b9060a08201908501613461565b602060405180830381865afa158015610d85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da991906133cd565b9050610dcc81610dc136879003870160a088016134b1565b866101400135611d5a565b9250610dd6611e1c565b7f93b9ea2ceafb33c3d178543b6174dad16bc3758c8efc2f1b3af0e23c7b2aaabc8484604051610e07929190613520565b60405180910390a15050919050565b600080546001600160a01b03163314610e415760405162461bcd60e51b81526004016105c390613324565b610e4b8383611eda565b90507f20f588a986f4abfc6a3938b2ed65876aa1e6c664928cf2f3acad472e3bd69f698383604051610e7e929190612fa0565b60405180910390a192915050565b6000546001600160a01b03163314610eb65760405162461bcd60e51b81526004016105c390613324565b610763610ec836839003830183612e91565b61189d565b6000546001600160a01b03163314610ef75760405162461bcd60e51b81526004016105c390613324565b60005b818110156106995736838383818110610f1557610f1561356b565b9050602002810190610f279190613581565b905060005b610f3682806135a1565b9050811015610f8e57610f86610f4c83806135a1565b83818110610f5c57610f5c61356b565b9050602002016020810190610f719190612e05565b610f816040850160208601612e05565b611f9f565b600101610f2c565b5050600101610efa565b6000546001600160a01b03163314610fc25760405162461bcd60e51b81526004016105c390613324565b610fdd610fd26020840184612e05565b338460200135611cf3565b610fef610fe983613691565b8261205f565b50610ffd6020830183612e05565b6001600160a01b03167f2d0c0a8842b9944ece1495eb61121621b5e36bd6af3bba0318c695f525aef79f836020013560405161103b91815260200190565b60405180910390a25050565b6000546001600160a01b031633146110715760405162461bcd60e51b81526004016105c390613324565b60001981036110865761108382611b9e565b90505b611091823383611c29565b816001600160a01b03167f21901fa892c430ea8bd38b9390225ac8e67eac75ee10ffba16feefc539a288f98260405161103b91815260200190565b600080546001600160a01b031633146110f75760405162461bcd60e51b81526004016105c390613324565b600061110161167c565b90508261018001357f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a76541e5836040518263ffffffff1660e01b81526004016111559190613315565b602060405180830381865afa158015611172573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119691906133cd565b146111b35760405162461bcd60e51b81526004016105c3906133e6565b60405162c9c2bd60e21b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906303270af4906112169085906003906101608a013590600019908b9060a0820190600401613461565b602060405180830381865afa158015611233573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125791906133cd565b905061127a8161126f36879003870160a088016134b1565b86610140013561214c565b9250611284611e1c565b7f68a0fb08793b691b39b922d846dbd4052d7ff0873d1ff07e08afaeb8046654cc8484604051610e07929190613520565b6000546060906001600160a01b031633146112e25760405162461bcd60e51b81526004016105c390613324565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c4f59f9b6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611342573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136a919081019061377c565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637d24da4d306001806040518463ffffffff1660e01b81526004016113bf9392919061380f565b6000604051808303816000875af11580156113de573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114069190810190613898565b915061141590508383836121c3565b925060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c4f59f9b6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611477573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261149f919081019061377c565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ef5cfb8c306040518263ffffffff1660e01b81526004016114ef919061309e565b6000604051808303816000875af115801561150e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261153691908101906138d5565b90506115438583836121c3565b945060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c4f59f9b6040518163ffffffff1660e01b8152600401600060405180830381865afa1580156115a5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526115cd919081019061377c565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639262187b306040518263ffffffff1660e01b815260040161161d919061309e565b6000604051808303816000875af115801561163c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261166491908101906138d5565b90506116718783836121c3565b965050505050505090565b611684612c7e565b61168c61227b565b8152611696612343565b6020808301919091526040805160c081018252603254815260335492810192909252603454828201526035546060830152603654608083015260375460a083015282015290565b6001600160a01b03163b151590565b600080516020613c2a833981519152546001600160a01b031690565b6000546001600160a01b031633146107635760405162461bcd60e51b81526004016105c390613324565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611765576106998361243b565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117bf575060408051601f3d908101601f191682019092526117bc918101906133cd565b60015b6118225760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016105c3565b600080516020613c2a83398151915281146118915760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016105c3565b506106998383836124d5565b8051603255602081015160335560408101516034556060810151603555608081015160365560a001516037819055603855565b600154600160a81b900460ff1661193d5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016105c3565b600080546001600160a01b03191633179055565b604051637d24da4d60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690637d24da4d906119a2903090600190819060040161380f565b6000604051808303816000875af11580156119c1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119e99190810190613898565b5050604051633bd73ee360e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063ef5cfb8c90611a3790309060040161309e565b6000604051808303816000875af1158015611a56573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a7e91908101906138d5565b50604051639262187b60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690639262187b90611acb90309060040161309e565b6000604051808303816000875af1158015611aea573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261076391908101906138d5565b6000805b83811015611b7157611b55858583818110611b3357611b3361356b565b9050602002810190611b459190613909565b611b4e90613691565b600061205f565b611b5f9083613935565b9150611b6a81613948565b9050611b16565b5081811015611b9757808260405163d294eca360e01b81526004016105c3929190612fa0565b9392505050565b60006001600160a01b03821615611c21576040516370a0823160e01b81526001600160a01b038316906370a0823190611bdb90309060040161309e565b602060405180830381865afa158015611bf8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c1c91906133cd565b611c23565b475b92915050565b80600003611c3657505050565b6001600160a01b038316611cdf576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611c91576040519150601f19603f3d011682016040523d82523d6000602084013e611c96565b606091505b5050905080611cd95760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b60448201526064016105c3565b50505050565b6106996001600160a01b03841683836124fa565b6001600160a01b038316611d3f578034146106995760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b60448201526064016105c3565b8015610699576106996001600160a01b038416833084612550565b60405163448b9b9560e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063448b9b9590611dd19030907f000000000000000000000000000000000000000000000000000000000000000090899088908a90600401613961565b60408051808303816000875af1158015611def573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e139190613995565b50949350505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a76541e5611e5561167c565b6040518263ffffffff1660e01b8152600401611e719190613315565b602060405180830381865afa158015611e8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb291906133cd565b9050610763611ed582611ec6603854612588565b611ed091906139b9565b6125a2565b603855565b604051630d4318d960e11b81523060048201526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116602483015260448201849052606482018390526000917f000000000000000000000000000000000000000000000000000000000000000090911690631a8631b2906084016020604051808303816000875af1158015611f7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9791906133cd565b6001600160a01b038216611fb1575050565b611fc360026001600160601b036139e1565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526001600160601b03929092169184169063dd62ed3e90604401602060405180830381865afa15801561201c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204091906133cd565b101561089b57612052828260006125b1565b61089b82826000196125b1565b600060001983602001510361207f57825161207990611b9e565b60208401525b82516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169163443e65129116156120c05760006120c6565b84602001515b307f000000000000000000000000000000000000000000000000000000000000000086886040518663ffffffff1660e01b81526004016121099493929190613a65565b60206040518083038185885af1158015612127573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611b9791906133cd565b60405163190c351360e31b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c861a89890611dd19030907f000000000000000000000000000000000000000000000000000000000000000090899088908a90600401613961565b805182518491146122165760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e416d6f756e744c69623a206c656e677468206d69736d617463680060448201526064016105c3565b60005b83518110156122735761225f828583815181106122385761223861356b565b60200260200101518584815181106122525761225261356b565b60200260200101516126c5565b91508061226b81613948565b915050612219565b509392505050565b612283612ce1565b6122ac7f0000000000000000000000000000000000000000000000000000000000000000611b9e565b81526122d77f0000000000000000000000000000000000000000000000000000000000000000611b9e565b60608201526123057f0000000000000000000000000000000000000000000000000000000000000000611b9e565b60208201526123337f0000000000000000000000000000000000000000000000000000000000000000611b9e565b6040820152603854608082015290565b61234b612d10565b60405163794052f360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063794052f3906123b7907f00000000000000000000000000000000000000000000000000000000000000009060040161309e565b61012060405180830381865afa1580156123d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123f99190613b2c565b815261242d6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016612887565b602082015242604082015290565b612444816116dd565b6124a65760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016105c3565b600080516020613c2a83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6124de836128ed565b6000825111806124eb5750805b1561069957611cd9838361292d565b6106998363a9059cbb60e01b8484604051602401612519929190613bae565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612952565b6040516001600160a01b0380851660248301528316604482015260648101829052611cd99085906323b872dd60e01b90608401612519565b60006001600160ff1b0382111561259e57600080fd5b5090565b60008082121561259e57600080fd5b600080846001600160a01b031663095ea7b360e01b85856040516024016125d9929190613bae565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516126179190613bc7565b6000604051808303816000865af19150503d8060008114612654576040519150601f19603f3d011682016040523d82523d6000602084013e612659565b606091505b50915091508180156126835750805115806126835750808060200190518101906126839190613bd9565b6126be5760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b60448201526064016105c3565b5050505050565b6060816000036126d6575082611b97565b835160005b855181101561273457846001600160a01b03168682815181106127005761270061356b565b6020026020010151600001516001600160a01b03160361272257809150612734565b8061272c81613948565b9150506126db565b5084518114612744576000612747565b60015b60ff1685516127569190613935565b6001600160401b0381111561276d5761276d612e22565b6040519080825280602002602001820160405280156127b257816020015b604080518082019091526000808252602082015281526020019060019003908161278b5790505b50915060005b855181101561280b578581815181106127d3576127d361356b565b60200260200101518382815181106127ed576127ed61356b565b6020026020010181905250808061280390613948565b9150506127b8565b506040518060400160405280856001600160a01b031681526020018487518414612852578784815181106128415761284161356b565b602002602001015160200151612855565b60005b61285f9190613935565b8152508282815181106128745761287461356b565b6020026020010181905250509392505050565b6000816001600160a01b0316631d52edc46040518163ffffffff1660e01b81526004016020604051808303816000875af11580156128c9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c2391906133cd565b6128f68161243b565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060611b978383604051806060016040528060278152602001613c6a60279139612a24565b60006129a7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612aff9092919063ffffffff16565b80519091501561069957808060200190518101906129c59190613bd9565b6106995760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105c3565b6060612a2f846116dd565b612a8a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016105c3565b600080856001600160a01b031685604051612aa59190613bc7565b600060405180830381855af49150503d8060008114612ae0576040519150601f19603f3d011682016040523d82523d6000602084013e612ae5565b606091505b5091509150612af5828286612b16565b9695505050505050565b6060612b0e8484600085612b4f565b949350505050565b60608315612b25575081611b97565b825115612b355782518084602001fd5b8160405162461bcd60e51b81526004016105c39190613bf6565b606082471015612bb05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105c3565b612bb9856116dd565b612c055760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105c3565b600080866001600160a01b03168587604051612c219190613bc7565b60006040518083038185875af1925050503d8060008114612c5e576040519150601f19603f3d011682016040523d82523d6000602084013e612c63565b606091505b5091509150612c73828286612b16565b979650505050505050565b6040518060600160405280612c91612ce1565b8152602001612c9e612d10565b8152602001612cdc6040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b905290565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6040518060600160405280612d7360405180610120016040528060008152602001600081526020016000815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081525090565b815260200160008152602001600081525090565b6001600160a01b038116811461076357600080fd5b8035612da781612d87565b919050565b801515811461076357600080fd5b600080600060608486031215612dcf57600080fd5b8335612dda81612d87565b92506020840135612dea81612dac565b91506040840135612dfa81612dac565b809150509250925092565b600060208284031215612e1757600080fd5b8135611b9781612d87565b634e487b7160e01b600052604160045260246000fd5b60405161012081016001600160401b0381118282101715612e5b57612e5b612e22565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612e8957612e89612e22565b604052919050565b600060c08284031215612ea357600080fd5b60405160c081016001600160401b0381118282101715612ec557612ec5612e22565b8060405250823581526020830135602082015260408301356040820152606083013560608201526080830135608082015260a083013560a08201528091505092915050565b60008083601f840112612f1c57600080fd5b5081356001600160401b03811115612f3357600080fd5b6020830191508360208260051b8501011115612f4e57600080fd5b9250929050565b600080600060408486031215612f6a57600080fd5b83356001600160401b03811115612f8057600080fd5b612f8c86828701612f0a565b909790965060209590950135949350505050565b918252602082015260400190565b600060208284031215612fc057600080fd5b5035919050565b600082601f830112612fd857600080fd5b81356001600160401b03811115612ff157612ff1612e22565b613004601f8201601f1916602001612e61565b81815284602083860101111561301957600080fd5b816020850160208301376000918101602001919091529392505050565b6000806040838503121561304957600080fd5b823561305481612d87565b915060208301356001600160401b0381111561306f57600080fd5b61307b85828601612fc7565b9150509250929050565b60006101a0828403121561309857600080fd5b50919050565b6001600160a01b0391909116815260200190565b600080604083850312156130c557600080fd5b50508035926020909101359150565b600060c0828403121561309857600080fd5b600060c082840312156130f857600080fd5b611b9783836130d4565b6000806020838503121561311557600080fd5b82356001600160401b0381111561312b57600080fd5b61313785828601612f0a565b90969095509350505050565b6000806040838503121561315657600080fd5b82356001600160401b0381111561316c57600080fd5b613178858286016130d4565b95602094909401359450505050565b6000806040838503121561319a57600080fd5b82356131a581612d87565b946020939093013593505050565b602080825282518282018190526000919060409081850190868401855b828110156131fe57815180516001600160a01b031685528601518685015292840192908501906001016131d0565b5091979650505050505050565b80518252602081015160208301526040810151604083015260608101516060830152608081015160808301525050565b61324682825161320b565b60208101518051805160a0850152602081015160c0850152604081015160e0850152606081015161010060018060a01b03821681870152608083015161012087015260a083015161014087015260c083015161016087015260e0830151610180870152808301516101a087015250505060208101516101c084015260408101516101e0840152506040810151610699610200840182805182526020810151602083015260408101516040830152606081015160608301526080810151608083015260a081015160a08301525050565b6102c08101611c23828461323b565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602c90820152600080516020613c0a83398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c90820152600080516020613c0a83398151915260408201526b6163746976652070726f787960a01b606082015260800190565b6000602082840312156133df57600080fd5b5051919050565b6020808252818101527f72656d6f76654c6971546f59743a2062696e2073746174652065787069726564604082015260600190565b634e487b7160e01b600052602160045260246000fd5b80358252602081013560208301526040810135604083015260608101356060830152608081013560808301525050565b6104608101613470828961323b565b600587106134805761348061341b565b866102c0830152856102e0830152846103008301526134a3610320830185613431565b612c736103c0830184613431565b600060a082840312156134c357600080fd5b60405160a081016001600160401b03811182821017156134e5576134e5612e22565b806040525082358152602083013560208201526040830135604082015260608301356060820152608083013560808201528091505092915050565b6101c0810161352f8285613431565b61353f60a0830160a08601613431565b6101408481013590830152610160808501359083015261018093840135938201939093526101a0015290565b634e487b7160e01b600052603260045260246000fd5b60008235603e1983360301811261359757600080fd5b9190910192915050565b6000808335601e198436030181126135b857600080fd5b8301803591506001600160401b038211156135d257600080fd5b6020019150600581901b3603821315612f4e57600080fd5b6000608082840312156135fc57600080fd5b604051608081016001600160401b03808211838310171561361f5761361f612e22565b81604052829350843591506004821061363757600080fd5b90825260208401359061364982612d87565b816020840152604085013591508082111561366357600080fd5b5061367085828601612fc7565b604083015250606083013561368481612dac565b6060919091015292915050565b600060c082360312156136a357600080fd5b60405160c081016001600160401b0380821183831017156136c6576136c6612e22565b81604052843591506136d782612d87565b81835260208501356020840152604085013591506136f482612d87565b8160408401526060850135915061370a82612d87565b81606084015261371c60808601612d9c565b608084015260a085013591508082111561373557600080fd5b50613742368286016135ea565b60a08301525092915050565b60006001600160401b0382111561376757613767612e22565b5060051b60200190565b8051612da781612d87565b6000602080838503121561378f57600080fd5b82516001600160401b038111156137a557600080fd5b8301601f810185136137b657600080fd5b80516137c96137c48261374e565b612e61565b81815260059190911b820183019083810190878311156137e857600080fd5b928401925b82841015612c7357835161380081612d87565b825292840192908401906137ed565b6001600160a01b0393909316835290151560208301521515604082015260600190565b600082601f83011261384357600080fd5b815160206138536137c48361374e565b82815260059290921b8401810191818101908684111561387257600080fd5b8286015b8481101561388d5780518352918301918301613876565b509695505050505050565b600080604083850312156138ab57600080fd5b825160208401519092506001600160401b038111156138c957600080fd5b61307b85828601613832565b6000602082840312156138e757600080fd5b81516001600160401b038111156138fd57600080fd5b612b0e84828501613832565b6000823560be1983360301811261359757600080fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115611c2357611c2361391f565b60006001820161395a5761395a61391f565b5060010190565b6001600160a01b0386811682528516602082015260408101849052606081018390526101208101612af5608083018461320b565b600080604083850312156139a857600080fd5b505080516020909101519092909150565b80820182811260008312801582168215821617156139d9576139d961391f565b505092915050565b60006001600160601b0383811680613a0957634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b60005b83811015613a30578181015183820152602001613a18565b50506000910152565b60008151808452613a51816020860160208601613a15565b601f01601f19169290920160200192915050565b600060018060a01b038087168352808616602084015284604084015260806060840152808451166080840152602084015160a08401528060408501511660c08401528060608501511660e08401528060808501511661010084015260a084015160c0610120850152805160048110613adf57613adf61341b565b61014085015260208101519091166101608401526040810151608061018085015290613b0f6101c0850183613a39565b9150606081015115156101a0850152508091505095945050505050565b60006101208284031215613b3f57600080fd5b613b47612e38565b825181526020830151602082015260408301516040820152613b6b60608401613771565b60608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015181830152508091505092915050565b6001600160a01b03929092168252602082015260400190565b60008251613597818460208701613a15565b600060208284031215613beb57600080fd5b8151611b9781612dac565b602081526000611b976020830184613a3956fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220c6890224bff673850e39b8b90894e8aec3f11217f6213aae14614c1a1c339e2e64736f6c63430008110033";
|
|
1373
|
+
|
|
1374
|
+
type ShortYieldTradingBotConstructorParams =
|
|
1375
|
+
| [signer?: Signer]
|
|
1376
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
1377
|
+
|
|
1378
|
+
const isSuperArgs = (
|
|
1379
|
+
xs: ShortYieldTradingBotConstructorParams
|
|
1380
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
1381
|
+
|
|
1382
|
+
export class ShortYieldTradingBot__factory extends ContractFactory {
|
|
1383
|
+
constructor(...args: ShortYieldTradingBotConstructorParams) {
|
|
1384
|
+
if (isSuperArgs(args)) {
|
|
1385
|
+
super(...args);
|
|
1386
|
+
} else {
|
|
1387
|
+
super(_abi, _bytecode, args[0]);
|
|
1388
|
+
}
|
|
1389
|
+
this.contractName = "ShortYieldTradingBot";
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
deploy(
|
|
1393
|
+
_market: string,
|
|
1394
|
+
_router: string,
|
|
1395
|
+
_PENDLE: string,
|
|
1396
|
+
_decisionHelper: string,
|
|
1397
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1398
|
+
): Promise<ShortYieldTradingBot> {
|
|
1399
|
+
return super.deploy(
|
|
1400
|
+
_market,
|
|
1401
|
+
_router,
|
|
1402
|
+
_PENDLE,
|
|
1403
|
+
_decisionHelper,
|
|
1404
|
+
overrides || {}
|
|
1405
|
+
) as Promise<ShortYieldTradingBot>;
|
|
1406
|
+
}
|
|
1407
|
+
getDeployTransaction(
|
|
1408
|
+
_market: string,
|
|
1409
|
+
_router: string,
|
|
1410
|
+
_PENDLE: string,
|
|
1411
|
+
_decisionHelper: string,
|
|
1412
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1413
|
+
): TransactionRequest {
|
|
1414
|
+
return super.getDeployTransaction(
|
|
1415
|
+
_market,
|
|
1416
|
+
_router,
|
|
1417
|
+
_PENDLE,
|
|
1418
|
+
_decisionHelper,
|
|
1419
|
+
overrides || {}
|
|
1420
|
+
);
|
|
1421
|
+
}
|
|
1422
|
+
attach(address: string): ShortYieldTradingBot {
|
|
1423
|
+
return super.attach(address) as ShortYieldTradingBot;
|
|
1424
|
+
}
|
|
1425
|
+
connect(signer: Signer): ShortYieldTradingBot__factory {
|
|
1426
|
+
return super.connect(signer) as ShortYieldTradingBot__factory;
|
|
1427
|
+
}
|
|
1428
|
+
static readonly contractName: "ShortYieldTradingBot";
|
|
1429
|
+
public readonly contractName: "ShortYieldTradingBot";
|
|
1430
|
+
static readonly bytecode = _bytecode;
|
|
1431
|
+
static readonly abi = _abi;
|
|
1432
|
+
static createInterface(): ShortYieldTradingBotInterface {
|
|
1433
|
+
return new utils.Interface(_abi) as ShortYieldTradingBotInterface;
|
|
1434
|
+
}
|
|
1435
|
+
static connect(
|
|
1436
|
+
address: string,
|
|
1437
|
+
signerOrProvider: Signer | Provider
|
|
1438
|
+
): ShortYieldTradingBot {
|
|
1439
|
+
return new Contract(
|
|
1440
|
+
address,
|
|
1441
|
+
_abi,
|
|
1442
|
+
signerOrProvider
|
|
1443
|
+
) as ShortYieldTradingBot;
|
|
1444
|
+
}
|
|
1445
|
+
}
|