@pendle/core-v2 0.17.4-testnet → 0.17.6-testnet
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/README.md +28 -0
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.json +26 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +28 -3
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +28 -3
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +22 -28
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +3 -22
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
- package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.json +2 -2
- 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/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.json +2 -2
- 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/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.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/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
- package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.json +2 -2
- package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.json +2 -2
- package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.json +2 -2
- 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/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.json +2 -2
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +2 -18
- package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.json +2 -2
- package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.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/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.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/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.json +187 -1
- package/build/artifacts/contracts/interfaces/IPBulkSellerFactory.sol/IPBulkSellerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSellerFactory.sol/IPBulkSellerFactory.json +0 -19
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.json +26 -1
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.json +26 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.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/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/IREDACTEDStaking.sol/IREDACTEDStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWXBTRFLY.sol/IWXBTRFLY.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +160 -60
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
- package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.json +2 -2
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
- package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +2 -2
- package/build/artifacts/contracts/router/kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/kyberswap/IMultihopRouter.sol/IMultihopRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
- package/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol +1 -4
- package/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol +6 -5
- package/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol +1 -4
- package/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol +1 -1
- package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +9 -6
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +11 -21
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol +0 -3
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol +0 -3
- package/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +34 -54
- package/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +6 -25
- package/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +20 -38
- package/contracts/LiquidityMining/libraries/VeHistoryLib.sol +1 -1
- package/contracts/core/BulkSeller/BulkSeller.sol +35 -42
- package/contracts/core/BulkSeller/BulkSellerFactory.sol +5 -9
- package/contracts/core/BulkSeller/BulkSellerMathCore.sol +6 -5
- package/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol +1 -3
- package/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol +1 -1
- package/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol +1 -1
- package/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol +1 -1
- package/contracts/core/YieldContracts/PendleYieldToken.sol +6 -6
- package/contracts/core/erc20/PendleERC20.sol +2 -2
- package/contracts/core/erc20/PendleERC20Permit.sol +1 -1
- package/contracts/core/libraries/ArrayLib.sol +1 -1
- package/contracts/core/libraries/BoringOwnableUpgradeable.sol +1 -1
- package/contracts/core/libraries/Errors.sol +0 -1
- package/contracts/core/libraries/MiniHelpers.sol +1 -0
- package/contracts/core/libraries/TokenHelper.sol +4 -5
- package/contracts/interfaces/Curve/ICrvPool.sol +3 -4
- package/contracts/interfaces/Curve/ITriCrvPool.sol +1 -4
- package/contracts/interfaces/IBoringOwnableUpgradeable.sol +2 -2
- package/contracts/interfaces/ILayerZeroEndpoint.sol +1 -1
- package/contracts/interfaces/ILayerZeroReceiver.sol +8 -3
- package/contracts/interfaces/IPBulkSeller.sol +30 -6
- package/contracts/interfaces/IPBulkSellerFactory.sol +0 -2
- package/contracts/interfaces/IPGaugeController.sol +7 -1
- package/contracts/interfaces/IPMarket.sol +2 -12
- package/contracts/interfaces/IPMsgReceiverApp.sol +1 -1
- package/contracts/interfaces/IPMsgSendEndpoint.sol +1 -1
- package/contracts/interfaces/IPVeToken.sol +1 -1
- package/contracts/interfaces/IREDACTEDStaking.sol +1 -1
- package/contracts/interfaces/IStETH.sol +1 -1
- package/contracts/interfaces/IStargateLPStaking.sol +1 -1
- package/contracts/interfaces/IStargatePool.sol +1 -1
- package/contracts/interfaces/IStargateRouter.sol +1 -1
- package/contracts/interfaces/IWXBTRFLY.sol +1 -1
- package/contracts/offchain-helpers/MarketMathStatic.sol +152 -34
- package/contracts/offchain-helpers/RouterStatic.sol +58 -32
- package/contracts/router/ActionAddRemoveLiq.sol +2 -2
- package/contracts/router/ActionMintRedeem.sol +4 -4
- package/contracts/router/ActionSwapPT.sol +4 -4
- package/contracts/router/ActionSwapPTYT.sol +1 -1
- package/contracts/router/ActionSwapYT.sol +8 -8
- package/contracts/router/base/ActionBaseMintRedeem.sol +6 -7
- package/contracts/router/base/MarketApproxLib.sol +14 -8
- package/contracts/router/kyberswap/AggregationRouterHelper.sol +1 -1
- package/contracts/router/kyberswap/IAggregatorRouterHelper.sol +1 -1
- package/contracts/router/kyberswap/IMultihopRouter.sol +1 -1
- package/deployments/43113-core.json +1 -1
- package/deployments/43113-markets/USDC-FEB-4TH.json +10 -0
- package/deployments/43113-markets/WETH-FEB-4TH.json +11 -0
- package/package.json +1 -1
- package/typechain-types/BulkSeller.ts +59 -6
- package/typechain-types/BulkSellerFactory.ts +0 -16
- package/typechain-types/IApeStaking.ts +274 -0
- package/typechain-types/IPBulkSeller.ts +178 -9
- package/typechain-types/IPBulkSellerFactory.ts +0 -16
- package/typechain-types/IPGaugeController.ts +23 -2
- package/typechain-types/IPGaugeControllerMainchain.ts +23 -2
- package/typechain-types/PendleApeStakingSY.ts +1251 -0
- package/typechain-types/PendleGaugeControllerBaseUpg.ts +23 -2
- package/typechain-types/PendleGaugeControllerMainchainUpg.ts +23 -2
- package/typechain-types/PendleGaugeControllerSidechainUpg.ts +23 -2
- package/typechain-types/RouterStatic.ts +40 -20
- package/typechain-types/SYBaseAutoCompound.ts +1203 -0
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
- package/typechain-types/factories/ActionCallback__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
- package/typechain-types/factories/ActionMisc__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPTYT__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
- package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
- package/typechain-types/factories/BaseSplitCodeFactoryContract__factory.ts +1 -1
- package/typechain-types/factories/BoringOwnableUpgradeableData__factory.ts +1 -1
- package/typechain-types/factories/BulkSellerFactory__factory.ts +2 -21
- package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
- package/typechain-types/factories/BulkSeller__factory.ts +21 -27
- package/typechain-types/factories/Errors__factory.ts +1 -17
- package/typechain-types/factories/IApeStaking__factory.ts +127 -0
- package/typechain-types/factories/IPBulkSellerFactory__factory.ts +0 -19
- package/typechain-types/factories/IPBulkSeller__factory.ts +187 -1
- package/typechain-types/factories/IPGaugeControllerMainchain__factory.ts +26 -1
- package/typechain-types/factories/IPGaugeController__factory.ts +26 -1
- package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/PendleApeStakingSY__factory.ts +1065 -0
- package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
- package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
- package/typechain-types/factories/PendleERC20Permit__factory.ts +1 -1
- package/typechain-types/factories/PendleERC20__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerBaseUpg__factory.ts +26 -1
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +27 -2
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +27 -2
- package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleMarket__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/RouterStatic__factory.ts +101 -1
- package/typechain-types/factories/SYBaseAutoCompound__factory.ts +942 -0
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
|
@@ -126,7 +126,7 @@ const _abi = [
|
|
|
126
126
|
];
|
|
127
127
|
|
|
128
128
|
const _bytecode =
|
|
129
|
-
"
|
|
129
|
+
"0x608060405234801561001057600080fd5b50610991806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80638718323e146100465780638d51e8f0146100a7578063c307974d146100cf575b600080fd5b6100596100543660046107e0565b6100e2565b6040805184518152602080860151908201528482015191810191909152606080850151908201526080938401519381019390935260a083019190915260c082015260e0015b60405180910390f35b6100ba6100b5366004610804565b6102d2565b6040805192835260208301919091520161009e565b6100ba6100dd3660046107e0565b6104ab565b6101146040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b600080836001600160a01b0316632778c3346040518163ffffffff1660e01b815260040160a060405180830381865afa158015610155573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101799190610839565b92506101848361073d565b9150836001600160a01b031663afd27bf56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101e891906108b6565b6001600160a01b031663cbe52ae3856001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610234573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025891906108b6565b85606001516040518363ffffffff1660e01b815260040161027a9291906108d3565b602060405180830381865afa158015610297573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102bb91906108ec565b83604001516102ca919061091b565b929491935050565b6000806000856001600160a01b031663afd27bf56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610315573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033991906108b6565b90506000866001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561037b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039f91906108b6565b90506000826001600160a01b031663b8f82b2683896040518363ffffffff1660e01b81526004016103d19291906108d3565b602060405180830381865afa1580156103ee573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041291906108ec565b905061041e8188610779565b9450506000826001600160a01b031663cbe52ae383886040518363ffffffff1660e01b81526004016104519291906108d3565b602060405180830381865afa15801561046e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049291906108ec565b905061049e8187610779565b9350505050935093915050565b6000806000836001600160a01b0316632778c3346040518163ffffffff1660e01b815260040160a060405180830381865afa1580156104ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105129190610839565b90506000846001600160a01b031663afd27bf56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610554573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057891906108b6565b90506000856001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105de91906108b6565b905060006105fd846020015185606001516107aa90919063ffffffff16565b846040015161060c919061091b565b90506000836001600160a01b031663b8f82b2684846040518363ffffffff1660e01b815260040161063e9291906108d3565b602060405180830381865afa15801561065b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061067f91906108ec565b905061068b8183610779565b85516040870151919850600093506106a392506107aa565b84606001516106b2919061091b565b90506000836001600160a01b031663cbe52ae384846040518363ffffffff1660e01b81526004016106e49291906108d3565b602060405180830381865afa158015610701573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061072591906108ec565b90506107318183610779565b95505050505050915091565b60408101516020820151606083015160009291839161075b916107aa565b905061077161076a828461091b565b8390610779565b949350505050565b60008061078e670de0b6b3a76400008561092e565b905082818161079f5761079f610945565b049150505b92915050565b6000806107b7838561092e565b9050670de0b6b3a76400008161079f565b6001600160a01b03811681146107dd57600080fd5b50565b6000602082840312156107f257600080fd5b81356107fd816107c8565b9392505050565b60008060006060848603121561081957600080fd5b8335610824816107c8565b95602085013595506040909401359392505050565b600060a0828403121561084b57600080fd5b60405160a081016001600160401b038111828210171561087b57634e487b7160e01b600052604160045260246000fd5b806040525082518152602083015160208201526040830151604082015260608301516060820152608083015160808201528091505092915050565b6000602082840312156108c857600080fd5b81516107fd816107c8565b6001600160a01b03929092168252602082015260400190565b6000602082840312156108fe57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156107a4576107a4610905565b80820281158282048414176107a4576107a4610905565b634e487b7160e01b600052601260045260246000fdfea264697066735822122058ce7942054d5a911d3f90d220df45285b23e7cd71867cbf5860db09b5c89dbf64736f6c63430008110033";
|
|
130
130
|
|
|
131
131
|
type BulkSellerOffchainConstructorParams =
|
|
132
132
|
| [signer?: Signer]
|
|
@@ -128,27 +128,6 @@ const _abi = [
|
|
|
128
128
|
name: "BulkInsufficientTokenForTrade",
|
|
129
129
|
type: "error",
|
|
130
130
|
},
|
|
131
|
-
{
|
|
132
|
-
inputs: [
|
|
133
|
-
{
|
|
134
|
-
internalType: "uint256",
|
|
135
|
-
name: "actualBalance",
|
|
136
|
-
type: "uint256",
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
internalType: "uint256",
|
|
140
|
-
name: "requiredBalance",
|
|
141
|
-
type: "uint256",
|
|
142
|
-
},
|
|
143
|
-
],
|
|
144
|
-
name: "BulkInsufficientTokenReceived",
|
|
145
|
-
type: "error",
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
inputs: [],
|
|
149
|
-
name: "BulkNotAdmin",
|
|
150
|
-
type: "error",
|
|
151
|
-
},
|
|
152
131
|
{
|
|
153
132
|
inputs: [],
|
|
154
133
|
name: "BulkNotMaintainer",
|
|
@@ -532,6 +511,13 @@ const _abi = [
|
|
|
532
511
|
stateMutability: "view",
|
|
533
512
|
type: "function",
|
|
534
513
|
},
|
|
514
|
+
{
|
|
515
|
+
inputs: [],
|
|
516
|
+
name: "redeemRewards",
|
|
517
|
+
outputs: [],
|
|
518
|
+
stateMutability: "nonpayable",
|
|
519
|
+
type: "function",
|
|
520
|
+
},
|
|
535
521
|
{
|
|
536
522
|
inputs: [
|
|
537
523
|
{
|
|
@@ -568,6 +554,13 @@ const _abi = [
|
|
|
568
554
|
stateMutability: "nonpayable",
|
|
569
555
|
type: "function",
|
|
570
556
|
},
|
|
557
|
+
{
|
|
558
|
+
inputs: [],
|
|
559
|
+
name: "skim",
|
|
560
|
+
outputs: [],
|
|
561
|
+
stateMutability: "nonpayable",
|
|
562
|
+
type: "function",
|
|
563
|
+
},
|
|
571
564
|
{
|
|
572
565
|
inputs: [
|
|
573
566
|
{
|
|
@@ -585,6 +578,11 @@ const _abi = [
|
|
|
585
578
|
name: "minTokenOut",
|
|
586
579
|
type: "uint256",
|
|
587
580
|
},
|
|
581
|
+
{
|
|
582
|
+
internalType: "bool",
|
|
583
|
+
name: "swapFromInternalBalance",
|
|
584
|
+
type: "bool",
|
|
585
|
+
},
|
|
588
586
|
],
|
|
589
587
|
name: "swapExactSyForToken",
|
|
590
588
|
outputs: [
|
|
@@ -623,7 +621,7 @@ const _abi = [
|
|
|
623
621
|
type: "uint256",
|
|
624
622
|
},
|
|
625
623
|
],
|
|
626
|
-
stateMutability: "
|
|
624
|
+
stateMutability: "payable",
|
|
627
625
|
type: "function",
|
|
628
626
|
},
|
|
629
627
|
{
|
|
@@ -639,14 +637,10 @@ const _abi = [
|
|
|
639
637
|
stateMutability: "view",
|
|
640
638
|
type: "function",
|
|
641
639
|
},
|
|
642
|
-
{
|
|
643
|
-
stateMutability: "payable",
|
|
644
|
-
type: "receive",
|
|
645
|
-
},
|
|
646
640
|
];
|
|
647
641
|
|
|
648
642
|
const _bytecode =
|
|
649
|
-
"0x608060405234801561001057600080fd5b50611cef806100206000396000f3fe6080604052600436106100b15760003560e01c80632778c334146100bd5780633989c6661461011d578063459770f61461013f5780636d71be4c1461015f578063978bbdb914610172578063a279879b146101b1578063afd27bf5146101d1578063b2767070146101fe578063bd5688d51461022c578063c0c53b8b1461024c578063c3fb90d61461026c578063c45a0155146102d8578063d0378d07146102f8578063fc0c546a1461031857600080fd5b366100b857005b600080fd5b3480156100c957600080fd5b506100d2610338565b6040516101149190600060a082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015292915050565b60405180910390f35b34801561012957600080fd5b5061013d610138366004611974565b6103c7565b005b34801561014b57600080fd5b5061013d61015a3660046119a0565b6104be565b61013d61016d3660046119c9565b6105c7565b34801561017e57600080fd5b5060345461019990600160a01b90046001600160401b031681565b6040516001600160401b039091168152602001610114565b3480156101bd57600080fd5b5061013d6101cc3660046119c9565b61070a565b3480156101dd57600080fd5b506034546101f1906001600160a01b031681565b60405161011491906119eb565b34801561020a57600080fd5b5061021e610219366004611a1b565b6108aa565b604051908152602001610114565b34801561023857600080fd5b5061021e610247366004611a1b565b6109e5565b34801561025857600080fd5b5061013d610267366004611a4e565b610b03565b34801561027857600080fd5b506036546037546102a5916001600160801b0380821692600160801b928390048216928183169291041684565b604080516001600160801b0395861681529385166020850152918416918301919091529091166060820152608001610114565b3480156102e457600080fd5b506035546101f1906001600160a01b031681565b34801561030457600080fd5b5061013d6103133660046119c9565b610c5a565b34801561032457600080fd5b506033546101f1906001600160a01b031681565b61036a6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b506040805160a0810182526036546001600160801b038082168352600160801b91829004811660208401526037549182048116938301939093529091166060820152603454600160a01b90046001600160401b0316608082015290565b603554604051636eab9b3560e11b81526001600160a01b039091169063dd57366a906103f79033906004016119eb565b602060405180830381865afa158015610414573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104389190611a91565b61045557604051630de65d1160e11b815260040160405180910390fd5b600061045f610338565b805160208201516040519293507fdd8196f9280a887c2cda9ceaa0c9f147ee5931086cfa28738c70c45ce383f1cb9261049b9287928992611ab3565b60405180910390a16104af81858585610d70565b6104b881610e01565b50505050565b603554604051636eab9b3560e11b81526001600160a01b039091169063dd57366a906104ee9033906004016119eb565b602060405180830381865afa15801561050b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052f9190611a91565b61054c57604051630de65d1160e11b815260040160405180910390fd5b603454604080516001600160401b038085168252600160a01b90930490921660208301527f14914da2bf76024616fbe1859783fcd4dbddcb179b1f3a854949fbf920dcb957910160405180910390a1603480546001600160401b03909216600160a01b02600160a01b600160e01b0319909216919091179055565b603554604051636eab9b3560e11b81526001600160a01b039091169063dd57366a906105f79033906004016119eb565b602060405180830381865afa158015610614573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106389190611a91565b61065557604051630de65d1160e11b815260040160405180910390fd5b600061065f610338565b905082816040018181516106739190611ae4565b90525060608101805183919061068a908390611ae4565b9052506033546106a4906001600160a01b03163385610ead565b6034546106bb906001600160a01b03163384610ead565b7f32dc813d3f262a05478ad1165d5701040e411d9a6e1684c8c2da1c8e6f3b8022816040015182606001516040516106f4929190611af7565b60405180910390a161070581610e01565b505050565b603554604051636eab9b3560e11b81526001600160a01b039091169063dd57366a9061073a9033906004016119eb565b602060405180830381865afa158015610757573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077b9190611a91565b61079857604051630de65d1160e11b815260040160405180910390fd5b60006107a2610338565b905060006107af82610f14565b90506000806107be8487610f50565b909250905081156108335760006107d483610fcf565b90506107e28584838961109d565b60006107ed86610f14565b90507fb569412a0abb89d32fca61e1a718d803d8e7dd8b1fe0b8e152a01e1808e7d232848383886040516108249493929190611ab3565b60405180910390a15050610899565b600061083e82611110565b905061084c858383896111bd565b600061085786610f14565b90507fc41b352e51a1d27f9abe2577fe6a992eaee7f0c62e0185f726a6876463db710b8383838860405161088e9493929190611ab3565b60405180910390a150505b6108a284610e01565b505050505050565b60006002600154036108d75760405162461bcd60e51b81526004016108ce90611b05565b60405180910390fd5b600260015560006108e6610338565b90506108f28185611229565b91508282101561091957818360405163efd9f0cd60e01b81526004016108ce929190611af7565b6001600160a01b038516301461094057603454610940906001600160a01b03168684611269565b61094981610e01565b6040810151603354610963906001600160a01b031661132d565b101561099e5760335461097e906001600160a01b031661132d565b8160400151604051632d95d23b60e21b81526004016108ce929190611af7565b7fdeed462e5fd237e34f502e1dcf0d079b3a5e5958bebea6b03700434c7bec36d48585846040516109d193929190611b3c565b60405180910390a150600180559392505050565b6000600260015403610a095760405162461bcd60e51b81526004016108ce90611b05565b60026001556000610a18610338565b9050610a2481856113b7565b915082821015610a4b57818360405163d407991560e01b81526004016108ce929190611af7565b6001600160a01b0385163014610a7257603354610a72906001600160a01b03168684611269565b610a7b81610e01565b6060810151603454610a95906001600160a01b031661132d565b1015610ad057603454610ab0906001600160a01b031661132d565b8160600151604051636313b4e560e01b81526004016108ce929190611af7565b7fe9dcd197d2f7d180de1ecfd3999f91ecf06bb65781541f206ddabbc08e4cd29b8585846040516109d193929190611b3c565b600054610100900460ff1615808015610b235750600054600160ff909116105b80610b445750610b32306113ee565b158015610b44575060005460ff166001145b610ba75760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108ce565b6000805460ff191660011790558015610bca576000805461ff0019166101001790555b610bd26113fd565b603380546001600160a01b038087166001600160a01b03199283161790925560348054868416908316179055603580549285169290911691909117905580156104b8576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150505050565b603554604051630935e01b60e21b81526001600160a01b03909116906324d7806c90610c8a9033906004016119eb565b602060405180830381865afa158015610ca7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ccb9190611a91565b610ce8576040516308e4b93b60e21b815260040160405180910390fd5b6000610cf2610338565b90506000198303610d0557806040015192505b6000198203610d1657806060015191505b8281604001818151610d289190611b5d565b905250606081018051839190610d3f908390611b5d565b905250603354610d59906001600160a01b03163385611269565b6034546106bb906001600160a01b03163384611269565b835115801590610d8c5750610d8a8285600001518361142e565b155b15610db057835160405163efb0d1c760e01b81526108ce9184918490600401611b70565b602084015115801590610dcf5750610dcd8385602001518361142e565b155b15610df65760208401516040516334b59fe160e21b81526108ce9185918490600401611b70565b508252602090910152565b60006040518060800160405280610e1b8460000151611476565b6001600160801b03168152602001610e368460200151611476565b6001600160801b03168152602001610e518460600151611476565b6001600160801b03168152602001610e6c8460400151611476565b6001600160801b03908116909152815160208301518216600160801b9081029183169190911760365560408301516060909301518216029116176037555050565b6001600160a01b038316610ef9578034146107055760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b60448201526064016108ce565b8015610705576107056001600160a01b038416833084611490565b604081015160208201516060830151600092918391610f32916114fb565b9050610f48610f418284611ae4565b839061151e565b949350505050565b6000806000610f5e85610f14565b905083811115610f9157610f8a610f7f82610f798782611b5d565b9061151e565b6040870151906114fb565b9250610fc7565b6000610fa582670de0b6b3a7640000611b5d565b9050610fc3610fb882610f798589611b5d565b6060880151906114fb565b9250505b509250929050565b603354603454600091610fef916001600160a01b03918216911684611544565b6033546000906001600160a01b03161561100a57600061100c565b825b6034546033546040516320e8c56560e01b81523060048201526001600160a01b039182166024820152604481018790526000606482015292935016906320e8c56590839060840160206040518083038185885af1158015611071573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906110969190611b86565b9392505050565b60006110a9838561151e565b90506110ba8186600001518461142e565b6110dd57845160405163efb0d1c760e01b81526108ce9183918590600401611b70565b83856040018181516110ef9190611b5d565b905250606085018051849190611106908390611ae4565b9052505050505050565b60345460009061112a906001600160a01b03168084611269565b60345460335460405163769f8e5d60e01b8152306004820152602481018590526001600160a01b039182166044820152600060648201526001608482015291169063769f8e5d9060a4016020604051808303816000875af1158015611193573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b79190611b86565b92915050565b60006111c9838561151e565b90506111da8186602001518461142e565b6112005760208501516040516334b59fe160e21b81526108ce9183918590600401611b70565b82856040018181516112129190611ae4565b905250606085018051859190611106908390611b5d565b60006112358383611658565b905081836040018181516112499190611ae4565b905250606083018051829190611260908390611b5d565b90525092915050565b8060000361127657505050565b6001600160a01b038316611319576000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146112d1576040519150601f19603f3d011682016040523d82523d6000602084013e6112d6565b606091505b50509050806104b85760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b60448201526064016108ce565b6107056001600160a01b03841683836116d0565b60006001600160a01b038216156113b0576040516370a0823160e01b81526001600160a01b038316906370a082319061136a9030906004016119eb565b602060405180830381865afa158015611387573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ab9190611b86565b6111b7565b4792915050565b60006113c383836116ef565b905081836060018181516113d79190611ae4565b905250604083018051829190611260908390611b5d565b6001600160a01b03163b151590565b600054610100900460ff166114245760405162461bcd60e51b81526004016108ce90611b9f565b61142c611763565b565b60008361144c8461144785670de0b6b3a7640000611b5d565b6114fb565b11158015610f48575061146b8361144784670de0b6b3a7640000611ae4565b841115949350505050565b60006001600160801b0382111561148c57600080fd5b5090565b6040516001600160a01b03808516602483015283166044820152606481018290526104b89085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611790565b6000806115088385611bea565b9050670de0b6b3a7640000815b04949350505050565b600080611533670de0b6b3a764000085611bea565b905082818161151557611515611c01565b600080846001600160a01b031663095ea7b360e01b858560405160240161156c929190611c17565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516115aa9190611c54565b6000604051808303816000865af19150503d80600081146115e7576040519150601f19603f3d011682016040523d82523d6000602084013e6115ec565b606091505b50915091508180156116165750805115806116165750808060200190518101906116169190611a91565b6116515760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b60448201526064016108ce565b5050505050565b60008061167e8460800151670de0b6b3a76400006116769190611b5d565b8551906114fb565b90508060000361169057611690611c70565b61169a83826114fb565b915083606001518211156116c95783606001518260405163035c130560e21b81526004016108ce929190611af7565b5092915050565b6107058363a9059cbb60e01b84846040516024016114c4929190611c17565b6000806117188460800151670de0b6b3a764000061170d9190611b5d565b6020860151906114fb565b90508060000361172a5761172a611c70565b61173483826114fb565b915083604001518211156116c957836040015182604051631895cd1f60e01b81526004016108ce929190611af7565b600054610100900460ff1661178a5760405162461bcd60e51b81526004016108ce90611b9f565b60018055565b60006117e5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118629092919063ffffffff16565b80519091501561070557808060200190518101906118039190611a91565b6107055760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016108ce565b6060610f48848460008585611876856113ee565b6118c25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108ce565b600080866001600160a01b031685876040516118de9190611c54565b60006040518083038185875af1925050503d806000811461191b576040519150601f19603f3d011682016040523d82523d6000602084013e611920565b606091505b509150915061193082828661193b565b979650505050505050565b6060831561194a575081611096565b82511561195a5782518084602001fd5b8160405162461bcd60e51b81526004016108ce9190611c86565b60008060006060848603121561198957600080fd5b505081359360208301359350604090920135919050565b6000602082840312156119b257600080fd5b81356001600160401b038116811461109657600080fd5b600080604083850312156119dc57600080fd5b50508035926020909101359150565b6001600160a01b0391909116815260200190565b80356001600160a01b0381168114611a1657600080fd5b919050565b600080600060608486031215611a3057600080fd5b611a39846119ff565b95602085013595506040909401359392505050565b600080600060608486031215611a6357600080fd5b611a6c846119ff565b9250611a7a602085016119ff565b9150611a88604085016119ff565b90509250925092565b600060208284031215611aa357600080fd5b8151801515811461109657600080fd5b93845260208401929092526040830152606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808201808211156111b7576111b7611ace565b918252602082015260400190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6001600160a01b039390931683526020830191909152604082015260600190565b818103818111156111b7576111b7611ace565b9283526020830191909152604082015260600190565b600060208284031215611b9857600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b80820281158282048414176111b7576111b7611ace565b634e487b7160e01b600052601260045260246000fd5b6001600160a01b03929092168252602082015260400190565b60005b83811015611c4b578181015183820152602001611c33565b50506000910152565b60008251611c66818460208701611c30565b9190910192915050565b634e487b7160e01b600052600160045260246000fd5b6020815260008251806020840152611ca5816040850160208701611c30565b601f01601f1916919091016040019291505056fea26469706673582212200bedc4e6c79bb10a9fe7a55cba44ec14b32b7926f5739ba41b00b6df881dd21764736f6c63430008110033";
|
|
643
|
+
"0x608060405234801561001057600080fd5b50612319806100206000396000f3fe6080604052600436106100c35760003560e01c80631dd19cb4146100c85780632778c334146100df5780633989c6661461013f578063459770f61461015f5780636d71be4c1461017f57806383f5b76614610192578063978bbdb9146101c0578063a279879b146101ff578063afd27bf51461021f578063b27670701461024c578063c0c53b8b1461025f578063c3fb90d61461027f578063c45a0155146102eb578063d0378d071461030b578063f0fc4ec11461032b578063fc0c546a14610340575b600080fd5b3480156100d457600080fd5b506100dd610360565b005b3480156100eb57600080fd5b506100f461048d565b6040516101369190600060a082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015292915050565b60405180910390f35b34801561014b57600080fd5b506100dd61015a366004611d61565b61051c565b34801561016b57600080fd5b506100dd61017a366004611d8d565b610613565b6100dd61018d366004611db6565b61071c565b34801561019e57600080fd5b506101b26101ad366004611dfe565b61085a565b604051908152602001610136565b3480156101cc57600080fd5b506034546101e790600160a01b90046001600160401b031681565b6040516001600160401b039091168152602001610136565b34801561020b57600080fd5b506100dd61021a366004611db6565b6109a3565b34801561022b57600080fd5b5060345461023f906001600160a01b031681565b6040516101369190611e48565b6101b261025a366004611e5c565b610b43565b34801561026b57600080fd5b506100dd61027a366004611e91565b610c28565b34801561028b57600080fd5b506036546037546102b8916001600160801b0380821692600160801b928390048216928183169291041684565b604080516001600160801b0395861681529385166020850152918416918301919091529091166060820152608001610136565b3480156102f757600080fd5b5060355461023f906001600160a01b031681565b34801561031757600080fd5b506100dd610326366004611db6565b610d8c565b34801561033757600080fd5b506100dd610ea2565b34801561034c57600080fd5b5060335461023f906001600160a01b031681565b603554604051636eab9b3560e11b81526001600160a01b039091169063dd57366a90610390903390600401611e48565b602060405180830381865afa1580156103ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d19190611edc565b6103ee57604051630de65d1160e11b815260040160405180910390fd5b60006103f861048d565b6040810151603354919250600091610418906001600160a01b03166110bc565b6104229190611f0f565b6060830151603454919250600091610442906001600160a01b03166110bc565b61044c9190611f0f565b9050811561046b5760335461046b906001600160a01b03163384611147565b801561048857603454610488906001600160a01b03163383611147565b505050565b6104bf6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b506040805160a0810182526036546001600160801b038082168352600160801b91829004811660208401526037549182048116938301939093529091166060820152603454600160a01b90046001600160401b0316608082015290565b603554604051636eab9b3560e11b81526001600160a01b039091169063dd57366a9061054c903390600401611e48565b602060405180830381865afa158015610569573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058d9190611edc565b6105aa57604051630de65d1160e11b815260040160405180910390fd5b60006105b461048d565b805160208201516040519293507fdd8196f9280a887c2cda9ceaa0c9f147ee5931086cfa28738c70c45ce383f1cb926105f09287928992611f22565b60405180910390a16106048185858561119d565b61060d8161122e565b50505050565b603554604051636eab9b3560e11b81526001600160a01b039091169063dd57366a90610643903390600401611e48565b602060405180830381865afa158015610660573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106849190611edc565b6106a157604051630de65d1160e11b815260040160405180910390fd5b603454604080516001600160401b038085168252600160a01b90930490921660208301527f14914da2bf76024616fbe1859783fcd4dbddcb179b1f3a854949fbf920dcb957910160405180910390a1603480546001600160401b03909216600160a01b02600160a01b600160e01b0319909216919091179055565b603554604051636eab9b3560e11b81526001600160a01b039091169063dd57366a9061074c903390600401611e48565b602060405180830381865afa158015610769573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078d9190611edc565b6107aa57604051630de65d1160e11b815260040160405180910390fd5b60006107b461048d565b905082816040018181516107c89190611f3d565b9052506060810180518391906107df908390611f3d565b9052506033546107f9906001600160a01b031633856112da565b603454610810906001600160a01b031633846112da565b7f32dc813d3f262a05478ad1165d5701040e411d9a6e1684c8c2da1c8e6f3b802281604001518260600151604051610849929190611f50565b60405180910390a16104888161122e565b60006002600154036108875760405162461bcd60e51b815260040161087e90611f5e565b60405180910390fd5b6002600155600061089661048d565b9050826108b9576034546108b4906001600160a01b031633876112da565b61090a565b6060810151603454600091906108d7906001600160a01b03166110bc565b6108e19190611f0f565b905085811015610908578581604051636313b4e560e01b815260040161087e929190611f50565b505b6109148186611341565b91508382101561093b57818460405163d407991560e01b815260040161087e929190611f50565b603354610952906001600160a01b03168784611381565b61095b8161122e565b7fe9dcd197d2f7d180de1ecfd3999f91ecf06bb65781541f206ddabbc08e4cd29b86868460405161098e93929190611f95565b60405180910390a15060018055949350505050565b603554604051636eab9b3560e11b81526001600160a01b039091169063dd57366a906109d3903390600401611e48565b602060405180830381865afa1580156109f0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a149190611edc565b610a3157604051630de65d1160e11b815260040160405180910390fd5b6000610a3b61048d565b90506000610a4882611445565b9050600080610a578487611481565b90925090508115610acc576000610a6d83611500565b9050610a7b858483896115b0565b6000610a8686611445565b90507fb569412a0abb89d32fca61e1a718d803d8e7dd8b1fe0b8e152a01e1808e7d23284838388604051610abd9493929190611f22565b60405180910390a15050610b32565b6000610ad782611623565b9050610ae5858383896116ca565b6000610af086611445565b90507fc41b352e51a1d27f9abe2577fe6a992eaee7f0c62e0185f726a6876463db710b83838388604051610b279493929190611f22565b60405180910390a150505b610b3b8461122e565b505050505050565b6000600260015403610b675760405162461bcd60e51b815260040161087e90611f5e565b60026001556000610b7661048d565b603354909150610b90906001600160a01b031633866112da565b610b9a8185611736565b915082821015610bc157818360405163efd9f0cd60e01b815260040161087e929190611f50565b603454610bd8906001600160a01b03168684611381565b610be18161122e565b7fdeed462e5fd237e34f502e1dcf0d079b3a5e5958bebea6b03700434c7bec36d4858584604051610c1493929190611f95565b60405180910390a150600180559392505050565b600054610100900460ff1615808015610c485750600054600160ff909116105b80610c695750610c573061176d565b158015610c69575060005460ff166001145b610ccc5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161087e565b6000805460ff191660011790558015610cef576000805461ff0019166101001790555b610cf761177c565b603380546001600160a01b03199081166001600160a01b038781169182179093556034805483168785169081179091556035805490931693861693909317909155610d41916117ad565b801561060d576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150505050565b603554604051636eab9b3560e11b81526001600160a01b039091169063dd57366a90610dbc903390600401611e48565b602060405180830381865afa158015610dd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfd9190611edc565b610e1a57604051630de65d1160e11b815260040160405180910390fd5b6000610e2461048d565b90506000198303610e3757806040015192505b6000198203610e4857806060015191505b8281604001818151610e5a9190611f0f565b905250606081018051839190610e71908390611f0f565b905250603354610e8b906001600160a01b03163385611381565b603454610810906001600160a01b03163384611381565b603554604051636eab9b3560e11b81526001600160a01b039091169063dd57366a90610ed2903390600401611e48565b602060405180830381865afa158015610eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f139190611edc565b610f3057604051630de65d1160e11b815260040160405180910390fd5b603454604051633bd73ee360e21b81526001600160a01b039091169063ef5cfb8c90610f60903090600401611e48565b6000604051808303816000875af1158015610f7f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fa7919081019061201f565b506034546040805163c4f59f9b60e01b815290516000926001600160a01b03169163c4f59f9b91600480830192869291908290030181865afa158015610ff1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261101991908101906120a9565b905060005b81518110156110b85760335482516001600160a01b039091169083908390811061104a5761104a612137565b60200260200101516001600160a01b031603156110a6576110a682828151811061107657611076612137565b6020026020010151336110a185858151811061109457611094612137565b60200260200101516110bc565b611381565b806110b08161214d565b91505061101e565b5050565b60006001600160a01b0382161561113f576040516370a0823160e01b81526001600160a01b038316906370a08231906110f9903090600401611e48565b602060405180830381865afa158015611116573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113a9190612166565b611141565b475b92915050565b6104888363a9059cbb60e01b848460405160240161116692919061217f565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261186d565b8351158015906111b957506111b78285600001518361193f565b155b156111dd57835160405163efb0d1c760e01b815261087e9184918490600401612198565b6020840151158015906111fc57506111fa8385602001518361193f565b155b156112235760208401516040516334b59fe160e21b815261087e9185918490600401612198565b508252602090910152565b600060405180608001604052806112488460000151611987565b6001600160801b031681526020016112638460200151611987565b6001600160801b0316815260200161127e8460600151611987565b6001600160801b031681526020016112998460400151611987565b6001600160801b03908116909152815160208301518216600160801b9081029183169190911760365560408301516060909301518216029116176037555050565b6001600160a01b038316611326578034146104885760405162461bcd60e51b815260206004820152600c60248201526b0cae8d040dad2e6dac2e8c6d60a31b604482015260640161087e565b8015610488576104886001600160a01b0384168330846119a1565b600061134d83836119d9565b905081836060018181516113619190611f3d565b905250604083018051829190611378908390611f0f565b90525092915050565b8060000361138e57505050565b6001600160a01b038316611431576000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146113e9576040519150601f19603f3d011682016040523d82523d6000602084013e6113ee565b606091505b505090508061060d5760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b604482015260640161087e565b6104886001600160a01b0384168383611147565b60408101516020820151606083015160009291839161146391611a54565b90506114796114728284611f3d565b8390611a77565b949350505050565b600080600061148f85611445565b9050838111156114c2576114bb816114b56114aa8783611f0f565b604089015190611a54565b90611a77565b92506114f8565b60006114d682670de0b6b3a7640000611f0f565b90506114f4816114b56114e98589611f0f565b60608a015190611a54565b9250505b509250929050565b60335460009081906001600160a01b03161561151d57600061151f565b825b6034546033546040516320e8c56560e01b81523060048201526001600160a01b039182166024820152604481018790526000606482015292935016906320e8c56590839060840160206040518083038185885af1158015611584573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906115a99190612166565b9392505050565b60006115bc8385611a77565b90506115cd8186600001518461193f565b6115f057845160405163efb0d1c760e01b815261087e9183918590600401612198565b83856040018181516116029190611f0f565b905250606085018051849190611619908390611f3d565b9052505050505050565b60345460009061163d906001600160a01b03168084611381565b60345460335460405163769f8e5d60e01b8152306004820152602481018590526001600160a01b039182166044820152600060648201526001608482015291169063769f8e5d9060a4016020604051808303816000875af11580156116a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111419190612166565b60006116d68385611a77565b90506116e78186602001518461193f565b61170d5760208501516040516334b59fe160e21b815261087e9183918590600401612198565b828560400181815161171f9190611f3d565b905250606085018051859190611619908390611f0f565b60006117428383611a9d565b905081836040018181516117569190611f3d565b905250606083018051829190611378908390611f0f565b6001600160a01b03163b151590565b600054610100900460ff166117a35760405162461bcd60e51b815260040161087e906121ae565b6117ab611b0e565b565b6001600160a01b0382166117bf575050565b6117d160026001600160601b0361220f565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526001600160601b03929092169184169063dd62ed3e90604401602060405180830381865afa15801561182a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184e9190612166565b10156110b85761186082826000611b3b565b6110b88282600019611b3b565b60006118c2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c4f9092919063ffffffff16565b80519091501561048857808060200190518101906118e09190611edc565b6104885760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161087e565b60008361195d8461195885670de0b6b3a7640000611f0f565b611a54565b11158015611479575061197c8361195884670de0b6b3a7640000611f3d565b841115949350505050565b60006001600160801b0382111561199d57600080fd5b5090565b6040516001600160a01b038085166024830152831660448201526064810182905261060d9085906323b872dd60e01b90608401611166565b600080611a028460800151670de0b6b3a76400006119f79190611f0f565b602086015190611a54565b905080600003611a1457611a14612243565b611a1e8382611a54565b91508360400151821115611a4d57836040015182604051631895cd1f60e01b815260040161087e929190611f50565b5092915050565b600080611a618385612259565b9050670de0b6b3a7640000815b04949350505050565b600080611a8c670de0b6b3a764000085612259565b9050828181611a6e57611a6e6121f9565b600080611ac38460800151670de0b6b3a7640000611abb9190611f0f565b855190611a54565b905080600003611ad557611ad5612243565b611adf8382611a54565b91508360600151821115611a4d5783606001518260405163035c130560e21b815260040161087e929190611f50565b600054610100900460ff16611b355760405162461bcd60e51b815260040161087e906121ae565b60018055565b600080846001600160a01b031663095ea7b360e01b8585604051602401611b6392919061217f565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051611ba19190612294565b6000604051808303816000865af19150503d8060008114611bde576040519150601f19603f3d011682016040523d82523d6000602084013e611be3565b606091505b5091509150818015611c0d575080511580611c0d575080806020019051810190611c0d9190611edc565b611c485760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b604482015260640161087e565b5050505050565b6060611479848460008585611c638561176d565b611caf5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161087e565b600080866001600160a01b03168587604051611ccb9190612294565b60006040518083038185875af1925050503d8060008114611d08576040519150601f19603f3d011682016040523d82523d6000602084013e611d0d565b606091505b5091509150611d1d828286611d28565b979650505050505050565b60608315611d375750816115a9565b825115611d475782518084602001fd5b8160405162461bcd60e51b815260040161087e91906122b0565b600080600060608486031215611d7657600080fd5b505081359360208301359350604090920135919050565b600060208284031215611d9f57600080fd5b81356001600160401b03811681146115a957600080fd5b60008060408385031215611dc957600080fd5b50508035926020909101359150565b6001600160a01b0381168114611ded57600080fd5b50565b8015158114611ded57600080fd5b60008060008060808587031215611e1457600080fd5b8435611e1f81611dd8565b935060208501359250604085013591506060850135611e3d81611df0565b939692955090935050565b6001600160a01b0391909116815260200190565b600080600060608486031215611e7157600080fd5b8335611e7c81611dd8565b95602085013595506040909401359392505050565b600080600060608486031215611ea657600080fd5b8335611eb181611dd8565b92506020840135611ec181611dd8565b91506040840135611ed181611dd8565b809150509250925092565b600060208284031215611eee57600080fd5b81516115a981611df0565b634e487b7160e01b600052601160045260246000fd5b8181038181111561114157611141611ef9565b93845260208401929092526040830152606082015260800190565b8082018082111561114157611141611ef9565b918252602082015260400190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6001600160a01b039390931683526020830191909152604082015260600190565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611ff457611ff4611fb6565b604052919050565b60006001600160401b0382111561201557612015611fb6565b5060051b60200190565b6000602080838503121561203257600080fd5b82516001600160401b0381111561204857600080fd5b8301601f8101851361205957600080fd5b805161206c61206782611ffc565b611fcc565b81815260059190911b8201830190838101908783111561208b57600080fd5b928401925b82841015611d1d57835182529284019290840190612090565b600060208083850312156120bc57600080fd5b82516001600160401b038111156120d257600080fd5b8301601f810185136120e357600080fd5b80516120f161206782611ffc565b81815260059190911b8201830190838101908783111561211057600080fd5b928401925b82841015611d1d57835161212881611dd8565b82529284019290840190612115565b634e487b7160e01b600052603260045260246000fd5b60006001820161215f5761215f611ef9565b5060010190565b60006020828403121561217857600080fd5b5051919050565b6001600160a01b03929092168252602082015260400190565b9283526020830191909152604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60006001600160601b038381168061223757634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b634e487b7160e01b600052600160045260246000fd5b808202811582820484141761114157611141611ef9565b60005b8381101561228b578181015183820152602001612273565b50506000910152565b600082516122a6818460208701612270565b9190910192915050565b60208152600082518060208401526122cf816040850160208701612270565b601f01601f1916919091016040019291505056fea2646970667358221220c554140d5e25992f79a75ccd13a98cc8ffad15e4fd9092f9b9f34ae43715db6364736f6c63430008110033";
|
|
650
644
|
|
|
651
645
|
type BulkSellerConstructorParams =
|
|
652
646
|
| [signer?: Signer]
|
|
@@ -200,22 +200,6 @@ const _abi = [
|
|
|
200
200
|
name: "BulkInsufficientTokenForTrade",
|
|
201
201
|
type: "error",
|
|
202
202
|
},
|
|
203
|
-
{
|
|
204
|
-
inputs: [
|
|
205
|
-
{
|
|
206
|
-
internalType: "uint256",
|
|
207
|
-
name: "actualBalance",
|
|
208
|
-
type: "uint256",
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
internalType: "uint256",
|
|
212
|
-
name: "requiredBalance",
|
|
213
|
-
type: "uint256",
|
|
214
|
-
},
|
|
215
|
-
],
|
|
216
|
-
name: "BulkInsufficientTokenReceived",
|
|
217
|
-
type: "error",
|
|
218
|
-
},
|
|
219
203
|
{
|
|
220
204
|
inputs: [],
|
|
221
205
|
name: "BulkNotAdmin",
|
|
@@ -1231,7 +1215,7 @@ const _abi = [
|
|
|
1231
1215
|
];
|
|
1232
1216
|
|
|
1233
1217
|
const _bytecode =
|
|
1234
|
-
"
|
|
1218
|
+
"0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212204d57e7ba9ee04a9e73ec29745e65a629c84f93b81fd54d25b65305ed26e0775064736f6c63430008110033";
|
|
1235
1219
|
|
|
1236
1220
|
type ErrorsConstructorParams =
|
|
1237
1221
|
| [signer?: Signer]
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type { IApeStaking, IApeStakingInterface } from "../IApeStaking";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
internalType: "address",
|
|
14
|
+
name: "addr",
|
|
15
|
+
type: "address",
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
name: "addressPosition",
|
|
19
|
+
outputs: [
|
|
20
|
+
{
|
|
21
|
+
internalType: "uint256",
|
|
22
|
+
name: "stakedAmount",
|
|
23
|
+
type: "uint256",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
internalType: "int256",
|
|
27
|
+
name: "rewardsDebt",
|
|
28
|
+
type: "int256",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
stateMutability: "view",
|
|
32
|
+
type: "function",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
inputs: [],
|
|
36
|
+
name: "apeCoin",
|
|
37
|
+
outputs: [
|
|
38
|
+
{
|
|
39
|
+
internalType: "address",
|
|
40
|
+
name: "",
|
|
41
|
+
type: "address",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
stateMutability: "view",
|
|
45
|
+
type: "function",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
inputs: [],
|
|
49
|
+
name: "claimSelfApeCoin",
|
|
50
|
+
outputs: [],
|
|
51
|
+
stateMutability: "nonpayable",
|
|
52
|
+
type: "function",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
inputs: [
|
|
56
|
+
{
|
|
57
|
+
internalType: "uint256",
|
|
58
|
+
name: "_amount",
|
|
59
|
+
type: "uint256",
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
name: "depositSelfApeCoin",
|
|
63
|
+
outputs: [],
|
|
64
|
+
stateMutability: "nonpayable",
|
|
65
|
+
type: "function",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
inputs: [
|
|
69
|
+
{
|
|
70
|
+
internalType: "uint256",
|
|
71
|
+
name: "_poolId",
|
|
72
|
+
type: "uint256",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
internalType: "address",
|
|
76
|
+
name: "_address",
|
|
77
|
+
type: "address",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
internalType: "uint256",
|
|
81
|
+
name: "_tokenId",
|
|
82
|
+
type: "uint256",
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
name: "pendingRewards",
|
|
86
|
+
outputs: [
|
|
87
|
+
{
|
|
88
|
+
internalType: "uint256",
|
|
89
|
+
name: "",
|
|
90
|
+
type: "uint256",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
stateMutability: "view",
|
|
94
|
+
type: "function",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
inputs: [
|
|
98
|
+
{
|
|
99
|
+
internalType: "uint256",
|
|
100
|
+
name: "_amount",
|
|
101
|
+
type: "uint256",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
internalType: "address",
|
|
105
|
+
name: "_recipient",
|
|
106
|
+
type: "address",
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
name: "withdrawApeCoin",
|
|
110
|
+
outputs: [],
|
|
111
|
+
stateMutability: "nonpayable",
|
|
112
|
+
type: "function",
|
|
113
|
+
},
|
|
114
|
+
];
|
|
115
|
+
|
|
116
|
+
export class IApeStaking__factory {
|
|
117
|
+
static readonly abi = _abi;
|
|
118
|
+
static createInterface(): IApeStakingInterface {
|
|
119
|
+
return new utils.Interface(_abi) as IApeStakingInterface;
|
|
120
|
+
}
|
|
121
|
+
static connect(
|
|
122
|
+
address: string,
|
|
123
|
+
signerOrProvider: Signer | Provider
|
|
124
|
+
): IApeStaking {
|
|
125
|
+
return new Contract(address, _abi, signerOrProvider) as IApeStaking;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -72,25 +72,6 @@ const _abi = [
|
|
|
72
72
|
stateMutability: "view",
|
|
73
73
|
type: "function",
|
|
74
74
|
},
|
|
75
|
-
{
|
|
76
|
-
inputs: [
|
|
77
|
-
{
|
|
78
|
-
internalType: "address",
|
|
79
|
-
name: "addr",
|
|
80
|
-
type: "address",
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
-
name: "isAdmin",
|
|
84
|
-
outputs: [
|
|
85
|
-
{
|
|
86
|
-
internalType: "bool",
|
|
87
|
-
name: "",
|
|
88
|
-
type: "bool",
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
stateMutability: "view",
|
|
92
|
-
type: "function",
|
|
93
|
-
},
|
|
94
75
|
{
|
|
95
76
|
inputs: [
|
|
96
77
|
{
|
|
@@ -7,6 +7,187 @@ import { Provider } from "@ethersproject/providers";
|
|
|
7
7
|
import type { IPBulkSeller, IPBulkSellerInterface } from "../IPBulkSeller";
|
|
8
8
|
|
|
9
9
|
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
anonymous: false,
|
|
12
|
+
inputs: [
|
|
13
|
+
{
|
|
14
|
+
indexed: false,
|
|
15
|
+
internalType: "uint256",
|
|
16
|
+
name: "newFeeRate",
|
|
17
|
+
type: "uint256",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
indexed: false,
|
|
21
|
+
internalType: "uint256",
|
|
22
|
+
name: "oldFeeRate",
|
|
23
|
+
type: "uint256",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
name: "FeeRateUpdated",
|
|
27
|
+
type: "event",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
anonymous: false,
|
|
31
|
+
inputs: [
|
|
32
|
+
{
|
|
33
|
+
indexed: false,
|
|
34
|
+
internalType: "uint256",
|
|
35
|
+
name: "newRateTokenToSy",
|
|
36
|
+
type: "uint256",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
indexed: false,
|
|
40
|
+
internalType: "uint256",
|
|
41
|
+
name: "newRateSyToToken",
|
|
42
|
+
type: "uint256",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
indexed: false,
|
|
46
|
+
internalType: "uint256",
|
|
47
|
+
name: "oldRateTokenToSy",
|
|
48
|
+
type: "uint256",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
indexed: false,
|
|
52
|
+
internalType: "uint256",
|
|
53
|
+
name: "oldRateSyToToken",
|
|
54
|
+
type: "uint256",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
name: "RateUpdated",
|
|
58
|
+
type: "event",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
anonymous: false,
|
|
62
|
+
inputs: [
|
|
63
|
+
{
|
|
64
|
+
indexed: false,
|
|
65
|
+
internalType: "uint256",
|
|
66
|
+
name: "netSyRedeem",
|
|
67
|
+
type: "uint256",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
indexed: false,
|
|
71
|
+
internalType: "uint256",
|
|
72
|
+
name: "netTokenFromSy",
|
|
73
|
+
type: "uint256",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
indexed: false,
|
|
77
|
+
internalType: "uint256",
|
|
78
|
+
name: "newTokenProp",
|
|
79
|
+
type: "uint256",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
indexed: false,
|
|
83
|
+
internalType: "uint256",
|
|
84
|
+
name: "oldTokenProp",
|
|
85
|
+
type: "uint256",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
name: "ReBalanceSyToToken",
|
|
89
|
+
type: "event",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
anonymous: false,
|
|
93
|
+
inputs: [
|
|
94
|
+
{
|
|
95
|
+
indexed: false,
|
|
96
|
+
internalType: "uint256",
|
|
97
|
+
name: "netTokenDeposit",
|
|
98
|
+
type: "uint256",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
indexed: false,
|
|
102
|
+
internalType: "uint256",
|
|
103
|
+
name: "netSyFromToken",
|
|
104
|
+
type: "uint256",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
indexed: false,
|
|
108
|
+
internalType: "uint256",
|
|
109
|
+
name: "newTokenProp",
|
|
110
|
+
type: "uint256",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
indexed: false,
|
|
114
|
+
internalType: "uint256",
|
|
115
|
+
name: "oldTokenProp",
|
|
116
|
+
type: "uint256",
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
name: "ReBalanceTokenToSy",
|
|
120
|
+
type: "event",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
anonymous: false,
|
|
124
|
+
inputs: [
|
|
125
|
+
{
|
|
126
|
+
indexed: false,
|
|
127
|
+
internalType: "uint256",
|
|
128
|
+
name: "totalToken",
|
|
129
|
+
type: "uint256",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
indexed: false,
|
|
133
|
+
internalType: "uint256",
|
|
134
|
+
name: "totalSy",
|
|
135
|
+
type: "uint256",
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
name: "ReserveUpdated",
|
|
139
|
+
type: "event",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
anonymous: false,
|
|
143
|
+
inputs: [
|
|
144
|
+
{
|
|
145
|
+
indexed: false,
|
|
146
|
+
internalType: "address",
|
|
147
|
+
name: "receiver",
|
|
148
|
+
type: "address",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
indexed: false,
|
|
152
|
+
internalType: "uint256",
|
|
153
|
+
name: "netSyIn",
|
|
154
|
+
type: "uint256",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
indexed: false,
|
|
158
|
+
internalType: "uint256",
|
|
159
|
+
name: "netTokenOut",
|
|
160
|
+
type: "uint256",
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
name: "SwapExactSyForToken",
|
|
164
|
+
type: "event",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
anonymous: false,
|
|
168
|
+
inputs: [
|
|
169
|
+
{
|
|
170
|
+
indexed: false,
|
|
171
|
+
internalType: "address",
|
|
172
|
+
name: "receiver",
|
|
173
|
+
type: "address",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
indexed: false,
|
|
177
|
+
internalType: "uint256",
|
|
178
|
+
name: "netTokenIn",
|
|
179
|
+
type: "uint256",
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
indexed: false,
|
|
183
|
+
internalType: "uint256",
|
|
184
|
+
name: "netSyOut",
|
|
185
|
+
type: "uint256",
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
name: "SwapExactTokenForSy",
|
|
189
|
+
type: "event",
|
|
190
|
+
},
|
|
10
191
|
{
|
|
11
192
|
inputs: [],
|
|
12
193
|
name: "SY",
|
|
@@ -77,6 +258,11 @@ const _abi = [
|
|
|
77
258
|
name: "minTokenOut",
|
|
78
259
|
type: "uint256",
|
|
79
260
|
},
|
|
261
|
+
{
|
|
262
|
+
internalType: "bool",
|
|
263
|
+
name: "swapFromInternalBalance",
|
|
264
|
+
type: "bool",
|
|
265
|
+
},
|
|
80
266
|
],
|
|
81
267
|
name: "swapExactSyForToken",
|
|
82
268
|
outputs: [
|
|
@@ -115,7 +301,7 @@ const _abi = [
|
|
|
115
301
|
type: "uint256",
|
|
116
302
|
},
|
|
117
303
|
],
|
|
118
|
-
stateMutability: "
|
|
304
|
+
stateMutability: "payable",
|
|
119
305
|
type: "function",
|
|
120
306
|
},
|
|
121
307
|
{
|
|
@@ -33,7 +33,7 @@ const _abi = [
|
|
|
33
33
|
anonymous: false,
|
|
34
34
|
inputs: [
|
|
35
35
|
{
|
|
36
|
-
indexed:
|
|
36
|
+
indexed: true,
|
|
37
37
|
internalType: "uint128",
|
|
38
38
|
name: "wTime",
|
|
39
39
|
type: "uint128",
|
|
@@ -54,6 +54,31 @@ const _abi = [
|
|
|
54
54
|
name: "ReceiveVotingResults",
|
|
55
55
|
type: "event",
|
|
56
56
|
},
|
|
57
|
+
{
|
|
58
|
+
anonymous: false,
|
|
59
|
+
inputs: [
|
|
60
|
+
{
|
|
61
|
+
indexed: true,
|
|
62
|
+
internalType: "address",
|
|
63
|
+
name: "market",
|
|
64
|
+
type: "address",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
indexed: false,
|
|
68
|
+
internalType: "uint256",
|
|
69
|
+
name: "pendlePerSec",
|
|
70
|
+
type: "uint256",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
indexed: false,
|
|
74
|
+
internalType: "uint256",
|
|
75
|
+
name: "incentiveEndsAt",
|
|
76
|
+
type: "uint256",
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
name: "UpdateMarketReward",
|
|
80
|
+
type: "event",
|
|
81
|
+
},
|
|
57
82
|
{
|
|
58
83
|
inputs: [
|
|
59
84
|
{
|
|
@@ -33,7 +33,7 @@ const _abi = [
|
|
|
33
33
|
anonymous: false,
|
|
34
34
|
inputs: [
|
|
35
35
|
{
|
|
36
|
-
indexed:
|
|
36
|
+
indexed: true,
|
|
37
37
|
internalType: "uint128",
|
|
38
38
|
name: "wTime",
|
|
39
39
|
type: "uint128",
|
|
@@ -54,6 +54,31 @@ const _abi = [
|
|
|
54
54
|
name: "ReceiveVotingResults",
|
|
55
55
|
type: "event",
|
|
56
56
|
},
|
|
57
|
+
{
|
|
58
|
+
anonymous: false,
|
|
59
|
+
inputs: [
|
|
60
|
+
{
|
|
61
|
+
indexed: true,
|
|
62
|
+
internalType: "address",
|
|
63
|
+
name: "market",
|
|
64
|
+
type: "address",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
indexed: false,
|
|
68
|
+
internalType: "uint256",
|
|
69
|
+
name: "pendlePerSec",
|
|
70
|
+
type: "uint256",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
indexed: false,
|
|
74
|
+
internalType: "uint256",
|
|
75
|
+
name: "incentiveEndsAt",
|
|
76
|
+
type: "uint256",
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
name: "UpdateMarketReward",
|
|
80
|
+
type: "event",
|
|
81
|
+
},
|
|
57
82
|
{
|
|
58
83
|
inputs: [
|
|
59
84
|
{
|