@pendle/core-v2 2.2.0-mainnet → 2.3.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 (449) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  10. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  12. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  20. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  21. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  22. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  23. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  24. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  25. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  27. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  29. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSY.sol/PendleAuraWethAnkrethSY.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSY.sol/PendleAuraWethAnkrethSY.json +2 -2
  38. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol/GLPPreviewHelper.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  59. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  62. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.dbg.json +1 -1
  64. package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
  66. package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
  67. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  68. package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
  69. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  70. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
  71. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
  72. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +1 -1
  73. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  74. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  75. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  76. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  77. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
  78. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  79. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  80. package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.dbg.json +1 -1
  87. package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +1 -1
  92. package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.dbg.json +1 -1
  94. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +1 -1
  96. package/build/artifacts/contracts/interfaces/Curve/ITriCrvPool.sol/ITriCrvPool.dbg.json +1 -1
  97. package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.dbg.json +1 -1
  98. package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.dbg.json +1 -1
  99. package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.dbg.json +1 -1
  100. package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.dbg.json +1 -1
  101. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
  102. package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
  103. package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
  104. package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
  105. package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.dbg.json +1 -1
  106. package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.dbg.json +1 -1
  107. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
  108. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  109. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/ILooksFeeSharing.sol/ILooksFeeSharing.dbg.json +1 -1
  111. package/build/artifacts/contracts/interfaces/ILooksStaking.sol/ILooksStaking.dbg.json +1 -1
  112. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  113. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  115. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  117. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +1 -1
  119. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  120. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  121. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
  123. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IPBulkSellerFactory.sol/IPBulkSellerFactory.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPBulkSellerSYCallback.sol/IPBulkSellerCallback.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  128. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  130. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
  131. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  132. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
  133. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  135. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  136. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
  137. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  138. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  139. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  140. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  141. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  142. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  143. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  144. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  145. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  146. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
  147. package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
  148. package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
  149. package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
  150. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  151. package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
  152. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  153. package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +1 -1
  154. package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +1 -1
  155. package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
  156. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  157. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  158. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
  159. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  160. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
  161. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  162. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
  163. package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.dbg.json +1 -1
  164. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  165. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  166. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  167. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  168. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  169. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  170. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  171. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  172. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  173. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
  174. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  175. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  176. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  177. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  178. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  179. package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
  180. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  181. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  182. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  183. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  184. package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.dbg.json +1 -1
  185. package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +1 -1
  186. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  187. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapArbitrum.sol/PendleSwapArbitrum.dbg.json +4 -0
  188. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapArbitrum.sol/PendleSwapArbitrum.json +72 -0
  189. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapEthereum.sol/PendleSwapEthereum.dbg.json +4 -0
  190. package/build/artifacts/contracts/router/swap-aggregator/{PendleSwapAggregator.sol/PendleSwapAggregator.json → PendleSwapEthereum.sol/PendleSwapEthereum.json} +4 -4
  191. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +4 -0
  192. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{interfaces → arbitrum}/IAggregationExecutor.sol/IAggregationExecutor.json +1 -1
  193. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper1.sol/IExecutorHelper1.dbg.json +4 -0
  194. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper1.sol/IExecutorHelper1.json +388 -0
  195. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper2.sol/IExecutorHelper2.dbg.json +4 -0
  196. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper2.sol/IExecutorHelper2.json +40 -0
  197. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IHashflow.sol/IHashflow.dbg.json +4 -0
  198. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{interfaces → arbitrum}/IHashflow.sol/IHashflow.json +1 -1
  199. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +4 -0
  200. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{interfaces → arbitrum}/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +1 -1
  201. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/KyberHelperArbitrum.sol/KyberHelperArbitrum.dbg.json +4 -0
  202. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{KyberAggregationRouterHelper.sol/KyberAggregationRouterHelper.json → arbitrum/KyberHelperArbitrum.sol/KyberHelperArbitrum.json} +2 -2
  203. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/ScaleDataHelperArbitrum.sol/ScaleDataHelperArbitrum.dbg.json +4 -0
  204. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/ScaleDataHelperArbitrum.sol/ScaleDataHelperArbitrum.json +10 -0
  205. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +4 -0
  206. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IAggregationExecutor.sol/IAggregationExecutor.json +65 -0
  207. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +4 -0
  208. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/{interfaces → ethereum}/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.json +1 -1
  209. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IHashflow.sol/IHashflow.dbg.json +4 -0
  210. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IHashflow.sol/IHashflow.json +101 -0
  211. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +4 -0
  212. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +215 -0
  213. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/KyberHelperEthereum.sol/KyberHelperEthereum.dbg.json +4 -0
  214. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/KyberHelperEthereum.sol/KyberHelperEthereum.json +10 -0
  215. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/ScaleDataHelperEthereum.sol/ScaleDataHelperEthereum.dbg.json +4 -0
  216. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/ScaleDataHelperEthereum.sol/ScaleDataHelperEthereum.json +10 -0
  217. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSY.sol +4 -3
  218. package/contracts/router/ActionAddRemoveLiq.sol +0 -1
  219. package/contracts/router/swap-aggregator/{PendleSwapAggregator.sol → PendleSwapArbitrum.sol} +3 -3
  220. package/contracts/router/swap-aggregator/PendleSwapEthereum.sol +42 -0
  221. package/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper1.sol +195 -0
  222. package/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper2.sol +10 -0
  223. package/contracts/router/swap-aggregator/kyberswap/arbitrum/IMetaAggregationRouterV2.sol +41 -0
  224. package/contracts/router/swap-aggregator/kyberswap/arbitrum/KyberHelperArbitrum.sol +200 -0
  225. package/contracts/router/swap-aggregator/kyberswap/arbitrum/ScaleDataHelperArbitrum.sol +135 -0
  226. package/contracts/router/swap-aggregator/kyberswap/ethereum/IAggregationExecutor.sol +17 -0
  227. package/contracts/router/swap-aggregator/kyberswap/ethereum/IHashflow.sol +30 -0
  228. package/contracts/router/swap-aggregator/kyberswap/{KyberAggregationRouterHelper.sol → ethereum/KyberHelperEthereum.sol} +16 -28
  229. package/contracts/router/swap-aggregator/kyberswap/{ScaleDataHelperEthereum1.sol → ethereum/ScaleDataHelperEthereum.sol} +2 -2
  230. package/deployments/1-markets/BALANCER-LP-AURA-ANKRETH-WETH-MARCH-28-2024.json +11 -0
  231. package/deployments/42161-core.json +1 -1
  232. package/package.json +1 -1
  233. package/typechain-types/AccessControl.ts +360 -0
  234. package/typechain-types/ActionBaseMintRedeem.ts +87 -0
  235. package/typechain-types/ActionCallback.ts +134 -0
  236. package/typechain-types/ActionCore.ts +1758 -0
  237. package/typechain-types/ActionSCYAndPTBase.ts +87 -0
  238. package/typechain-types/ActionSCYAndPYBase.ts +87 -0
  239. package/typechain-types/ActionSCYAndYTBase.ts +87 -0
  240. package/typechain-types/ActionSwapPTYT.ts +237 -0
  241. package/typechain-types/ActionYT.ts +509 -0
  242. package/typechain-types/AggregationRouterHelper.ts +392 -0
  243. package/typechain-types/BaseSplitCodeFactory.ts +118 -0
  244. package/typechain-types/BoringOwnable.ts +194 -0
  245. package/typechain-types/BoringOwnableData.ts +100 -0
  246. package/typechain-types/BribeDistributor.ts +363 -0
  247. package/typechain-types/CelerReceiverUpg.ts +372 -0
  248. package/typechain-types/CelerSenderUpg.ts +321 -0
  249. package/typechain-types/Curve3CrvPoolHelper.ts +236 -0
  250. package/typechain-types/CurveFraxUsdcPoolHelper.ts +158 -0
  251. package/typechain-types/CurveUsdd3CrvPoolHelper.ts +184 -0
  252. package/typechain-types/DistributorBase.ts +363 -0
  253. package/typechain-types/ERC165.ts +102 -0
  254. package/typechain-types/ERC1967UpgradeUpgradeable.ts +97 -0
  255. package/typechain-types/EpochResultManager.ts +261 -0
  256. package/typechain-types/FeeDistributor.ts +416 -0
  257. package/typechain-types/FeeDistributorAbstract.ts +240 -0
  258. package/typechain-types/FeeDistributorVePendle.ts +81 -0
  259. package/typechain-types/FeeDistributorVoting.ts +272 -0
  260. package/typechain-types/FeeDistributorVotingFactory.ts +293 -0
  261. package/typechain-types/GMXPreviewHelper.ts +121 -0
  262. package/typechain-types/IAccessControl.ts +305 -0
  263. package/typechain-types/IAggregationRouterHelper.ts +108 -0
  264. package/typechain-types/IBeaconUpgradeable.ts +87 -0
  265. package/typechain-types/ICelerMessageBus.ts +134 -0
  266. package/typechain-types/ICelerMessageReceiverApp.ts +120 -0
  267. package/typechain-types/IERC165.ts +102 -0
  268. package/typechain-types/IERC1822ProxiableUpgradeable.ts +87 -0
  269. package/typechain-types/IERC20Upgradeable.ts +300 -0
  270. package/typechain-types/IExecutorHelper1.ts +643 -0
  271. package/typechain-types/IExecutorHelper2.ts +115 -0
  272. package/typechain-types/IKyberSwapAggregationRouterHelper.ts +109 -0
  273. package/typechain-types/IMetaAggregationRouter.ts +213 -0
  274. package/typechain-types/IMultihopRouter.ts +209 -0
  275. package/typechain-types/IMultihopRouterEthereum.ts +209 -0
  276. package/typechain-types/IPActionCore.ts +1739 -0
  277. package/typechain-types/IPActionSwapPTYT.ts +237 -0
  278. package/typechain-types/IPActionYT.ts +490 -0
  279. package/typechain-types/IPBatchSeller.ts +234 -0
  280. package/typechain-types/IPFeeDistributorFactory.ts +101 -0
  281. package/typechain-types/IPVotingControllerStorage.ts +169 -0
  282. package/typechain-types/IPVotingEscrow.ts +344 -0
  283. package/typechain-types/IStargateLP.ts +306 -0
  284. package/typechain-types/IStargateStaking.ts +232 -0
  285. package/typechain-types/ISuperComposableYield.ts +895 -0
  286. package/typechain-types/ISwapAggregator.ts +124 -0
  287. package/typechain-types/ImplicitSwapfeeContract.ts +149 -0
  288. package/typechain-types/InputScalingHelper.ts +108 -0
  289. package/typechain-types/KyberSwapHelper.ts +87 -0
  290. package/typechain-types/OwnableUpgradeable.ts +165 -0
  291. package/typechain-types/Pendle3CrvAndTokenSCY.ts +1215 -0
  292. package/typechain-types/Pendle3CrvAndTokenSY.ts +1243 -0
  293. package/typechain-types/Pendle3CrvHelper.ts +133 -0
  294. package/typechain-types/Pendle3CrvTokenSCY.ts +1150 -0
  295. package/typechain-types/PendleAaveV3SCY.ts +1088 -0
  296. package/typechain-types/PendleApeStakingSY.ts +1135 -0
  297. package/typechain-types/PendleBatchSeller.ts +648 -0
  298. package/typechain-types/PendleConvex2TokensSY.ts +1215 -0
  299. package/typechain-types/PendleConvexCurveLP2PoolSCY.ts +1215 -0
  300. package/typechain-types/PendleConvexCurveLP3PoolSCY.ts +1269 -0
  301. package/typechain-types/PendleConvexCurveLP4PoolSCY.ts +1288 -0
  302. package/typechain-types/PendleConvexCurveLPSCY.ts +1189 -0
  303. package/typechain-types/PendleCvxCRVSCY.ts +1104 -0
  304. package/typechain-types/PendleERC4626SCY.ts +950 -0
  305. package/typechain-types/PendleEulerSCY.ts +965 -0
  306. package/typechain-types/PendleFeeDistributorAbstract.ts +289 -0
  307. package/typechain-types/PendleFeeDistributorFactory.ts +591 -0
  308. package/typechain-types/PendleFeeDistributorVoting.ts +321 -0
  309. package/typechain-types/PendleFeeDistributorVotingFactory.ts +294 -0
  310. package/typechain-types/PendleGovernanceManager.ts +187 -0
  311. package/typechain-types/PendleLooksStaking.ts +1052 -0
  312. package/typechain-types/PendlePtOracleBase.ts +139 -0
  313. package/typechain-types/PendleQiSAvaxSCY.ts +1098 -0
  314. package/typechain-types/PendleQiTokenSCY.ts +1166 -0
  315. package/typechain-types/PendleSAvaxSCY.ts +962 -0
  316. package/typechain-types/PendleSJoeSCY.ts +1053 -0
  317. package/typechain-types/PendleStargateLP.ts +1442 -0
  318. package/typechain-types/PendleStargateSCY.ts +1135 -0
  319. package/typechain-types/PendleSwapArbitrum.ts +126 -0
  320. package/typechain-types/PendleSwapEthereum.ts +126 -0
  321. package/typechain-types/PendleWstEthSCY.ts +1040 -0
  322. package/typechain-types/PendleYearnVaultSCY.ts +963 -0
  323. package/typechain-types/PermissionsV2Upg.ts +87 -0
  324. package/typechain-types/PtAMMArb.ts +587 -0
  325. package/typechain-types/SCYBase.ts +1001 -0
  326. package/typechain-types/SCYBaseWithDynamicRewards.ts +1063 -0
  327. package/typechain-types/SCYBaseWithRewards.ts +1094 -0
  328. package/typechain-types/SSTORE2DeployerContract.ts +242 -0
  329. package/typechain-types/SYBaseAutoCompound.ts +1203 -0
  330. package/typechain-types/StEthHelper.ts +107 -0
  331. package/typechain-types/SwapAggregator.ts +406 -0
  332. package/typechain-types/factories/AccessControl__factory.ts +227 -0
  333. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  334. package/typechain-types/factories/ActionBaseMintRedeem__factory.ts +43 -0
  335. package/typechain-types/factories/ActionCallback__factory.ts +223 -0
  336. package/typechain-types/factories/ActionCore__factory.ts +1863 -0
  337. package/typechain-types/factories/ActionSCYAndPTBase__factory.ts +39 -0
  338. package/typechain-types/factories/ActionSCYAndPYBase__factory.ts +39 -0
  339. package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +39 -0
  340. package/typechain-types/factories/ActionSwapPTYT__factory.ts +396 -0
  341. package/typechain-types/factories/ActionYT__factory.ts +499 -0
  342. package/typechain-types/factories/AggregationRouterHelper__factory.ts +281 -0
  343. package/typechain-types/factories/BaseSplitCodeFactory__factory.ts +102 -0
  344. package/typechain-types/factories/BoringOwnableData__factory.ts +90 -0
  345. package/typechain-types/factories/BoringOwnable__factory.ts +141 -0
  346. package/typechain-types/factories/BribeDistributor__factory.ts +303 -0
  347. package/typechain-types/factories/CelerReceiverUpg__factory.ts +205 -0
  348. package/typechain-types/factories/CelerSenderUpg__factory.ts +163 -0
  349. package/typechain-types/factories/Curve3CrvPoolHelper__factory.ts +220 -0
  350. package/typechain-types/factories/CurveFraxUsdcPoolHelper__factory.ts +146 -0
  351. package/typechain-types/factories/CurveUsdd3CrvPoolHelper__factory.ts +172 -0
  352. package/typechain-types/factories/DistributorBase__factory.ts +249 -0
  353. package/typechain-types/factories/ERC165__factory.ts +39 -0
  354. package/typechain-types/factories/ERC1967UpgradeUpgradeable__factory.ts +75 -0
  355. package/typechain-types/factories/EpochResultManager__factory.ts +146 -0
  356. package/typechain-types/factories/FeeDistributorAbstract__factory.ts +127 -0
  357. package/typechain-types/factories/FeeDistributorVePendle__factory.ts +97 -0
  358. package/typechain-types/factories/FeeDistributorVotingFactory__factory.ts +211 -0
  359. package/typechain-types/factories/FeeDistributorVoting__factory.ts +219 -0
  360. package/typechain-types/factories/FeeDistributor__factory.ts +339 -0
  361. package/typechain-types/factories/GMXPreviewHelper__factory.ts +65 -0
  362. package/typechain-types/factories/IAccessControl__factory.ts +198 -0
  363. package/typechain-types/factories/IAggregationRouterHelper__factory.ts +54 -0
  364. package/typechain-types/factories/IBeaconUpgradeable__factory.ts +39 -0
  365. package/typechain-types/factories/ICelerMessageBus__factory.ts +68 -0
  366. package/typechain-types/factories/ICelerMessageReceiverApp__factory.ts +64 -0
  367. package/typechain-types/factories/IERC165__factory.ts +42 -0
  368. package/typechain-types/factories/IERC1822ProxiableUpgradeable__factory.ts +43 -0
  369. package/typechain-types/factories/IERC20Upgradeable__factory.ts +209 -0
  370. package/typechain-types/factories/IExecutorHelper1__factory.ts +403 -0
  371. package/typechain-types/factories/IExecutorHelper2__factory.ts +55 -0
  372. package/typechain-types/factories/IKyberSwapAggregationRouterHelper__factory.ts +56 -0
  373. package/typechain-types/factories/IMetaAggregationRouter__factory.ts +202 -0
  374. package/typechain-types/factories/IMultihopRouterEthereum__factory.ts +155 -0
  375. package/typechain-types/factories/IMultihopRouter__factory.ts +151 -0
  376. package/typechain-types/factories/IPActionCore__factory.ts +1784 -0
  377. package/typechain-types/factories/IPActionSwapPTYT__factory.ts +205 -0
  378. package/typechain-types/factories/IPActionYT__factory.ts +435 -0
  379. package/typechain-types/factories/IPBatchSeller__factory.ts +132 -0
  380. package/typechain-types/factories/IPFeeDistributorFactory__factory.ts +86 -0
  381. package/typechain-types/factories/IPVotingControllerStorage__factory.ts +107 -0
  382. package/typechain-types/factories/IPVotingEscrow__factory.ts +250 -0
  383. package/typechain-types/factories/IStargateLP__factory.ts +212 -0
  384. package/typechain-types/factories/IStargateStaking__factory.ts +145 -0
  385. package/typechain-types/factories/ISuperComposableYield__factory.ts +662 -0
  386. package/typechain-types/factories/ISwapAggregator__factory.ts +66 -0
  387. package/typechain-types/factories/ImplicitSwapfeeContract__factory.ts +239 -0
  388. package/typechain-types/factories/InputScalingHelper__factory.ts +88 -0
  389. package/typechain-types/factories/KyberSwapHelper__factory.ts +39 -0
  390. package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
  391. package/typechain-types/factories/OwnableUpgradeable__factory.ts +78 -0
  392. package/typechain-types/factories/Pendle3CrvAndTokenSCY__factory.ts +1130 -0
  393. package/typechain-types/factories/Pendle3CrvAndTokenSY__factory.ts +1106 -0
  394. package/typechain-types/factories/Pendle3CrvHelper__factory.ts +129 -0
  395. package/typechain-types/factories/Pendle3CrvTokenSCY__factory.ts +996 -0
  396. package/typechain-types/factories/PendleAaveV3SCY__factory.ts +874 -0
  397. package/typechain-types/factories/PendleApeStakingSY__factory.ts +981 -0
  398. package/typechain-types/factories/PendleAuraWethAnkrethSY__factory.ts +1 -1
  399. package/typechain-types/factories/PendleBatchSeller__factory.ts +480 -0
  400. package/typechain-types/factories/PendleConvex2TokensSY__factory.ts +1093 -0
  401. package/typechain-types/factories/PendleConvexCurveLP2PoolSCY__factory.ts +1125 -0
  402. package/typechain-types/factories/PendleConvexCurveLP3PoolSCY__factory.ts +1067 -0
  403. package/typechain-types/factories/PendleConvexCurveLP4PoolSCY__factory.ts +1080 -0
  404. package/typechain-types/factories/PendleConvexCurveLPSCY__factory.ts +967 -0
  405. package/typechain-types/factories/PendleCvxCRVSCY__factory.ts +910 -0
  406. package/typechain-types/factories/PendleERC4626SCY__factory.ts +774 -0
  407. package/typechain-types/factories/PendleEulerSCY__factory.ts +805 -0
  408. package/typechain-types/factories/PendleFeeDistributorAbstract__factory.ts +183 -0
  409. package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +485 -0
  410. package/typechain-types/factories/PendleFeeDistributorVotingFactory__factory.ts +213 -0
  411. package/typechain-types/factories/PendleFeeDistributorVoting__factory.ts +275 -0
  412. package/typechain-types/factories/PendleGovernanceManager__factory.ts +149 -0
  413. package/typechain-types/factories/PendleLooksStaking__factory.ts +933 -0
  414. package/typechain-types/factories/PendlePtOracleBase__factory.ts +78 -0
  415. package/typechain-types/factories/PendleQiSAvaxSCY__factory.ts +917 -0
  416. package/typechain-types/factories/PendleQiTokenSCY__factory.ts +1095 -0
  417. package/typechain-types/factories/PendleSAvaxSCY__factory.ts +796 -0
  418. package/typechain-types/factories/PendleSJoeSCY__factory.ts +845 -0
  419. package/typechain-types/factories/PendleStargateLP__factory.ts +1241 -0
  420. package/typechain-types/factories/PendleStargateSCY__factory.ts +952 -0
  421. package/typechain-types/factories/PendleSwapAggregator__factory.ts +1 -1
  422. package/typechain-types/factories/PendleSwapArbitrum__factory.ts +125 -0
  423. package/typechain-types/factories/PendleSwapEthereum__factory.ts +125 -0
  424. package/typechain-types/factories/PendleWstEthSCY__factory.ts +924 -0
  425. package/typechain-types/factories/PendleYearnVaultSCY__factory.ts +787 -0
  426. package/typechain-types/factories/PermissionsV2Upg__factory.ts +39 -0
  427. package/typechain-types/factories/PtAMMArb__factory.ts +525 -0
  428. package/typechain-types/factories/RouterStatic__factory.ts +1 -1
  429. package/typechain-types/factories/SCYBaseWithDynamicRewards__factory.ts +775 -0
  430. package/typechain-types/factories/SCYBaseWithRewards__factory.ts +867 -0
  431. package/typechain-types/factories/SCYBase__factory.ts +798 -0
  432. package/typechain-types/factories/SSTORE2DeployerContract__factory.ts +191 -0
  433. package/typechain-types/factories/SYBaseAutoCompound__factory.ts +942 -0
  434. package/typechain-types/factories/StEthHelper__factory.ts +62 -0
  435. package/typechain-types/factories/SwapAggregator__factory.ts +309 -0
  436. package/typechain-types/hardhat.d.ts +162 -171
  437. package/typechain-types/index.ts +20 -40
  438. package/build/artifacts/contracts/router/swap-aggregator/PendleSwapAggregator.sol/PendleSwapAggregator.dbg.json +0 -4
  439. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol/KyberAggregationRouterHelper.dbg.json +0 -4
  440. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.dbg.json +0 -4
  441. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.json +0 -10
  442. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +0 -4
  443. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +0 -4
  444. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IHashflow.sol/IHashflow.dbg.json +0 -4
  445. package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +0 -4
  446. /package/contracts/router/swap-aggregator/kyberswap/{interfaces → arbitrum}/IAggregationExecutor.sol +0 -0
  447. /package/contracts/router/swap-aggregator/kyberswap/{interfaces → arbitrum}/IHashflow.sol +0 -0
  448. /package/contracts/router/swap-aggregator/kyberswap/{interfaces → ethereum}/IExecutorHelperEthereum1.sol +0 -0
  449. /package/contracts/router/swap-aggregator/kyberswap/{interfaces → ethereum}/IMetaAggregationRouterV2.sol +0 -0
@@ -0,0 +1,101 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IHashflow",
4
+ "sourceName": "contracts/router/swap-aggregator/kyberswap/ethereum/IHashflow.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "components": [
10
+ {
11
+ "internalType": "enum IHashflow.RFQType",
12
+ "name": "rfqType",
13
+ "type": "uint8"
14
+ },
15
+ {
16
+ "internalType": "address",
17
+ "name": "pool",
18
+ "type": "address"
19
+ },
20
+ {
21
+ "internalType": "address",
22
+ "name": "eoa",
23
+ "type": "address"
24
+ },
25
+ {
26
+ "internalType": "address",
27
+ "name": "trader",
28
+ "type": "address"
29
+ },
30
+ {
31
+ "internalType": "address",
32
+ "name": "effectiveTrader",
33
+ "type": "address"
34
+ },
35
+ {
36
+ "internalType": "address",
37
+ "name": "baseToken",
38
+ "type": "address"
39
+ },
40
+ {
41
+ "internalType": "address",
42
+ "name": "quoteToken",
43
+ "type": "address"
44
+ },
45
+ {
46
+ "internalType": "uint256",
47
+ "name": "effectiveBaseTokenAmount",
48
+ "type": "uint256"
49
+ },
50
+ {
51
+ "internalType": "uint256",
52
+ "name": "maxBaseTokenAmount",
53
+ "type": "uint256"
54
+ },
55
+ {
56
+ "internalType": "uint256",
57
+ "name": "maxQuoteTokenAmount",
58
+ "type": "uint256"
59
+ },
60
+ {
61
+ "internalType": "uint256",
62
+ "name": "fees",
63
+ "type": "uint256"
64
+ },
65
+ {
66
+ "internalType": "uint256",
67
+ "name": "quoteExpiry",
68
+ "type": "uint256"
69
+ },
70
+ {
71
+ "internalType": "uint256",
72
+ "name": "nonce",
73
+ "type": "uint256"
74
+ },
75
+ {
76
+ "internalType": "bytes32",
77
+ "name": "txid",
78
+ "type": "bytes32"
79
+ },
80
+ {
81
+ "internalType": "bytes",
82
+ "name": "signedQuote",
83
+ "type": "bytes"
84
+ }
85
+ ],
86
+ "internalType": "struct IHashflow.Quote",
87
+ "name": "quote",
88
+ "type": "tuple"
89
+ }
90
+ ],
91
+ "name": "tradeSingleHop",
92
+ "outputs": [],
93
+ "stateMutability": "payable",
94
+ "type": "function"
95
+ }
96
+ ],
97
+ "bytecode": "0x",
98
+ "deployedBytecode": "0x",
99
+ "linkReferences": {},
100
+ "deployedLinkReferences": {}
101
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../../../build-info/92d54f9b76a0207ec4375fc6c12319a9.json"
4
+ }
@@ -0,0 +1,215 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IMetaAggregationRouterV2",
4
+ "sourceName": "contracts/router/swap-aggregator/kyberswap/ethereum/IMetaAggregationRouterV2.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "components": [
10
+ {
11
+ "internalType": "address",
12
+ "name": "callTarget",
13
+ "type": "address"
14
+ },
15
+ {
16
+ "internalType": "address",
17
+ "name": "approveTarget",
18
+ "type": "address"
19
+ },
20
+ {
21
+ "internalType": "bytes",
22
+ "name": "targetData",
23
+ "type": "bytes"
24
+ },
25
+ {
26
+ "components": [
27
+ {
28
+ "internalType": "contract IERC20",
29
+ "name": "srcToken",
30
+ "type": "address"
31
+ },
32
+ {
33
+ "internalType": "contract IERC20",
34
+ "name": "dstToken",
35
+ "type": "address"
36
+ },
37
+ {
38
+ "internalType": "address[]",
39
+ "name": "srcReceivers",
40
+ "type": "address[]"
41
+ },
42
+ {
43
+ "internalType": "uint256[]",
44
+ "name": "srcAmounts",
45
+ "type": "uint256[]"
46
+ },
47
+ {
48
+ "internalType": "address[]",
49
+ "name": "feeReceivers",
50
+ "type": "address[]"
51
+ },
52
+ {
53
+ "internalType": "uint256[]",
54
+ "name": "feeAmounts",
55
+ "type": "uint256[]"
56
+ },
57
+ {
58
+ "internalType": "address",
59
+ "name": "dstReceiver",
60
+ "type": "address"
61
+ },
62
+ {
63
+ "internalType": "uint256",
64
+ "name": "amount",
65
+ "type": "uint256"
66
+ },
67
+ {
68
+ "internalType": "uint256",
69
+ "name": "minReturnAmount",
70
+ "type": "uint256"
71
+ },
72
+ {
73
+ "internalType": "uint256",
74
+ "name": "flags",
75
+ "type": "uint256"
76
+ },
77
+ {
78
+ "internalType": "bytes",
79
+ "name": "permit",
80
+ "type": "bytes"
81
+ }
82
+ ],
83
+ "internalType": "struct IMetaAggregationRouterV2.SwapDescriptionV2",
84
+ "name": "desc",
85
+ "type": "tuple"
86
+ },
87
+ {
88
+ "internalType": "bytes",
89
+ "name": "clientData",
90
+ "type": "bytes"
91
+ }
92
+ ],
93
+ "internalType": "struct IMetaAggregationRouterV2.SwapExecutionParams",
94
+ "name": "execution",
95
+ "type": "tuple"
96
+ }
97
+ ],
98
+ "name": "swap",
99
+ "outputs": [
100
+ {
101
+ "internalType": "uint256",
102
+ "name": "",
103
+ "type": "uint256"
104
+ },
105
+ {
106
+ "internalType": "uint256",
107
+ "name": "",
108
+ "type": "uint256"
109
+ }
110
+ ],
111
+ "stateMutability": "payable",
112
+ "type": "function"
113
+ },
114
+ {
115
+ "inputs": [
116
+ {
117
+ "internalType": "contract IAggregationExecutor",
118
+ "name": "caller",
119
+ "type": "address"
120
+ },
121
+ {
122
+ "components": [
123
+ {
124
+ "internalType": "contract IERC20",
125
+ "name": "srcToken",
126
+ "type": "address"
127
+ },
128
+ {
129
+ "internalType": "contract IERC20",
130
+ "name": "dstToken",
131
+ "type": "address"
132
+ },
133
+ {
134
+ "internalType": "address[]",
135
+ "name": "srcReceivers",
136
+ "type": "address[]"
137
+ },
138
+ {
139
+ "internalType": "uint256[]",
140
+ "name": "srcAmounts",
141
+ "type": "uint256[]"
142
+ },
143
+ {
144
+ "internalType": "address[]",
145
+ "name": "feeReceivers",
146
+ "type": "address[]"
147
+ },
148
+ {
149
+ "internalType": "uint256[]",
150
+ "name": "feeAmounts",
151
+ "type": "uint256[]"
152
+ },
153
+ {
154
+ "internalType": "address",
155
+ "name": "dstReceiver",
156
+ "type": "address"
157
+ },
158
+ {
159
+ "internalType": "uint256",
160
+ "name": "amount",
161
+ "type": "uint256"
162
+ },
163
+ {
164
+ "internalType": "uint256",
165
+ "name": "minReturnAmount",
166
+ "type": "uint256"
167
+ },
168
+ {
169
+ "internalType": "uint256",
170
+ "name": "flags",
171
+ "type": "uint256"
172
+ },
173
+ {
174
+ "internalType": "bytes",
175
+ "name": "permit",
176
+ "type": "bytes"
177
+ }
178
+ ],
179
+ "internalType": "struct IMetaAggregationRouterV2.SwapDescriptionV2",
180
+ "name": "desc",
181
+ "type": "tuple"
182
+ },
183
+ {
184
+ "internalType": "bytes",
185
+ "name": "executorData",
186
+ "type": "bytes"
187
+ },
188
+ {
189
+ "internalType": "bytes",
190
+ "name": "clientData",
191
+ "type": "bytes"
192
+ }
193
+ ],
194
+ "name": "swapSimpleMode",
195
+ "outputs": [
196
+ {
197
+ "internalType": "uint256",
198
+ "name": "",
199
+ "type": "uint256"
200
+ },
201
+ {
202
+ "internalType": "uint256",
203
+ "name": "",
204
+ "type": "uint256"
205
+ }
206
+ ],
207
+ "stateMutability": "nonpayable",
208
+ "type": "function"
209
+ }
210
+ ],
211
+ "bytecode": "0x",
212
+ "deployedBytecode": "0x",
213
+ "linkReferences": {},
214
+ "deployedLinkReferences": {}
215
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../../../build-info/92d54f9b76a0207ec4375fc6c12319a9.json"
4
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "KyberHelperEthereum",
4
+ "sourceName": "contracts/router/swap-aggregator/kyberswap/ethereum/KyberHelperEthereum.sol",
5
+ "abi": [],
6
+ "bytecode": "0x",
7
+ "deployedBytecode": "0x",
8
+ "linkReferences": {},
9
+ "deployedLinkReferences": {}
10
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../../../build-info/92d54f9b76a0207ec4375fc6c12319a9.json"
4
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ScaleDataHelperEthereum",
4
+ "sourceName": "contracts/router/swap-aggregator/kyberswap/ethereum/ScaleDataHelperEthereum.sol",
5
+ "abi": [],
6
+ "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122042f2c9ed6176c32d6ee2a036d64e87452b186ef711dcdaaf7babaeeb5e21038964736f6c63430008110033",
7
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122042f2c9ed6176c32d6ee2a036d64e87452b186ef711dcdaaf7babaeeb5e21038964736f6c63430008110033",
8
+ "linkReferences": {},
9
+ "deployedLinkReferences": {}
10
+ }
@@ -34,13 +34,14 @@ contract PendleAuraWethAnkrethSY is PendleAuraBalancerStableLPSY {
34
34
  address receiver,
35
35
  address tokenOut,
36
36
  uint256 amountSharesToRedeem
37
- ) internal virtual override returns (uint256 amountTokenOut) {
37
+ ) internal virtual override returns (uint256) {
38
38
  if (tokenOut == NATIVE) {
39
- amountTokenOut = super._redeem(address(this), WETH, amountSharesToRedeem);
39
+ uint256 amountTokenOut = super._redeem(address(this), WETH, amountSharesToRedeem);
40
40
  IWETH(WETH).withdraw(amountTokenOut);
41
41
  _transferOut(NATIVE, receiver, amountTokenOut);
42
+ return amountTokenOut;
42
43
  } else {
43
- amountTokenOut = super._redeem(receiver, tokenOut, amountSharesToRedeem);
44
+ return super._redeem(receiver, tokenOut, amountSharesToRedeem);
44
45
  }
45
46
  }
46
47
 
@@ -22,7 +22,6 @@ contract ActionAddRemoveLiq is IPActionAddRemoveLiq, ActionBaseMintRedeem {
22
22
  using MarketApproxPtOutLib for MarketState;
23
23
  using PYIndexLib for IPYieldToken;
24
24
  using PYIndexLib for PYIndex;
25
- using BulkSellerMathCore for BulkSellerState;
26
25
 
27
26
  /**
28
27
  * @notice Adds liquidity to the SY/PT market, granting LP tokens in return
@@ -6,12 +6,12 @@ import "../../core/libraries/TokenHelper.sol";
6
6
  import "../../core/libraries/Errors.sol";
7
7
  import "./IPSwapAggregator.sol";
8
8
  import "./1inch/OneInchAggregationRouterHelper.sol";
9
- import "./kyberswap/KyberAggregationRouterHelper.sol";
9
+ import "./kyberswap/arbitrum/KyberHelperArbitrum.sol";
10
10
 
11
- contract PendleSwapAggregator is
11
+ contract PendleSwapArbitrum is
12
12
  IPSwapAggregator,
13
13
  TokenHelper,
14
- KyberAggregationRouterHelper,
14
+ KyberHelperArbitrum,
15
15
  OneInchAggregationRouterHelper
16
16
  {
17
17
  using Address for address;
@@ -0,0 +1,42 @@
1
+ // SPDX-License-Identifier: GPL-3.0-or-later
2
+ pragma solidity 0.8.17;
3
+
4
+ import "@openzeppelin/contracts/utils/Address.sol";
5
+ import "../../core/libraries/TokenHelper.sol";
6
+ import "../../core/libraries/Errors.sol";
7
+ import "./IPSwapAggregator.sol";
8
+ import "./1inch/OneInchAggregationRouterHelper.sol";
9
+ import "./kyberswap/ethereum/KyberHelperEthereum.sol";
10
+
11
+ contract PendleSwapEthereum is
12
+ IPSwapAggregator,
13
+ TokenHelper,
14
+ KyberHelperEthereum,
15
+ OneInchAggregationRouterHelper
16
+ {
17
+ using Address for address;
18
+
19
+ function swap(address tokenIn, uint256 amountIn, SwapData calldata data) external payable {
20
+ _safeApproveInf(tokenIn, data.extRouter);
21
+ data.extRouter.functionCallWithValue(
22
+ data.needScale
23
+ ? _getScaledInputData(data.swapType, data.extCalldata, amountIn)
24
+ : data.extCalldata,
25
+ tokenIn == NATIVE ? amountIn : 0
26
+ );
27
+ }
28
+
29
+ function _getScaledInputData(
30
+ SwapType swapType,
31
+ bytes calldata rawCallData,
32
+ uint256 amountIn
33
+ ) internal pure returns (bytes memory scaledCallData) {
34
+ if (swapType == SwapType.KYBERSWAP) {
35
+ scaledCallData = _getKyberScaledInputData(rawCallData, amountIn);
36
+ } else if (swapType == SwapType.ONE_INCH) {
37
+ scaledCallData = _get1inchScaledInputData(rawCallData, amountIn);
38
+ } else {
39
+ assert(false);
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,195 @@
1
+ // SPDX-License-Identifier: MIT
2
+ pragma solidity 0.8.17;
3
+
4
+ import "./IHashflow.sol";
5
+
6
+ interface IExecutorHelper1 {
7
+ struct UniSwap {
8
+ address pool;
9
+ address tokenIn;
10
+ address tokenOut;
11
+ address recipient;
12
+ uint256 collectAmount; // amount that should be transferred to the pool
13
+ uint256 limitReturnAmount;
14
+ uint32 swapFee;
15
+ uint32 feePrecision;
16
+ uint32 tokenWeightInput;
17
+ }
18
+
19
+ struct StableSwap {
20
+ address pool;
21
+ address tokenFrom;
22
+ address tokenTo;
23
+ uint8 tokenIndexFrom;
24
+ uint8 tokenIndexTo;
25
+ uint256 dx;
26
+ uint256 minDy;
27
+ uint256 poolLength;
28
+ address poolLp;
29
+ bool isSaddle; // true: saddle, false: stable
30
+ }
31
+
32
+ struct CurveSwap {
33
+ address pool;
34
+ address tokenFrom;
35
+ address tokenTo;
36
+ int128 tokenIndexFrom;
37
+ int128 tokenIndexTo;
38
+ uint256 dx;
39
+ uint256 minDy;
40
+ bool usePoolUnderlying;
41
+ bool useTriCrypto;
42
+ }
43
+
44
+ struct UniSwapV3ProMM {
45
+ address recipient;
46
+ address pool;
47
+ address tokenIn;
48
+ address tokenOut;
49
+ uint256 swapAmount;
50
+ uint256 limitReturnAmount;
51
+ uint160 sqrtPriceLimitX96;
52
+ bool isUniV3; // true = UniV3, false = ProMM
53
+ }
54
+ struct SwapCallbackData {
55
+ bytes path;
56
+ address payer;
57
+ }
58
+ struct SwapCallbackDataPath {
59
+ address pool;
60
+ address tokenIn;
61
+ address tokenOut;
62
+ }
63
+
64
+ struct BalancerV2 {
65
+ address vault;
66
+ bytes32 poolId;
67
+ address assetIn;
68
+ address assetOut;
69
+ uint256 amount;
70
+ uint256 limit;
71
+ }
72
+
73
+ struct KyberRFQ {
74
+ address rfq;
75
+ bytes order;
76
+ bytes signature;
77
+ uint256 amount;
78
+ address payable target;
79
+ }
80
+
81
+ struct DODO {
82
+ address recipient;
83
+ address pool;
84
+ address tokenFrom;
85
+ address tokenTo;
86
+ uint256 amount;
87
+ uint256 minReceiveQuote;
88
+ address sellHelper;
89
+ bool isSellBase;
90
+ bool isVersion2;
91
+ }
92
+
93
+ struct GMX {
94
+ address vault;
95
+ address tokenIn;
96
+ address tokenOut;
97
+ uint256 amount;
98
+ uint256 minOut;
99
+ address receiver;
100
+ }
101
+
102
+ struct Synthetix {
103
+ address synthetixProxy;
104
+ address tokenIn;
105
+ address tokenOut;
106
+ bytes32 sourceCurrencyKey;
107
+ uint256 sourceAmount;
108
+ bytes32 destinationCurrencyKey;
109
+ uint256 minAmount;
110
+ bool useAtomicExchange;
111
+ }
112
+
113
+ struct Hashflow {
114
+ address router;
115
+ IHashflow.Quote quote;
116
+ }
117
+
118
+ function executeUniSwap(
119
+ uint256 index,
120
+ bytes memory data,
121
+ uint256 previousAmountOut
122
+ ) external payable returns (uint256);
123
+
124
+ function executeStableSwap(
125
+ uint256 index,
126
+ bytes memory data,
127
+ uint256 previousAmountOut
128
+ ) external payable returns (uint256);
129
+
130
+ function executeCurveSwap(
131
+ uint256 index,
132
+ bytes memory data,
133
+ uint256 previousAmountOut
134
+ ) external payable returns (uint256);
135
+
136
+ function executeKyberDMMSwap(
137
+ uint256 index,
138
+ bytes memory data,
139
+ uint256 previousAmountOut
140
+ ) external payable returns (uint256);
141
+
142
+ function executeUniV3ProMMSwap(
143
+ uint256 index,
144
+ bytes memory data,
145
+ uint256 previousAmountOut
146
+ ) external payable returns (uint256);
147
+
148
+ function executeRfqSwap(
149
+ uint256 index,
150
+ bytes memory data,
151
+ uint256 previousAmountOut
152
+ ) external payable returns (uint256);
153
+
154
+ function executeBalV2Swap(
155
+ uint256 index,
156
+ bytes memory data,
157
+ uint256 previousAmountOut
158
+ ) external payable returns (uint256);
159
+
160
+ function executeDODOSwap(
161
+ uint256 index,
162
+ bytes memory data,
163
+ uint256 previousAmountOut
164
+ ) external payable returns (uint256);
165
+
166
+ function executeVelodromeSwap(
167
+ uint256 index,
168
+ bytes memory data,
169
+ uint256 previousAmountOut
170
+ ) external payable returns (uint256);
171
+
172
+ function executeGMXSwap(
173
+ uint256 index,
174
+ bytes memory data,
175
+ uint256 previousAmountOut
176
+ ) external payable returns (uint256);
177
+
178
+ function executeSynthetixSwap(
179
+ uint256 index,
180
+ bytes memory data,
181
+ uint256 previousAmountOut
182
+ ) external payable returns (uint256);
183
+
184
+ function executeHashflowSwap(
185
+ uint256 index,
186
+ bytes memory data,
187
+ uint256 previousAmountOut
188
+ ) external payable returns (uint256);
189
+
190
+ function executeCamelotSwap(
191
+ uint256 index,
192
+ bytes memory data,
193
+ uint256 previousAmountOut
194
+ ) external payable returns (uint256);
195
+ }
@@ -0,0 +1,10 @@
1
+ // SPDX-License-Identifier: MIT
2
+ pragma solidity 0.8.17;
3
+
4
+ interface IExecutorHelper2 {
5
+ function executeKyberLimitOrder(
6
+ uint256 index,
7
+ bytes memory data,
8
+ uint256 previousAmountOut
9
+ ) external payable returns (uint256);
10
+ }
@@ -0,0 +1,41 @@
1
+ // SPDX-License-Identifier: MIT
2
+ pragma solidity 0.8.17;
3
+
4
+ import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
5
+ import { IAggregationExecutor } from "./IAggregationExecutor.sol";
6
+
7
+ interface IMetaAggregationRouterV2 {
8
+ struct SwapDescriptionV2 {
9
+ IERC20 srcToken;
10
+ IERC20 dstToken;
11
+ address[] srcReceivers; // transfer src token to these addresses, default
12
+ uint256[] srcAmounts;
13
+ address[] feeReceivers;
14
+ uint256[] feeAmounts;
15
+ address dstReceiver;
16
+ uint256 amount;
17
+ uint256 minReturnAmount;
18
+ uint256 flags;
19
+ bytes permit;
20
+ }
21
+
22
+ /// @dev use for swapGeneric and swap to avoid stack too deep
23
+ struct SwapExecutionParams {
24
+ address callTarget; // call this address
25
+ address approveTarget; // approve this address if _APPROVE_FUND set
26
+ bytes targetData;
27
+ SwapDescriptionV2 desc;
28
+ bytes clientData;
29
+ }
30
+
31
+ function swap(
32
+ SwapExecutionParams calldata execution
33
+ ) external payable returns (uint256, uint256);
34
+
35
+ function swapSimpleMode(
36
+ IAggregationExecutor caller,
37
+ SwapDescriptionV2 memory desc,
38
+ bytes calldata executorData,
39
+ bytes calldata clientData
40
+ ) external returns (uint256, uint256);
41
+ }