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