@pendle/core-v2 3.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/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/PendleExternalRewardDistributor.sol/PendleExternalRewardDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleExternalRewardDistributor.sol/PendleExternalRewardDistributor.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/Market/v2/PendleGaugeV2.sol/PendleGaugeV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v2/PendleMarketFactoryV2.sol/PendleMarketFactoryV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v2/PendleMarketFactoryV2.sol/PendleMarketFactoryV2.json +2 -2
- package/build/artifacts/contracts/core/Market/v2/PendleMarketV2.sol/PendleMarketV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v2/PendleMarketV2.sol/PendleMarketV2.json +2 -2
- package/build/artifacts/contracts/core/Market/v3/PendleMarketFactoryV3.sol/PendleMarketFactoryV3.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v3/PendleMarketFactoryV3.sol/PendleMarketFactoryV3.json +2 -2
- package/build/artifacts/contracts/core/Market/v3/PendleMarketV3.sol/PendleMarketV3.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v3/PendleMarketV3.sol/PendleMarketV3.json +2 -2
- package/build/artifacts/contracts/core/RewardManager/PendleLinearDistributor.sol/PendleLinearDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/PendleLinearDistributor.sol/PendleLinearDistributor.json +2 -2
- package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseUpg.sol/SYBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewardsUpg.sol/SYBaseWithRewardsUpg.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/AaveV3/PendleAaveV3SY.sol/PendleAaveV3SY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3SY.sol/PendleAaveV3SY.json +1057 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/libraries/AaveAdapterLib.sol/AaveAdapterLib.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/libraries/AaveAdapterLib.sol/AaveAdapterLib.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/libraries/WadRayMath.sol/WadRayMath.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/libraries/WadRayMath.sol/WadRayMath.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ankr/PendleAnkrBNBSY.sol/PendleAnkrBNBSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ankr/PendleAnkrBNBSY.sol/PendleAnkrBNBSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/AuraEthxBbAWethSY.sol/AuraEthxBbAWethSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/AuraEthxBbAWethSY.sol/AuraEthxBbAWethSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/AuraSwEthBbAWethSYV2.sol/AuraSwEthBbAWethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/AuraSwEthBbAWethSYV2.sol/AuraSwEthBbAWethSYV2.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/AuraWethVethSYUpg.sol/AuraWethVethSYUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/AuraWethVethSYUpg.sol/AuraWethVethSYUpg.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWstethAnkreth.sol/PendleAuraWstethAnkreth.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWstethAnkreth.sol/PendleAuraWstethAnkreth.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreviewProxy.sol/ComposableStablePreviewProxy.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreviewV4.sol/ComposableStablePreviewV4.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreviewV5.sol/ComposableStablePreviewV5.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/PendleAuraBalancerStableLPSYV3Upg.sol/PendleAuraBalancerStableLPSYV3Upg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.json +2 -2
- 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/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/ChainlinkRelayer/PendleChainlinkReceiver.sol/PendleChainlinkReceiver.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/ChainlinkRelayer/PendleChainlinkReceiver.sol/PendleChainlinkReceiver.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/ChainlinkRelayer/PendleChainlinkRelayer.sol/PendleChainlinkRelayer.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/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Flux/FluxTokenLib.sol/FluxTokenLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Flux/FluxTokenLib.sol/FluxTokenLib.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Flux/PendleFluxLendingSY.sol/PendleFluxLendingSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Flux/PendleFluxLendingSY.sol/PendleFluxLendingSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol/GLPPreviewHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GMTokenPricingHelper.sol/GMTokenPricingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GMTokenPricingHelper.sol/IGMXV2DataStore.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GMTokenPricingHelper.sol/IGMXV2Oracle.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GMTokenPricingHelper.sol/IGMXV2Reader.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGMV2TokenSY.sol/PendleGMV2TokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGMV2TokenSY.sol/PendleGMV2TokenSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/HMX/HLPPricingHelper.sol/HLPPricingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/HMX/PendleHlpSY.sol/PendleHlpSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/HMX/PendleHlpSY.sol/PendleHlpSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/KyberMathHelper.sol/KyberMathHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/KyberNftManagerBaseUpg.sol/KyberNftManagerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/PendleKyberElasticSYUpg.sol/PendleKyberElasticSYUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/PendleKyberElasticSYUpg.sol/PendleKyberElasticSYUpg.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/FullMath.sol/FullMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/LiqDeltaMath.sol/LiqDeltaMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/LiquidityMath.sol/LiquidityMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/MathConstants.sol/MathConstants.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/QtyDeltaMath.sol/QtyDeltaMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/QuadMath.sol/QuadMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/ReinvestmentMath.sol/ReinvestmentMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/SafeCast.sol/SafeCast.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/SwapMath.sol/SwapMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/libraries/TickMath.sol/TickMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MUX/MlpPricingHelper.sol/MlpPricingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MUX/PendleMlpSY.sol/PendleMlpSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MUX/PendleMlpSY.sol/PendleMlpSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MantleStakedEth/PendleMantleStakedEthSY.sol/PendleMantleStakedEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MantleStakedEth/PendleMantleStakedEthSY.sol/PendleMantleStakedEthSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MantleStakedEth/PendleOracleForSyProxy.sol/PendleOracleForSyProxy.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MantleStakedEth/PendleOracleForSyProxy.sol/PendleOracleForSyProxy.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleBridgedLSDSY.sol/PendleBridgedLSDSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleBridgedLSDSY.sol/PendleBridgedLSDSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC4626SY.sol/PendleERC4626SY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC4626SY.sol/PendleERC4626SY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleEUSDSY.sol/PendleEUSDSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleEUSDSY.sol/PendleEUSDSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWbEthSY.sol/PendleWbEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWbEthSY.sol/PendleWbEthSY.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/StandardizedYield/implementations/Silo/PendleSiloWithIncentiveSY.sol/PendleSiloWithIncentiveSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Silo/PendleSiloWithIncentiveSY.sol/PendleSiloWithIncentiveSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Stader/PendleETHXSY.sol/PendleETHXSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Stader/PendleETHXSY.sol/PendleETHXSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwETH.sol/SwETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwETH.sol/SwETHSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/PendleThenaSY.sol/PendleThenaSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/PendleThenaSY.sol/PendleThenaSY.json +2 -2
- 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/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
- package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +2 -2
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +2 -2
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +2 -2
- package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20PermitUpg.sol/PendleERC20PermitUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20Upg.sol/PendleERC20Upg.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +18 -50
- package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.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/PMath.sol/PMath.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/AaveV3/IAaveV3AToken.sol/IAaveV3AToken.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/AaveV3/IAaveV3AToken.sol/IAaveV3AToken.json +99 -0
- package/build/artifacts/contracts/interfaces/AaveV3/IAaveV3Pool.sol/IAaveV3Pool.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/AaveV3/IAaveV3Pool.sol/IAaveV3Pool.json +87 -0
- 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/IMetaStablePool.sol/IMetaStablePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IPComposableStablePreview.sol/IPComposableStablePreview.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/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/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/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/Flux/IFluxErc20.sol/IFluxErc20.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Flux/IFluxInterestRateModel.sol/IFluxInterestRateModel.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IGMXPriceHelper.sol/IGMXPriceHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/HMX/IHLPStaking.sol/IHLPStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/HMX/IHMXCalculator.sol/IHMXCalculator.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/HMX/IHMXCompounder.sol/IHMXCompounder.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/HMX/IHMXStaking.sol/IHMXStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/HMX/IHMXVester.sol/IHMXVester.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IDailLikePermit.sol/IDaiLikePermit.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IDailLikePermit.sol/IDaiLikePermit.json +59 -0
- 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/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.json +2614 -0
- package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.json +68 -0
- 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/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPActionMintRedeem.sol/IPActionMintRedeem.json → IPActionMiscV3.sol/IPActionMiscV3.json} +269 -22
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.json +1185 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.json +1364 -0
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.json +6215 -0
- 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/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/IPLimitRouter.sol/IPLimitOrderType.dbg.json +4 -0
- package/build/artifacts/contracts/{router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.json → interfaces/IPLimitRouter.sol/IPLimitOrderType.json} +2 -2
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.json +553 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.json +45 -0
- package/build/artifacts/contracts/interfaces/IPLinearDistributor.sol/IPLinearDistributor.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/IPMarketFactoryV2.sol/IPMarketFactoryV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketFactoryV3.sol/IPMarketFactoryV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketV3.sol/IPMarketV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPOffchainStorage.sol/IPOffchainStorage.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPriceFeed.sol/IPPriceFeed.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/IPRouterHelper.sol/IPRouterHelper.json +0 -25
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.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/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/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Kyber/IKyberElasticFactory.sol/IKyberElasticFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Kyber/IKyberElasticPool.sol/IKyberElasticPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Kyber/IKyberElasticRouter.sol/IKyberElasticRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Kyber/IKyberLiquidityMining.sol/IKyberLiquidityMining.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Kyber/IKyberMathHelper.sol/IKyberMathHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Kyber/IKyberPositionManager.sol/IKyberPositionManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Lybra/IEUSD.sol/IEUSD.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/MUX/IMUXRewardRouter.sol/IMUXRewardRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Silo/ISilo.sol/ISilo.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Silo/ISiloIncentiveController.sol/ISiloIncentiveController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Silo/ISiloLens.sol/ISiloLens.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Stader/IStaderStakeManager.sol/IStaderStakeManager.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/limit/LimitMathCore.sol/LimitMathCore.dbg.json +4 -0
- package/build/artifacts/contracts/{core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json → limit/LimitMathCore.sol/LimitMathCore.json} +4 -4
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +4 -0
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.json +845 -0
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +4 -0
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +872 -0
- package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +4 -0
- package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.json +99 -0
- package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.json +10 -0
- package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelper.sol/LimitBackendHelper.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelper.sol/LimitBackendHelper.json +174 -0
- package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketExchangeRateLib.sol/MarketExchangeRateLib.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.json +84 -0
- package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/PendleLpGlpOracle.sol/PendleLpGlpOracle.json +2 -2
- package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.json +2 -2
- package/build/artifacts/contracts/oracles/samples/PendlePtUsdChainlinkOracle.sol/PendlePtUsdChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +4 -0
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2810 -0
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +4 -0
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +116 -0
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +4 -0
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +1016 -0
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +4 -0
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +1323 -0
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +4 -0
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +1518 -0
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +3 -33
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/RouterV2InterfaceForRouterHelper.dbg.json +4 -0
- package/build/artifacts/contracts/{interfaces/IPActionSwapPT.sol/IPActionSwapPT.json → router/PendleRouterHelper.sol/RouterV2InterfaceForRouterHelper.json} +163 -226
- package/build/artifacts/contracts/router/PendleRouterV3.sol/PendleRouterV3.dbg.json +4 -0
- package/build/artifacts/contracts/router/PendleRouterV3.sol/PendleRouterV3.json +179 -0
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +4 -0
- package/build/artifacts/contracts/{offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.json → router/base/ActionBase.sol/ActionBase.json} +2 -2
- package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL1.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL1.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL2.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutorOptimistic.sol/IAggregationExecutorOptimistic.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol/IExecutorHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol/IExecutorHelperL2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol/InputScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol/ScalingDataLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/BytesHelper.sol/BytesHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataReader.sol/CalldataReader.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol/CalldataWriter.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/Common.sol/Common.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol/DexScaler.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ExecutorReader.sol/ExecutorReader.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol/InputScalingHelperL2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol/ScalingDataL2Lib.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/oneinch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/oneinch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +1 -1
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol +11 -7
- package/contracts/core/StandardizedYield/SYBase.sol +1 -0
- package/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3SY.sol +94 -0
- package/contracts/core/StandardizedYield/implementations/AaveV3/libraries/AaveAdapterLib.sol +19 -0
- package/contracts/core/StandardizedYield/implementations/AaveV3/libraries/WadRayMath.sol +126 -0
- package/contracts/core/libraries/Errors.sol +2 -3
- package/contracts/core/libraries/TokenHelper.sol +2 -0
- package/contracts/interfaces/AaveV3/IAaveV3AToken.sol +15 -0
- package/contracts/interfaces/AaveV3/IAaveV3Pool.sol +11 -0
- package/contracts/interfaces/IDailLikePermit.sol +17 -0
- package/contracts/interfaces/{IPActionAddRemoveLiq.sol → IPActionAddRemoveLiqV3.sol} +52 -40
- package/contracts/interfaces/IPActionCallbackV3.sol +7 -0
- package/contracts/interfaces/{IPActionMintRedeem.sol → IPActionMiscV3.sol} +38 -6
- package/contracts/interfaces/IPActionStorageStatic.sol +1 -1
- package/contracts/interfaces/{IPActionSwapPT.sol → IPActionSwapPTV3.sol} +21 -31
- package/contracts/interfaces/{IPActionSwapYT.sol → IPActionSwapYTV3.sol} +25 -35
- package/contracts/interfaces/IPAllActionTypeV3.sol +34 -0
- package/contracts/interfaces/IPAllActionV3.sol +19 -0
- package/contracts/interfaces/IPBulkSeller.sol +7 -1
- package/contracts/interfaces/IPLimitRouter.sol +120 -0
- package/contracts/interfaces/IPRouterHelper.sol +6 -8
- package/contracts/limit/LimitMathCore.sol +158 -0
- package/contracts/limit/LimitRouterBase.sol +442 -0
- package/contracts/limit/PendleLimitRouter.sol +65 -0
- package/contracts/limit/helpers/NonceManager.sol +30 -0
- package/contracts/offchain-helpers/BytesLib.sol +551 -0
- package/contracts/offchain-helpers/LimitBackendHelper.sol +109 -0
- package/contracts/offchain-helpers/SimulateHelper.sol +40 -0
- package/contracts/oracles/PendlePtOracle.sol +3 -2
- package/contracts/router/ActionAddRemoveLiqV3.sol +504 -0
- package/contracts/router/ActionCallbackV3.sol +141 -0
- package/contracts/router/ActionMiscV3.sol +164 -0
- package/contracts/router/ActionSwapPTV3.sol +87 -0
- package/contracts/router/ActionSwapYTV3.sol +240 -0
- package/contracts/router/PendleRouterHelper.sol +56 -14
- package/contracts/router/PendleRouterV3.sol +235 -0
- package/contracts/router/base/ActionBase.sol +289 -0
- package/contracts/router/base/CallbackHelper.sol +20 -81
- package/contracts/router/base/MarketApproxLib.sol +124 -99
- package/deployments/1-core.json +5 -3
- package/deployments/10-core.json +5 -3
- package/deployments/42161-core.json +6 -3
- package/deployments/42161-markets/AAVE-USDC-JUNE2024.json +11 -0
- package/deployments/42161-markets/WSTETH-ARBITRUM-MARCH2024.json +11 -0
- package/deployments/42161-markets/WSTETHSILO-ETH-MARCH2024.json +11 -0
- package/deployments/56-core.json +5 -3
- package/deployments/merkle-distribution/2023-11-30.json +7730 -0
- package/deployments/merkle-distribution/2023-12-28.json +8225 -0
- package/package.json +5 -5
- package/typechain-types/ActionAddRemoveLiqV3.ts +10 -7
- package/typechain-types/ActionCallbackV3.ts +164 -0
- package/typechain-types/ActionMarketCoreStatic.ts +18 -63
- package/typechain-types/ActionMintRedeemStatic.ts +10 -102
- package/typechain-types/ActionMiscV3.ts +36 -75
- package/typechain-types/ActionStorageStatic.ts +0 -55
- package/typechain-types/ActionSwapPTV3.ts +8 -5
- package/typechain-types/ActionSwapYTV3.ts +8 -49
- package/typechain-types/IAaveV3AToken.ts +204 -0
- package/typechain-types/IAaveV3Pool.ts +192 -0
- package/typechain-types/IPActionAddRemoveLiqV3.ts +10 -7
- package/typechain-types/IPActionCallbackV3.ts +164 -0
- package/typechain-types/IPActionMiscV3.ts +36 -75
- package/typechain-types/IPActionSwapPTV3.ts +8 -5
- package/typechain-types/IPActionSwapYTV3.ts +8 -5
- package/typechain-types/IPAllActionV3.ts +103 -90
- package/typechain-types/IPLimitRouter.ts +93 -98
- package/typechain-types/IPLimitRouterCallback.ts +120 -0
- package/typechain-types/IPRouterHelper.ts +6 -19
- package/typechain-types/LimitBackendHelper.ts +287 -0
- package/typechain-types/LimitRouterBase.ts +981 -0
- package/typechain-types/PendleAaveV3SY.ts +1310 -0
- package/typechain-types/PendleLimitRouter.ts +238 -127
- package/typechain-types/PendleOrderMixin.ts +292 -92
- package/typechain-types/PendleRouterHelper.ts +7 -23
- package/typechain-types/SimulateHelper.ts +42 -35
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +43 -13
- package/typechain-types/factories/ActionCallbackV3__factory.ts +169 -0
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -46
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -102
- package/typechain-types/factories/ActionMiscV3__factory.ts +35 -59
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -27
- package/typechain-types/factories/ActionSwapPTV3__factory.ts +29 -9
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +29 -64
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/AuraEthxBbAWethSY__factory.ts +1 -1
- package/typechain-types/factories/AuraSwEthBbAWethSYV2__factory.ts +1 -1
- package/typechain-types/factories/AuraWethVethSYUpg__factory.ts +1 -1
- package/typechain-types/factories/Broadcaster__factory.ts +1 -1
- package/typechain-types/factories/CamelotRewardHelper__factory.ts +1 -1
- package/typechain-types/factories/CamelotV1VolatilePreview__factory.ts +1 -1
- package/typechain-types/factories/Errors__factory.ts +17 -49
- package/typechain-types/factories/IAaveV3AToken__factory.ts +111 -0
- package/typechain-types/factories/IAaveV3Pool__factory.ts +99 -0
- package/typechain-types/factories/IPActionAddRemoveLiqV3__factory.ts +42 -12
- package/typechain-types/factories/IPActionCallbackV3__factory.ts +83 -0
- package/typechain-types/factories/IPActionMiscV3__factory.ts +18 -42
- package/typechain-types/factories/IPActionSwapPTV3__factory.ts +28 -8
- package/typechain-types/factories/IPActionSwapYTV3__factory.ts +28 -8
- package/typechain-types/factories/IPAllActionV3__factory.ts +150 -70
- package/typechain-types/factories/IPLimitRouterCallback__factory.ts +64 -0
- package/typechain-types/factories/IPLimitRouter__factory.ts +50 -146
- package/typechain-types/factories/IPRouterHelper__factory.ts +0 -25
- package/typechain-types/factories/LimitBackendHelper__factory.ts +232 -0
- package/typechain-types/factories/LimitRouterBase__factory.ts +860 -0
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/PendleAaveV3SY__factory.ts +1130 -0
- package/typechain-types/factories/PendleAnkrBNBSY__factory.ts +1 -1
- package/typechain-types/factories/PendleArbitrumStakedEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraBbAWethSwethSY__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethAnkrethSYV2__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethRocketEthSYV2__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethStafiEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethVethSY__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethWstethSYV2__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWstethAnkreth__factory.ts +1 -1
- package/typechain-types/factories/PendleBridgedLSDSY__factory.ts +1 -1
- package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +1 -1
- package/typechain-types/factories/PendleChainlinkReceiver__factory.ts +1 -1
- package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
- package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
- package/typechain-types/factories/PendleERC4626SY__factory.ts +1 -1
- package/typechain-types/factories/PendleETHXSY__factory.ts +1 -1
- package/typechain-types/factories/PendleEUSDSY__factory.ts +1 -1
- package/typechain-types/factories/PendleExternalRewardDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleFluxLendingSY__factory.ts +1 -1
- package/typechain-types/factories/PendleGDaiSY__factory.ts +1 -1
- package/typechain-types/factories/PendleGMV2TokenSY__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGlpSY__factory.ts +1 -1
- package/typechain-types/factories/PendleHlpSY__factory.ts +1 -1
- package/typechain-types/factories/PendleKyberElasticSYUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleLimitRouter__factory.ts +152 -156
- package/typechain-types/factories/PendleLinearDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
- package/typechain-types/factories/PendleLpGlpOracle__factory.ts +1 -1
- package/typechain-types/factories/PendleMantleStakedEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketFactoryV2__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketFactoryV3__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketV2__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketV3__factory.ts +1 -1
- package/typechain-types/factories/PendleMarket__factory.ts +1 -1
- package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleMlpSY__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/PendleOracleForSyProxy__factory.ts +1 -1
- package/typechain-types/factories/PendleOrderMixin__factory.ts +254 -129
- package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -1
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendlePtGlpOracle__factory.ts +1 -1
- package/typechain-types/factories/PendlePtOracle__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterHelper__factory.ts +2 -32
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterV3__factory.ts +10 -1
- package/typechain-types/factories/PendleSfrxEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleSiloWithIncentiveSY__factory.ts +1 -1
- package/typechain-types/factories/PendleStargateLPSY__factory.ts +1 -1
- package/typechain-types/factories/PendleSwapL1__factory.ts +1 -1
- package/typechain-types/factories/PendleSwapL2__factory.ts +1 -1
- package/typechain-types/factories/PendleSwap__factory.ts +1 -1
- package/typechain-types/factories/PendleThenaSY__factory.ts +1 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleWbEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/PtAndLpToAsset__factory.ts +1 -1
- package/typechain-types/factories/SAPE__factory.ts +1 -1
- package/typechain-types/factories/SimulateHelper__factory.ts +71 -18
- package/typechain-types/factories/SwETHSY__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +64 -316
- package/typechain-types/index.ts +24 -70
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +0 -4
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +0 -642
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +0 -4
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +0 -521
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json +0 -1427
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.json +0 -79
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.json +0 -708
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +0 -3503
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +0 -125
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +0 -30
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +0 -307
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +0 -409
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +0 -1397
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +0 -348
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +0 -228
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +0 -93
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +0 -1623
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +0 -753
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +0 -79
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +0 -720
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +0 -976
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +0 -4
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +0 -190
- package/build/artifacts/contracts/router/PendleRouterHelper2.sol/PendleRouterHelper2.dbg.json +0 -4
- package/build/artifacts/contracts/router/PendleRouterHelper2.sol/PendleRouterHelper2.json +0 -145
- package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +0 -4
- package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.json +0 -141
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +0 -4
- package/contracts/core/BulkSeller/BulkSeller.sol +0 -215
- package/contracts/core/BulkSeller/BulkSellerFactory.sol +0 -71
- package/contracts/core/BulkSeller/BulkSellerMathCore.sol +0 -126
- package/contracts/interfaces/IPActionMisc.sol +0 -23
- package/contracts/interfaces/IPAllAction.sol +0 -21
- package/contracts/limit/Mock.sol +0 -429
- package/contracts/offchain-helpers/BulkSellerOffchain.sol +0 -57
- package/contracts/offchain-helpers/router-static/PendleRouterStatic.sol +0 -19
- package/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol +0 -111
- package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +0 -182
- package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +0 -682
- package/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol +0 -171
- package/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol +0 -72
- package/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol +0 -55
- package/contracts/offchain-helpers/router-static/base/StorageLayout.sol +0 -21
- package/contracts/router/ActionAddRemoveLiq.sol +0 -525
- package/contracts/router/ActionMintRedeem.sol +0 -134
- package/contracts/router/ActionMisc.sol +0 -51
- package/contracts/router/ActionSwapPT.sol +0 -197
- package/contracts/router/ActionSwapYT.sol +0 -323
- package/contracts/router/PendleRouter.sol +0 -242
- package/contracts/router/PendleRouterHelper2.sol +0 -41
- package/contracts/router/base/ActionBaseCallback.sol +0 -152
- package/contracts/router/base/ActionBaseMintRedeem.sol +0 -182
- package/deployments/5000-core.json +0 -31
- package/deployments/5000-markets/WSTETH-MANTLE-MARCH2024.json +0 -10
- package/deployments/5000-offchain-helper.json +0 -4
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Unlicense
|
|
2
|
+
/*
|
|
3
|
+
* @title Solidity Bytes Arrays Utils
|
|
4
|
+
* @author Gonçalo Sá <goncalo.sa@consensys.net>
|
|
5
|
+
*
|
|
6
|
+
* @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.
|
|
7
|
+
* The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.
|
|
8
|
+
*/
|
|
9
|
+
pragma solidity >=0.8.0 <0.9.0;
|
|
10
|
+
|
|
11
|
+
library BytesLib {
|
|
12
|
+
function concat(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bytes memory) {
|
|
13
|
+
bytes memory tempBytes;
|
|
14
|
+
|
|
15
|
+
assembly {
|
|
16
|
+
// Get a location of some free memory and store it in tempBytes as
|
|
17
|
+
// Solidity does for memory variables.
|
|
18
|
+
tempBytes := mload(0x40)
|
|
19
|
+
|
|
20
|
+
// Store the length of the first bytes array at the beginning of
|
|
21
|
+
// the memory for tempBytes.
|
|
22
|
+
let length := mload(_preBytes)
|
|
23
|
+
mstore(tempBytes, length)
|
|
24
|
+
|
|
25
|
+
// Maintain a memory counter for the current write location in the
|
|
26
|
+
// temp bytes array by adding the 32 bytes for the array length to
|
|
27
|
+
// the starting location.
|
|
28
|
+
let mc := add(tempBytes, 0x20)
|
|
29
|
+
// Stop copying when the memory counter reaches the length of the
|
|
30
|
+
// first bytes array.
|
|
31
|
+
let end := add(mc, length)
|
|
32
|
+
|
|
33
|
+
for {
|
|
34
|
+
// Initialize a copy counter to the start of the _preBytes data,
|
|
35
|
+
// 32 bytes into its memory.
|
|
36
|
+
let cc := add(_preBytes, 0x20)
|
|
37
|
+
} lt(mc, end) {
|
|
38
|
+
// Increase both counters by 32 bytes each iteration.
|
|
39
|
+
mc := add(mc, 0x20)
|
|
40
|
+
cc := add(cc, 0x20)
|
|
41
|
+
} {
|
|
42
|
+
// Write the _preBytes data into the tempBytes memory 32 bytes
|
|
43
|
+
// at a time.
|
|
44
|
+
mstore(mc, mload(cc))
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Add the length of _postBytes to the current length of tempBytes
|
|
48
|
+
// and store it as the new length in the first 32 bytes of the
|
|
49
|
+
// tempBytes memory.
|
|
50
|
+
length := mload(_postBytes)
|
|
51
|
+
mstore(tempBytes, add(length, mload(tempBytes)))
|
|
52
|
+
|
|
53
|
+
// Move the memory counter back from a multiple of 0x20 to the
|
|
54
|
+
// actual end of the _preBytes data.
|
|
55
|
+
mc := end
|
|
56
|
+
// Stop copying when the memory counter reaches the new combined
|
|
57
|
+
// length of the arrays.
|
|
58
|
+
end := add(mc, length)
|
|
59
|
+
|
|
60
|
+
for {
|
|
61
|
+
let cc := add(_postBytes, 0x20)
|
|
62
|
+
} lt(mc, end) {
|
|
63
|
+
mc := add(mc, 0x20)
|
|
64
|
+
cc := add(cc, 0x20)
|
|
65
|
+
} {
|
|
66
|
+
mstore(mc, mload(cc))
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Update the free-memory pointer by padding our last write location
|
|
70
|
+
// to 32 bytes: add 31 bytes to the end of tempBytes to move to the
|
|
71
|
+
// next 32 byte block, then round down to the nearest multiple of
|
|
72
|
+
// 32. If the sum of the length of the two arrays is zero then add
|
|
73
|
+
// one before rounding down to leave a blank 32 bytes (the length block with 0).
|
|
74
|
+
mstore(
|
|
75
|
+
0x40,
|
|
76
|
+
and(
|
|
77
|
+
add(add(end, iszero(add(length, mload(_preBytes)))), 31),
|
|
78
|
+
not(31) // Round down to the nearest 32 bytes.
|
|
79
|
+
)
|
|
80
|
+
)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return tempBytes;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function concatStorage(bytes storage _preBytes, bytes memory _postBytes) internal {
|
|
87
|
+
assembly {
|
|
88
|
+
// Read the first 32 bytes of _preBytes storage, which is the length
|
|
89
|
+
// of the array. (We don't need to use the offset into the slot
|
|
90
|
+
// because arrays use the entire slot.)
|
|
91
|
+
let fslot := sload(_preBytes.slot)
|
|
92
|
+
// Arrays of 31 bytes or less have an even value in their slot,
|
|
93
|
+
// while longer arrays have an odd value. The actual length is
|
|
94
|
+
// the slot divided by two for odd values, and the lowest order
|
|
95
|
+
// byte divided by two for even values.
|
|
96
|
+
// If the slot is even, bitwise and the slot with 255 and divide by
|
|
97
|
+
// two to get the length. If the slot is odd, bitwise and the slot
|
|
98
|
+
// with -1 and divide by two.
|
|
99
|
+
let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)
|
|
100
|
+
let mlength := mload(_postBytes)
|
|
101
|
+
let newlength := add(slength, mlength)
|
|
102
|
+
// slength can contain both the length and contents of the array
|
|
103
|
+
// if length < 32 bytes so let's prepare for that
|
|
104
|
+
// v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage
|
|
105
|
+
switch add(lt(slength, 32), lt(newlength, 32))
|
|
106
|
+
case 2 {
|
|
107
|
+
// Since the new array still fits in the slot, we just need to
|
|
108
|
+
// update the contents of the slot.
|
|
109
|
+
// uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length
|
|
110
|
+
sstore(
|
|
111
|
+
_preBytes.slot,
|
|
112
|
+
// all the modifications to the slot are inside this
|
|
113
|
+
// next block
|
|
114
|
+
add(
|
|
115
|
+
// we can just add to the slot contents because the
|
|
116
|
+
// bytes we want to change are the LSBs
|
|
117
|
+
fslot,
|
|
118
|
+
add(
|
|
119
|
+
mul(
|
|
120
|
+
div(
|
|
121
|
+
// load the bytes from memory
|
|
122
|
+
mload(add(_postBytes, 0x20)),
|
|
123
|
+
// zero all bytes to the right
|
|
124
|
+
exp(0x100, sub(32, mlength))
|
|
125
|
+
),
|
|
126
|
+
// and now shift left the number of bytes to
|
|
127
|
+
// leave space for the length in the slot
|
|
128
|
+
exp(0x100, sub(32, newlength))
|
|
129
|
+
),
|
|
130
|
+
// increase length by the double of the memory
|
|
131
|
+
// bytes length
|
|
132
|
+
mul(mlength, 2)
|
|
133
|
+
)
|
|
134
|
+
)
|
|
135
|
+
)
|
|
136
|
+
}
|
|
137
|
+
case 1 {
|
|
138
|
+
// The stored value fits in the slot, but the combined value
|
|
139
|
+
// will exceed it.
|
|
140
|
+
// get the keccak hash to get the contents of the array
|
|
141
|
+
mstore(0x0, _preBytes.slot)
|
|
142
|
+
let sc := add(keccak256(0x0, 0x20), div(slength, 32))
|
|
143
|
+
|
|
144
|
+
// save new length
|
|
145
|
+
sstore(_preBytes.slot, add(mul(newlength, 2), 1))
|
|
146
|
+
|
|
147
|
+
// The contents of the _postBytes array start 32 bytes into
|
|
148
|
+
// the structure. Our first read should obtain the `submod`
|
|
149
|
+
// bytes that can fit into the unused space in the last word
|
|
150
|
+
// of the stored array. To get this, we read 32 bytes starting
|
|
151
|
+
// from `submod`, so the data we read overlaps with the array
|
|
152
|
+
// contents by `submod` bytes. Masking the lowest-order
|
|
153
|
+
// `submod` bytes allows us to add that value directly to the
|
|
154
|
+
// stored value.
|
|
155
|
+
|
|
156
|
+
let submod := sub(32, slength)
|
|
157
|
+
let mc := add(_postBytes, submod)
|
|
158
|
+
let end := add(_postBytes, mlength)
|
|
159
|
+
let mask := sub(exp(0x100, submod), 1)
|
|
160
|
+
|
|
161
|
+
sstore(
|
|
162
|
+
sc,
|
|
163
|
+
add(
|
|
164
|
+
and(fslot, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00),
|
|
165
|
+
and(mload(mc), mask)
|
|
166
|
+
)
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
for {
|
|
170
|
+
mc := add(mc, 0x20)
|
|
171
|
+
sc := add(sc, 1)
|
|
172
|
+
} lt(mc, end) {
|
|
173
|
+
sc := add(sc, 1)
|
|
174
|
+
mc := add(mc, 0x20)
|
|
175
|
+
} {
|
|
176
|
+
sstore(sc, mload(mc))
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
mask := exp(0x100, sub(mc, end))
|
|
180
|
+
|
|
181
|
+
sstore(sc, mul(div(mload(mc), mask), mask))
|
|
182
|
+
}
|
|
183
|
+
default {
|
|
184
|
+
// get the keccak hash to get the contents of the array
|
|
185
|
+
mstore(0x0, _preBytes.slot)
|
|
186
|
+
// Start copying to the last used word of the stored array.
|
|
187
|
+
let sc := add(keccak256(0x0, 0x20), div(slength, 32))
|
|
188
|
+
|
|
189
|
+
// save new length
|
|
190
|
+
sstore(_preBytes.slot, add(mul(newlength, 2), 1))
|
|
191
|
+
|
|
192
|
+
// Copy over the first `submod` bytes of the new data as in
|
|
193
|
+
// case 1 above.
|
|
194
|
+
let slengthmod := mod(slength, 32)
|
|
195
|
+
let mlengthmod := mod(mlength, 32)
|
|
196
|
+
let submod := sub(32, slengthmod)
|
|
197
|
+
let mc := add(_postBytes, submod)
|
|
198
|
+
let end := add(_postBytes, mlength)
|
|
199
|
+
let mask := sub(exp(0x100, submod), 1)
|
|
200
|
+
|
|
201
|
+
sstore(sc, add(sload(sc), and(mload(mc), mask)))
|
|
202
|
+
|
|
203
|
+
for {
|
|
204
|
+
sc := add(sc, 1)
|
|
205
|
+
mc := add(mc, 0x20)
|
|
206
|
+
} lt(mc, end) {
|
|
207
|
+
sc := add(sc, 1)
|
|
208
|
+
mc := add(mc, 0x20)
|
|
209
|
+
} {
|
|
210
|
+
sstore(sc, mload(mc))
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
mask := exp(0x100, sub(mc, end))
|
|
214
|
+
|
|
215
|
+
sstore(sc, mul(div(mload(mc), mask), mask))
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
function slice(bytes memory _bytes, uint256 _start, uint256 _length) internal pure returns (bytes memory) {
|
|
221
|
+
require(_length + 31 >= _length, "slice_overflow");
|
|
222
|
+
require(_bytes.length >= _start + _length, "slice_outOfBounds");
|
|
223
|
+
|
|
224
|
+
bytes memory tempBytes;
|
|
225
|
+
|
|
226
|
+
assembly {
|
|
227
|
+
switch iszero(_length)
|
|
228
|
+
case 0 {
|
|
229
|
+
// Get a location of some free memory and store it in tempBytes as
|
|
230
|
+
// Solidity does for memory variables.
|
|
231
|
+
tempBytes := mload(0x40)
|
|
232
|
+
|
|
233
|
+
// The first word of the slice result is potentially a partial
|
|
234
|
+
// word read from the original array. To read it, we calculate
|
|
235
|
+
// the length of that partial word and start copying that many
|
|
236
|
+
// bytes into the array. The first word we copy will start with
|
|
237
|
+
// data we don't care about, but the last `lengthmod` bytes will
|
|
238
|
+
// land at the beginning of the contents of the new array. When
|
|
239
|
+
// we're done copying, we overwrite the full first word with
|
|
240
|
+
// the actual length of the slice.
|
|
241
|
+
let lengthmod := and(_length, 31)
|
|
242
|
+
|
|
243
|
+
// The multiplication in the next line is necessary
|
|
244
|
+
// because when slicing multiples of 32 bytes (lengthmod == 0)
|
|
245
|
+
// the following copy loop was copying the origin's length
|
|
246
|
+
// and then ending prematurely not copying everything it should.
|
|
247
|
+
let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod)))
|
|
248
|
+
let end := add(mc, _length)
|
|
249
|
+
|
|
250
|
+
for {
|
|
251
|
+
// The multiplication in the next line has the same exact purpose
|
|
252
|
+
// as the one above.
|
|
253
|
+
let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start)
|
|
254
|
+
} lt(mc, end) {
|
|
255
|
+
mc := add(mc, 0x20)
|
|
256
|
+
cc := add(cc, 0x20)
|
|
257
|
+
} {
|
|
258
|
+
mstore(mc, mload(cc))
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
mstore(tempBytes, _length)
|
|
262
|
+
|
|
263
|
+
//update free-memory pointer
|
|
264
|
+
//allocating the array padded to 32 bytes like the compiler does now
|
|
265
|
+
mstore(0x40, and(add(mc, 31), not(31)))
|
|
266
|
+
}
|
|
267
|
+
//if we want a zero-length slice let's just return a zero-length array
|
|
268
|
+
default {
|
|
269
|
+
tempBytes := mload(0x40)
|
|
270
|
+
//zero out the 32 bytes slice we are about to return
|
|
271
|
+
//we need to do it because Solidity does not garbage collect
|
|
272
|
+
mstore(tempBytes, 0)
|
|
273
|
+
|
|
274
|
+
mstore(0x40, add(tempBytes, 0x20))
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
return tempBytes;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
function toAddress(bytes memory _bytes, uint256 _start) internal pure returns (address) {
|
|
282
|
+
require(_bytes.length >= _start + 20, "toAddress_outOfBounds");
|
|
283
|
+
address tempAddress;
|
|
284
|
+
|
|
285
|
+
assembly {
|
|
286
|
+
tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000)
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
return tempAddress;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
function toUint8(bytes memory _bytes, uint256 _start) internal pure returns (uint8) {
|
|
293
|
+
require(_bytes.length >= _start + 1, "toUint8_outOfBounds");
|
|
294
|
+
uint8 tempUint;
|
|
295
|
+
|
|
296
|
+
assembly {
|
|
297
|
+
tempUint := mload(add(add(_bytes, 0x1), _start))
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
return tempUint;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
function toUint16(bytes memory _bytes, uint256 _start) internal pure returns (uint16) {
|
|
304
|
+
require(_bytes.length >= _start + 2, "toUint16_outOfBounds");
|
|
305
|
+
uint16 tempUint;
|
|
306
|
+
|
|
307
|
+
assembly {
|
|
308
|
+
tempUint := mload(add(add(_bytes, 0x2), _start))
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
return tempUint;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
function toUint32(bytes memory _bytes, uint256 _start) internal pure returns (uint32) {
|
|
315
|
+
require(_bytes.length >= _start + 4, "toUint32_outOfBounds");
|
|
316
|
+
uint32 tempUint;
|
|
317
|
+
|
|
318
|
+
assembly {
|
|
319
|
+
tempUint := mload(add(add(_bytes, 0x4), _start))
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
return tempUint;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
function toUint64(bytes memory _bytes, uint256 _start) internal pure returns (uint64) {
|
|
326
|
+
require(_bytes.length >= _start + 8, "toUint64_outOfBounds");
|
|
327
|
+
uint64 tempUint;
|
|
328
|
+
|
|
329
|
+
assembly {
|
|
330
|
+
tempUint := mload(add(add(_bytes, 0x8), _start))
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
return tempUint;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
function toUint96(bytes memory _bytes, uint256 _start) internal pure returns (uint96) {
|
|
337
|
+
require(_bytes.length >= _start + 12, "toUint96_outOfBounds");
|
|
338
|
+
uint96 tempUint;
|
|
339
|
+
|
|
340
|
+
assembly {
|
|
341
|
+
tempUint := mload(add(add(_bytes, 0xc), _start))
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
return tempUint;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
function toUint128(bytes memory _bytes, uint256 _start) internal pure returns (uint128) {
|
|
348
|
+
require(_bytes.length >= _start + 16, "toUint128_outOfBounds");
|
|
349
|
+
uint128 tempUint;
|
|
350
|
+
|
|
351
|
+
assembly {
|
|
352
|
+
tempUint := mload(add(add(_bytes, 0x10), _start))
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
return tempUint;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
function toUint256(bytes memory _bytes, uint256 _start) internal pure returns (uint256) {
|
|
359
|
+
require(_bytes.length >= _start + 32, "toUint256_outOfBounds");
|
|
360
|
+
uint256 tempUint;
|
|
361
|
+
|
|
362
|
+
assembly {
|
|
363
|
+
tempUint := mload(add(add(_bytes, 0x20), _start))
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
return tempUint;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
function toBytes32(bytes memory _bytes, uint256 _start) internal pure returns (bytes32) {
|
|
370
|
+
require(_bytes.length >= _start + 32, "toBytes32_outOfBounds");
|
|
371
|
+
bytes32 tempBytes32;
|
|
372
|
+
|
|
373
|
+
assembly {
|
|
374
|
+
tempBytes32 := mload(add(add(_bytes, 0x20), _start))
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
return tempBytes32;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
function equal(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bool) {
|
|
381
|
+
bool success = true;
|
|
382
|
+
|
|
383
|
+
assembly {
|
|
384
|
+
let length := mload(_preBytes)
|
|
385
|
+
|
|
386
|
+
// if lengths don't match the arrays are not equal
|
|
387
|
+
switch eq(length, mload(_postBytes))
|
|
388
|
+
case 1 {
|
|
389
|
+
// cb is a circuit breaker in the for loop since there's
|
|
390
|
+
// no said feature for inline assembly loops
|
|
391
|
+
// cb = 1 - don't breaker
|
|
392
|
+
// cb = 0 - break
|
|
393
|
+
let cb := 1
|
|
394
|
+
|
|
395
|
+
let mc := add(_preBytes, 0x20)
|
|
396
|
+
let end := add(mc, length)
|
|
397
|
+
|
|
398
|
+
for {
|
|
399
|
+
let cc := add(_postBytes, 0x20)
|
|
400
|
+
} eq(add(lt(mc, end), cb), 2) { // while(uint256(mc < end) + cb == 2) // the next line is the loop condition:
|
|
401
|
+
mc := add(mc, 0x20)
|
|
402
|
+
cc := add(cc, 0x20)
|
|
403
|
+
} {
|
|
404
|
+
// if any of these checks fails then arrays are not equal
|
|
405
|
+
if iszero(eq(mload(mc), mload(cc))) {
|
|
406
|
+
// unsuccess:
|
|
407
|
+
success := 0
|
|
408
|
+
cb := 0
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
default {
|
|
413
|
+
// unsuccess:
|
|
414
|
+
success := 0
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
return success;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
function equal_nonAligned(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bool) {
|
|
422
|
+
bool success = true;
|
|
423
|
+
|
|
424
|
+
assembly {
|
|
425
|
+
let length := mload(_preBytes)
|
|
426
|
+
|
|
427
|
+
// if lengths don't match the arrays are not equal
|
|
428
|
+
switch eq(length, mload(_postBytes))
|
|
429
|
+
case 1 {
|
|
430
|
+
// cb is a circuit breaker in the for loop since there's
|
|
431
|
+
// no said feature for inline assembly loops
|
|
432
|
+
// cb = 1 - don't breaker
|
|
433
|
+
// cb = 0 - break
|
|
434
|
+
let cb := 1
|
|
435
|
+
|
|
436
|
+
let endMinusWord := add(_preBytes, length)
|
|
437
|
+
let mc := add(_preBytes, 0x20)
|
|
438
|
+
let cc := add(_postBytes, 0x20)
|
|
439
|
+
|
|
440
|
+
for {
|
|
441
|
+
// the next line is the loop condition:
|
|
442
|
+
// while(uint256(mc < endWord) + cb == 2)
|
|
443
|
+
} eq(add(lt(mc, endMinusWord), cb), 2) {
|
|
444
|
+
mc := add(mc, 0x20)
|
|
445
|
+
cc := add(cc, 0x20)
|
|
446
|
+
} {
|
|
447
|
+
// if any of these checks fails then arrays are not equal
|
|
448
|
+
if iszero(eq(mload(mc), mload(cc))) {
|
|
449
|
+
// unsuccess:
|
|
450
|
+
success := 0
|
|
451
|
+
cb := 0
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
// Only if still successful
|
|
456
|
+
// For <1 word tail bytes
|
|
457
|
+
if gt(success, 0) {
|
|
458
|
+
// Get the remainder of length/32
|
|
459
|
+
// length % 32 = AND(length, 32 - 1)
|
|
460
|
+
let numTailBytes := and(length, 0x1f)
|
|
461
|
+
let mcRem := mload(mc)
|
|
462
|
+
let ccRem := mload(cc)
|
|
463
|
+
for {
|
|
464
|
+
let i := 0
|
|
465
|
+
} eq(add(lt(i, numTailBytes), cb), 2) { // while(uint256(i < numTailBytes) + cb == 2) // the next line is the loop condition:
|
|
466
|
+
i := add(i, 1)
|
|
467
|
+
} {
|
|
468
|
+
if iszero(eq(byte(i, mcRem), byte(i, ccRem))) {
|
|
469
|
+
// unsuccess:
|
|
470
|
+
success := 0
|
|
471
|
+
cb := 0
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
default {
|
|
477
|
+
// unsuccess:
|
|
478
|
+
success := 0
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
return success;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
function equalStorage(bytes storage _preBytes, bytes memory _postBytes) internal view returns (bool) {
|
|
486
|
+
bool success = true;
|
|
487
|
+
|
|
488
|
+
assembly {
|
|
489
|
+
// we know _preBytes_offset is 0
|
|
490
|
+
let fslot := sload(_preBytes.slot)
|
|
491
|
+
// Decode the length of the stored array like in concatStorage().
|
|
492
|
+
let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)
|
|
493
|
+
let mlength := mload(_postBytes)
|
|
494
|
+
|
|
495
|
+
// if lengths don't match the arrays are not equal
|
|
496
|
+
switch eq(slength, mlength)
|
|
497
|
+
case 1 {
|
|
498
|
+
// slength can contain both the length and contents of the array
|
|
499
|
+
// if length < 32 bytes so let's prepare for that
|
|
500
|
+
// v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage
|
|
501
|
+
if iszero(iszero(slength)) {
|
|
502
|
+
switch lt(slength, 32)
|
|
503
|
+
case 1 {
|
|
504
|
+
// blank the last byte which is the length
|
|
505
|
+
fslot := mul(div(fslot, 0x100), 0x100)
|
|
506
|
+
|
|
507
|
+
if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) {
|
|
508
|
+
// unsuccess:
|
|
509
|
+
success := 0
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
default {
|
|
513
|
+
// cb is a circuit breaker in the for loop since there's
|
|
514
|
+
// no said feature for inline assembly loops
|
|
515
|
+
// cb = 1 - don't breaker
|
|
516
|
+
// cb = 0 - break
|
|
517
|
+
let cb := 1
|
|
518
|
+
|
|
519
|
+
// get the keccak hash to get the contents of the array
|
|
520
|
+
mstore(0x0, _preBytes.slot)
|
|
521
|
+
let sc := keccak256(0x0, 0x20)
|
|
522
|
+
|
|
523
|
+
let mc := add(_postBytes, 0x20)
|
|
524
|
+
let end := add(mc, mlength)
|
|
525
|
+
|
|
526
|
+
// the next line is the loop condition:
|
|
527
|
+
// while(uint256(mc < end) + cb == 2)
|
|
528
|
+
for {
|
|
529
|
+
|
|
530
|
+
} eq(add(lt(mc, end), cb), 2) {
|
|
531
|
+
sc := add(sc, 1)
|
|
532
|
+
mc := add(mc, 0x20)
|
|
533
|
+
} {
|
|
534
|
+
if iszero(eq(sload(sc), mload(mc))) {
|
|
535
|
+
// unsuccess:
|
|
536
|
+
success := 0
|
|
537
|
+
cb := 0
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
default {
|
|
544
|
+
// unsuccess:
|
|
545
|
+
success := 0
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
return success;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
|
|
3
|
+
pragma solidity ^0.8.17;
|
|
4
|
+
|
|
5
|
+
import "../interfaces/IPLimitRouter.sol";
|
|
6
|
+
import "../core/libraries/TokenHelper.sol";
|
|
7
|
+
import "../interfaces/IStandardizedYield.sol";
|
|
8
|
+
import "../interfaces/IWETH.sol";
|
|
9
|
+
import "../core/libraries/Errors.sol";
|
|
10
|
+
import "./BytesLib.sol";
|
|
11
|
+
|
|
12
|
+
contract LimitBackendHelper is TokenHelper {
|
|
13
|
+
address private immutable WNATIVE;
|
|
14
|
+
address private immutable original;
|
|
15
|
+
|
|
16
|
+
constructor(address _WNATIVE) {
|
|
17
|
+
WNATIVE = _WNATIVE;
|
|
18
|
+
original = address(this);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/// @notice vanilla read
|
|
22
|
+
function readSingleToken(
|
|
23
|
+
address token,
|
|
24
|
+
address[] calldata owners,
|
|
25
|
+
address spender
|
|
26
|
+
) public view returns (uint256[] memory balances, uint256[] memory allowances) {
|
|
27
|
+
balances = new uint256[](owners.length);
|
|
28
|
+
allowances = new uint256[](owners.length);
|
|
29
|
+
for (uint256 i = 0; i < owners.length; i++) {
|
|
30
|
+
balances[i] = IERC20(token).balanceOf(owners[i]);
|
|
31
|
+
allowances[i] = IERC20(token).allowance(owners[i], spender);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/// @notice auto return balances and allowances the input tokens of the orders, based on type
|
|
36
|
+
function readMultiTokens(
|
|
37
|
+
address[] calldata tokens,
|
|
38
|
+
address[] calldata owners,
|
|
39
|
+
address spender
|
|
40
|
+
) public view returns (uint256[] memory balances, uint256[] memory allowances) {
|
|
41
|
+
require(tokens.length == owners.length, "Length mismatch");
|
|
42
|
+
balances = new uint256[](owners.length);
|
|
43
|
+
allowances = new uint256[](owners.length);
|
|
44
|
+
for (uint256 i = 0; i < owners.length; i++) {
|
|
45
|
+
balances[i] = IERC20(tokens[i]).balanceOf(owners[i]);
|
|
46
|
+
allowances[i] = IERC20(tokens[i]).allowance(owners[i], spender);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/// @notice to be delegatecall from LimitRouter
|
|
51
|
+
function mintSyFromTokens(
|
|
52
|
+
address YT,
|
|
53
|
+
address[] calldata makers,
|
|
54
|
+
address[] calldata tokens,
|
|
55
|
+
uint256[] calldata amounts
|
|
56
|
+
) external returns (uint256[] memory minted) {
|
|
57
|
+
uint256 length = makers.length;
|
|
58
|
+
|
|
59
|
+
address SY = IPYieldToken(YT).SY();
|
|
60
|
+
minted = new uint256[](length);
|
|
61
|
+
|
|
62
|
+
for (uint256 i = 0; i < length; i++) {
|
|
63
|
+
(, bytes memory result) = original.delegatecall(
|
|
64
|
+
abi.encodeWithSignature(
|
|
65
|
+
"mintSyFromTokenRevert(address,address,address,uint256)",
|
|
66
|
+
makers[i],
|
|
67
|
+
SY,
|
|
68
|
+
tokens[i],
|
|
69
|
+
amounts[i]
|
|
70
|
+
)
|
|
71
|
+
);
|
|
72
|
+
minted[i] = parseMinted(result);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function parseMinted(bytes memory result) internal pure returns (uint256 minted) {
|
|
77
|
+
if (result.length < 4) return type(uint256).max;
|
|
78
|
+
|
|
79
|
+
bytes4 top = bytes4(BytesLib.slice(result, 0, 4));
|
|
80
|
+
if (top == bytes4(0x1934afc8)) {
|
|
81
|
+
// selector of SimulationResults
|
|
82
|
+
(, bytes memory beta) = abi.decode(BytesLib.slice(result, 4, result.length - 4), (bool, bytes));
|
|
83
|
+
minted = abi.decode(beta, (uint256));
|
|
84
|
+
} else {
|
|
85
|
+
minted = type(uint256).max;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function mintSyFromTokenRevert(
|
|
90
|
+
address maker,
|
|
91
|
+
address SY,
|
|
92
|
+
address token,
|
|
93
|
+
uint256 makingAmount
|
|
94
|
+
) public returns (uint256) {
|
|
95
|
+
_transferIn(token, maker, makingAmount);
|
|
96
|
+
if (token == WNATIVE && !IStandardizedYield(SY).isValidTokenIn(WNATIVE)) {
|
|
97
|
+
_wrap_unwrap_ETH(WNATIVE, NATIVE, makingAmount);
|
|
98
|
+
token = NATIVE;
|
|
99
|
+
}
|
|
100
|
+
_safeApproveInf(token, SY);
|
|
101
|
+
uint256 minted = IStandardizedYield(SY).deposit{value: token == NATIVE ? makingAmount : 0}(
|
|
102
|
+
address(this),
|
|
103
|
+
token,
|
|
104
|
+
makingAmount,
|
|
105
|
+
0
|
|
106
|
+
);
|
|
107
|
+
revert Errors.SimulationResults(true, abi.encode(minted));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
pragma solidity ^0.8.0;
|
|
3
|
+
|
|
4
|
+
import "../core/libraries/Errors.sol";
|
|
5
|
+
|
|
6
|
+
contract SimulateHelper {
|
|
7
|
+
address private immutable original;
|
|
8
|
+
|
|
9
|
+
constructor() {
|
|
10
|
+
original = address(this);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function multicallRevert(
|
|
14
|
+
uint256 gasLimit,
|
|
15
|
+
address[] calldata targets,
|
|
16
|
+
bytes[] calldata callDatas
|
|
17
|
+
) public payable virtual returns (bytes[] memory res, uint256[] memory gasUsed) {
|
|
18
|
+
require(targets.length == callDatas.length, "length mismatch");
|
|
19
|
+
|
|
20
|
+
uint256 length = callDatas.length;
|
|
21
|
+
res = new bytes[](length);
|
|
22
|
+
gasUsed = new uint256[](length);
|
|
23
|
+
for (uint256 i = 0; i < length; ) {
|
|
24
|
+
uint256 gasBefore = gasleft();
|
|
25
|
+
(, res[i]) = original.delegatecall{gas: gasLimit}(
|
|
26
|
+
abi.encodeWithSignature("simulate(address,bytes)", targets[i], callDatas[i])
|
|
27
|
+
);
|
|
28
|
+
gasUsed[i] = gasBefore - gasleft();
|
|
29
|
+
|
|
30
|
+
unchecked {
|
|
31
|
+
++i;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function simulate(address target, bytes calldata data) external payable {
|
|
37
|
+
(bool success, bytes memory result) = target.delegatecall(data);
|
|
38
|
+
revert Errors.SimulationResults(success, result);
|
|
39
|
+
}
|
|
40
|
+
}
|