@pendle/core-v2 1.2.0-mainnet → 1.2.0-testnet

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (611) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  7. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  10. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +2 -2
  11. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  12. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  14. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +3 -3
  16. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +34 -2
  18. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  20. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  21. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  22. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  23. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  24. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +3 -3
  25. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  26. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  28. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  29. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  30. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  31. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  32. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  35. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  37. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  39. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  41. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  43. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  46. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  48. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.json +141 -0
  53. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.json +141 -0
  55. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +4 -0
  57. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.json +10 -0
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +143 -2
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.dbg.json +4 -0
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.json +1218 -0
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.dbg.json +4 -0
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.json +1192 -0
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.dbg.json +4 -0
  65. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.json +10 -0
  66. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +4 -0
  67. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.json +40 -0
  68. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +4 -0
  69. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.json +322 -0
  70. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.dbg.json +4 -0
  71. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.json +1171 -0
  72. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +4 -0
  73. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.json +10 -0
  74. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +4 -0
  75. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.json +133 -0
  76. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  77. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  78. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  79. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +143 -2
  80. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  81. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +143 -2
  82. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  83. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +143 -2
  84. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.dbg.json +1 -1
  85. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
  86. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.dbg.json +1 -1
  87. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  88. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.json +141 -0
  89. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol/GLPPreviewHelper.dbg.json +4 -0
  90. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol/GLPPreviewHelper.json +50 -0
  91. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +4 -0
  92. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +1163 -0
  93. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  94. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +143 -2
  95. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  96. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +143 -2
  97. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  98. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  99. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  100. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  101. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  102. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  103. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  104. package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.dbg.json +4 -0
  105. package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.json +66 -0
  106. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +4 -0
  107. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +476 -0
  108. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +4 -0
  109. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +590 -0
  110. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +4 -0
  111. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +1017 -0
  112. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  113. package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
  114. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  115. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.json +2 -2
  116. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
  117. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
  118. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +1 -1
  119. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  120. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  121. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +87 -2
  122. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  123. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  124. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
  125. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  126. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  127. package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.dbg.json +1 -1
  128. package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +4 -0
  129. package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.json +10 -0
  130. package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +4 -0
  131. package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.json +24 -0
  132. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +4 -0
  133. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.json +133 -0
  134. package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +4 -0
  135. package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.json +328 -0
  136. package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +4 -0
  137. package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.json +467 -0
  138. package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.dbg.json +4 -0
  139. package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.json +61 -0
  140. package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.dbg.json +4 -0
  141. package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.json +30 -0
  142. package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +4 -0
  143. package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.json +398 -0
  144. package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.dbg.json +4 -0
  145. package/build/artifacts/contracts/{router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.json → interfaces/Balancer/IRateProvider.sol/IRateProvider.json} +5 -5
  146. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +4 -0
  147. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.json +278 -0
  148. package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +1 -1
  149. package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.dbg.json +1 -1
  150. package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.dbg.json +1 -1
  151. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
  152. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.json +18 -0
  153. package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +1 -1
  154. package/build/artifacts/contracts/interfaces/Curve/ITriCrvPool.sol/ITriCrvPool.dbg.json +1 -1
  155. package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.dbg.json +4 -0
  156. package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.json +308 -0
  157. package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.dbg.json +4 -0
  158. package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.json +43 -0
  159. package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.dbg.json +4 -0
  160. package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.json +201 -0
  161. package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.dbg.json +4 -0
  162. package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.json +45 -0
  163. package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +1 -1
  164. package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.dbg.json +1 -1
  165. package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +1 -1
  166. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +4 -0
  167. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.json +48 -0
  168. package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
  169. package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
  170. package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
  171. package/build/artifacts/contracts/interfaces/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.dbg.json +1 -1
  172. package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.dbg.json +4 -0
  173. package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.json +93 -0
  174. package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.dbg.json +4 -0
  175. package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.json +87 -0
  176. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
  177. package/build/artifacts/contracts/interfaces/IEulerEToken.sol/IEulerEToken.dbg.json +1 -1
  178. package/build/artifacts/contracts/interfaces/IEulerMarkets.sol/IEulerMarkets.dbg.json +1 -1
  179. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  180. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  181. package/build/artifacts/contracts/interfaces/ILooksFeeSharing.sol/ILooksFeeSharing.dbg.json +1 -1
  182. package/build/artifacts/contracts/interfaces/ILooksStaking.sol/ILooksStaking.dbg.json +1 -1
  183. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  184. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json +338 -16
  185. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  186. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +105 -224
  187. package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +1 -1
  188. package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.json +56 -12
  189. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  190. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.json +52 -8
  191. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  192. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.json +231 -8
  193. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  194. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +675 -241
  195. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  196. package/build/artifacts/contracts/interfaces/IPBulkSellerFactory.sol/IPBulkSellerFactory.dbg.json +1 -1
  197. package/build/artifacts/contracts/interfaces/IPBulkSellerSYCallback.sol/IPBulkSellerCallback.dbg.json +1 -1
  198. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  199. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.json +19 -0
  200. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  201. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  202. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
  203. package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.dbg.json +1 -1
  204. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  205. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +4 -0
  206. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.json +40 -0
  207. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  208. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  209. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  210. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  211. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.json +1 -1
  212. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  213. package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.dbg.json +1 -1
  214. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  215. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  216. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  217. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  218. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  219. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  220. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +4 -0
  221. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.json +679 -0
  222. package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
  223. package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
  224. package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
  225. package/build/artifacts/contracts/interfaces/IREDACTEDStaking.sol/IREDACTEDStaking.dbg.json +1 -1
  226. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  227. package/build/artifacts/contracts/interfaces/ISAvax.sol/ISAvax.dbg.json +1 -1
  228. package/build/artifacts/contracts/interfaces/ISJoe.sol/ISJoe.dbg.json +1 -1
  229. package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
  230. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  231. package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +1 -1
  232. package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +1 -1
  233. package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
  234. package/build/artifacts/contracts/interfaces/IWAvax.sol/IWAvax.dbg.json +1 -1
  235. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  236. package/build/artifacts/contracts/interfaces/IWXBTRFLY.sol/IWXBTRFLY.dbg.json +1 -1
  237. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  238. package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +1 -1
  239. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +4 -0
  240. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.json +143 -0
  241. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  242. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  243. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  244. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  245. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -28
  246. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +4 -0
  247. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.json +322 -0
  248. package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.dbg.json +4 -0
  249. package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.json +47 -0
  250. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  251. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +144 -60
  252. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  253. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +345 -62
  254. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  255. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +107 -260
  256. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  257. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +57 -18
  258. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  259. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +54 -65
  260. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  261. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +342 -44
  262. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  263. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +76 -67
  264. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +4 -0
  265. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.json +141 -0
  266. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  267. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.json +1 -15
  268. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  269. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  270. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  271. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  272. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  273. package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.dbg.json +4 -0
  274. package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.json +160 -0
  275. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +4 -0
  276. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.json +10 -0
  277. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +4 -0
  278. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.json +56 -0
  279. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapAggregator.sol/PendleSwapAggregator.dbg.json +4 -0
  280. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapAggregator.sol/PendleSwapAggregator.json +72 -0
  281. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol/KyberAggregationRouterHelper.dbg.json +4 -0
  282. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol/KyberAggregationRouterHelper.json +10 -0
  283. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.dbg.json +4 -0
  284. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.json +10 -0
  285. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +4 -0
  286. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.json +65 -0
  287. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +4 -0
  288. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.json +388 -0
  289. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IHashflow.sol/IHashflow.dbg.json +4 -0
  290. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IHashflow.sol/IHashflow.json +101 -0
  291. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +4 -0
  292. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +215 -0
  293. package/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol +0 -1
  294. package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +9 -9
  295. package/contracts/core/RewardManager/RewardManager.sol +1 -1
  296. package/contracts/core/StandardizedYield/SYBase.sol +23 -5
  297. package/contracts/core/StandardizedYield/StEthHelper.sol +71 -0
  298. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol +134 -0
  299. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol +154 -0
  300. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol +68 -0
  301. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol +322 -0
  302. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol +390 -0
  303. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol +329 -0
  304. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol +30 -0
  305. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol +189 -0
  306. package/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol +142 -0
  307. package/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol +224 -0
  308. package/contracts/core/StandardizedYield/implementations/GLP/README.md +61 -0
  309. package/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol +138 -0
  310. package/contracts/core/YieldContracts/PendleYieldContractFactory.sol +10 -0
  311. package/contracts/core/YieldContractsV2/InterestManagerYTV2.sol +114 -0
  312. package/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol +63 -0
  313. package/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol +200 -0
  314. package/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol +485 -0
  315. package/contracts/core/libraries/ArrayLib.sol +27 -12
  316. package/contracts/core/libraries/Errors.sol +8 -2
  317. package/contracts/core/libraries/TokenHelper.sol +10 -0
  318. package/contracts/interfaces/Balancer/IAsset.sol +4 -0
  319. package/contracts/interfaces/Balancer/IBalancerFees.sol +6 -0
  320. package/contracts/interfaces/Balancer/IBalancerStablePreview.sol +22 -0
  321. package/contracts/interfaces/Balancer/IBasePool.sol +30 -0
  322. package/contracts/interfaces/Balancer/IComposableStable.sol +39 -0
  323. package/contracts/interfaces/Balancer/IGauge.sol +10 -0
  324. package/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol +6 -0
  325. package/contracts/interfaces/Balancer/IMetaStablePool.sol +31 -0
  326. package/contracts/interfaces/Balancer/IRateProvider.sol +6 -0
  327. package/contracts/interfaces/Balancer/IVault.sol +78 -0
  328. package/contracts/interfaces/ConvexCurve/IRewards.sol +5 -0
  329. package/contracts/interfaces/GMX/IGMXVault.sol +47 -0
  330. package/contracts/interfaces/GMX/IGlpManager.sol +12 -0
  331. package/contracts/interfaces/GMX/IRewardRouterV2.sol +43 -0
  332. package/contracts/interfaces/GMX/IVaultPriceFeed.sol +11 -0
  333. package/contracts/interfaces/IAddressProvider.sol +7 -0
  334. package/contracts/interfaces/IDiamondCut.sol +36 -0
  335. package/contracts/interfaces/IDiamondLoupe.sol +38 -0
  336. package/contracts/interfaces/IERC4626.sol +2 -0
  337. package/contracts/interfaces/IPActionAddRemoveLiq.sol +36 -1
  338. package/contracts/interfaces/IPActionInfoStatic.sol +43 -0
  339. package/contracts/interfaces/IPActionMarketAuxStatic.sol +30 -0
  340. package/contracts/interfaces/IPActionMarketCoreStatic.sol +317 -0
  341. package/contracts/interfaces/IPActionMintRedeem.sol +2 -55
  342. package/contracts/interfaces/IPActionMintRedeemStatic.sol +60 -0
  343. package/contracts/interfaces/IPActionMisc.sol +18 -4
  344. package/contracts/interfaces/IPActionStorageStatic.sol +25 -0
  345. package/contracts/interfaces/IPActionSwapPT.sol +1 -1
  346. package/contracts/interfaces/IPActionSwapYT.sol +28 -4
  347. package/contracts/interfaces/IPActionVePendleStatic.sol +9 -0
  348. package/contracts/interfaces/IPAllAction.sol +5 -3
  349. package/contracts/interfaces/IPInterestManagerYTV2.sol +13 -0
  350. package/contracts/interfaces/IPMiniDiamond.sol +12 -0
  351. package/contracts/interfaces/IPMsgReceiverApp.sol +1 -1
  352. package/contracts/interfaces/IPRouterStatic.sol +19 -0
  353. package/contracts/interfaces/IPVotingController.sol +6 -0
  354. package/contracts/interfaces/IPYieldTokenV2.sol +66 -0
  355. package/contracts/interfaces/IStandardizedYield.sol +1 -1
  356. package/contracts/offchain-helpers/AddressProvider.sol +16 -0
  357. package/contracts/offchain-helpers/Broadcaster.sol +48 -0
  358. package/contracts/offchain-helpers/PendleMulticall.sol +26 -0
  359. package/contracts/offchain-helpers/{MarketMathStatic.sol → legacy/MarketMathStatic.sol} +2 -2
  360. package/contracts/offchain-helpers/{RouterStatic.sol → legacy/RouterStatic.sol} +7 -7
  361. package/contracts/offchain-helpers/router-static/PendleRouterStatic.sol +19 -0
  362. package/contracts/offchain-helpers/router-static/StorageLayout.sol +21 -0
  363. package/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol +125 -0
  364. package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +166 -0
  365. package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +769 -0
  366. package/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol +166 -0
  367. package/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol +75 -0
  368. package/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol +55 -0
  369. package/contracts/router/ActionAddRemoveLiq.sol +116 -6
  370. package/contracts/router/ActionMintRedeem.sol +12 -202
  371. package/contracts/router/ActionMisc.sol +45 -19
  372. package/contracts/router/ActionSwapPT.sol +0 -5
  373. package/contracts/router/ActionSwapYT.sol +103 -13
  374. package/contracts/router/PendleRouter.sol +211 -72
  375. package/contracts/router/{ActionCallback.sol → base/ActionBaseCallback.sol} +47 -47
  376. package/contracts/router/base/ActionBaseMintRedeem.sol +105 -60
  377. package/contracts/router/base/CallbackHelper.sol +137 -44
  378. package/contracts/router/base/MarketApproxLib.sol +227 -350
  379. package/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol +45 -0
  380. package/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol +69 -0
  381. package/contracts/router/swap-aggregator/IPSwapAggregator.sol +25 -0
  382. package/contracts/router/swap-aggregator/PendleSwapAggregator.sol +46 -0
  383. package/contracts/router/swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol +214 -0
  384. package/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol +147 -0
  385. package/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol +17 -0
  386. package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperEthereum1.sol +191 -0
  387. package/contracts/router/swap-aggregator/kyberswap/interfaces/IHashflow.sol +30 -0
  388. package/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol +42 -0
  389. package/deployments/43113-core.json +30 -0
  390. package/deployments/43113-markets/APE-30-MARCH.json +10 -0
  391. package/deployments/43113-markets/USDC-FEB-2ND-2024.json +10 -0
  392. package/deployments/43113-markets/USDC-FEB-2ND.json +10 -0
  393. package/deployments/43113-markets/USDC-FEB-4TH.json +10 -0
  394. package/deployments/43113-markets/WETH-FEB-2ND.json +11 -0
  395. package/deployments/43113-markets/WETH-FEB-4TH.json +11 -0
  396. package/deployments/43113-offchain-helper.json +4 -0
  397. package/deployments/43113-testenv.json +22 -0
  398. package/deployments/80001-core.json +29 -0
  399. package/deployments/80001-markets/GLP-DEC-8TH.json +10 -0
  400. package/deployments/80001-markets/USDC-DEC-8TH.json +10 -0
  401. package/deployments/80001-markets/USDC-FEB-4TH.json +10 -0
  402. package/deployments/80001-markets/WETH-FEB-4TH.json +11 -0
  403. package/deployments/80001-offchain-helper.json +4 -0
  404. package/deployments/80001-testenv.json +22 -0
  405. package/package.json +9 -10
  406. package/typechain-types/ActionAddRemoveLiq.ts +203 -23
  407. package/typechain-types/ActionBaseCallback.ts +115 -0
  408. package/typechain-types/ActionMintRedeem.ts +29 -230
  409. package/typechain-types/ActionMisc.ts +77 -27
  410. package/typechain-types/ActionSwapPT.ts +26 -31
  411. package/typechain-types/ActionSwapYT.ts +202 -21
  412. package/typechain-types/AddressProvider.ts +280 -0
  413. package/typechain-types/ComposableStablePreview.ts +217 -0
  414. package/typechain-types/GLPPreviewHelper.ts +121 -0
  415. package/typechain-types/GMXPreviewHelper.ts +121 -0
  416. package/typechain-types/I1inchAggregationRouterV5.ts +257 -0
  417. package/typechain-types/IAddressProvider.ts +123 -0
  418. package/typechain-types/IAggregationExecutor.ts +182 -0
  419. package/typechain-types/IBalancerFees.ts +89 -0
  420. package/typechain-types/IBalancerStablePreview.ts +217 -0
  421. package/typechain-types/IBasePool.ts +482 -0
  422. package/typechain-types/IComposableStable.ts +730 -0
  423. package/typechain-types/IDiamondCut.ts +152 -0
  424. package/typechain-types/IDiamondLoupe.ts +190 -0
  425. package/typechain-types/IExecutorHelperEthereum1.ts +643 -0
  426. package/typechain-types/IGMXVault.ts +494 -0
  427. package/typechain-types/IGauge.ts +160 -0
  428. package/typechain-types/IGlpManager.ts +115 -0
  429. package/typechain-types/IHashflow.ts +159 -0
  430. package/typechain-types/IKyberSwapAggregationRouterHelper.ts +109 -0
  431. package/typechain-types/ILiquidityGaugeFactory.ts +99 -0
  432. package/typechain-types/IMetaAggregationRouter.ts +213 -0
  433. package/typechain-types/IMetaAggregationRouterV2.ts +221 -0
  434. package/typechain-types/IMetaStablePool.ts +619 -0
  435. package/typechain-types/IPActionAddRemoveLiq.ts +213 -14
  436. package/typechain-types/IPActionMintRedeem.ts +29 -211
  437. package/typechain-types/IPActionMisc.ts +77 -27
  438. package/typechain-types/IPActionSwapPT.ts +26 -12
  439. package/typechain-types/IPActionSwapYT.ts +168 -12
  440. package/typechain-types/IPAllAction.ts +445 -227
  441. package/typechain-types/IPFeeDistributor.ts +18 -0
  442. package/typechain-types/IPInterestManagerYTV2.ts +117 -0
  443. package/typechain-types/IPMsgReceiverApp.ts +5 -5
  444. package/typechain-types/IPSwapAggregator.ts +126 -0
  445. package/typechain-types/IPYieldTokenV2.ts +901 -0
  446. package/typechain-types/IRateProvider.ts +81 -0
  447. package/typechain-types/IRewardRouterV2.ts +346 -0
  448. package/typechain-types/IRewards.ts +35 -5
  449. package/typechain-types/ISwapAggregator.ts +124 -0
  450. package/typechain-types/IVault.ts +410 -0
  451. package/typechain-types/IVaultPriceFeed.ts +114 -0
  452. package/typechain-types/InterestManagerYTV2.ts +157 -0
  453. package/typechain-types/MetaStableMath.ts +113 -0
  454. package/typechain-types/MetaStablePreview.ts +501 -0
  455. package/typechain-types/Multicall2.ts +437 -0
  456. package/typechain-types/PendleAura3EthSY.ts +1600 -0
  457. package/typechain-types/PendleAuraBalancerStableLPSY.ts +1523 -0
  458. package/typechain-types/PendleAuraCbethWstethSY.ts +1587 -0
  459. package/typechain-types/PendleAuraWethRethSY.ts +1549 -0
  460. package/typechain-types/PendleAuraWethWstethSY.ts +1523 -0
  461. package/typechain-types/PendleConvexLPSY.ts +204 -0
  462. package/typechain-types/PendleCurveFraxUsdcSY.ts +204 -0
  463. package/typechain-types/PendleCurveUsdd3CrvSY.ts +204 -0
  464. package/typechain-types/PendleFeeDistributor.ts +37 -0
  465. package/typechain-types/PendleGaugeControllerSidechainUpg.ts +4 -4
  466. package/typechain-types/PendleGlpSY.ts +1463 -0
  467. package/typechain-types/PendleLooksStakingSY.ts +204 -0
  468. package/typechain-types/PendleMsgReceiverAppUpg.ts +5 -5
  469. package/typechain-types/PendleMulticall.ts +110 -0
  470. package/typechain-types/PendlePrincipalTokenV2.ts +614 -0
  471. package/typechain-types/PendleQiTokenSY.ts +204 -0
  472. package/typechain-types/PendleRouter.ts +109 -131
  473. package/typechain-types/PendleSwapAggregator.ts +126 -0
  474. package/typechain-types/PendleWstEthSY.ts +204 -0
  475. package/typechain-types/PendleYieldContractFactoryV2.ts +801 -0
  476. package/typechain-types/PendleYieldTokenV2.ts +1298 -0
  477. package/typechain-types/RouterStatic.ts +92 -0
  478. package/typechain-types/SAPE.ts +204 -0
  479. package/typechain-types/SYBase.ts +204 -0
  480. package/typechain-types/SYBaseWithRewards.ts +204 -0
  481. package/typechain-types/StEthHelper.ts +107 -0
  482. package/typechain-types/StablePreviewBase.ts +217 -0
  483. package/typechain-types/SwapAggregator.ts +406 -0
  484. package/typechain-types/VotingEscrowPendleSidechain.ts +4 -5
  485. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +346 -68
  486. package/typechain-types/factories/ActionBaseCallback__factory.ts +156 -0
  487. package/typechain-types/factories/ActionCallback__factory.ts +1 -1
  488. package/typechain-types/factories/ActionMintRedeem__factory.ts +108 -266
  489. package/typechain-types/factories/ActionMisc__factory.ts +56 -17
  490. package/typechain-types/factories/ActionSwapPTYT__factory.ts +1 -1
  491. package/typechain-types/factories/ActionSwapPT__factory.ts +55 -71
  492. package/typechain-types/factories/ActionSwapYT__factory.ts +356 -48
  493. package/typechain-types/factories/AddressProvider__factory.ts +196 -0
  494. package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
  495. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  496. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  497. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  498. package/typechain-types/factories/ComposableStablePreview__factory.ts +190 -0
  499. package/typechain-types/factories/Errors__factory.ts +86 -1
  500. package/typechain-types/factories/GLPPreviewHelper__factory.ts +65 -0
  501. package/typechain-types/factories/GMXPreviewHelper__factory.ts +65 -0
  502. package/typechain-types/factories/I1inchAggregationRouterV5__factory.ts +179 -0
  503. package/typechain-types/factories/IAddressProvider__factory.ts +63 -0
  504. package/typechain-types/factories/IAggregationExecutor__factory.ts +84 -0
  505. package/typechain-types/factories/IBalancerFees__factory.ts +36 -0
  506. package/typechain-types/factories/IBalancerStablePreview__factory.ts +152 -0
  507. package/typechain-types/factories/IBasePool__factory.ts +340 -0
  508. package/typechain-types/factories/IComposableStable__factory.ts +482 -0
  509. package/typechain-types/factories/IDiamondCut__factory.ts +105 -0
  510. package/typechain-types/factories/IDiamondLoupe__factory.ts +99 -0
  511. package/typechain-types/factories/IExecutorHelperEthereum1__factory.ts +407 -0
  512. package/typechain-types/factories/IGMXVault__factory.ts +320 -0
  513. package/typechain-types/factories/IGauge__factory.ts +70 -0
  514. package/typechain-types/factories/IGlpManager__factory.ts +55 -0
  515. package/typechain-types/factories/IHashflow__factory.ts +113 -0
  516. package/typechain-types/factories/IKyberSwapAggregationRouterHelper__factory.ts +56 -0
  517. package/typechain-types/factories/ILiquidityGaugeFactory__factory.ts +49 -0
  518. package/typechain-types/factories/IMetaAggregationRouterV2__factory.ts +234 -0
  519. package/typechain-types/factories/IMetaAggregationRouter__factory.ts +202 -0
  520. package/typechain-types/factories/IMetaStablePool__factory.ts +413 -0
  521. package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +338 -16
  522. package/typechain-types/factories/IPActionMintRedeem__factory.ts +105 -224
  523. package/typechain-types/factories/IPActionMisc__factory.ts +55 -11
  524. package/typechain-types/factories/IPActionSwapPT__factory.ts +52 -8
  525. package/typechain-types/factories/IPActionSwapYT__factory.ts +231 -8
  526. package/typechain-types/factories/IPAllAction__factory.ts +675 -241
  527. package/typechain-types/factories/IPFeeDistributor__factory.ts +19 -0
  528. package/typechain-types/factories/IPInterestManagerYTV2__factory.ts +59 -0
  529. package/typechain-types/factories/IPMsgReceiverApp__factory.ts +1 -1
  530. package/typechain-types/factories/IPSwapAggregator__factory.ts +71 -0
  531. package/typechain-types/factories/IPYieldTokenV2__factory.ts +694 -0
  532. package/typechain-types/factories/IRateProvider__factory.ts +36 -0
  533. package/typechain-types/factories/IRewardRouterV2__factory.ts +216 -0
  534. package/typechain-types/factories/IRewards__factory.ts +18 -0
  535. package/typechain-types/factories/ISwapAggregator__factory.ts +66 -0
  536. package/typechain-types/factories/IVaultPriceFeed__factory.ts +60 -0
  537. package/typechain-types/factories/IVault__factory.ts +287 -0
  538. package/typechain-types/factories/InterestManagerYTV2__factory.ts +81 -0
  539. package/typechain-types/factories/MarketMathStatic__factory.ts +1 -27
  540. package/typechain-types/factories/MetaStableMath__factory.ts +93 -0
  541. package/typechain-types/factories/MetaStablePreview__factory.ts +375 -0
  542. package/typechain-types/factories/Multicall2__factory.ts +372 -0
  543. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  544. package/typechain-types/factories/PendleAura3EthSY__factory.ts +1326 -0
  545. package/typechain-types/factories/PendleAuraBalancerStableLPSY__factory.ts +1190 -0
  546. package/typechain-types/factories/PendleAuraCbethWstethSY__factory.ts +1317 -0
  547. package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +1291 -0
  548. package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +1265 -0
  549. package/typechain-types/factories/PendleConvexLPSY__factory.ts +141 -0
  550. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +142 -1
  551. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +142 -1
  552. package/typechain-types/factories/PendleFeeDistributor__factory.ts +33 -1
  553. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  554. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +2 -2
  555. package/typechain-types/factories/PendleGlpSY__factory.ts +1249 -0
  556. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +142 -1
  557. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  558. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  559. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  560. package/typechain-types/factories/PendleMsgReceiverAppUpg__factory.ts +1 -1
  561. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  562. package/typechain-types/factories/PendleMulticall__factory.ts +100 -0
  563. package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +564 -0
  564. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  565. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  566. package/typechain-types/factories/PendleQiTokenSY__factory.ts +142 -1
  567. package/typechain-types/factories/PendleRouter__factory.ts +75 -74
  568. package/typechain-types/factories/PendleSwapAggregator__factory.ts +129 -0
  569. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  570. package/typechain-types/factories/PendleWstEthSY__factory.ts +142 -1
  571. package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +674 -0
  572. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  573. package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1109 -0
  574. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  575. package/typechain-types/factories/RouterStatic__factory.ts +69 -1
  576. package/typechain-types/factories/SAPE__factory.ts +142 -1
  577. package/typechain-types/factories/SYBaseWithRewards__factory.ts +141 -0
  578. package/typechain-types/factories/SYBase__factory.ts +141 -0
  579. package/typechain-types/factories/StEthHelper__factory.ts +62 -0
  580. package/typechain-types/factories/StablePreviewBase__factory.ts +148 -0
  581. package/typechain-types/factories/SwapAggregator__factory.ts +309 -0
  582. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  583. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +2 -2
  584. package/typechain-types/hardhat.d.ts +369 -54
  585. package/typechain-types/index.ts +88 -18
  586. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +0 -4
  587. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.json +0 -190
  588. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +0 -4
  589. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.json +0 -165
  590. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +0 -4
  591. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +0 -343
  592. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +0 -4
  593. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +0 -224
  594. package/build/artifacts/contracts/router/kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.dbg.json +0 -4
  595. package/build/artifacts/contracts/router/kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.json +0 -35
  596. package/build/artifacts/contracts/router/kyberswap/IMultihopRouterEthereum.sol/IMultihopRouterEthereum.dbg.json +0 -4
  597. package/build/artifacts/contracts/router/kyberswap/IMultihopRouterEthereum.sol/IMultihopRouterEthereum.json +0 -136
  598. package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +0 -4
  599. package/contracts/interfaces/IBoringOwnableUpgradeable.sol +0 -10
  600. package/contracts/interfaces/IPActionSwapPTYT.sol +0 -31
  601. package/contracts/router/ActionSwapPTYT.sol +0 -108
  602. package/contracts/router/kyberswap/AggregationRouterHelper.sol +0 -331
  603. package/contracts/router/kyberswap/IAggregatorRouterHelper.sol +0 -10
  604. package/contracts/router/kyberswap/IMultihopRouterEthereum.sol +0 -141
  605. package/contracts/router/kyberswap/KyberSwapHelper.sol +0 -79
  606. package/deployments/1-core.json +0 -30
  607. package/deployments/1-markets/APE-JUNE-29.json +0 -8
  608. package/deployments/1-markets/FRAXUSDC-CURVELP-MARCH30.json +0 -11
  609. package/deployments/1-markets/LOOKS-STAKING-MARCH30.json +0 -10
  610. package/deployments/1-markets/STETH-JUNE29.json +0 -10
  611. package/deployments/1-markets/STETH-MARCH30.json +0 -10
@@ -126,104 +126,6 @@
126
126
  "name": "MintSyFromToken",
127
127
  "type": "event"
128
128
  },
129
- {
130
- "anonymous": false,
131
- "inputs": [
132
- {
133
- "indexed": true,
134
- "internalType": "address",
135
- "name": "user",
136
- "type": "address"
137
- },
138
- {
139
- "indexed": false,
140
- "internalType": "address[]",
141
- "name": "sys",
142
- "type": "address[]"
143
- },
144
- {
145
- "indexed": false,
146
- "internalType": "address[]",
147
- "name": "yts",
148
- "type": "address[]"
149
- },
150
- {
151
- "indexed": false,
152
- "internalType": "address[]",
153
- "name": "markets",
154
- "type": "address[]"
155
- },
156
- {
157
- "indexed": false,
158
- "internalType": "uint256[][]",
159
- "name": "syRewards",
160
- "type": "uint256[][]"
161
- },
162
- {
163
- "indexed": false,
164
- "internalType": "uint256[]",
165
- "name": "ytInterests",
166
- "type": "uint256[]"
167
- },
168
- {
169
- "indexed": false,
170
- "internalType": "uint256[][]",
171
- "name": "ytRewards",
172
- "type": "uint256[][]"
173
- },
174
- {
175
- "indexed": false,
176
- "internalType": "uint256[][]",
177
- "name": "marketRewards",
178
- "type": "uint256[][]"
179
- }
180
- ],
181
- "name": "RedeemDueInterestAndRewards",
182
- "type": "event"
183
- },
184
- {
185
- "anonymous": false,
186
- "inputs": [
187
- {
188
- "indexed": true,
189
- "internalType": "address",
190
- "name": "user",
191
- "type": "address"
192
- },
193
- {
194
- "indexed": false,
195
- "internalType": "address[]",
196
- "name": "sys",
197
- "type": "address[]"
198
- },
199
- {
200
- "indexed": false,
201
- "internalType": "address[]",
202
- "name": "yts",
203
- "type": "address[]"
204
- },
205
- {
206
- "indexed": false,
207
- "internalType": "address[]",
208
- "name": "markets",
209
- "type": "address[]"
210
- },
211
- {
212
- "indexed": true,
213
- "internalType": "address",
214
- "name": "tokenOut",
215
- "type": "address"
216
- },
217
- {
218
- "indexed": false,
219
- "internalType": "uint256",
220
- "name": "netTokenOut",
221
- "type": "uint256"
222
- }
223
- ],
224
- "name": "RedeemDueInterestAndRewardsThenSwapAll",
225
- "type": "event"
226
- },
227
129
  {
228
130
  "anonymous": false,
229
131
  "inputs": [
@@ -422,13 +324,35 @@
422
324
  },
423
325
  {
424
326
  "internalType": "address",
425
- "name": "kyberRouter",
327
+ "name": "pendleSwap",
426
328
  "type": "address"
427
329
  },
428
330
  {
429
- "internalType": "bytes",
430
- "name": "kybercall",
431
- "type": "bytes"
331
+ "components": [
332
+ {
333
+ "internalType": "enum SwapType",
334
+ "name": "swapType",
335
+ "type": "uint8"
336
+ },
337
+ {
338
+ "internalType": "address",
339
+ "name": "extRouter",
340
+ "type": "address"
341
+ },
342
+ {
343
+ "internalType": "bytes",
344
+ "name": "extCalldata",
345
+ "type": "bytes"
346
+ },
347
+ {
348
+ "internalType": "bool",
349
+ "name": "needScale",
350
+ "type": "bool"
351
+ }
352
+ ],
353
+ "internalType": "struct SwapData",
354
+ "name": "swapData",
355
+ "type": "tuple"
432
356
  }
433
357
  ],
434
358
  "internalType": "struct TokenInput",
@@ -488,13 +412,35 @@
488
412
  },
489
413
  {
490
414
  "internalType": "address",
491
- "name": "kyberRouter",
415
+ "name": "pendleSwap",
492
416
  "type": "address"
493
417
  },
494
418
  {
495
- "internalType": "bytes",
496
- "name": "kybercall",
497
- "type": "bytes"
419
+ "components": [
420
+ {
421
+ "internalType": "enum SwapType",
422
+ "name": "swapType",
423
+ "type": "uint8"
424
+ },
425
+ {
426
+ "internalType": "address",
427
+ "name": "extRouter",
428
+ "type": "address"
429
+ },
430
+ {
431
+ "internalType": "bytes",
432
+ "name": "extCalldata",
433
+ "type": "bytes"
434
+ },
435
+ {
436
+ "internalType": "bool",
437
+ "name": "needScale",
438
+ "type": "bool"
439
+ }
440
+ ],
441
+ "internalType": "struct SwapData",
442
+ "name": "swapData",
443
+ "type": "tuple"
498
444
  }
499
445
  ],
500
446
  "internalType": "struct TokenInput",
@@ -537,116 +483,7 @@
537
483
  }
538
484
  ],
539
485
  "name": "redeemDueInterestAndRewards",
540
- "outputs": [
541
- {
542
- "internalType": "uint256[][]",
543
- "name": "syRewards",
544
- "type": "uint256[][]"
545
- },
546
- {
547
- "internalType": "uint256[]",
548
- "name": "ytInterests",
549
- "type": "uint256[]"
550
- },
551
- {
552
- "internalType": "uint256[][]",
553
- "name": "ytRewards",
554
- "type": "uint256[][]"
555
- },
556
- {
557
- "internalType": "uint256[][]",
558
- "name": "marketRewards",
559
- "type": "uint256[][]"
560
- }
561
- ],
562
- "stateMutability": "nonpayable",
563
- "type": "function"
564
- },
565
- {
566
- "inputs": [
567
- {
568
- "internalType": "address[]",
569
- "name": "sys",
570
- "type": "address[]"
571
- },
572
- {
573
- "components": [
574
- {
575
- "internalType": "address[]",
576
- "name": "yts",
577
- "type": "address[]"
578
- },
579
- {
580
- "internalType": "address[]",
581
- "name": "syAddrs",
582
- "type": "address[]"
583
- },
584
- {
585
- "internalType": "address[]",
586
- "name": "tokenRedeemSys",
587
- "type": "address[]"
588
- },
589
- {
590
- "internalType": "address[]",
591
- "name": "bulks",
592
- "type": "address[]"
593
- }
594
- ],
595
- "internalType": "struct IPActionMintRedeem.RouterYtRedeemStruct",
596
- "name": "dataYT",
597
- "type": "tuple"
598
- },
599
- {
600
- "internalType": "address[]",
601
- "name": "markets",
602
- "type": "address[]"
603
- },
604
- {
605
- "components": [
606
- {
607
- "internalType": "address[]",
608
- "name": "tokens",
609
- "type": "address[]"
610
- },
611
- {
612
- "internalType": "bytes[]",
613
- "name": "kybercalls",
614
- "type": "bytes[]"
615
- },
616
- {
617
- "internalType": "address",
618
- "name": "kyberRouter",
619
- "type": "address"
620
- },
621
- {
622
- "internalType": "address",
623
- "name": "outputToken",
624
- "type": "address"
625
- },
626
- {
627
- "internalType": "uint256",
628
- "name": "minTokenOut",
629
- "type": "uint256"
630
- }
631
- ],
632
- "internalType": "struct IPActionMintRedeem.RouterSwapAllStruct",
633
- "name": "dataSwap",
634
- "type": "tuple"
635
- }
636
- ],
637
- "name": "redeemDueInterestAndRewardsThenSwapAll",
638
- "outputs": [
639
- {
640
- "internalType": "uint256",
641
- "name": "netTokenOut",
642
- "type": "uint256"
643
- },
644
- {
645
- "internalType": "uint256[]",
646
- "name": "amountsSwapped",
647
- "type": "uint256[]"
648
- }
649
- ],
486
+ "outputs": [],
650
487
  "stateMutability": "nonpayable",
651
488
  "type": "function"
652
489
  },
@@ -725,13 +562,35 @@
725
562
  },
726
563
  {
727
564
  "internalType": "address",
728
- "name": "kyberRouter",
565
+ "name": "pendleSwap",
729
566
  "type": "address"
730
567
  },
731
568
  {
732
- "internalType": "bytes",
733
- "name": "kybercall",
734
- "type": "bytes"
569
+ "components": [
570
+ {
571
+ "internalType": "enum SwapType",
572
+ "name": "swapType",
573
+ "type": "uint8"
574
+ },
575
+ {
576
+ "internalType": "address",
577
+ "name": "extRouter",
578
+ "type": "address"
579
+ },
580
+ {
581
+ "internalType": "bytes",
582
+ "name": "extCalldata",
583
+ "type": "bytes"
584
+ },
585
+ {
586
+ "internalType": "bool",
587
+ "name": "needScale",
588
+ "type": "bool"
589
+ }
590
+ ],
591
+ "internalType": "struct SwapData",
592
+ "name": "swapData",
593
+ "type": "tuple"
735
594
  }
736
595
  ],
737
596
  "internalType": "struct TokenOutput",
@@ -791,13 +650,35 @@
791
650
  },
792
651
  {
793
652
  "internalType": "address",
794
- "name": "kyberRouter",
653
+ "name": "pendleSwap",
795
654
  "type": "address"
796
655
  },
797
656
  {
798
- "internalType": "bytes",
799
- "name": "kybercall",
800
- "type": "bytes"
657
+ "components": [
658
+ {
659
+ "internalType": "enum SwapType",
660
+ "name": "swapType",
661
+ "type": "uint8"
662
+ },
663
+ {
664
+ "internalType": "address",
665
+ "name": "extRouter",
666
+ "type": "address"
667
+ },
668
+ {
669
+ "internalType": "bytes",
670
+ "name": "extCalldata",
671
+ "type": "bytes"
672
+ },
673
+ {
674
+ "internalType": "bool",
675
+ "name": "needScale",
676
+ "type": "bool"
677
+ }
678
+ ],
679
+ "internalType": "struct SwapData",
680
+ "name": "swapData",
681
+ "type": "tuple"
801
682
  }
802
683
  ],
803
684
  "internalType": "struct TokenOutput",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/d69e41af484ea90333c32629bab9bd77.json"
3
+ "buildInfo": "../../../build-info/7d8f5b159ddc70fc35b156bede7c6dfd.json"
4
4
  }
@@ -6,25 +6,69 @@
6
6
  {
7
7
  "inputs": [
8
8
  {
9
- "internalType": "address",
10
- "name": "market",
11
- "type": "address"
12
- },
9
+ "components": [
10
+ {
11
+ "internalType": "address[]",
12
+ "name": "tokens",
13
+ "type": "address[]"
14
+ },
15
+ {
16
+ "internalType": "address",
17
+ "name": "spender",
18
+ "type": "address"
19
+ }
20
+ ],
21
+ "internalType": "struct IPActionMisc.MultiApproval[]",
22
+ "name": "",
23
+ "type": "tuple[]"
24
+ }
25
+ ],
26
+ "name": "approveInf",
27
+ "outputs": [],
28
+ "stateMutability": "nonpayable",
29
+ "type": "function"
30
+ },
31
+ {
32
+ "inputs": [
13
33
  {
14
- "internalType": "uint32",
15
- "name": "secondsAgo",
16
- "type": "uint32"
34
+ "components": [
35
+ {
36
+ "internalType": "bool",
37
+ "name": "allowFailure",
38
+ "type": "bool"
39
+ },
40
+ {
41
+ "internalType": "bytes",
42
+ "name": "callData",
43
+ "type": "bytes"
44
+ }
45
+ ],
46
+ "internalType": "struct IPActionMisc.Call3[]",
47
+ "name": "calls",
48
+ "type": "tuple[]"
17
49
  }
18
50
  ],
19
- "name": "consult",
51
+ "name": "batchExec",
20
52
  "outputs": [
21
53
  {
22
- "internalType": "uint96",
23
- "name": "lnImpliedRateMean",
24
- "type": "uint96"
54
+ "components": [
55
+ {
56
+ "internalType": "bool",
57
+ "name": "success",
58
+ "type": "bool"
59
+ },
60
+ {
61
+ "internalType": "bytes",
62
+ "name": "returnData",
63
+ "type": "bytes"
64
+ }
65
+ ],
66
+ "internalType": "struct IPActionMisc.Result[]",
67
+ "name": "returnData",
68
+ "type": "tuple[]"
25
69
  }
26
70
  ],
27
- "stateMutability": "view",
71
+ "stateMutability": "nonpayable",
28
72
  "type": "function"
29
73
  }
30
74
  ],
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/92ac36e978c82783b79c3f3381de5170.json"
3
+ "buildInfo": "../../../build-info/7d8f5b159ddc70fc35b156bede7c6dfd.json"
4
4
  }
@@ -163,13 +163,35 @@
163
163
  },
164
164
  {
165
165
  "internalType": "address",
166
- "name": "kyberRouter",
166
+ "name": "pendleSwap",
167
167
  "type": "address"
168
168
  },
169
169
  {
170
- "internalType": "bytes",
171
- "name": "kybercall",
172
- "type": "bytes"
170
+ "components": [
171
+ {
172
+ "internalType": "enum SwapType",
173
+ "name": "swapType",
174
+ "type": "uint8"
175
+ },
176
+ {
177
+ "internalType": "address",
178
+ "name": "extRouter",
179
+ "type": "address"
180
+ },
181
+ {
182
+ "internalType": "bytes",
183
+ "name": "extCalldata",
184
+ "type": "bytes"
185
+ },
186
+ {
187
+ "internalType": "bool",
188
+ "name": "needScale",
189
+ "type": "bool"
190
+ }
191
+ ],
192
+ "internalType": "struct SwapData",
193
+ "name": "swapData",
194
+ "type": "tuple"
173
195
  }
174
196
  ],
175
197
  "internalType": "struct TokenOutput",
@@ -337,13 +359,35 @@
337
359
  },
338
360
  {
339
361
  "internalType": "address",
340
- "name": "kyberRouter",
362
+ "name": "pendleSwap",
341
363
  "type": "address"
342
364
  },
343
365
  {
344
- "internalType": "bytes",
345
- "name": "kybercall",
346
- "type": "bytes"
366
+ "components": [
367
+ {
368
+ "internalType": "enum SwapType",
369
+ "name": "swapType",
370
+ "type": "uint8"
371
+ },
372
+ {
373
+ "internalType": "address",
374
+ "name": "extRouter",
375
+ "type": "address"
376
+ },
377
+ {
378
+ "internalType": "bytes",
379
+ "name": "extCalldata",
380
+ "type": "bytes"
381
+ },
382
+ {
383
+ "internalType": "bool",
384
+ "name": "needScale",
385
+ "type": "bool"
386
+ }
387
+ ],
388
+ "internalType": "struct SwapData",
389
+ "name": "swapData",
390
+ "type": "tuple"
347
391
  }
348
392
  ],
349
393
  "internalType": "struct TokenInput",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/92ac36e978c82783b79c3f3381de5170.json"
3
+ "buildInfo": "../../../build-info/7d8f5b159ddc70fc35b156bede7c6dfd.json"
4
4
  }