@pendle/core-v2 1.4.0-mainnet → 2.0.0-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 +222 -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
@@ -133,104 +133,6 @@ const _abi = [
133
133
  name: "MintSyFromToken",
134
134
  type: "event",
135
135
  },
136
- {
137
- anonymous: false,
138
- inputs: [
139
- {
140
- indexed: true,
141
- internalType: "address",
142
- name: "user",
143
- type: "address",
144
- },
145
- {
146
- indexed: false,
147
- internalType: "address[]",
148
- name: "sys",
149
- type: "address[]",
150
- },
151
- {
152
- indexed: false,
153
- internalType: "address[]",
154
- name: "yts",
155
- type: "address[]",
156
- },
157
- {
158
- indexed: false,
159
- internalType: "address[]",
160
- name: "markets",
161
- type: "address[]",
162
- },
163
- {
164
- indexed: false,
165
- internalType: "uint256[][]",
166
- name: "syRewards",
167
- type: "uint256[][]",
168
- },
169
- {
170
- indexed: false,
171
- internalType: "uint256[]",
172
- name: "ytInterests",
173
- type: "uint256[]",
174
- },
175
- {
176
- indexed: false,
177
- internalType: "uint256[][]",
178
- name: "ytRewards",
179
- type: "uint256[][]",
180
- },
181
- {
182
- indexed: false,
183
- internalType: "uint256[][]",
184
- name: "marketRewards",
185
- type: "uint256[][]",
186
- },
187
- ],
188
- name: "RedeemDueInterestAndRewards",
189
- type: "event",
190
- },
191
- {
192
- anonymous: false,
193
- inputs: [
194
- {
195
- indexed: true,
196
- internalType: "address",
197
- name: "user",
198
- type: "address",
199
- },
200
- {
201
- indexed: false,
202
- internalType: "address[]",
203
- name: "sys",
204
- type: "address[]",
205
- },
206
- {
207
- indexed: false,
208
- internalType: "address[]",
209
- name: "yts",
210
- type: "address[]",
211
- },
212
- {
213
- indexed: false,
214
- internalType: "address[]",
215
- name: "markets",
216
- type: "address[]",
217
- },
218
- {
219
- indexed: true,
220
- internalType: "address",
221
- name: "tokenOut",
222
- type: "address",
223
- },
224
- {
225
- indexed: false,
226
- internalType: "uint256",
227
- name: "netTokenOut",
228
- type: "uint256",
229
- },
230
- ],
231
- name: "RedeemDueInterestAndRewardsThenSwapAll",
232
- type: "event",
233
- },
234
136
  {
235
137
  anonymous: false,
236
138
  inputs: [
@@ -429,13 +331,35 @@ const _abi = [
429
331
  },
430
332
  {
431
333
  internalType: "address",
432
- name: "kyberRouter",
334
+ name: "pendleSwap",
433
335
  type: "address",
434
336
  },
435
337
  {
436
- internalType: "bytes",
437
- name: "kybercall",
438
- type: "bytes",
338
+ components: [
339
+ {
340
+ internalType: "enum SwapType",
341
+ name: "swapType",
342
+ type: "uint8",
343
+ },
344
+ {
345
+ internalType: "address",
346
+ name: "extRouter",
347
+ type: "address",
348
+ },
349
+ {
350
+ internalType: "bytes",
351
+ name: "extCalldata",
352
+ type: "bytes",
353
+ },
354
+ {
355
+ internalType: "bool",
356
+ name: "needScale",
357
+ type: "bool",
358
+ },
359
+ ],
360
+ internalType: "struct SwapData",
361
+ name: "swapData",
362
+ type: "tuple",
439
363
  },
440
364
  ],
441
365
  internalType: "struct TokenInput",
@@ -495,13 +419,35 @@ const _abi = [
495
419
  },
496
420
  {
497
421
  internalType: "address",
498
- name: "kyberRouter",
422
+ name: "pendleSwap",
499
423
  type: "address",
500
424
  },
501
425
  {
502
- internalType: "bytes",
503
- name: "kybercall",
504
- type: "bytes",
426
+ components: [
427
+ {
428
+ internalType: "enum SwapType",
429
+ name: "swapType",
430
+ type: "uint8",
431
+ },
432
+ {
433
+ internalType: "address",
434
+ name: "extRouter",
435
+ type: "address",
436
+ },
437
+ {
438
+ internalType: "bytes",
439
+ name: "extCalldata",
440
+ type: "bytes",
441
+ },
442
+ {
443
+ internalType: "bool",
444
+ name: "needScale",
445
+ type: "bool",
446
+ },
447
+ ],
448
+ internalType: "struct SwapData",
449
+ name: "swapData",
450
+ type: "tuple",
505
451
  },
506
452
  ],
507
453
  internalType: "struct TokenInput",
@@ -544,116 +490,7 @@ const _abi = [
544
490
  },
545
491
  ],
546
492
  name: "redeemDueInterestAndRewards",
547
- outputs: [
548
- {
549
- internalType: "uint256[][]",
550
- name: "syRewards",
551
- type: "uint256[][]",
552
- },
553
- {
554
- internalType: "uint256[]",
555
- name: "ytInterests",
556
- type: "uint256[]",
557
- },
558
- {
559
- internalType: "uint256[][]",
560
- name: "ytRewards",
561
- type: "uint256[][]",
562
- },
563
- {
564
- internalType: "uint256[][]",
565
- name: "marketRewards",
566
- type: "uint256[][]",
567
- },
568
- ],
569
- stateMutability: "nonpayable",
570
- type: "function",
571
- },
572
- {
573
- inputs: [
574
- {
575
- internalType: "address[]",
576
- name: "sys",
577
- type: "address[]",
578
- },
579
- {
580
- components: [
581
- {
582
- internalType: "address[]",
583
- name: "yts",
584
- type: "address[]",
585
- },
586
- {
587
- internalType: "address[]",
588
- name: "syAddrs",
589
- type: "address[]",
590
- },
591
- {
592
- internalType: "address[]",
593
- name: "tokenRedeemSys",
594
- type: "address[]",
595
- },
596
- {
597
- internalType: "address[]",
598
- name: "bulks",
599
- type: "address[]",
600
- },
601
- ],
602
- internalType: "struct IPActionMintRedeem.RouterYtRedeemStruct",
603
- name: "dataYT",
604
- type: "tuple",
605
- },
606
- {
607
- internalType: "address[]",
608
- name: "markets",
609
- type: "address[]",
610
- },
611
- {
612
- components: [
613
- {
614
- internalType: "address[]",
615
- name: "tokens",
616
- type: "address[]",
617
- },
618
- {
619
- internalType: "bytes[]",
620
- name: "kybercalls",
621
- type: "bytes[]",
622
- },
623
- {
624
- internalType: "address",
625
- name: "kyberRouter",
626
- type: "address",
627
- },
628
- {
629
- internalType: "address",
630
- name: "outputToken",
631
- type: "address",
632
- },
633
- {
634
- internalType: "uint256",
635
- name: "minTokenOut",
636
- type: "uint256",
637
- },
638
- ],
639
- internalType: "struct IPActionMintRedeem.RouterSwapAllStruct",
640
- name: "dataSwap",
641
- type: "tuple",
642
- },
643
- ],
644
- name: "redeemDueInterestAndRewardsThenSwapAll",
645
- outputs: [
646
- {
647
- internalType: "uint256",
648
- name: "netTokenOut",
649
- type: "uint256",
650
- },
651
- {
652
- internalType: "uint256[]",
653
- name: "amountsSwapped",
654
- type: "uint256[]",
655
- },
656
- ],
493
+ outputs: [],
657
494
  stateMutability: "nonpayable",
658
495
  type: "function",
659
496
  },
@@ -732,13 +569,35 @@ const _abi = [
732
569
  },
733
570
  {
734
571
  internalType: "address",
735
- name: "kyberRouter",
572
+ name: "pendleSwap",
736
573
  type: "address",
737
574
  },
738
575
  {
739
- internalType: "bytes",
740
- name: "kybercall",
741
- type: "bytes",
576
+ components: [
577
+ {
578
+ internalType: "enum SwapType",
579
+ name: "swapType",
580
+ type: "uint8",
581
+ },
582
+ {
583
+ internalType: "address",
584
+ name: "extRouter",
585
+ type: "address",
586
+ },
587
+ {
588
+ internalType: "bytes",
589
+ name: "extCalldata",
590
+ type: "bytes",
591
+ },
592
+ {
593
+ internalType: "bool",
594
+ name: "needScale",
595
+ type: "bool",
596
+ },
597
+ ],
598
+ internalType: "struct SwapData",
599
+ name: "swapData",
600
+ type: "tuple",
742
601
  },
743
602
  ],
744
603
  internalType: "struct TokenOutput",
@@ -798,13 +657,35 @@ const _abi = [
798
657
  },
799
658
  {
800
659
  internalType: "address",
801
- name: "kyberRouter",
660
+ name: "pendleSwap",
802
661
  type: "address",
803
662
  },
804
663
  {
805
- internalType: "bytes",
806
- name: "kybercall",
807
- type: "bytes",
664
+ components: [
665
+ {
666
+ internalType: "enum SwapType",
667
+ name: "swapType",
668
+ type: "uint8",
669
+ },
670
+ {
671
+ internalType: "address",
672
+ name: "extRouter",
673
+ type: "address",
674
+ },
675
+ {
676
+ internalType: "bytes",
677
+ name: "extCalldata",
678
+ type: "bytes",
679
+ },
680
+ {
681
+ internalType: "bool",
682
+ name: "needScale",
683
+ type: "bool",
684
+ },
685
+ ],
686
+ internalType: "struct SwapData",
687
+ name: "swapData",
688
+ type: "tuple",
808
689
  },
809
690
  ],
810
691
  internalType: "struct TokenOutput",
@@ -10,25 +10,69 @@ const _abi = [
10
10
  {
11
11
  inputs: [
12
12
  {
13
- internalType: "address",
14
- name: "market",
15
- type: "address",
13
+ components: [
14
+ {
15
+ internalType: "address[]",
16
+ name: "tokens",
17
+ type: "address[]",
18
+ },
19
+ {
20
+ internalType: "address",
21
+ name: "spender",
22
+ type: "address",
23
+ },
24
+ ],
25
+ internalType: "struct IPActionMisc.MultiApproval[]",
26
+ name: "",
27
+ type: "tuple[]",
16
28
  },
29
+ ],
30
+ name: "approveInf",
31
+ outputs: [],
32
+ stateMutability: "nonpayable",
33
+ type: "function",
34
+ },
35
+ {
36
+ inputs: [
17
37
  {
18
- internalType: "uint32",
19
- name: "secondsAgo",
20
- type: "uint32",
38
+ components: [
39
+ {
40
+ internalType: "bool",
41
+ name: "allowFailure",
42
+ type: "bool",
43
+ },
44
+ {
45
+ internalType: "bytes",
46
+ name: "callData",
47
+ type: "bytes",
48
+ },
49
+ ],
50
+ internalType: "struct IPActionMisc.Call3[]",
51
+ name: "calls",
52
+ type: "tuple[]",
21
53
  },
22
54
  ],
23
- name: "consult",
55
+ name: "batchExec",
24
56
  outputs: [
25
57
  {
26
- internalType: "uint96",
27
- name: "lnImpliedRateMean",
28
- type: "uint96",
58
+ components: [
59
+ {
60
+ internalType: "bool",
61
+ name: "success",
62
+ type: "bool",
63
+ },
64
+ {
65
+ internalType: "bytes",
66
+ name: "returnData",
67
+ type: "bytes",
68
+ },
69
+ ],
70
+ internalType: "struct IPActionMisc.Result[]",
71
+ name: "returnData",
72
+ type: "tuple[]",
29
73
  },
30
74
  ],
31
- stateMutability: "view",
75
+ stateMutability: "nonpayable",
32
76
  type: "function",
33
77
  },
34
78
  ];
@@ -170,13 +170,35 @@ const _abi = [
170
170
  },
171
171
  {
172
172
  internalType: "address",
173
- name: "kyberRouter",
173
+ name: "pendleSwap",
174
174
  type: "address",
175
175
  },
176
176
  {
177
- internalType: "bytes",
178
- name: "kybercall",
179
- type: "bytes",
177
+ components: [
178
+ {
179
+ internalType: "enum SwapType",
180
+ name: "swapType",
181
+ type: "uint8",
182
+ },
183
+ {
184
+ internalType: "address",
185
+ name: "extRouter",
186
+ type: "address",
187
+ },
188
+ {
189
+ internalType: "bytes",
190
+ name: "extCalldata",
191
+ type: "bytes",
192
+ },
193
+ {
194
+ internalType: "bool",
195
+ name: "needScale",
196
+ type: "bool",
197
+ },
198
+ ],
199
+ internalType: "struct SwapData",
200
+ name: "swapData",
201
+ type: "tuple",
180
202
  },
181
203
  ],
182
204
  internalType: "struct TokenOutput",
@@ -344,13 +366,35 @@ const _abi = [
344
366
  },
345
367
  {
346
368
  internalType: "address",
347
- name: "kyberRouter",
369
+ name: "pendleSwap",
348
370
  type: "address",
349
371
  },
350
372
  {
351
- internalType: "bytes",
352
- name: "kybercall",
353
- type: "bytes",
373
+ components: [
374
+ {
375
+ internalType: "enum SwapType",
376
+ name: "swapType",
377
+ type: "uint8",
378
+ },
379
+ {
380
+ internalType: "address",
381
+ name: "extRouter",
382
+ type: "address",
383
+ },
384
+ {
385
+ internalType: "bytes",
386
+ name: "extCalldata",
387
+ type: "bytes",
388
+ },
389
+ {
390
+ internalType: "bool",
391
+ name: "needScale",
392
+ type: "bool",
393
+ },
394
+ ],
395
+ internalType: "struct SwapData",
396
+ name: "swapData",
397
+ type: "tuple",
354
398
  },
355
399
  ],
356
400
  internalType: "struct TokenInput",