@pendle/core-v2 1.2.0-mainnet → 1.2.1-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 (692) 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/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +39 -0
  22. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  23. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  24. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +3 -3
  26. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  28. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  29. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  30. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  31. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  32. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  33. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  36. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  38. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  40. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  42. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  44. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  47. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  49. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.json +141 -0
  54. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.json +141 -0
  56. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
  57. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +4 -0
  58. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.json +10 -0
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +143 -2
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.dbg.json +4 -0
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.json +1218 -0
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.dbg.json +4 -0
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.json +1192 -0
  65. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.dbg.json +4 -0
  66. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.json +10 -0
  67. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +4 -0
  68. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.json +40 -0
  69. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +4 -0
  70. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.json +322 -0
  71. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.dbg.json +4 -0
  72. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.json +1171 -0
  73. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +4 -0
  74. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.json +10 -0
  75. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +4 -0
  76. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.json +133 -0
  77. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  78. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  79. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  80. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +143 -2
  81. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  82. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +143 -2
  83. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  84. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +143 -2
  85. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.dbg.json +1 -1
  86. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
  87. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.dbg.json +1 -1
  88. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  89. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.json +141 -0
  90. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol/GLPPreviewHelper.dbg.json +4 -0
  91. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol/GLPPreviewHelper.json +50 -0
  92. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +4 -0
  93. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +1163 -0
  94. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +4 -0
  95. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +974 -0
  96. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  97. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +143 -2
  98. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  99. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +143 -2
  100. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  101. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  102. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  103. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  104. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  105. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  106. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  107. package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.dbg.json +4 -0
  108. package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.json +66 -0
  109. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +4 -0
  110. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +476 -0
  111. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +4 -0
  112. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +590 -0
  113. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +4 -0
  114. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +1017 -0
  115. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  116. package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
  117. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  118. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.json +2 -2
  119. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
  120. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
  121. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +1 -1
  122. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  123. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  124. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +87 -2
  125. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  126. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  127. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
  128. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  129. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  130. package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.dbg.json +1 -1
  131. package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +4 -0
  132. package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.json +10 -0
  133. package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +4 -0
  134. package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.json +24 -0
  135. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +4 -0
  136. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.json +133 -0
  137. package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +4 -0
  138. package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.json +328 -0
  139. package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +4 -0
  140. package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.json +467 -0
  141. package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.dbg.json +4 -0
  142. package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.json +61 -0
  143. package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.dbg.json +4 -0
  144. package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.json +30 -0
  145. package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +4 -0
  146. package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.json +398 -0
  147. package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.dbg.json +4 -0
  148. package/build/artifacts/contracts/{router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.json → interfaces/Balancer/IRateProvider.sol/IRateProvider.json} +5 -5
  149. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +4 -0
  150. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.json +278 -0
  151. package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +1 -1
  152. package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.dbg.json +1 -1
  153. package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.dbg.json +1 -1
  154. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
  155. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.json +18 -0
  156. package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +1 -1
  157. package/build/artifacts/contracts/interfaces/Curve/ITriCrvPool.sol/ITriCrvPool.dbg.json +1 -1
  158. package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.dbg.json +4 -0
  159. package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.json +308 -0
  160. package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.dbg.json +4 -0
  161. package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.json +69 -0
  162. package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.dbg.json +4 -0
  163. package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.json +201 -0
  164. package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.dbg.json +4 -0
  165. package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.json +45 -0
  166. package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +1 -1
  167. package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.dbg.json +1 -1
  168. package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +1 -1
  169. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +4 -0
  170. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.json +48 -0
  171. package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
  172. package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
  173. package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
  174. package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.dbg.json +4 -0
  175. package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.json +93 -0
  176. package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.dbg.json +4 -0
  177. package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.json +87 -0
  178. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
  179. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.json +19 -0
  180. package/build/artifacts/contracts/interfaces/IEulerEToken.sol/IEulerEToken.dbg.json +1 -1
  181. package/build/artifacts/contracts/interfaces/IEulerMarkets.sol/IEulerMarkets.dbg.json +1 -1
  182. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  183. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  184. package/build/artifacts/contracts/interfaces/ILooksFeeSharing.sol/ILooksFeeSharing.dbg.json +1 -1
  185. package/build/artifacts/contracts/interfaces/ILooksStaking.sol/ILooksStaking.dbg.json +1 -1
  186. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  187. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json +338 -16
  188. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +4 -0
  189. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.json +307 -0
  190. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +4 -0
  191. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.json +269 -0
  192. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +4 -0
  193. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.json +1270 -0
  194. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  195. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +105 -224
  196. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +4 -0
  197. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.json +273 -0
  198. package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +1 -1
  199. package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.json +56 -12
  200. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +4 -0
  201. package/build/artifacts/contracts/interfaces/{IPActionSwapPTYT.sol/IPActionSwapPTYT.json → IPActionStorageStatic.sol/IPActionStorageStatic.json} +70 -76
  202. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  203. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.json +52 -8
  204. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  205. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.json +231 -8
  206. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +4 -0
  207. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.json +40 -0
  208. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  209. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +675 -241
  210. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  211. package/build/artifacts/contracts/interfaces/IPBulkSellerFactory.sol/IPBulkSellerFactory.dbg.json +1 -1
  212. package/build/artifacts/contracts/interfaces/IPBulkSellerSYCallback.sol/IPBulkSellerCallback.dbg.json +1 -1
  213. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  214. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.json +19 -0
  215. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  216. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  217. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
  218. package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.dbg.json +1 -1
  219. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  220. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +4 -0
  221. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.json +40 -0
  222. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  223. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  224. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  225. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +4 -0
  226. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.json +55 -0
  227. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  228. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.json +1 -1
  229. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  230. package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.dbg.json +1 -1
  231. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  232. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +4 -0
  233. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +2332 -0
  234. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  235. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  236. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +39 -0
  237. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  238. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  239. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  240. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +4 -0
  241. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.json +679 -0
  242. package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
  243. package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
  244. package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
  245. package/build/artifacts/contracts/interfaces/IREDACTEDStaking.sol/IREDACTEDStaking.dbg.json +1 -1
  246. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  247. package/build/artifacts/contracts/interfaces/ISAvax.sol/ISAvax.dbg.json +1 -1
  248. package/build/artifacts/contracts/interfaces/ISJoe.sol/ISJoe.dbg.json +1 -1
  249. package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
  250. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  251. package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +1 -1
  252. package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +1 -1
  253. package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
  254. package/build/artifacts/contracts/interfaces/IWAvax.sol/IWAvax.dbg.json +1 -1
  255. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  256. package/build/artifacts/contracts/interfaces/IWXBTRFLY.sol/IWXBTRFLY.dbg.json +1 -1
  257. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  258. package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +1 -1
  259. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +4 -0
  260. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.json +143 -0
  261. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  262. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +4 -0
  263. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +256 -0
  264. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  265. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  266. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +4 -0
  267. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.json +322 -0
  268. package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.dbg.json +4 -0
  269. package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.json +47 -0
  270. package/build/artifacts/contracts/offchain-helpers/legacy/MarketMathStatic.sol/MarketMathStatic.dbg.json +4 -0
  271. package/build/artifacts/contracts/offchain-helpers/legacy/MarketMathStatic.sol/MarketMathStatic.json +259 -0
  272. package/build/artifacts/contracts/offchain-helpers/legacy/RouterStatic.sol/RouterStatic.dbg.json +4 -0
  273. package/build/artifacts/contracts/offchain-helpers/{RouterStatic.sol → legacy/RouterStatic.sol}/RouterStatic.json +5 -5
  274. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +4 -0
  275. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +30 -0
  276. package/build/artifacts/contracts/offchain-helpers/router-static/StorageLayout.sol/StorageLayout.dbg.json +4 -0
  277. package/build/artifacts/contracts/offchain-helpers/router-static/StorageLayout.sol/StorageLayout.json +10 -0
  278. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +4 -0
  279. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +307 -0
  280. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +4 -0
  281. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +333 -0
  282. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +4 -0
  283. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +1407 -0
  284. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +4 -0
  285. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +310 -0
  286. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +4 -0
  287. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +228 -0
  288. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +4 -0
  289. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +93 -0
  290. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  291. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +345 -62
  292. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  293. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +107 -260
  294. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  295. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +57 -18
  296. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  297. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +54 -65
  298. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  299. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +342 -44
  300. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  301. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +76 -67
  302. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +4 -0
  303. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.json +141 -0
  304. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  305. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.json +1 -15
  306. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  307. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  308. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  309. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  310. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  311. package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.dbg.json +4 -0
  312. package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.json +160 -0
  313. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +4 -0
  314. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.json +10 -0
  315. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +4 -0
  316. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.json +56 -0
  317. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapAggregator.sol/PendleSwapAggregator.dbg.json +4 -0
  318. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapAggregator.sol/PendleSwapAggregator.json +72 -0
  319. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol/KyberAggregationRouterHelper.dbg.json +4 -0
  320. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol/KyberAggregationRouterHelper.json +10 -0
  321. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.dbg.json +4 -0
  322. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.json +10 -0
  323. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +4 -0
  324. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.json +65 -0
  325. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +4 -0
  326. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.json +388 -0
  327. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IHashflow.sol/IHashflow.dbg.json +4 -0
  328. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IHashflow.sol/IHashflow.json +101 -0
  329. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +4 -0
  330. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +215 -0
  331. package/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol +0 -1
  332. package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +9 -9
  333. package/contracts/core/RewardManager/RewardManager.sol +1 -1
  334. package/contracts/core/StandardizedYield/SYBase.sol +23 -5
  335. package/contracts/core/StandardizedYield/StEthHelper.sol +71 -0
  336. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol +134 -0
  337. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol +154 -0
  338. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol +68 -0
  339. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol +322 -0
  340. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol +390 -0
  341. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol +329 -0
  342. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol +30 -0
  343. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol +189 -0
  344. package/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol +142 -0
  345. package/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol +224 -0
  346. package/contracts/core/StandardizedYield/implementations/GLP/README.md +61 -0
  347. package/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol +138 -0
  348. package/contracts/core/YieldContracts/PendleYieldContractFactory.sol +10 -0
  349. package/contracts/core/YieldContractsV2/InterestManagerYTV2.sol +114 -0
  350. package/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol +63 -0
  351. package/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol +200 -0
  352. package/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol +485 -0
  353. package/contracts/core/libraries/ArrayLib.sol +27 -12
  354. package/contracts/core/libraries/Errors.sol +8 -2
  355. package/contracts/core/libraries/TokenHelper.sol +10 -0
  356. package/contracts/interfaces/Balancer/IAsset.sol +4 -0
  357. package/contracts/interfaces/Balancer/IBalancerFees.sol +6 -0
  358. package/contracts/interfaces/Balancer/IBalancerStablePreview.sol +22 -0
  359. package/contracts/interfaces/Balancer/IBasePool.sol +30 -0
  360. package/contracts/interfaces/Balancer/IComposableStable.sol +39 -0
  361. package/contracts/interfaces/Balancer/IGauge.sol +10 -0
  362. package/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol +6 -0
  363. package/contracts/interfaces/Balancer/IMetaStablePool.sol +31 -0
  364. package/contracts/interfaces/Balancer/IRateProvider.sol +6 -0
  365. package/contracts/interfaces/Balancer/IVault.sol +78 -0
  366. package/contracts/interfaces/ConvexCurve/IRewards.sol +5 -0
  367. package/contracts/interfaces/GMX/IGMXVault.sol +47 -0
  368. package/contracts/interfaces/GMX/IGlpManager.sol +12 -0
  369. package/contracts/interfaces/GMX/IRewardRouterV2.sol +43 -0
  370. package/contracts/interfaces/GMX/IVaultPriceFeed.sol +11 -0
  371. package/contracts/interfaces/IAddressProvider.sol +7 -0
  372. package/contracts/interfaces/IDiamondCut.sol +36 -0
  373. package/contracts/interfaces/IDiamondLoupe.sol +38 -0
  374. package/contracts/interfaces/IERC4626.sol +2 -0
  375. package/contracts/interfaces/IPActionAddRemoveLiq.sol +36 -1
  376. package/contracts/interfaces/IPActionInfoStatic.sol +43 -0
  377. package/contracts/interfaces/IPActionMarketAuxStatic.sol +30 -0
  378. package/contracts/interfaces/IPActionMarketCoreStatic.sol +317 -0
  379. package/contracts/interfaces/IPActionMintRedeem.sol +2 -55
  380. package/contracts/interfaces/IPActionMintRedeemStatic.sol +60 -0
  381. package/contracts/interfaces/IPActionMisc.sol +18 -4
  382. package/contracts/interfaces/IPActionStorageStatic.sol +25 -0
  383. package/contracts/interfaces/IPActionSwapPT.sol +1 -1
  384. package/contracts/interfaces/IPActionSwapYT.sol +28 -4
  385. package/contracts/interfaces/IPActionVePendleStatic.sol +9 -0
  386. package/contracts/interfaces/IPAllAction.sol +5 -3
  387. package/contracts/interfaces/IPInterestManagerYTV2.sol +13 -0
  388. package/contracts/interfaces/IPMiniDiamond.sol +12 -0
  389. package/contracts/interfaces/IPMsgReceiverApp.sol +1 -1
  390. package/contracts/interfaces/IPRouterStatic.sol +19 -0
  391. package/contracts/interfaces/IPVotingController.sol +6 -0
  392. package/contracts/interfaces/IPYieldTokenV2.sol +66 -0
  393. package/contracts/interfaces/IStandardizedYield.sol +1 -1
  394. package/contracts/offchain-helpers/AddressProvider.sol +16 -0
  395. package/contracts/offchain-helpers/Broadcaster.sol +48 -0
  396. package/contracts/offchain-helpers/PendleMulticall.sol +26 -0
  397. package/contracts/offchain-helpers/{MarketMathStatic.sol → legacy/MarketMathStatic.sol} +2 -2
  398. package/contracts/offchain-helpers/{RouterStatic.sol → legacy/RouterStatic.sol} +7 -7
  399. package/contracts/offchain-helpers/router-static/PendleRouterStatic.sol +19 -0
  400. package/contracts/offchain-helpers/router-static/StorageLayout.sol +21 -0
  401. package/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol +125 -0
  402. package/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol +166 -0
  403. package/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol +769 -0
  404. package/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol +166 -0
  405. package/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol +75 -0
  406. package/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol +55 -0
  407. package/contracts/router/ActionAddRemoveLiq.sol +116 -6
  408. package/contracts/router/ActionMintRedeem.sol +12 -202
  409. package/contracts/router/ActionMisc.sol +45 -19
  410. package/contracts/router/ActionSwapPT.sol +0 -5
  411. package/contracts/router/ActionSwapYT.sol +103 -13
  412. package/contracts/router/PendleRouter.sol +211 -72
  413. package/contracts/router/{ActionCallback.sol → base/ActionBaseCallback.sol} +47 -47
  414. package/contracts/router/base/ActionBaseMintRedeem.sol +105 -60
  415. package/contracts/router/base/CallbackHelper.sol +137 -44
  416. package/contracts/router/base/MarketApproxLib.sol +227 -350
  417. package/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol +45 -0
  418. package/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol +69 -0
  419. package/contracts/router/swap-aggregator/IPSwapAggregator.sol +25 -0
  420. package/contracts/router/swap-aggregator/PendleSwapAggregator.sol +46 -0
  421. package/contracts/router/swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol +214 -0
  422. package/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol +147 -0
  423. package/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol +17 -0
  424. package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperEthereum1.sol +191 -0
  425. package/contracts/router/swap-aggregator/kyberswap/interfaces/IHashflow.sol +30 -0
  426. package/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol +42 -0
  427. package/deployments/43113-core.json +30 -0
  428. package/deployments/43113-markets/APE-30-MARCH.json +10 -0
  429. package/deployments/43113-markets/USDC-FEB-2ND-2024.json +10 -0
  430. package/deployments/43113-markets/USDC-FEB-2ND.json +10 -0
  431. package/deployments/43113-markets/USDC-FEB-4TH.json +10 -0
  432. package/deployments/43113-markets/WETH-FEB-2ND.json +11 -0
  433. package/deployments/43113-markets/WETH-FEB-4TH.json +11 -0
  434. package/deployments/43113-offchain-helper.json +4 -0
  435. package/deployments/43113-testenv.json +22 -0
  436. package/deployments/80001-core.json +29 -0
  437. package/deployments/80001-markets/GLP-DEC-8TH.json +10 -0
  438. package/deployments/80001-markets/USDC-DEC-8TH.json +10 -0
  439. package/deployments/80001-markets/USDC-FEB-4TH.json +10 -0
  440. package/deployments/80001-markets/WETH-FEB-4TH.json +11 -0
  441. package/deployments/80001-offchain-helper.json +4 -0
  442. package/deployments/80001-testenv.json +22 -0
  443. package/package.json +9 -10
  444. package/typechain-types/ActionAddRemoveLiq.ts +203 -23
  445. package/typechain-types/ActionBaseCallback.ts +115 -0
  446. package/typechain-types/ActionInfoStatic.ts +310 -0
  447. package/typechain-types/ActionMarketAuxStatic.ts +350 -0
  448. package/typechain-types/ActionMarketCoreStatic.ts +1489 -0
  449. package/typechain-types/ActionMintRedeem.ts +29 -230
  450. package/typechain-types/ActionMintRedeemStatic.ts +461 -0
  451. package/typechain-types/ActionMisc.ts +77 -27
  452. package/typechain-types/ActionStorageStatic.ts +403 -0
  453. package/typechain-types/ActionSwapPT.ts +26 -31
  454. package/typechain-types/ActionSwapYT.ts +202 -21
  455. package/typechain-types/ActionVePendleStatic.ts +113 -0
  456. package/typechain-types/AddressProvider.ts +280 -0
  457. package/typechain-types/Broadcaster.ts +454 -0
  458. package/typechain-types/ComposableStablePreview.ts +217 -0
  459. package/typechain-types/GLPPreviewHelper.ts +121 -0
  460. package/typechain-types/GMXPreviewHelper.ts +121 -0
  461. package/typechain-types/I1inchAggregationRouterV5.ts +257 -0
  462. package/typechain-types/IAddressProvider.ts +123 -0
  463. package/typechain-types/IAggregationExecutor.ts +182 -0
  464. package/typechain-types/IBalancerFees.ts +89 -0
  465. package/typechain-types/IBalancerStablePreview.ts +217 -0
  466. package/typechain-types/IBasePool.ts +482 -0
  467. package/typechain-types/IComposableStable.ts +730 -0
  468. package/typechain-types/IDiamondCut.ts +152 -0
  469. package/typechain-types/IDiamondLoupe.ts +190 -0
  470. package/typechain-types/IERC4626.ts +34 -0
  471. package/typechain-types/IExecutorHelperEthereum1.ts +643 -0
  472. package/typechain-types/IGMXVault.ts +494 -0
  473. package/typechain-types/IGauge.ts +160 -0
  474. package/typechain-types/IGlpManager.ts +165 -0
  475. package/typechain-types/IHashflow.ts +159 -0
  476. package/typechain-types/IKyberSwapAggregationRouterHelper.ts +109 -0
  477. package/typechain-types/ILiquidityGaugeFactory.ts +99 -0
  478. package/typechain-types/IMetaAggregationRouter.ts +213 -0
  479. package/typechain-types/IMetaAggregationRouterV2.ts +221 -0
  480. package/typechain-types/IMetaStablePool.ts +619 -0
  481. package/typechain-types/IPActionAddRemoveLiq.ts +213 -14
  482. package/typechain-types/IPActionInfoStatic.ts +310 -0
  483. package/typechain-types/IPActionMarketAuxStatic.ts +350 -0
  484. package/typechain-types/IPActionMarketCoreStatic.ts +1489 -0
  485. package/typechain-types/IPActionMintRedeem.ts +29 -211
  486. package/typechain-types/IPActionMintRedeemStatic.ts +461 -0
  487. package/typechain-types/IPActionMisc.ts +77 -27
  488. package/typechain-types/IPActionStorageStatic.ts +326 -0
  489. package/typechain-types/IPActionSwapPT.ts +26 -12
  490. package/typechain-types/IPActionSwapYT.ts +168 -12
  491. package/typechain-types/IPActionVePendleStatic.ts +113 -0
  492. package/typechain-types/IPAllAction.ts +445 -227
  493. package/typechain-types/IPFeeDistributor.ts +18 -0
  494. package/typechain-types/IPInterestManagerYTV2.ts +117 -0
  495. package/typechain-types/IPMiniDiamond.ts +147 -0
  496. package/typechain-types/IPMsgReceiverApp.ts +5 -5
  497. package/typechain-types/IPRouterStatic.ts +2394 -509
  498. package/typechain-types/IPSwapAggregator.ts +126 -0
  499. package/typechain-types/IPVotingController.ts +96 -0
  500. package/typechain-types/IPYieldTokenV2.ts +901 -0
  501. package/typechain-types/IRateProvider.ts +81 -0
  502. package/typechain-types/IRewardRouterV2.ts +346 -0
  503. package/typechain-types/IRewards.ts +35 -5
  504. package/typechain-types/ISwapAggregator.ts +124 -0
  505. package/typechain-types/IVault.ts +410 -0
  506. package/typechain-types/IVaultPriceFeed.ts +114 -0
  507. package/typechain-types/InterestManagerYTV2.ts +157 -0
  508. package/typechain-types/MetaStableMath.ts +113 -0
  509. package/typechain-types/MetaStablePreview.ts +501 -0
  510. package/typechain-types/Multicall2.ts +437 -0
  511. package/typechain-types/PendleAura3EthSY.ts +1600 -0
  512. package/typechain-types/PendleAuraBalancerStableLPSY.ts +1523 -0
  513. package/typechain-types/PendleAuraCbethWstethSY.ts +1587 -0
  514. package/typechain-types/PendleAuraWethRethSY.ts +1549 -0
  515. package/typechain-types/PendleAuraWethWstethSY.ts +1523 -0
  516. package/typechain-types/PendleConvexLPSY.ts +204 -0
  517. package/typechain-types/PendleCurveFraxUsdcSY.ts +204 -0
  518. package/typechain-types/PendleCurveUsdd3CrvSY.ts +204 -0
  519. package/typechain-types/PendleFeeDistributor.ts +37 -0
  520. package/typechain-types/PendleGDaiSY.ts +1229 -0
  521. package/typechain-types/PendleGaugeControllerSidechainUpg.ts +4 -4
  522. package/typechain-types/PendleGlpSY.ts +1463 -0
  523. package/typechain-types/PendleLooksStakingSY.ts +204 -0
  524. package/typechain-types/PendleMsgReceiverAppUpg.ts +5 -5
  525. package/typechain-types/PendleMulticall.ts +110 -0
  526. package/typechain-types/PendlePrincipalTokenV2.ts +614 -0
  527. package/typechain-types/PendleQiTokenSY.ts +204 -0
  528. package/typechain-types/PendleRouter.ts +109 -131
  529. package/typechain-types/PendleRouterStatic.ts +57 -0
  530. package/typechain-types/PendleSwapAggregator.ts +126 -0
  531. package/typechain-types/PendleWstEthSY.ts +204 -0
  532. package/typechain-types/PendleYieldContractFactoryV2.ts +801 -0
  533. package/typechain-types/PendleYieldTokenV2.ts +1298 -0
  534. package/typechain-types/SAPE.ts +204 -0
  535. package/typechain-types/SYBase.ts +204 -0
  536. package/typechain-types/SYBaseWithRewards.ts +204 -0
  537. package/typechain-types/StEthHelper.ts +107 -0
  538. package/typechain-types/StablePreviewBase.ts +217 -0
  539. package/typechain-types/SwapAggregator.ts +406 -0
  540. package/typechain-types/VotingControllerStorageUpg.ts +96 -0
  541. package/typechain-types/VotingEscrowPendleSidechain.ts +4 -5
  542. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +346 -68
  543. package/typechain-types/factories/ActionBaseCallback__factory.ts +156 -0
  544. package/typechain-types/factories/ActionCallback__factory.ts +1 -1
  545. package/typechain-types/factories/ActionInfoStatic__factory.ts +360 -0
  546. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +390 -0
  547. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1464 -0
  548. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +367 -0
  549. package/typechain-types/factories/ActionMintRedeem__factory.ts +108 -266
  550. package/typechain-types/factories/ActionMisc__factory.ts +56 -17
  551. package/typechain-types/factories/ActionStorageStatic__factory.ts +281 -0
  552. package/typechain-types/factories/ActionSwapPTYT__factory.ts +1 -1
  553. package/typechain-types/factories/ActionSwapPT__factory.ts +55 -71
  554. package/typechain-types/factories/ActionSwapYT__factory.ts +356 -48
  555. package/typechain-types/factories/ActionVePendleStatic__factory.ts +155 -0
  556. package/typechain-types/factories/AddressProvider__factory.ts +196 -0
  557. package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
  558. package/typechain-types/factories/Broadcaster__factory.ts +311 -0
  559. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  560. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  561. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  562. package/typechain-types/factories/ComposableStablePreview__factory.ts +190 -0
  563. package/typechain-types/factories/Errors__factory.ts +86 -1
  564. package/typechain-types/factories/GLPPreviewHelper__factory.ts +65 -0
  565. package/typechain-types/factories/GMXPreviewHelper__factory.ts +65 -0
  566. package/typechain-types/factories/I1inchAggregationRouterV5__factory.ts +179 -0
  567. package/typechain-types/factories/IAddressProvider__factory.ts +63 -0
  568. package/typechain-types/factories/IAggregationExecutor__factory.ts +84 -0
  569. package/typechain-types/factories/IBalancerFees__factory.ts +36 -0
  570. package/typechain-types/factories/IBalancerStablePreview__factory.ts +152 -0
  571. package/typechain-types/factories/IBasePool__factory.ts +340 -0
  572. package/typechain-types/factories/IComposableStable__factory.ts +482 -0
  573. package/typechain-types/factories/IDiamondCut__factory.ts +105 -0
  574. package/typechain-types/factories/IDiamondLoupe__factory.ts +99 -0
  575. package/typechain-types/factories/IERC4626__factory.ts +19 -0
  576. package/typechain-types/factories/IExecutorHelperEthereum1__factory.ts +407 -0
  577. package/typechain-types/factories/IGMXVault__factory.ts +320 -0
  578. package/typechain-types/factories/IGauge__factory.ts +70 -0
  579. package/typechain-types/factories/IGlpManager__factory.ts +81 -0
  580. package/typechain-types/factories/IHashflow__factory.ts +113 -0
  581. package/typechain-types/factories/IKyberSwapAggregationRouterHelper__factory.ts +56 -0
  582. package/typechain-types/factories/ILiquidityGaugeFactory__factory.ts +49 -0
  583. package/typechain-types/factories/IMetaAggregationRouterV2__factory.ts +234 -0
  584. package/typechain-types/factories/IMetaAggregationRouter__factory.ts +202 -0
  585. package/typechain-types/factories/IMetaStablePool__factory.ts +413 -0
  586. package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +338 -16
  587. package/typechain-types/factories/IPActionInfoStatic__factory.ts +322 -0
  588. package/typechain-types/factories/IPActionMarketAuxStatic__factory.ts +288 -0
  589. package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +1289 -0
  590. package/typechain-types/factories/IPActionMintRedeemStatic__factory.ts +292 -0
  591. package/typechain-types/factories/IPActionMintRedeem__factory.ts +105 -224
  592. package/typechain-types/factories/IPActionMisc__factory.ts +55 -11
  593. package/typechain-types/factories/IPActionStorageStatic__factory.ts +203 -0
  594. package/typechain-types/factories/IPActionSwapPT__factory.ts +52 -8
  595. package/typechain-types/factories/IPActionSwapYT__factory.ts +231 -8
  596. package/typechain-types/factories/IPActionVePendleStatic__factory.ts +59 -0
  597. package/typechain-types/factories/IPAllAction__factory.ts +675 -241
  598. package/typechain-types/factories/IPFeeDistributor__factory.ts +19 -0
  599. package/typechain-types/factories/IPInterestManagerYTV2__factory.ts +59 -0
  600. package/typechain-types/factories/IPMiniDiamond__factory.ts +67 -0
  601. package/typechain-types/factories/IPMsgReceiverApp__factory.ts +1 -1
  602. package/typechain-types/factories/IPRouterStatic__factory.ts +1952 -494
  603. package/typechain-types/factories/IPSwapAggregator__factory.ts +71 -0
  604. package/typechain-types/factories/IPVotingController__factory.ts +39 -0
  605. package/typechain-types/factories/IPYieldTokenV2__factory.ts +694 -0
  606. package/typechain-types/factories/IRateProvider__factory.ts +36 -0
  607. package/typechain-types/factories/IRewardRouterV2__factory.ts +216 -0
  608. package/typechain-types/factories/IRewards__factory.ts +18 -0
  609. package/typechain-types/factories/ISwapAggregator__factory.ts +66 -0
  610. package/typechain-types/factories/IVaultPriceFeed__factory.ts +60 -0
  611. package/typechain-types/factories/IVault__factory.ts +287 -0
  612. package/typechain-types/factories/InterestManagerYTV2__factory.ts +81 -0
  613. package/typechain-types/factories/MarketMathStatic__factory.ts +1 -27
  614. package/typechain-types/factories/MetaStableMath__factory.ts +93 -0
  615. package/typechain-types/factories/MetaStablePreview__factory.ts +375 -0
  616. package/typechain-types/factories/Multicall2__factory.ts +372 -0
  617. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  618. package/typechain-types/factories/PendleAura3EthSY__factory.ts +1326 -0
  619. package/typechain-types/factories/PendleAuraBalancerStableLPSY__factory.ts +1190 -0
  620. package/typechain-types/factories/PendleAuraCbethWstethSY__factory.ts +1317 -0
  621. package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +1291 -0
  622. package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +1265 -0
  623. package/typechain-types/factories/PendleConvexLPSY__factory.ts +141 -0
  624. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +142 -1
  625. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +142 -1
  626. package/typechain-types/factories/PendleFeeDistributor__factory.ts +33 -1
  627. package/typechain-types/factories/PendleGDaiSY__factory.ts +1035 -0
  628. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  629. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +2 -2
  630. package/typechain-types/factories/PendleGlpSY__factory.ts +1249 -0
  631. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +142 -1
  632. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  633. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  634. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  635. package/typechain-types/factories/PendleMsgReceiverAppUpg__factory.ts +1 -1
  636. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  637. package/typechain-types/factories/PendleMulticall__factory.ts +100 -0
  638. package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +564 -0
  639. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  640. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  641. package/typechain-types/factories/PendleQiTokenSY__factory.ts +142 -1
  642. package/typechain-types/factories/PendleRouterStatic__factory.ts +88 -0
  643. package/typechain-types/factories/PendleRouter__factory.ts +75 -74
  644. package/typechain-types/factories/PendleSwapAggregator__factory.ts +129 -0
  645. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  646. package/typechain-types/factories/PendleWstEthSY__factory.ts +142 -1
  647. package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +674 -0
  648. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  649. package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1109 -0
  650. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  651. package/typechain-types/factories/RouterStatic__factory.ts +4 -4
  652. package/typechain-types/factories/SAPE__factory.ts +142 -1
  653. package/typechain-types/factories/SYBaseWithRewards__factory.ts +141 -0
  654. package/typechain-types/factories/SYBase__factory.ts +141 -0
  655. package/typechain-types/factories/StEthHelper__factory.ts +62 -0
  656. package/typechain-types/factories/StablePreviewBase__factory.ts +148 -0
  657. package/typechain-types/factories/SwapAggregator__factory.ts +309 -0
  658. package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +39 -0
  659. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  660. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +2 -2
  661. package/typechain-types/hardhat.d.ts +511 -52
  662. package/typechain-types/index.ts +116 -18
  663. package/build/artifacts/contracts/interfaces/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.dbg.json +0 -4
  664. package/build/artifacts/contracts/interfaces/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.json +0 -34
  665. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +0 -4
  666. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +0 -4
  667. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +0 -285
  668. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +0 -4
  669. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +0 -4
  670. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.json +0 -165
  671. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +0 -4
  672. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +0 -343
  673. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +0 -4
  674. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +0 -224
  675. package/build/artifacts/contracts/router/kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.dbg.json +0 -4
  676. package/build/artifacts/contracts/router/kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.json +0 -35
  677. package/build/artifacts/contracts/router/kyberswap/IMultihopRouterEthereum.sol/IMultihopRouterEthereum.dbg.json +0 -4
  678. package/build/artifacts/contracts/router/kyberswap/IMultihopRouterEthereum.sol/IMultihopRouterEthereum.json +0 -136
  679. package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +0 -4
  680. package/contracts/interfaces/IBoringOwnableUpgradeable.sol +0 -10
  681. package/contracts/interfaces/IPActionSwapPTYT.sol +0 -31
  682. package/contracts/router/ActionSwapPTYT.sol +0 -108
  683. package/contracts/router/kyberswap/AggregationRouterHelper.sol +0 -331
  684. package/contracts/router/kyberswap/IAggregatorRouterHelper.sol +0 -10
  685. package/contracts/router/kyberswap/IMultihopRouterEthereum.sol +0 -141
  686. package/contracts/router/kyberswap/KyberSwapHelper.sol +0 -79
  687. package/deployments/1-core.json +0 -30
  688. package/deployments/1-markets/APE-JUNE-29.json +0 -8
  689. package/deployments/1-markets/FRAXUSDC-CURVELP-MARCH30.json +0 -11
  690. package/deployments/1-markets/LOOKS-STAKING-MARCH30.json +0 -10
  691. package/deployments/1-markets/STETH-JUNE29.json +0 -10
  692. package/deployments/1-markets/STETH-MARCH30.json +0 -10
@@ -187,29 +187,29 @@
187
187
  {
188
188
  "indexed": true,
189
189
  "internalType": "address",
190
- "name": "token",
190
+ "name": "receiver",
191
191
  "type": "address"
192
192
  },
193
193
  {
194
194
  "indexed": false,
195
- "internalType": "address",
196
- "name": "receiver",
197
- "type": "address"
195
+ "internalType": "uint256",
196
+ "name": "netSyIn",
197
+ "type": "uint256"
198
198
  },
199
199
  {
200
200
  "indexed": false,
201
201
  "internalType": "uint256",
202
- "name": "netTokenIn",
202
+ "name": "netLpOut",
203
203
  "type": "uint256"
204
204
  },
205
205
  {
206
206
  "indexed": false,
207
207
  "internalType": "uint256",
208
- "name": "netLpOut",
208
+ "name": "netYtOut",
209
209
  "type": "uint256"
210
210
  }
211
211
  ],
212
- "name": "AddLiquiditySingleToken",
212
+ "name": "AddLiquiditySingleSyKeepYt",
213
213
  "type": "event"
214
214
  },
215
215
  {
@@ -224,29 +224,35 @@
224
224
  {
225
225
  "indexed": true,
226
226
  "internalType": "address",
227
- "name": "receiver",
227
+ "name": "market",
228
228
  "type": "address"
229
229
  },
230
230
  {
231
231
  "indexed": true,
232
232
  "internalType": "address",
233
- "name": "YT",
233
+ "name": "token",
234
+ "type": "address"
235
+ },
236
+ {
237
+ "indexed": false,
238
+ "internalType": "address",
239
+ "name": "receiver",
234
240
  "type": "address"
235
241
  },
236
242
  {
237
243
  "indexed": false,
238
244
  "internalType": "uint256",
239
- "name": "netSyIn",
245
+ "name": "netTokenIn",
240
246
  "type": "uint256"
241
247
  },
242
248
  {
243
249
  "indexed": false,
244
250
  "internalType": "uint256",
245
- "name": "netPyOut",
251
+ "name": "netLpOut",
246
252
  "type": "uint256"
247
253
  }
248
254
  ],
249
- "name": "MintPyFromSy",
255
+ "name": "AddLiquiditySingleToken",
250
256
  "type": "event"
251
257
  },
252
258
  {
@@ -261,13 +267,13 @@
261
267
  {
262
268
  "indexed": true,
263
269
  "internalType": "address",
264
- "name": "tokenIn",
270
+ "name": "market",
265
271
  "type": "address"
266
272
  },
267
273
  {
268
274
  "indexed": true,
269
275
  "internalType": "address",
270
- "name": "YT",
276
+ "name": "token",
271
277
  "type": "address"
272
278
  },
273
279
  {
@@ -285,11 +291,17 @@
285
291
  {
286
292
  "indexed": false,
287
293
  "internalType": "uint256",
288
- "name": "netPyOut",
294
+ "name": "netLpOut",
295
+ "type": "uint256"
296
+ },
297
+ {
298
+ "indexed": false,
299
+ "internalType": "uint256",
300
+ "name": "netYtOut",
289
301
  "type": "uint256"
290
302
  }
291
303
  ],
292
- "name": "MintPyFromToken",
304
+ "name": "AddLiquiditySingleTokenKeepYt",
293
305
  "type": "event"
294
306
  },
295
307
  {
@@ -304,35 +316,29 @@
304
316
  {
305
317
  "indexed": true,
306
318
  "internalType": "address",
307
- "name": "tokenIn",
319
+ "name": "receiver",
308
320
  "type": "address"
309
321
  },
310
322
  {
311
323
  "indexed": true,
312
324
  "internalType": "address",
313
- "name": "SY",
314
- "type": "address"
315
- },
316
- {
317
- "indexed": false,
318
- "internalType": "address",
319
- "name": "receiver",
325
+ "name": "YT",
320
326
  "type": "address"
321
327
  },
322
328
  {
323
329
  "indexed": false,
324
330
  "internalType": "uint256",
325
- "name": "netTokenIn",
331
+ "name": "netSyIn",
326
332
  "type": "uint256"
327
333
  },
328
334
  {
329
335
  "indexed": false,
330
336
  "internalType": "uint256",
331
- "name": "netSyOut",
337
+ "name": "netPyOut",
332
338
  "type": "uint256"
333
339
  }
334
340
  ],
335
- "name": "MintSyFromToken",
341
+ "name": "MintPyFromSy",
336
342
  "type": "event"
337
343
  },
338
344
  {
@@ -341,53 +347,41 @@
341
347
  {
342
348
  "indexed": true,
343
349
  "internalType": "address",
344
- "name": "user",
350
+ "name": "caller",
345
351
  "type": "address"
346
352
  },
347
353
  {
348
- "indexed": false,
349
- "internalType": "address[]",
350
- "name": "sys",
351
- "type": "address[]"
352
- },
353
- {
354
- "indexed": false,
355
- "internalType": "address[]",
356
- "name": "yts",
357
- "type": "address[]"
358
- },
359
- {
360
- "indexed": false,
361
- "internalType": "address[]",
362
- "name": "markets",
363
- "type": "address[]"
354
+ "indexed": true,
355
+ "internalType": "address",
356
+ "name": "tokenIn",
357
+ "type": "address"
364
358
  },
365
359
  {
366
- "indexed": false,
367
- "internalType": "uint256[][]",
368
- "name": "syRewards",
369
- "type": "uint256[][]"
360
+ "indexed": true,
361
+ "internalType": "address",
362
+ "name": "YT",
363
+ "type": "address"
370
364
  },
371
365
  {
372
366
  "indexed": false,
373
- "internalType": "uint256[]",
374
- "name": "ytInterests",
375
- "type": "uint256[]"
367
+ "internalType": "address",
368
+ "name": "receiver",
369
+ "type": "address"
376
370
  },
377
371
  {
378
372
  "indexed": false,
379
- "internalType": "uint256[][]",
380
- "name": "ytRewards",
381
- "type": "uint256[][]"
373
+ "internalType": "uint256",
374
+ "name": "netTokenIn",
375
+ "type": "uint256"
382
376
  },
383
377
  {
384
378
  "indexed": false,
385
- "internalType": "uint256[][]",
386
- "name": "marketRewards",
387
- "type": "uint256[][]"
379
+ "internalType": "uint256",
380
+ "name": "netPyOut",
381
+ "type": "uint256"
388
382
  }
389
383
  ],
390
- "name": "RedeemDueInterestAndRewards",
384
+ "name": "MintPyFromToken",
391
385
  "type": "event"
392
386
  },
393
387
  {
@@ -396,41 +390,41 @@
396
390
  {
397
391
  "indexed": true,
398
392
  "internalType": "address",
399
- "name": "user",
393
+ "name": "caller",
400
394
  "type": "address"
401
395
  },
402
396
  {
403
- "indexed": false,
404
- "internalType": "address[]",
405
- "name": "sys",
406
- "type": "address[]"
397
+ "indexed": true,
398
+ "internalType": "address",
399
+ "name": "tokenIn",
400
+ "type": "address"
407
401
  },
408
402
  {
409
- "indexed": false,
410
- "internalType": "address[]",
411
- "name": "yts",
412
- "type": "address[]"
403
+ "indexed": true,
404
+ "internalType": "address",
405
+ "name": "SY",
406
+ "type": "address"
413
407
  },
414
408
  {
415
409
  "indexed": false,
416
- "internalType": "address[]",
417
- "name": "markets",
418
- "type": "address[]"
419
- },
420
- {
421
- "indexed": true,
422
410
  "internalType": "address",
423
- "name": "tokenOut",
411
+ "name": "receiver",
424
412
  "type": "address"
425
413
  },
426
414
  {
427
415
  "indexed": false,
428
416
  "internalType": "uint256",
429
- "name": "netTokenOut",
417
+ "name": "netTokenIn",
418
+ "type": "uint256"
419
+ },
420
+ {
421
+ "indexed": false,
422
+ "internalType": "uint256",
423
+ "name": "netSyOut",
430
424
  "type": "uint256"
431
425
  }
432
426
  ],
433
- "name": "RedeemDueInterestAndRewardsThenSwapAll",
427
+ "name": "MintSyFromToken",
434
428
  "type": "event"
435
429
  },
436
430
  {
@@ -1047,13 +1041,35 @@
1047
1041
  },
1048
1042
  {
1049
1043
  "internalType": "address",
1050
- "name": "kyberRouter",
1044
+ "name": "pendleSwap",
1051
1045
  "type": "address"
1052
1046
  },
1053
1047
  {
1054
- "internalType": "bytes",
1055
- "name": "kybercall",
1056
- "type": "bytes"
1048
+ "components": [
1049
+ {
1050
+ "internalType": "enum SwapType",
1051
+ "name": "swapType",
1052
+ "type": "uint8"
1053
+ },
1054
+ {
1055
+ "internalType": "address",
1056
+ "name": "extRouter",
1057
+ "type": "address"
1058
+ },
1059
+ {
1060
+ "internalType": "bytes",
1061
+ "name": "extCalldata",
1062
+ "type": "bytes"
1063
+ },
1064
+ {
1065
+ "internalType": "bool",
1066
+ "name": "needScale",
1067
+ "type": "bool"
1068
+ }
1069
+ ],
1070
+ "internalType": "struct SwapData",
1071
+ "name": "swapData",
1072
+ "type": "tuple"
1057
1073
  }
1058
1074
  ],
1059
1075
  "internalType": "struct TokenInput",
@@ -1234,6 +1250,50 @@
1234
1250
  "stateMutability": "nonpayable",
1235
1251
  "type": "function"
1236
1252
  },
1253
+ {
1254
+ "inputs": [
1255
+ {
1256
+ "internalType": "address",
1257
+ "name": "receiver",
1258
+ "type": "address"
1259
+ },
1260
+ {
1261
+ "internalType": "address",
1262
+ "name": "market",
1263
+ "type": "address"
1264
+ },
1265
+ {
1266
+ "internalType": "uint256",
1267
+ "name": "netSyIn",
1268
+ "type": "uint256"
1269
+ },
1270
+ {
1271
+ "internalType": "uint256",
1272
+ "name": "minLpOut",
1273
+ "type": "uint256"
1274
+ },
1275
+ {
1276
+ "internalType": "uint256",
1277
+ "name": "minYtOut",
1278
+ "type": "uint256"
1279
+ }
1280
+ ],
1281
+ "name": "addLiquiditySingleSyKeepYt",
1282
+ "outputs": [
1283
+ {
1284
+ "internalType": "uint256",
1285
+ "name": "netLpOut",
1286
+ "type": "uint256"
1287
+ },
1288
+ {
1289
+ "internalType": "uint256",
1290
+ "name": "netYtOut",
1291
+ "type": "uint256"
1292
+ }
1293
+ ],
1294
+ "stateMutability": "nonpayable",
1295
+ "type": "function"
1296
+ },
1237
1297
  {
1238
1298
  "inputs": [
1239
1299
  {
@@ -1307,13 +1367,35 @@
1307
1367
  },
1308
1368
  {
1309
1369
  "internalType": "address",
1310
- "name": "kyberRouter",
1370
+ "name": "pendleSwap",
1311
1371
  "type": "address"
1312
1372
  },
1313
1373
  {
1314
- "internalType": "bytes",
1315
- "name": "kybercall",
1316
- "type": "bytes"
1374
+ "components": [
1375
+ {
1376
+ "internalType": "enum SwapType",
1377
+ "name": "swapType",
1378
+ "type": "uint8"
1379
+ },
1380
+ {
1381
+ "internalType": "address",
1382
+ "name": "extRouter",
1383
+ "type": "address"
1384
+ },
1385
+ {
1386
+ "internalType": "bytes",
1387
+ "name": "extCalldata",
1388
+ "type": "bytes"
1389
+ },
1390
+ {
1391
+ "internalType": "bool",
1392
+ "name": "needScale",
1393
+ "type": "bool"
1394
+ }
1395
+ ],
1396
+ "internalType": "struct SwapData",
1397
+ "name": "swapData",
1398
+ "type": "tuple"
1317
1399
  }
1318
1400
  ],
1319
1401
  "internalType": "struct TokenInput",
@@ -1339,23 +1421,241 @@
1339
1421
  },
1340
1422
  {
1341
1423
  "inputs": [
1424
+ {
1425
+ "internalType": "address",
1426
+ "name": "receiver",
1427
+ "type": "address"
1428
+ },
1342
1429
  {
1343
1430
  "internalType": "address",
1344
1431
  "name": "market",
1345
1432
  "type": "address"
1346
1433
  },
1347
1434
  {
1348
- "internalType": "uint32",
1349
- "name": "secondsAgo",
1350
- "type": "uint32"
1435
+ "internalType": "uint256",
1436
+ "name": "minLpOut",
1437
+ "type": "uint256"
1438
+ },
1439
+ {
1440
+ "internalType": "uint256",
1441
+ "name": "minYtOut",
1442
+ "type": "uint256"
1443
+ },
1444
+ {
1445
+ "components": [
1446
+ {
1447
+ "internalType": "address",
1448
+ "name": "tokenIn",
1449
+ "type": "address"
1450
+ },
1451
+ {
1452
+ "internalType": "uint256",
1453
+ "name": "netTokenIn",
1454
+ "type": "uint256"
1455
+ },
1456
+ {
1457
+ "internalType": "address",
1458
+ "name": "tokenMintSy",
1459
+ "type": "address"
1460
+ },
1461
+ {
1462
+ "internalType": "address",
1463
+ "name": "bulk",
1464
+ "type": "address"
1465
+ },
1466
+ {
1467
+ "internalType": "address",
1468
+ "name": "pendleSwap",
1469
+ "type": "address"
1470
+ },
1471
+ {
1472
+ "components": [
1473
+ {
1474
+ "internalType": "enum SwapType",
1475
+ "name": "swapType",
1476
+ "type": "uint8"
1477
+ },
1478
+ {
1479
+ "internalType": "address",
1480
+ "name": "extRouter",
1481
+ "type": "address"
1482
+ },
1483
+ {
1484
+ "internalType": "bytes",
1485
+ "name": "extCalldata",
1486
+ "type": "bytes"
1487
+ },
1488
+ {
1489
+ "internalType": "bool",
1490
+ "name": "needScale",
1491
+ "type": "bool"
1492
+ }
1493
+ ],
1494
+ "internalType": "struct SwapData",
1495
+ "name": "swapData",
1496
+ "type": "tuple"
1497
+ }
1498
+ ],
1499
+ "internalType": "struct TokenInput",
1500
+ "name": "input",
1501
+ "type": "tuple"
1351
1502
  }
1352
1503
  ],
1353
- "name": "consult",
1504
+ "name": "addLiquiditySingleTokenKeepYt",
1354
1505
  "outputs": [
1355
1506
  {
1356
- "internalType": "uint96",
1357
- "name": "lnImpliedRateMean",
1358
- "type": "uint96"
1507
+ "internalType": "uint256",
1508
+ "name": "netLpOut",
1509
+ "type": "uint256"
1510
+ },
1511
+ {
1512
+ "internalType": "uint256",
1513
+ "name": "netYtOut",
1514
+ "type": "uint256"
1515
+ }
1516
+ ],
1517
+ "stateMutability": "nonpayable",
1518
+ "type": "function"
1519
+ },
1520
+ {
1521
+ "inputs": [
1522
+ {
1523
+ "components": [
1524
+ {
1525
+ "internalType": "address[]",
1526
+ "name": "tokens",
1527
+ "type": "address[]"
1528
+ },
1529
+ {
1530
+ "internalType": "address",
1531
+ "name": "spender",
1532
+ "type": "address"
1533
+ }
1534
+ ],
1535
+ "internalType": "struct IPActionMisc.MultiApproval[]",
1536
+ "name": "",
1537
+ "type": "tuple[]"
1538
+ }
1539
+ ],
1540
+ "name": "approveInf",
1541
+ "outputs": [],
1542
+ "stateMutability": "nonpayable",
1543
+ "type": "function"
1544
+ },
1545
+ {
1546
+ "inputs": [
1547
+ {
1548
+ "components": [
1549
+ {
1550
+ "internalType": "bool",
1551
+ "name": "allowFailure",
1552
+ "type": "bool"
1553
+ },
1554
+ {
1555
+ "internalType": "bytes",
1556
+ "name": "callData",
1557
+ "type": "bytes"
1558
+ }
1559
+ ],
1560
+ "internalType": "struct IPActionMisc.Call3[]",
1561
+ "name": "calls",
1562
+ "type": "tuple[]"
1563
+ }
1564
+ ],
1565
+ "name": "batchExec",
1566
+ "outputs": [
1567
+ {
1568
+ "components": [
1569
+ {
1570
+ "internalType": "bool",
1571
+ "name": "success",
1572
+ "type": "bool"
1573
+ },
1574
+ {
1575
+ "internalType": "bytes",
1576
+ "name": "returnData",
1577
+ "type": "bytes"
1578
+ }
1579
+ ],
1580
+ "internalType": "struct IPActionMisc.Result[]",
1581
+ "name": "returnData",
1582
+ "type": "tuple[]"
1583
+ }
1584
+ ],
1585
+ "stateMutability": "nonpayable",
1586
+ "type": "function"
1587
+ },
1588
+ {
1589
+ "inputs": [
1590
+ {
1591
+ "internalType": "bytes4",
1592
+ "name": "_functionSelector",
1593
+ "type": "bytes4"
1594
+ }
1595
+ ],
1596
+ "name": "facetAddress",
1597
+ "outputs": [
1598
+ {
1599
+ "internalType": "address",
1600
+ "name": "facetAddress_",
1601
+ "type": "address"
1602
+ }
1603
+ ],
1604
+ "stateMutability": "view",
1605
+ "type": "function"
1606
+ },
1607
+ {
1608
+ "inputs": [],
1609
+ "name": "facetAddresses",
1610
+ "outputs": [
1611
+ {
1612
+ "internalType": "address[]",
1613
+ "name": "facetAddresses_",
1614
+ "type": "address[]"
1615
+ }
1616
+ ],
1617
+ "stateMutability": "view",
1618
+ "type": "function"
1619
+ },
1620
+ {
1621
+ "inputs": [
1622
+ {
1623
+ "internalType": "address",
1624
+ "name": "_facet",
1625
+ "type": "address"
1626
+ }
1627
+ ],
1628
+ "name": "facetFunctionSelectors",
1629
+ "outputs": [
1630
+ {
1631
+ "internalType": "bytes4[]",
1632
+ "name": "facetFunctionSelectors_",
1633
+ "type": "bytes4[]"
1634
+ }
1635
+ ],
1636
+ "stateMutability": "view",
1637
+ "type": "function"
1638
+ },
1639
+ {
1640
+ "inputs": [],
1641
+ "name": "facets",
1642
+ "outputs": [
1643
+ {
1644
+ "components": [
1645
+ {
1646
+ "internalType": "address",
1647
+ "name": "facetAddress",
1648
+ "type": "address"
1649
+ },
1650
+ {
1651
+ "internalType": "bytes4[]",
1652
+ "name": "functionSelectors",
1653
+ "type": "bytes4[]"
1654
+ }
1655
+ ],
1656
+ "internalType": "struct IDiamondLoupe.Facet[]",
1657
+ "name": "facets_",
1658
+ "type": "tuple[]"
1359
1659
  }
1360
1660
  ],
1361
1661
  "stateMutability": "view",
@@ -1436,13 +1736,35 @@
1436
1736
  },
1437
1737
  {
1438
1738
  "internalType": "address",
1439
- "name": "kyberRouter",
1739
+ "name": "pendleSwap",
1440
1740
  "type": "address"
1441
1741
  },
1442
1742
  {
1443
- "internalType": "bytes",
1444
- "name": "kybercall",
1445
- "type": "bytes"
1743
+ "components": [
1744
+ {
1745
+ "internalType": "enum SwapType",
1746
+ "name": "swapType",
1747
+ "type": "uint8"
1748
+ },
1749
+ {
1750
+ "internalType": "address",
1751
+ "name": "extRouter",
1752
+ "type": "address"
1753
+ },
1754
+ {
1755
+ "internalType": "bytes",
1756
+ "name": "extCalldata",
1757
+ "type": "bytes"
1758
+ },
1759
+ {
1760
+ "internalType": "bool",
1761
+ "name": "needScale",
1762
+ "type": "bool"
1763
+ }
1764
+ ],
1765
+ "internalType": "struct SwapData",
1766
+ "name": "swapData",
1767
+ "type": "tuple"
1446
1768
  }
1447
1769
  ],
1448
1770
  "internalType": "struct TokenInput",
@@ -1502,13 +1824,35 @@
1502
1824
  },
1503
1825
  {
1504
1826
  "internalType": "address",
1505
- "name": "kyberRouter",
1827
+ "name": "pendleSwap",
1506
1828
  "type": "address"
1507
1829
  },
1508
1830
  {
1509
- "internalType": "bytes",
1510
- "name": "kybercall",
1511
- "type": "bytes"
1831
+ "components": [
1832
+ {
1833
+ "internalType": "enum SwapType",
1834
+ "name": "swapType",
1835
+ "type": "uint8"
1836
+ },
1837
+ {
1838
+ "internalType": "address",
1839
+ "name": "extRouter",
1840
+ "type": "address"
1841
+ },
1842
+ {
1843
+ "internalType": "bytes",
1844
+ "name": "extCalldata",
1845
+ "type": "bytes"
1846
+ },
1847
+ {
1848
+ "internalType": "bool",
1849
+ "name": "needScale",
1850
+ "type": "bool"
1851
+ }
1852
+ ],
1853
+ "internalType": "struct SwapData",
1854
+ "name": "swapData",
1855
+ "type": "tuple"
1512
1856
  }
1513
1857
  ],
1514
1858
  "internalType": "struct TokenInput",
@@ -1551,116 +1895,7 @@
1551
1895
  }
1552
1896
  ],
1553
1897
  "name": "redeemDueInterestAndRewards",
1554
- "outputs": [
1555
- {
1556
- "internalType": "uint256[][]",
1557
- "name": "syRewards",
1558
- "type": "uint256[][]"
1559
- },
1560
- {
1561
- "internalType": "uint256[]",
1562
- "name": "ytInterests",
1563
- "type": "uint256[]"
1564
- },
1565
- {
1566
- "internalType": "uint256[][]",
1567
- "name": "ytRewards",
1568
- "type": "uint256[][]"
1569
- },
1570
- {
1571
- "internalType": "uint256[][]",
1572
- "name": "marketRewards",
1573
- "type": "uint256[][]"
1574
- }
1575
- ],
1576
- "stateMutability": "nonpayable",
1577
- "type": "function"
1578
- },
1579
- {
1580
- "inputs": [
1581
- {
1582
- "internalType": "address[]",
1583
- "name": "sys",
1584
- "type": "address[]"
1585
- },
1586
- {
1587
- "components": [
1588
- {
1589
- "internalType": "address[]",
1590
- "name": "yts",
1591
- "type": "address[]"
1592
- },
1593
- {
1594
- "internalType": "address[]",
1595
- "name": "syAddrs",
1596
- "type": "address[]"
1597
- },
1598
- {
1599
- "internalType": "address[]",
1600
- "name": "tokenRedeemSys",
1601
- "type": "address[]"
1602
- },
1603
- {
1604
- "internalType": "address[]",
1605
- "name": "bulks",
1606
- "type": "address[]"
1607
- }
1608
- ],
1609
- "internalType": "struct IPActionMintRedeem.RouterYtRedeemStruct",
1610
- "name": "dataYT",
1611
- "type": "tuple"
1612
- },
1613
- {
1614
- "internalType": "address[]",
1615
- "name": "markets",
1616
- "type": "address[]"
1617
- },
1618
- {
1619
- "components": [
1620
- {
1621
- "internalType": "address[]",
1622
- "name": "tokens",
1623
- "type": "address[]"
1624
- },
1625
- {
1626
- "internalType": "bytes[]",
1627
- "name": "kybercalls",
1628
- "type": "bytes[]"
1629
- },
1630
- {
1631
- "internalType": "address",
1632
- "name": "kyberRouter",
1633
- "type": "address"
1634
- },
1635
- {
1636
- "internalType": "address",
1637
- "name": "outputToken",
1638
- "type": "address"
1639
- },
1640
- {
1641
- "internalType": "uint256",
1642
- "name": "minTokenOut",
1643
- "type": "uint256"
1644
- }
1645
- ],
1646
- "internalType": "struct IPActionMintRedeem.RouterSwapAllStruct",
1647
- "name": "dataSwap",
1648
- "type": "tuple"
1649
- }
1650
- ],
1651
- "name": "redeemDueInterestAndRewardsThenSwapAll",
1652
- "outputs": [
1653
- {
1654
- "internalType": "uint256",
1655
- "name": "netTokenOut",
1656
- "type": "uint256"
1657
- },
1658
- {
1659
- "internalType": "uint256[]",
1660
- "name": "amountsSwapped",
1661
- "type": "uint256[]"
1662
- }
1663
- ],
1898
+ "outputs": [],
1664
1899
  "stateMutability": "nonpayable",
1665
1900
  "type": "function"
1666
1901
  },
@@ -1739,13 +1974,35 @@
1739
1974
  },
1740
1975
  {
1741
1976
  "internalType": "address",
1742
- "name": "kyberRouter",
1977
+ "name": "pendleSwap",
1743
1978
  "type": "address"
1744
1979
  },
1745
1980
  {
1746
- "internalType": "bytes",
1747
- "name": "kybercall",
1748
- "type": "bytes"
1981
+ "components": [
1982
+ {
1983
+ "internalType": "enum SwapType",
1984
+ "name": "swapType",
1985
+ "type": "uint8"
1986
+ },
1987
+ {
1988
+ "internalType": "address",
1989
+ "name": "extRouter",
1990
+ "type": "address"
1991
+ },
1992
+ {
1993
+ "internalType": "bytes",
1994
+ "name": "extCalldata",
1995
+ "type": "bytes"
1996
+ },
1997
+ {
1998
+ "internalType": "bool",
1999
+ "name": "needScale",
2000
+ "type": "bool"
2001
+ }
2002
+ ],
2003
+ "internalType": "struct SwapData",
2004
+ "name": "swapData",
2005
+ "type": "tuple"
1749
2006
  }
1750
2007
  ],
1751
2008
  "internalType": "struct TokenOutput",
@@ -1805,13 +2062,35 @@
1805
2062
  },
1806
2063
  {
1807
2064
  "internalType": "address",
1808
- "name": "kyberRouter",
2065
+ "name": "pendleSwap",
1809
2066
  "type": "address"
1810
2067
  },
1811
2068
  {
1812
- "internalType": "bytes",
1813
- "name": "kybercall",
1814
- "type": "bytes"
2069
+ "components": [
2070
+ {
2071
+ "internalType": "enum SwapType",
2072
+ "name": "swapType",
2073
+ "type": "uint8"
2074
+ },
2075
+ {
2076
+ "internalType": "address",
2077
+ "name": "extRouter",
2078
+ "type": "address"
2079
+ },
2080
+ {
2081
+ "internalType": "bytes",
2082
+ "name": "extCalldata",
2083
+ "type": "bytes"
2084
+ },
2085
+ {
2086
+ "internalType": "bool",
2087
+ "name": "needScale",
2088
+ "type": "bool"
2089
+ }
2090
+ ],
2091
+ "internalType": "struct SwapData",
2092
+ "name": "swapData",
2093
+ "type": "tuple"
1815
2094
  }
1816
2095
  ],
1817
2096
  "internalType": "struct TokenOutput",
@@ -1915,13 +2194,35 @@
1915
2194
  },
1916
2195
  {
1917
2196
  "internalType": "address",
1918
- "name": "kyberRouter",
2197
+ "name": "pendleSwap",
1919
2198
  "type": "address"
1920
2199
  },
1921
2200
  {
1922
- "internalType": "bytes",
1923
- "name": "kybercall",
1924
- "type": "bytes"
2201
+ "components": [
2202
+ {
2203
+ "internalType": "enum SwapType",
2204
+ "name": "swapType",
2205
+ "type": "uint8"
2206
+ },
2207
+ {
2208
+ "internalType": "address",
2209
+ "name": "extRouter",
2210
+ "type": "address"
2211
+ },
2212
+ {
2213
+ "internalType": "bytes",
2214
+ "name": "extCalldata",
2215
+ "type": "bytes"
2216
+ },
2217
+ {
2218
+ "internalType": "bool",
2219
+ "name": "needScale",
2220
+ "type": "bool"
2221
+ }
2222
+ ],
2223
+ "internalType": "struct SwapData",
2224
+ "name": "swapData",
2225
+ "type": "tuple"
1925
2226
  }
1926
2227
  ],
1927
2228
  "internalType": "struct TokenOutput",
@@ -2101,13 +2402,35 @@
2101
2402
  },
2102
2403
  {
2103
2404
  "internalType": "address",
2104
- "name": "kyberRouter",
2405
+ "name": "pendleSwap",
2105
2406
  "type": "address"
2106
2407
  },
2107
2408
  {
2108
- "internalType": "bytes",
2109
- "name": "kybercall",
2110
- "type": "bytes"
2409
+ "components": [
2410
+ {
2411
+ "internalType": "enum SwapType",
2412
+ "name": "swapType",
2413
+ "type": "uint8"
2414
+ },
2415
+ {
2416
+ "internalType": "address",
2417
+ "name": "extRouter",
2418
+ "type": "address"
2419
+ },
2420
+ {
2421
+ "internalType": "bytes",
2422
+ "name": "extCalldata",
2423
+ "type": "bytes"
2424
+ },
2425
+ {
2426
+ "internalType": "bool",
2427
+ "name": "needScale",
2428
+ "type": "bool"
2429
+ }
2430
+ ],
2431
+ "internalType": "struct SwapData",
2432
+ "name": "swapData",
2433
+ "type": "tuple"
2111
2434
  }
2112
2435
  ],
2113
2436
  "internalType": "struct TokenOutput",
@@ -2131,6 +2454,29 @@
2131
2454
  "stateMutability": "nonpayable",
2132
2455
  "type": "function"
2133
2456
  },
2457
+ {
2458
+ "inputs": [
2459
+ {
2460
+ "internalType": "int256",
2461
+ "name": "ptToAccount",
2462
+ "type": "int256"
2463
+ },
2464
+ {
2465
+ "internalType": "int256",
2466
+ "name": "syToAccount",
2467
+ "type": "int256"
2468
+ },
2469
+ {
2470
+ "internalType": "bytes",
2471
+ "name": "data",
2472
+ "type": "bytes"
2473
+ }
2474
+ ],
2475
+ "name": "swapCallback",
2476
+ "outputs": [],
2477
+ "stateMutability": "nonpayable",
2478
+ "type": "function"
2479
+ },
2134
2480
  {
2135
2481
  "inputs": [
2136
2482
  {
@@ -2211,13 +2557,35 @@
2211
2557
  },
2212
2558
  {
2213
2559
  "internalType": "address",
2214
- "name": "kyberRouter",
2560
+ "name": "pendleSwap",
2215
2561
  "type": "address"
2216
2562
  },
2217
2563
  {
2218
- "internalType": "bytes",
2219
- "name": "kybercall",
2220
- "type": "bytes"
2564
+ "components": [
2565
+ {
2566
+ "internalType": "enum SwapType",
2567
+ "name": "swapType",
2568
+ "type": "uint8"
2569
+ },
2570
+ {
2571
+ "internalType": "address",
2572
+ "name": "extRouter",
2573
+ "type": "address"
2574
+ },
2575
+ {
2576
+ "internalType": "bytes",
2577
+ "name": "extCalldata",
2578
+ "type": "bytes"
2579
+ },
2580
+ {
2581
+ "internalType": "bool",
2582
+ "name": "needScale",
2583
+ "type": "bool"
2584
+ }
2585
+ ],
2586
+ "internalType": "struct SwapData",
2587
+ "name": "swapData",
2588
+ "type": "tuple"
2221
2589
  }
2222
2590
  ],
2223
2591
  "internalType": "struct TokenOutput",
@@ -2527,13 +2895,35 @@
2527
2895
  },
2528
2896
  {
2529
2897
  "internalType": "address",
2530
- "name": "kyberRouter",
2898
+ "name": "pendleSwap",
2531
2899
  "type": "address"
2532
2900
  },
2533
2901
  {
2534
- "internalType": "bytes",
2535
- "name": "kybercall",
2536
- "type": "bytes"
2902
+ "components": [
2903
+ {
2904
+ "internalType": "enum SwapType",
2905
+ "name": "swapType",
2906
+ "type": "uint8"
2907
+ },
2908
+ {
2909
+ "internalType": "address",
2910
+ "name": "extRouter",
2911
+ "type": "address"
2912
+ },
2913
+ {
2914
+ "internalType": "bytes",
2915
+ "name": "extCalldata",
2916
+ "type": "bytes"
2917
+ },
2918
+ {
2919
+ "internalType": "bool",
2920
+ "name": "needScale",
2921
+ "type": "bool"
2922
+ }
2923
+ ],
2924
+ "internalType": "struct SwapData",
2925
+ "name": "swapData",
2926
+ "type": "tuple"
2537
2927
  }
2538
2928
  ],
2539
2929
  "internalType": "struct TokenInput",
@@ -2630,13 +3020,35 @@
2630
3020
  },
2631
3021
  {
2632
3022
  "internalType": "address",
2633
- "name": "kyberRouter",
3023
+ "name": "pendleSwap",
2634
3024
  "type": "address"
2635
3025
  },
2636
3026
  {
2637
- "internalType": "bytes",
2638
- "name": "kybercall",
2639
- "type": "bytes"
3027
+ "components": [
3028
+ {
3029
+ "internalType": "enum SwapType",
3030
+ "name": "swapType",
3031
+ "type": "uint8"
3032
+ },
3033
+ {
3034
+ "internalType": "address",
3035
+ "name": "extRouter",
3036
+ "type": "address"
3037
+ },
3038
+ {
3039
+ "internalType": "bytes",
3040
+ "name": "extCalldata",
3041
+ "type": "bytes"
3042
+ },
3043
+ {
3044
+ "internalType": "bool",
3045
+ "name": "needScale",
3046
+ "type": "bool"
3047
+ }
3048
+ ],
3049
+ "internalType": "struct SwapData",
3050
+ "name": "swapData",
3051
+ "type": "tuple"
2640
3052
  }
2641
3053
  ],
2642
3054
  "internalType": "struct TokenInput",
@@ -2811,13 +3223,35 @@
2811
3223
  },
2812
3224
  {
2813
3225
  "internalType": "address",
2814
- "name": "kyberRouter",
3226
+ "name": "pendleSwap",
2815
3227
  "type": "address"
2816
3228
  },
2817
3229
  {
2818
- "internalType": "bytes",
2819
- "name": "kybercall",
2820
- "type": "bytes"
3230
+ "components": [
3231
+ {
3232
+ "internalType": "enum SwapType",
3233
+ "name": "swapType",
3234
+ "type": "uint8"
3235
+ },
3236
+ {
3237
+ "internalType": "address",
3238
+ "name": "extRouter",
3239
+ "type": "address"
3240
+ },
3241
+ {
3242
+ "internalType": "bytes",
3243
+ "name": "extCalldata",
3244
+ "type": "bytes"
3245
+ },
3246
+ {
3247
+ "internalType": "bool",
3248
+ "name": "needScale",
3249
+ "type": "bool"
3250
+ }
3251
+ ],
3252
+ "internalType": "struct SwapData",
3253
+ "name": "swapData",
3254
+ "type": "tuple"
2821
3255
  }
2822
3256
  ],
2823
3257
  "internalType": "struct TokenOutput",