@pendle/core-v2 1.4.0-mainnet → 2.0.1-mainnet

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 (357) 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/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  10. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  11. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  12. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +3 -3
  13. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
  15. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  17. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  20. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  21. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +3 -3
  22. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  23. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  24. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  25. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  26. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  28. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  29. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  31. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  33. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  35. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  37. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  39. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  42. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  44. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +2 -2
  51. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol/PendleAura3EthSY.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol/PendleAura3EthSY.json +2 -2
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol/PendleAuraCbethWstethSY.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol/PendleAuraCbethWstethSY.json +2 -2
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.json +2 -2
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.json +2 -2
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -2
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -2
  66. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  67. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -2
  68. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  69. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol/GLPPreviewHelper.dbg.json +4 -0
  70. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol/GLPPreviewHelper.json +50 -0
  71. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +4 -0
  72. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +1163 -0
  73. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  74. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -2
  75. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  76. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -2
  77. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  78. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  79. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  80. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  81. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  82. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  83. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  84. package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.dbg.json +4 -0
  85. package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.json +66 -0
  86. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +4 -0
  87. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +476 -0
  88. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +4 -0
  89. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +590 -0
  90. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +4 -0
  91. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +1017 -0
  92. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  93. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +50 -2
  94. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.dbg.json +4 -0
  96. package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.json +308 -0
  97. package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.dbg.json +4 -0
  98. package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.json +43 -0
  99. package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.dbg.json +4 -0
  100. package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.json +201 -0
  101. package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.dbg.json +4 -0
  102. package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.json +45 -0
  103. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +4 -0
  104. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.json +48 -0
  105. package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.dbg.json +4 -0
  106. package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.json +93 -0
  107. package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.dbg.json +4 -0
  108. package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.json +87 -0
  109. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json +338 -16
  111. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  112. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +105 -224
  113. package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.json +56 -12
  115. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.json +52 -8
  117. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.json +231 -8
  119. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  120. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +675 -241
  121. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +4 -0
  123. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.json +40 -0
  124. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  128. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +4 -0
  130. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.json +679 -0
  131. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +4 -0
  132. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.json +143 -0
  133. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  134. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  135. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  136. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -28
  137. package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.dbg.json +1 -1
  138. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  139. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +144 -60
  140. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  141. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +345 -62
  142. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  143. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +107 -260
  144. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  145. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +57 -18
  146. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  147. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +54 -65
  148. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  149. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +342 -44
  150. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  151. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +76 -67
  152. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +4 -0
  153. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.json +141 -0
  154. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  155. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.json +1 -15
  156. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  157. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  158. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  159. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  160. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  161. package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.dbg.json +4 -0
  162. package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.json +160 -0
  163. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +4 -0
  164. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.json +10 -0
  165. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +4 -0
  166. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.json +56 -0
  167. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapAggregator.sol/PendleSwapAggregator.dbg.json +4 -0
  168. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapAggregator.sol/PendleSwapAggregator.json +72 -0
  169. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol/KyberAggregationRouterHelper.dbg.json +4 -0
  170. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol/KyberAggregationRouterHelper.json +10 -0
  171. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.dbg.json +4 -0
  172. package/build/artifacts/contracts/router/{kyberswap → swap-aggregator/kyberswap}/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.json +3 -3
  173. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +4 -0
  174. package/build/artifacts/contracts/router/{kyberswap → swap-aggregator/kyberswap}/interfaces/IAggregationExecutor.sol/IAggregationExecutor.json +1 -1
  175. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +4 -0
  176. package/build/artifacts/contracts/router/{kyberswap → swap-aggregator/kyberswap}/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.json +30 -1
  177. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IHashflow.sol/IHashflow.dbg.json +4 -0
  178. package/build/artifacts/contracts/router/{kyberswap → swap-aggregator/kyberswap}/interfaces/IHashflow.sol/IHashflow.json +1 -1
  179. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +4 -0
  180. package/build/artifacts/contracts/router/{kyberswap → swap-aggregator/kyberswap}/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +1 -1
  181. package/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol +0 -1
  182. package/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol +142 -0
  183. package/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol +224 -0
  184. package/contracts/core/StandardizedYield/implementations/GLP/README.md +61 -0
  185. package/contracts/core/YieldContractsV2/InterestManagerYTV2.sol +114 -0
  186. package/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol +63 -0
  187. package/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol +200 -0
  188. package/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol +485 -0
  189. package/contracts/core/libraries/Errors.sol +5 -0
  190. package/contracts/core/libraries/TokenHelper.sol +10 -0
  191. package/contracts/interfaces/GMX/IGMXVault.sol +47 -0
  192. package/contracts/interfaces/GMX/IGlpManager.sol +8 -0
  193. package/contracts/interfaces/GMX/IRewardRouterV2.sol +43 -0
  194. package/contracts/interfaces/GMX/IVaultPriceFeed.sol +11 -0
  195. package/contracts/interfaces/IAddressProvider.sol +7 -0
  196. package/contracts/interfaces/IDiamondCut.sol +36 -0
  197. package/contracts/interfaces/IDiamondLoupe.sol +38 -0
  198. package/contracts/interfaces/IPActionAddRemoveLiq.sol +36 -1
  199. package/contracts/interfaces/IPActionMintRedeem.sol +2 -55
  200. package/contracts/interfaces/IPActionMisc.sol +18 -4
  201. package/contracts/interfaces/IPActionSwapPT.sol +1 -1
  202. package/contracts/interfaces/IPActionSwapYT.sol +28 -4
  203. package/contracts/interfaces/IPAllAction.sol +5 -3
  204. package/contracts/interfaces/IPInterestManagerYTV2.sol +13 -0
  205. package/contracts/interfaces/IPMsgReceiverApp.sol +1 -1
  206. package/contracts/interfaces/IPYieldTokenV2.sol +66 -0
  207. package/contracts/offchain-helpers/AddressProvider.sol +16 -0
  208. package/contracts/offchain-helpers/MarketMathStatic.sol +15 -0
  209. package/contracts/offchain-helpers/RouterStatic.sol +22 -0
  210. package/contracts/router/ActionAddRemoveLiq.sol +116 -6
  211. package/contracts/router/ActionMintRedeem.sol +12 -202
  212. package/contracts/router/ActionMisc.sol +45 -19
  213. package/contracts/router/ActionSwapPT.sol +0 -5
  214. package/contracts/router/ActionSwapYT.sol +103 -13
  215. package/contracts/router/PendleRouter.sol +211 -72
  216. package/contracts/router/{ActionCallback.sol → base/ActionBaseCallback.sol} +47 -47
  217. package/contracts/router/base/ActionBaseMintRedeem.sol +105 -60
  218. package/contracts/router/base/CallbackHelper.sol +137 -44
  219. package/contracts/router/base/MarketApproxLib.sol +227 -350
  220. package/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol +45 -0
  221. package/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol +69 -0
  222. package/contracts/router/swap-aggregator/IPSwapAggregator.sol +25 -0
  223. package/contracts/router/swap-aggregator/PendleSwapAggregator.sol +47 -0
  224. package/contracts/router/{kyberswap/AggregationRouterHelper.sol → swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol} +5 -108
  225. package/contracts/router/{kyberswap → swap-aggregator/kyberswap}/ScaleDataHelperEthereum1.sol +13 -0
  226. package/contracts/router/{kyberswap → swap-aggregator/kyberswap}/interfaces/IAggregationExecutor.sol +0 -0
  227. package/contracts/router/{kyberswap → swap-aggregator/kyberswap}/interfaces/IExecutorHelperEthereum1.sol +6 -0
  228. package/contracts/router/{kyberswap → swap-aggregator/kyberswap}/interfaces/IHashflow.sol +0 -0
  229. package/contracts/router/{kyberswap → swap-aggregator/kyberswap}/interfaces/IMetaAggregationRouterV2.sol +0 -0
  230. package/deployments/1-core.json +2 -1
  231. package/deployments/1-markets/BALANCER-LP-AURA-WSTETH-WETH-JUN272024.json +2 -1
  232. package/deployments/42161-core.json +26 -0
  233. package/deployments/42161-markets/GLP-28MARCH2024.json +10 -0
  234. package/deployments/42161-offchain-helper.json +4 -0
  235. package/package.json +1 -1
  236. package/typechain-types/ActionAddRemoveLiq.ts +203 -23
  237. package/typechain-types/ActionBaseCallback.ts +115 -0
  238. package/typechain-types/ActionMintRedeem.ts +29 -230
  239. package/typechain-types/ActionMisc.ts +77 -27
  240. package/typechain-types/ActionSwapPT.ts +26 -31
  241. package/typechain-types/ActionSwapYT.ts +202 -21
  242. package/typechain-types/AddressProvider.ts +280 -0
  243. package/typechain-types/GLPPreviewHelper.ts +121 -0
  244. package/typechain-types/GMXPreviewHelper.ts +40 -0
  245. package/typechain-types/IAddressProvider.ts +123 -0
  246. package/typechain-types/IDiamondCut.ts +152 -0
  247. package/typechain-types/IDiamondLoupe.ts +190 -0
  248. package/typechain-types/IExecutorHelperEthereum1.ts +44 -0
  249. package/typechain-types/IPActionAddRemoveLiq.ts +213 -14
  250. package/typechain-types/IPActionMintRedeem.ts +29 -211
  251. package/typechain-types/IPActionMisc.ts +77 -27
  252. package/typechain-types/IPActionSwapPT.ts +26 -12
  253. package/typechain-types/IPActionSwapYT.ts +168 -12
  254. package/typechain-types/IPAllAction.ts +445 -227
  255. package/typechain-types/IPInterestManagerYTV2.ts +117 -0
  256. package/typechain-types/IPMsgReceiverApp.ts +5 -5
  257. package/typechain-types/IPSwapAggregator.ts +126 -0
  258. package/typechain-types/IPYieldTokenV2.ts +9 -23
  259. package/typechain-types/IRewardRouterV2.ts +60 -17
  260. package/typechain-types/InterestManagerYTV2.ts +36 -3
  261. package/typechain-types/PendleGaugeControllerSidechainUpg.ts +4 -4
  262. package/typechain-types/PendleGlpSY.ts +67 -0
  263. package/typechain-types/PendleMsgReceiverAppUpg.ts +5 -5
  264. package/typechain-types/PendleRouter.ts +109 -131
  265. package/typechain-types/PendleSwapAggregator.ts +126 -0
  266. package/typechain-types/PendleYieldTokenV2.ts +70 -76
  267. package/typechain-types/RouterStatic.ts +92 -0
  268. package/typechain-types/VotingEscrowPendleSidechain.ts +4 -5
  269. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +346 -68
  270. package/typechain-types/factories/ActionBaseCallback__factory.ts +156 -0
  271. package/typechain-types/factories/ActionMintRedeem__factory.ts +108 -266
  272. package/typechain-types/factories/ActionMisc__factory.ts +56 -17
  273. package/typechain-types/factories/ActionSwapPT__factory.ts +55 -71
  274. package/typechain-types/factories/ActionSwapYT__factory.ts +356 -48
  275. package/typechain-types/factories/AddressProvider__factory.ts +196 -0
  276. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  277. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  278. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  279. package/typechain-types/factories/Errors__factory.ts +49 -1
  280. package/typechain-types/factories/GLPPreviewHelper__factory.ts +65 -0
  281. package/typechain-types/factories/GMXPreviewHelper__factory.ts +26 -0
  282. package/typechain-types/factories/IAddressProvider__factory.ts +63 -0
  283. package/typechain-types/factories/IDiamondCut__factory.ts +105 -0
  284. package/typechain-types/factories/IDiamondLoupe__factory.ts +99 -0
  285. package/typechain-types/factories/IExecutorHelperEthereum1__factory.ts +29 -0
  286. package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +338 -16
  287. package/typechain-types/factories/IPActionMintRedeem__factory.ts +105 -224
  288. package/typechain-types/factories/IPActionMisc__factory.ts +55 -11
  289. package/typechain-types/factories/IPActionSwapPT__factory.ts +52 -8
  290. package/typechain-types/factories/IPActionSwapYT__factory.ts +231 -8
  291. package/typechain-types/factories/IPAllAction__factory.ts +675 -241
  292. package/typechain-types/factories/IPInterestManagerYTV2__factory.ts +59 -0
  293. package/typechain-types/factories/IPMsgReceiverApp__factory.ts +1 -1
  294. package/typechain-types/factories/IPSwapAggregator__factory.ts +71 -0
  295. package/typechain-types/factories/IPYieldTokenV2__factory.ts +6 -14
  296. package/typechain-types/factories/IRewardRouterV2__factory.ts +43 -7
  297. package/typechain-types/factories/InterestManagerYTV2__factory.ts +18 -0
  298. package/typechain-types/factories/MarketMathStatic__factory.ts +1 -27
  299. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  300. package/typechain-types/factories/PendleAura3EthSY__factory.ts +1 -1
  301. package/typechain-types/factories/PendleAuraCbethWstethSY__factory.ts +1 -1
  302. package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +1 -1
  303. package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +1 -1
  304. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
  305. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
  306. package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
  307. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  308. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +2 -2
  309. package/typechain-types/factories/PendleGlpSY__factory.ts +34 -1
  310. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -1
  311. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  312. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  313. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  314. package/typechain-types/factories/PendleMsgReceiverAppUpg__factory.ts +1 -1
  315. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  316. package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -1
  317. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  318. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  319. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
  320. package/typechain-types/factories/PendleRouter__factory.ts +75 -74
  321. package/typechain-types/factories/PendleSwapAggregator__factory.ts +129 -0
  322. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  323. package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
  324. package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +1 -1
  325. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  326. package/typechain-types/factories/PendleYieldTokenV2__factory.ts +35 -48
  327. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  328. package/typechain-types/factories/RouterStatic__factory.ts +69 -1
  329. package/typechain-types/factories/SAPE__factory.ts +1 -1
  330. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  331. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +2 -2
  332. package/typechain-types/hardhat.d.ts +118 -64
  333. package/typechain-types/index.ts +32 -20
  334. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +0 -4
  335. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.json +0 -190
  336. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +0 -4
  337. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.json +0 -165
  338. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +0 -4
  339. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +0 -343
  340. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +0 -4
  341. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +0 -224
  342. package/build/artifacts/contracts/router/kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.dbg.json +0 -4
  343. package/build/artifacts/contracts/router/kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.json +0 -35
  344. package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +0 -4
  345. package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.json +0 -24
  346. package/build/artifacts/contracts/router/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.dbg.json +0 -4
  347. package/build/artifacts/contracts/router/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +0 -4
  348. package/build/artifacts/contracts/router/kyberswap/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +0 -4
  349. package/build/artifacts/contracts/router/kyberswap/interfaces/IHashflow.sol/IHashflow.dbg.json +0 -4
  350. package/build/artifacts/contracts/router/kyberswap/interfaces/IMetaAggregationRouter.sol/IMetaAggregationRouter.dbg.json +0 -4
  351. package/build/artifacts/contracts/router/kyberswap/interfaces/IMetaAggregationRouter.sol/IMetaAggregationRouter.json +0 -183
  352. package/build/artifacts/contracts/router/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +0 -4
  353. package/contracts/interfaces/IPActionSwapPTYT.sol +0 -31
  354. package/contracts/router/ActionSwapPTYT.sol +0 -108
  355. package/contracts/router/kyberswap/IAggregatorRouterHelper.sol +0 -10
  356. package/contracts/router/kyberswap/KyberSwapHelper.sol +0 -79
  357. package/contracts/router/kyberswap/interfaces/IMetaAggregationRouter.sol +0 -33
@@ -126,104 +126,6 @@
126
126
  "name": "MintSyFromToken",
127
127
  "type": "event"
128
128
  },
129
- {
130
- "anonymous": false,
131
- "inputs": [
132
- {
133
- "indexed": true,
134
- "internalType": "address",
135
- "name": "user",
136
- "type": "address"
137
- },
138
- {
139
- "indexed": false,
140
- "internalType": "address[]",
141
- "name": "sys",
142
- "type": "address[]"
143
- },
144
- {
145
- "indexed": false,
146
- "internalType": "address[]",
147
- "name": "yts",
148
- "type": "address[]"
149
- },
150
- {
151
- "indexed": false,
152
- "internalType": "address[]",
153
- "name": "markets",
154
- "type": "address[]"
155
- },
156
- {
157
- "indexed": false,
158
- "internalType": "uint256[][]",
159
- "name": "syRewards",
160
- "type": "uint256[][]"
161
- },
162
- {
163
- "indexed": false,
164
- "internalType": "uint256[]",
165
- "name": "ytInterests",
166
- "type": "uint256[]"
167
- },
168
- {
169
- "indexed": false,
170
- "internalType": "uint256[][]",
171
- "name": "ytRewards",
172
- "type": "uint256[][]"
173
- },
174
- {
175
- "indexed": false,
176
- "internalType": "uint256[][]",
177
- "name": "marketRewards",
178
- "type": "uint256[][]"
179
- }
180
- ],
181
- "name": "RedeemDueInterestAndRewards",
182
- "type": "event"
183
- },
184
- {
185
- "anonymous": false,
186
- "inputs": [
187
- {
188
- "indexed": true,
189
- "internalType": "address",
190
- "name": "user",
191
- "type": "address"
192
- },
193
- {
194
- "indexed": false,
195
- "internalType": "address[]",
196
- "name": "sys",
197
- "type": "address[]"
198
- },
199
- {
200
- "indexed": false,
201
- "internalType": "address[]",
202
- "name": "yts",
203
- "type": "address[]"
204
- },
205
- {
206
- "indexed": false,
207
- "internalType": "address[]",
208
- "name": "markets",
209
- "type": "address[]"
210
- },
211
- {
212
- "indexed": true,
213
- "internalType": "address",
214
- "name": "tokenOut",
215
- "type": "address"
216
- },
217
- {
218
- "indexed": false,
219
- "internalType": "uint256",
220
- "name": "netTokenOut",
221
- "type": "uint256"
222
- }
223
- ],
224
- "name": "RedeemDueInterestAndRewardsThenSwapAll",
225
- "type": "event"
226
- },
227
129
  {
228
130
  "anonymous": false,
229
131
  "inputs": [
@@ -422,13 +324,35 @@
422
324
  },
423
325
  {
424
326
  "internalType": "address",
425
- "name": "kyberRouter",
327
+ "name": "pendleSwap",
426
328
  "type": "address"
427
329
  },
428
330
  {
429
- "internalType": "bytes",
430
- "name": "kybercall",
431
- "type": "bytes"
331
+ "components": [
332
+ {
333
+ "internalType": "enum SwapType",
334
+ "name": "swapType",
335
+ "type": "uint8"
336
+ },
337
+ {
338
+ "internalType": "address",
339
+ "name": "extRouter",
340
+ "type": "address"
341
+ },
342
+ {
343
+ "internalType": "bytes",
344
+ "name": "extCalldata",
345
+ "type": "bytes"
346
+ },
347
+ {
348
+ "internalType": "bool",
349
+ "name": "needScale",
350
+ "type": "bool"
351
+ }
352
+ ],
353
+ "internalType": "struct SwapData",
354
+ "name": "swapData",
355
+ "type": "tuple"
432
356
  }
433
357
  ],
434
358
  "internalType": "struct TokenInput",
@@ -488,13 +412,35 @@
488
412
  },
489
413
  {
490
414
  "internalType": "address",
491
- "name": "kyberRouter",
415
+ "name": "pendleSwap",
492
416
  "type": "address"
493
417
  },
494
418
  {
495
- "internalType": "bytes",
496
- "name": "kybercall",
497
- "type": "bytes"
419
+ "components": [
420
+ {
421
+ "internalType": "enum SwapType",
422
+ "name": "swapType",
423
+ "type": "uint8"
424
+ },
425
+ {
426
+ "internalType": "address",
427
+ "name": "extRouter",
428
+ "type": "address"
429
+ },
430
+ {
431
+ "internalType": "bytes",
432
+ "name": "extCalldata",
433
+ "type": "bytes"
434
+ },
435
+ {
436
+ "internalType": "bool",
437
+ "name": "needScale",
438
+ "type": "bool"
439
+ }
440
+ ],
441
+ "internalType": "struct SwapData",
442
+ "name": "swapData",
443
+ "type": "tuple"
498
444
  }
499
445
  ],
500
446
  "internalType": "struct TokenInput",
@@ -537,116 +483,7 @@
537
483
  }
538
484
  ],
539
485
  "name": "redeemDueInterestAndRewards",
540
- "outputs": [
541
- {
542
- "internalType": "uint256[][]",
543
- "name": "syRewards",
544
- "type": "uint256[][]"
545
- },
546
- {
547
- "internalType": "uint256[]",
548
- "name": "ytInterests",
549
- "type": "uint256[]"
550
- },
551
- {
552
- "internalType": "uint256[][]",
553
- "name": "ytRewards",
554
- "type": "uint256[][]"
555
- },
556
- {
557
- "internalType": "uint256[][]",
558
- "name": "marketRewards",
559
- "type": "uint256[][]"
560
- }
561
- ],
562
- "stateMutability": "nonpayable",
563
- "type": "function"
564
- },
565
- {
566
- "inputs": [
567
- {
568
- "internalType": "address[]",
569
- "name": "sys",
570
- "type": "address[]"
571
- },
572
- {
573
- "components": [
574
- {
575
- "internalType": "address[]",
576
- "name": "yts",
577
- "type": "address[]"
578
- },
579
- {
580
- "internalType": "address[]",
581
- "name": "syAddrs",
582
- "type": "address[]"
583
- },
584
- {
585
- "internalType": "address[]",
586
- "name": "tokenRedeemSys",
587
- "type": "address[]"
588
- },
589
- {
590
- "internalType": "address[]",
591
- "name": "bulks",
592
- "type": "address[]"
593
- }
594
- ],
595
- "internalType": "struct IPActionMintRedeem.RouterYtRedeemStruct",
596
- "name": "dataYT",
597
- "type": "tuple"
598
- },
599
- {
600
- "internalType": "address[]",
601
- "name": "markets",
602
- "type": "address[]"
603
- },
604
- {
605
- "components": [
606
- {
607
- "internalType": "address[]",
608
- "name": "tokens",
609
- "type": "address[]"
610
- },
611
- {
612
- "internalType": "bytes[]",
613
- "name": "kybercalls",
614
- "type": "bytes[]"
615
- },
616
- {
617
- "internalType": "address",
618
- "name": "kyberRouter",
619
- "type": "address"
620
- },
621
- {
622
- "internalType": "address",
623
- "name": "outputToken",
624
- "type": "address"
625
- },
626
- {
627
- "internalType": "uint256",
628
- "name": "minTokenOut",
629
- "type": "uint256"
630
- }
631
- ],
632
- "internalType": "struct IPActionMintRedeem.RouterSwapAllStruct",
633
- "name": "dataSwap",
634
- "type": "tuple"
635
- }
636
- ],
637
- "name": "redeemDueInterestAndRewardsThenSwapAll",
638
- "outputs": [
639
- {
640
- "internalType": "uint256",
641
- "name": "netTokenOut",
642
- "type": "uint256"
643
- },
644
- {
645
- "internalType": "uint256[]",
646
- "name": "amountsSwapped",
647
- "type": "uint256[]"
648
- }
649
- ],
486
+ "outputs": [],
650
487
  "stateMutability": "nonpayable",
651
488
  "type": "function"
652
489
  },
@@ -725,13 +562,35 @@
725
562
  },
726
563
  {
727
564
  "internalType": "address",
728
- "name": "kyberRouter",
565
+ "name": "pendleSwap",
729
566
  "type": "address"
730
567
  },
731
568
  {
732
- "internalType": "bytes",
733
- "name": "kybercall",
734
- "type": "bytes"
569
+ "components": [
570
+ {
571
+ "internalType": "enum SwapType",
572
+ "name": "swapType",
573
+ "type": "uint8"
574
+ },
575
+ {
576
+ "internalType": "address",
577
+ "name": "extRouter",
578
+ "type": "address"
579
+ },
580
+ {
581
+ "internalType": "bytes",
582
+ "name": "extCalldata",
583
+ "type": "bytes"
584
+ },
585
+ {
586
+ "internalType": "bool",
587
+ "name": "needScale",
588
+ "type": "bool"
589
+ }
590
+ ],
591
+ "internalType": "struct SwapData",
592
+ "name": "swapData",
593
+ "type": "tuple"
735
594
  }
736
595
  ],
737
596
  "internalType": "struct TokenOutput",
@@ -791,13 +650,35 @@
791
650
  },
792
651
  {
793
652
  "internalType": "address",
794
- "name": "kyberRouter",
653
+ "name": "pendleSwap",
795
654
  "type": "address"
796
655
  },
797
656
  {
798
- "internalType": "bytes",
799
- "name": "kybercall",
800
- "type": "bytes"
657
+ "components": [
658
+ {
659
+ "internalType": "enum SwapType",
660
+ "name": "swapType",
661
+ "type": "uint8"
662
+ },
663
+ {
664
+ "internalType": "address",
665
+ "name": "extRouter",
666
+ "type": "address"
667
+ },
668
+ {
669
+ "internalType": "bytes",
670
+ "name": "extCalldata",
671
+ "type": "bytes"
672
+ },
673
+ {
674
+ "internalType": "bool",
675
+ "name": "needScale",
676
+ "type": "bool"
677
+ }
678
+ ],
679
+ "internalType": "struct SwapData",
680
+ "name": "swapData",
681
+ "type": "tuple"
801
682
  }
802
683
  ],
803
684
  "internalType": "struct TokenOutput",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/d69e41af484ea90333c32629bab9bd77.json"
3
+ "buildInfo": "../../../build-info/2f1017e73d00834d9200928c5bed9a06.json"
4
4
  }
@@ -6,25 +6,69 @@
6
6
  {
7
7
  "inputs": [
8
8
  {
9
- "internalType": "address",
10
- "name": "market",
11
- "type": "address"
12
- },
9
+ "components": [
10
+ {
11
+ "internalType": "address[]",
12
+ "name": "tokens",
13
+ "type": "address[]"
14
+ },
15
+ {
16
+ "internalType": "address",
17
+ "name": "spender",
18
+ "type": "address"
19
+ }
20
+ ],
21
+ "internalType": "struct IPActionMisc.MultiApproval[]",
22
+ "name": "",
23
+ "type": "tuple[]"
24
+ }
25
+ ],
26
+ "name": "approveInf",
27
+ "outputs": [],
28
+ "stateMutability": "nonpayable",
29
+ "type": "function"
30
+ },
31
+ {
32
+ "inputs": [
13
33
  {
14
- "internalType": "uint32",
15
- "name": "secondsAgo",
16
- "type": "uint32"
34
+ "components": [
35
+ {
36
+ "internalType": "bool",
37
+ "name": "allowFailure",
38
+ "type": "bool"
39
+ },
40
+ {
41
+ "internalType": "bytes",
42
+ "name": "callData",
43
+ "type": "bytes"
44
+ }
45
+ ],
46
+ "internalType": "struct IPActionMisc.Call3[]",
47
+ "name": "calls",
48
+ "type": "tuple[]"
17
49
  }
18
50
  ],
19
- "name": "consult",
51
+ "name": "batchExec",
20
52
  "outputs": [
21
53
  {
22
- "internalType": "uint96",
23
- "name": "lnImpliedRateMean",
24
- "type": "uint96"
54
+ "components": [
55
+ {
56
+ "internalType": "bool",
57
+ "name": "success",
58
+ "type": "bool"
59
+ },
60
+ {
61
+ "internalType": "bytes",
62
+ "name": "returnData",
63
+ "type": "bytes"
64
+ }
65
+ ],
66
+ "internalType": "struct IPActionMisc.Result[]",
67
+ "name": "returnData",
68
+ "type": "tuple[]"
25
69
  }
26
70
  ],
27
- "stateMutability": "view",
71
+ "stateMutability": "nonpayable",
28
72
  "type": "function"
29
73
  }
30
74
  ],
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/c92146a3f15d18e50194da9e3493e287.json"
3
+ "buildInfo": "../../../build-info/2f1017e73d00834d9200928c5bed9a06.json"
4
4
  }
@@ -163,13 +163,35 @@
163
163
  },
164
164
  {
165
165
  "internalType": "address",
166
- "name": "kyberRouter",
166
+ "name": "pendleSwap",
167
167
  "type": "address"
168
168
  },
169
169
  {
170
- "internalType": "bytes",
171
- "name": "kybercall",
172
- "type": "bytes"
170
+ "components": [
171
+ {
172
+ "internalType": "enum SwapType",
173
+ "name": "swapType",
174
+ "type": "uint8"
175
+ },
176
+ {
177
+ "internalType": "address",
178
+ "name": "extRouter",
179
+ "type": "address"
180
+ },
181
+ {
182
+ "internalType": "bytes",
183
+ "name": "extCalldata",
184
+ "type": "bytes"
185
+ },
186
+ {
187
+ "internalType": "bool",
188
+ "name": "needScale",
189
+ "type": "bool"
190
+ }
191
+ ],
192
+ "internalType": "struct SwapData",
193
+ "name": "swapData",
194
+ "type": "tuple"
173
195
  }
174
196
  ],
175
197
  "internalType": "struct TokenOutput",
@@ -337,13 +359,35 @@
337
359
  },
338
360
  {
339
361
  "internalType": "address",
340
- "name": "kyberRouter",
362
+ "name": "pendleSwap",
341
363
  "type": "address"
342
364
  },
343
365
  {
344
- "internalType": "bytes",
345
- "name": "kybercall",
346
- "type": "bytes"
366
+ "components": [
367
+ {
368
+ "internalType": "enum SwapType",
369
+ "name": "swapType",
370
+ "type": "uint8"
371
+ },
372
+ {
373
+ "internalType": "address",
374
+ "name": "extRouter",
375
+ "type": "address"
376
+ },
377
+ {
378
+ "internalType": "bytes",
379
+ "name": "extCalldata",
380
+ "type": "bytes"
381
+ },
382
+ {
383
+ "internalType": "bool",
384
+ "name": "needScale",
385
+ "type": "bool"
386
+ }
387
+ ],
388
+ "internalType": "struct SwapData",
389
+ "name": "swapData",
390
+ "type": "tuple"
347
391
  }
348
392
  ],
349
393
  "internalType": "struct TokenInput",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/c92146a3f15d18e50194da9e3493e287.json"
3
+ "buildInfo": "../../../build-info/2f1017e73d00834d9200928c5bed9a06.json"
4
4
  }