@pendle/core-v2 6.1.0 → 6.1.2

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 (275) 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/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
  12. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  21. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  22. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  23. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  24. package/build/artifacts/contracts/core/Market/v3/PendleMarketFactoryV3.sol/PendleMarketFactoryV3.dbg.json +1 -1
  25. package/build/artifacts/contracts/core/Market/v3/PendleMarketV3.sol/PendleMarketV3.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  27. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  29. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/erc20/PendleERC20PermitUpg.sol/PendleERC20PermitUpg.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/erc20/PendleERC20Upg.sol/PendleERC20Upg.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableV2.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
  50. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.dbg.json +1 -1
  51. package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.dbg.json +1 -1
  52. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.dbg.json +1 -1
  53. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.dbg.json +1 -1
  54. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  55. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  56. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
  57. package/build/artifacts/contracts/interfaces/ILPWrapper.sol/ILPWrapper.dbg.json +1 -1
  58. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  59. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  60. package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.dbg.json +1 -1
  61. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  62. package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
  63. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  64. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  65. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  66. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  67. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  68. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  69. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  70. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  71. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  72. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  73. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
  74. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  75. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPChainlinkOracleEssential.sol/IPChainlinkOracleEssential.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IPCommonPoolDeployHelperV2.sol/IPCommonPoolDeployHelperV2.dbg.json +1 -1
  87. package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/IPExchangeRateOracle.sol/IPExchangeRateOracle.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMM.dbg.json +1 -1
  92. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMMSwapCallback.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  94. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
  96. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
  97. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.json +170 -32
  98. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  99. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
  100. package/build/artifacts/contracts/interfaces/IPLPWrapperFactory.sol/IPLPWrapperFactory.dbg.json +1 -1
  101. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
  102. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  103. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
  104. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  105. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  106. package/build/artifacts/contracts/interfaces/IPMarketFactoryV3.sol/IPMarketFactoryV3.dbg.json +1 -1
  107. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  108. package/build/artifacts/contracts/interfaces/IPMarketV3.sol/IPMarketV3.dbg.json +1 -1
  109. package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
  111. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  112. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  113. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/IPOffchainStorage.sol/IPOffchainStorage.dbg.json +1 -1
  115. package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IPPTOFTAdapterFactory.sol/IPPTOFTAdapterFactory.dbg.json +1 -1
  117. package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +1 -1
  119. package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.dbg.json +1 -1
  120. package/build/artifacts/contracts/interfaces/IPPriceFeed.sol/IPPriceFeed.dbg.json +1 -1
  121. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.dbg.json +1 -1
  123. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  128. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  130. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
  131. package/build/artifacts/contracts/interfaces/IRedstonePriceFeed.sol/IRedstonePriceFeed.dbg.json +1 -1
  132. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  133. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  135. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  136. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  137. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  138. package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
  139. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
  140. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
  141. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
  142. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
  143. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
  144. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.dbg.json +1 -1
  145. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  146. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
  147. package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +1 -1
  148. package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
  149. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
  150. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
  151. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
  152. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +4 -0
  153. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +173 -0
  154. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
  155. package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
  156. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
  157. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.json +192 -53
  158. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.dbg.json +1 -1
  159. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
  160. package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.dbg.json +1 -1
  161. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
  162. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
  163. package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
  164. package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.dbg.json +1 -1
  165. package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +1 -1
  166. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +1 -1
  167. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +1 -1
  168. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  169. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +1 -1
  170. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  171. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  172. package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +1 -1
  173. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
  174. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  175. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  176. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  177. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  178. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  179. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  180. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  181. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  182. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  183. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  184. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  185. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
  186. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
  187. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
  188. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
  189. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
  190. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  191. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
  192. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
  193. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  194. package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
  195. package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
  196. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/LPExpiry.dbg.json +1 -1
  197. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.dbg.json +1 -1
  198. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.dbg.json +1 -1
  199. package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
  200. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +1 -1
  201. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +1 -1
  202. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
  203. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  204. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  205. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  206. package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.dbg.json +1 -1
  207. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  208. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  209. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  210. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  211. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
  212. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  213. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  214. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  215. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  216. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  217. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
  218. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
  219. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +1 -1
  220. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +1 -1
  221. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  222. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  223. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  224. package/contracts/interfaces/IPGovernanceProxy.sol +16 -5
  225. package/contracts/offchain-helpers/{LimitBackendHelper.sol → LimitBackendHelperV2.sol} +16 -30
  226. package/contracts/offchain-helpers/PendleGovernanceProxy.sol +57 -32
  227. package/deployments/1-offchain-helper.json +3 -2
  228. package/deployments/10-core.json +1 -1
  229. package/deployments/10-offchain-helper.json +3 -2
  230. package/deployments/146-offchain-helper.json +3 -2
  231. package/deployments/42161-offchain-helper.json +3 -2
  232. package/deployments/5000-offchain-helper.json +3 -2
  233. package/deployments/56-offchain-helper.json +3 -2
  234. package/deployments/80094-offchain-helper.json +3 -2
  235. package/deployments/8453-offchain-helper.json +3 -2
  236. package/deployments/999-offchain-helper.json +3 -2
  237. package/package.json +2 -2
  238. package/typechain-types/ActionBase.ts +81 -0
  239. package/typechain-types/ActionInputTracker.ts +81 -0
  240. package/typechain-types/BoringOwnableUpgradeable.ts +203 -0
  241. package/typechain-types/BoringOwnableUpgradeable__deprecated.ts +204 -0
  242. package/typechain-types/IMarketSweed.ts +203 -0
  243. package/typechain-types/IPGovernanceProxy.ts +232 -51
  244. package/typechain-types/ITracker.ts +224 -0
  245. package/typechain-types/LimitBackendHelperV2.ts +289 -0
  246. package/typechain-types/MarketSweed.ts +216 -0
  247. package/typechain-types/PendleGovernanceProxy.ts +275 -96
  248. package/typechain-types/PendleMarket.ts +1207 -0
  249. package/typechain-types/PendleMarketFactory.ts +906 -0
  250. package/typechain-types/Tracker.ts +432 -0
  251. package/typechain-types/factories/ActionBase__factory.ts +36 -0
  252. package/typechain-types/factories/ActionInputTracker__factory.ts +39 -0
  253. package/typechain-types/factories/BoringOwnableUpgradeable__deprecated__factory.ts +120 -0
  254. package/typechain-types/factories/BoringOwnableUpgradeable__factory.ts +118 -0
  255. package/typechain-types/factories/IMarketSweed__factory.ts +153 -0
  256. package/typechain-types/factories/IPGovernanceProxy__factory.ts +170 -32
  257. package/typechain-types/factories/ITracker__factory.ts +114 -0
  258. package/typechain-types/factories/LimitBackendHelperV2__factory.ts +235 -0
  259. package/typechain-types/factories/MarketSweed__factory.ts +323 -0
  260. package/typechain-types/factories/PendleGovernanceProxy__factory.ts +191 -52
  261. package/typechain-types/factories/PendleMarketFactory__factory.ts +748 -0
  262. package/typechain-types/factories/PendleMarket__factory.ts +1212 -0
  263. package/typechain-types/factories/Tracker__factory.ts +303 -0
  264. package/typechain-types/hardhat.d.ts +22 -4
  265. package/typechain-types/index.ts +6 -2
  266. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelper.sol/LimitBackendHelper.dbg.json +0 -4
  267. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelper.sol/LimitBackendHelper.json +0 -174
  268. package/typechain-types/BasePendleBridgedPrincipalToken.ts +0 -1689
  269. package/typechain-types/PendleBridgedPrincipalToken_18Decimals.ts +0 -1689
  270. package/typechain-types/PendleBridgedPrincipalToken_6Decimals.ts +0 -1689
  271. package/typechain-types/PendleBridgedPrincipalToken_8Decimals.ts +0 -1689
  272. package/typechain-types/factories/BasePendleBridgedPrincipalToken__factory.ts +0 -1548
  273. package/typechain-types/factories/PendleBridgedPrincipalToken_18Decimals__factory.ts +0 -1652
  274. package/typechain-types/factories/PendleBridgedPrincipalToken_6Decimals__factory.ts +0 -1650
  275. package/typechain-types/factories/PendleBridgedPrincipalToken_8Decimals__factory.ts +0 -1650
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3885fcad17d5d083318ce76e68576b1f.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3885fcad17d5d083318ce76e68576b1f.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3885fcad17d5d083318ce76e68576b1f.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../build-info/2218938186019a357c2b5431b307c8f9.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../build-info/2218938186019a357c2b5431b307c8f9.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../build-info/2218938186019a357c2b5431b307c8f9.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/3885fcad17d5d083318ce76e68576b1f.json"
3
+ "buildInfo": "../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3885fcad17d5d083318ce76e68576b1f.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/df3be05f70ae2389fe0a72ca1be9de65.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3885fcad17d5d083318ce76e68576b1f.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3885fcad17d5d083318ce76e68576b1f.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3885fcad17d5d083318ce76e68576b1f.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3885fcad17d5d083318ce76e68576b1f.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3885fcad17d5d083318ce76e68576b1f.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3885fcad17d5d083318ce76e68576b1f.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3885fcad17d5d083318ce76e68576b1f.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/3885fcad17d5d083318ce76e68576b1f.json"
3
+ "buildInfo": "../../../../build-info/180ee41ddd188bb00eb103d1b74d2d9c.json"
4
4
  }
@@ -2,6 +2,12 @@
2
2
  pragma solidity ^0.8.0;
3
3
 
4
4
  interface IPGovernanceProxy {
5
+ event ModifyScopedAccess(address indexed caller, bytes4 indexed selector, address indexed target, bool access);
6
+
7
+ event ModifySelectorAdmin(address indexed addr, bytes4 indexed selector, bool isAdmin);
8
+
9
+ event SetAllowedSelectors(bytes4[] selectors, bytes32 indexed role); // Deprecated
10
+
5
11
  struct Call {
6
12
  address target;
7
13
  uint256 value;
@@ -12,13 +18,18 @@ interface IPGovernanceProxy {
12
18
 
13
19
  function aggregate(Call[] calldata calls) external payable returns (bytes[] memory rtnData);
14
20
 
15
- event SetAllowedSelectors(bytes4[] selectors, bytes32 indexed role);
21
+ function aggregateWithScopedAccess(Call[] calldata calls) external payable returns (bytes[] memory rtnData);
16
22
 
17
- function ALICE() external view returns (bytes32);
23
+ function isSelectorAdminOf(address addr, bytes4 selector) external view returns (bool);
18
24
 
19
- function BOB() external view returns (bytes32);
25
+ function hasScopedAccess(address caller, bytes4 selector, address target) external view returns (bool);
20
26
 
21
- function CHARLIE() external view returns (bytes32);
27
+ function modifySelectorAdmin(address addr, bytes4[] memory selectors, bool[] memory isAdmins) external;
22
28
 
23
- function allowedSelectors(bytes4 selector) external view returns (bytes32);
29
+ function modifyScopedAccess(
30
+ address caller,
31
+ address[] memory targets,
32
+ bytes4 selector,
33
+ bool[] memory accesses
34
+ ) external;
24
35
  }
@@ -9,7 +9,7 @@ import "../interfaces/IWETH.sol";
9
9
  import "../core/libraries/Errors.sol";
10
10
  import "./BytesLib.sol";
11
11
 
12
- contract LimitBackendHelper is TokenHelper {
12
+ contract LimitBackendHelperV2 is TokenHelper {
13
13
  address private immutable WNATIVE;
14
14
  address private immutable original;
15
15
 
@@ -48,62 +48,48 @@ contract LimitBackendHelper is TokenHelper {
48
48
  }
49
49
 
50
50
  /// @notice to be delegatecall from LimitRouter
51
- function mintSyFromTokens(
51
+ function mintSyFromTokensV2(
52
52
  address YT,
53
53
  address[] calldata makers,
54
54
  address[] calldata tokens,
55
55
  uint256[] calldata amounts
56
- ) external returns (uint256[] memory minted) {
56
+ ) external returns (uint256[] memory minted, bytes[] memory error) {
57
57
  uint256 length = makers.length;
58
58
 
59
59
  address SY = IPYieldToken(YT).SY();
60
60
  minted = new uint256[](length);
61
+ error = new bytes[](length);
61
62
 
62
63
  for (uint256 i = 0; i < length; i++) {
63
64
  (, bytes memory result) = original.delegatecall(
64
- abi.encodeWithSignature(
65
- "mintSyFromTokenRevert(address,address,address,uint256)",
66
- makers[i],
67
- SY,
68
- tokens[i],
69
- amounts[i]
70
- )
65
+ abi.encodeCall(this.mintSyFromTokenRevert, (makers[i], SY, tokens[i], amounts[i]))
71
66
  );
72
- minted[i] = parseMinted(result);
67
+ (minted[i], error[i]) = parseMinted(result);
73
68
  }
74
69
  }
75
70
 
76
- function parseMinted(bytes memory result) internal pure returns (uint256 minted) {
77
- if (result.length < 4) return type(uint256).max;
71
+ function parseMinted(bytes memory result) internal pure returns (uint256 minted, bytes memory error) {
72
+ assert(result.length >= 4 && bytes4(result) == Errors.SimulationResults.selector);
73
+ (bool success, bytes memory data) = abi.decode(BytesLib.slice(result, 4, result.length - 4), (bool, bytes));
78
74
 
79
- bytes4 top = bytes4(BytesLib.slice(result, 0, 4));
80
- if (top == bytes4(0x1934afc8)) {
81
- // selector of SimulationResults
82
- (, bytes memory beta) = abi.decode(BytesLib.slice(result, 4, result.length - 4), (bool, bytes));
83
- minted = abi.decode(beta, (uint256));
75
+ if (success) {
76
+ minted = abi.decode(data, (uint256));
84
77
  } else {
85
78
  minted = type(uint256).max;
79
+ error = data;
86
80
  }
87
81
  }
88
82
 
89
- function mintSyFromTokenRevert(
90
- address maker,
91
- address SY,
92
- address token,
93
- uint256 makingAmount
94
- ) public returns (uint256) {
83
+ function mintSyFromTokenRevert(address maker, address SY, address token, uint256 makingAmount) public {
95
84
  _transferIn(token, maker, makingAmount);
96
85
  if (token == WNATIVE && !IStandardizedYield(SY).isValidTokenIn(WNATIVE)) {
97
86
  _wrap_unwrap_ETH(WNATIVE, NATIVE, makingAmount);
98
87
  token = NATIVE;
99
88
  }
100
89
  _safeApproveInf(token, SY);
101
- uint256 minted = IStandardizedYield(SY).deposit{value: token == NATIVE ? makingAmount : 0}(
102
- address(this),
103
- token,
104
- makingAmount,
105
- 0
90
+ (bool success, bytes memory result) = SY.call{value: token == NATIVE ? makingAmount : 0}(
91
+ abi.encodeCall(IStandardizedYield.deposit, (address(this), token, makingAmount, 0))
106
92
  );
107
- revert Errors.SimulationResults(true, abi.encode(minted));
93
+ revert Errors.SimulationResults(success, result);
108
94
  }
109
95
  }
@@ -13,30 +13,34 @@ import "@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol";
13
13
  contract PendleGovernanceProxy is AccessControlUpgradeable, UUPSUpgradeable, IPGovernanceProxy {
14
14
  bytes32 public constant GUARDIAN = keccak256("GUARDIAN");
15
15
 
16
- bytes32 public constant ALICE = keccak256("ALICE");
17
- bytes32 public constant BOB = keccak256("BOB");
18
- bytes32 public constant CHARLIE = keccak256("CHARLIE");
19
-
20
- mapping(bytes4 => bytes32) public allowedSelectors;
16
+ mapping(bytes4 => bytes32) public __deprecated_allowedSelectors;
17
+
18
+ // Only the [ADMIN] (governance) of PendleGovernanceProxy can modify one address to be
19
+ // a selector admin of some selectors.
20
+ //
21
+ // A [selector admin] of a selector can grant/revoke scoped access of that selector
22
+ // to/from ANY caller and ANY target.
23
+ //
24
+ // For example: [0xdeployer] is a selector admin of `updateSupplyCap(uint256)`, he can
25
+ // grant/revoke the scoped access of, say [0xalice] to call `updateSupplyCap(uint256)`
26
+ // on ANY target contract (in this case, SYs).
27
+ //
28
+ // Changes on execution:
29
+ // - aggregate(Call[]): is now callable by [ADMIN] only
30
+ // - aggregateWithScopedAccess(Call[]): new function to let anyone with scoped access
31
+ // to execute calls
32
+
33
+ mapping(address caller => mapping(bytes4 selector => bool isAdmin)) public isSelectorAdminOf;
34
+ mapping(address caller => mapping(bytes4 selector => mapping(address target => bool isAllowed)))
35
+ public hasScopedAccess;
21
36
 
22
37
  modifier onlyGuardian() {
23
- require(hasRole(GUARDIAN, msg.sender) || hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "n/a");
38
+ require(hasRole(GUARDIAN, msg.sender) || hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "PGP: n/a");
24
39
  _;
25
40
  }
26
41
 
27
42
  modifier onlyAdmin() {
28
- require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "n/a");
29
- _;
30
- }
31
-
32
- modifier onlyHaveSomeRole() {
33
- require(
34
- hasRole(ALICE, msg.sender) ||
35
- hasRole(BOB, msg.sender) ||
36
- hasRole(CHARLIE, msg.sender) ||
37
- hasRole(DEFAULT_ADMIN_ROLE, msg.sender),
38
- "n/a"
39
- );
43
+ require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "PGP: n/a");
40
44
  _;
41
45
  }
42
46
 
@@ -44,14 +48,42 @@ contract PendleGovernanceProxy is AccessControlUpgradeable, UUPSUpgradeable, IPG
44
48
  _disableInitializers();
45
49
  }
46
50
 
47
- function aggregate(Call[] calldata calls) external payable onlyHaveSomeRole returns (bytes[] memory) {
48
- bool isAdmin = hasRole(DEFAULT_ADMIN_ROLE, msg.sender);
51
+ function aggregate(Call[] calldata calls) external payable onlyAdmin returns (bytes[] memory) {
52
+ return _aggregate(calls);
53
+ }
49
54
 
50
- if (!isAdmin) {
51
- for (uint256 i = 0; i < calls.length; i++) {
52
- bytes4 selector = bytes4(calls[i].callData[:4]);
53
- require(hasRole(allowedSelectors[selector], msg.sender), "n/a");
54
- }
55
+ /*///////////////////////////////////////////////////////////////
56
+ SCOPED ACCESS
57
+ //////////////////////////////////////////////////////////////*/
58
+
59
+ function modifySelectorAdmin(address addr, bytes4[] memory selectors, bool[] memory isAdmins) external onlyAdmin {
60
+ require(selectors.length == isAdmins.length, "PGP: Array length mismatch");
61
+
62
+ for (uint256 i = 0; i < selectors.length; i++) {
63
+ isSelectorAdminOf[addr][selectors[i]] = isAdmins[i];
64
+ emit ModifySelectorAdmin(addr, selectors[i], isAdmins[i]);
65
+ }
66
+ }
67
+
68
+ function modifyScopedAccess(
69
+ address caller,
70
+ address[] memory targets,
71
+ bytes4 selector,
72
+ bool[] memory accesses
73
+ ) external {
74
+ require(targets.length == accesses.length, "PGP: Array length mismatch");
75
+ require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender) || isSelectorAdminOf[msg.sender][selector], "PGP: n/a");
76
+
77
+ for (uint256 i = 0; i < targets.length; i++) {
78
+ hasScopedAccess[caller][selector][targets[i]] = accesses[i];
79
+ emit ModifyScopedAccess(caller, selector, targets[i], accesses[i]);
80
+ }
81
+ }
82
+
83
+ function aggregateWithScopedAccess(Call[] calldata calls) external payable returns (bytes[] memory) {
84
+ for (uint256 i = 0; i < calls.length; i++) {
85
+ bytes4 selector = bytes4(calls[i].callData[:4]);
86
+ require(hasScopedAccess[msg.sender][selector][calls[i].target], "PGP: n/a");
55
87
  }
56
88
 
57
89
  return _aggregate(calls);
@@ -75,13 +107,6 @@ contract PendleGovernanceProxy is AccessControlUpgradeable, UUPSUpgradeable, IPG
75
107
  ADMIN CALL
76
108
  //////////////////////////////////////////////////////////////*/
77
109
 
78
- function setAllowedSelectors(bytes4[] calldata selectors, bytes32 role) external onlyAdmin {
79
- for (uint256 i = 0; i < selectors.length; i++) {
80
- allowedSelectors[selectors[i]] = role;
81
- }
82
- emit SetAllowedSelectors(selectors, role);
83
- }
84
-
85
110
  function _aggregate(Call[] calldata calls) internal returns (bytes[] memory rtnData) {
86
111
  uint256 length = calls.length;
87
112
  rtnData = new bytes[](length);
@@ -4,5 +4,6 @@
4
4
  "implicitSwapfeeContract": "0x43D03031FAb845065e9CEfE89Dd122d63F72011F",
5
5
  "simulateHelper": "0x2b3EC64160F658fFe7061769415Ff080fca80BbA",
6
6
  "supplyCapReader": "0x438C7dBA7d355aA0c77459AF38B2E62f9f9EccBf",
7
- "balanceReader": "0x2085F50305f656f96b22ECBfe0A4f5e786Ff0438"
8
- }
7
+ "balanceReader": "0x2085F50305f656f96b22ECBfe0A4f5e786Ff0438",
8
+ "limitBackendHelperV2": "0x05f6bAF4189e46aC0C728bb3fE2fCba247441100"
9
+ }
@@ -44,7 +44,7 @@
44
44
  "proxyAdmin": "0xA28c08f165116587D4F3E708743B4dEe155c5E64",
45
45
  "reflector": "0x73d5DBF81A4f3bFa7b335e6a2d4638D6017a4fA8",
46
46
  "vePendleAirdropDistributor": "0x3942F7B55094250644cFfDa7160226Caa349A38E",
47
- "externalRewardsDistributor": "0xae898a7d07f8e27f25e13d0f351a7401f9a5bf9d",
47
+ "externalRewardsDistributor": "0x33305665f69B4642D1275f4Ce81c23651674D21C",
48
48
  "commonDeploy": "0x2Ed473F528E5B320f850d17ADfe0e558f0298aA9",
49
49
  "syFactory": "0x466CeD3b33045Ea986B2f306C8D0aA8067961CF8",
50
50
  "sparkLinearDiscountOracleFactory": "0x34C91651A070664279866E5f3d6B4d5F65cbbFFb",
@@ -3,5 +3,6 @@
3
3
  "pendleMulticallV2": "0x539fd510fE352CC81822a222F821c340133Ed41C",
4
4
  "simulateHelper": "0x2b3EC64160F658fFe7061769415Ff080fca80BbA",
5
5
  "supplyCapReader": "0x438C7dBA7d355aA0c77459AF38B2E62f9f9EccBf",
6
- "balanceReader": "0x2085F50305f656f96b22ECBfe0A4f5e786Ff0438"
7
- }
6
+ "balanceReader": "0x2085F50305f656f96b22ECBfe0A4f5e786Ff0438",
7
+ "limitBackendHelperV2": "0x05f6bAF4189e46aC0C728bb3fE2fCba247441100"
8
+ }
@@ -3,5 +3,6 @@
3
3
  "implicitSwapfeeContract": "0x82Fae57b2A79D893D88488A7D8BdF2AC6bd2C463",
4
4
  "simulateHelper": "0xc23Dd2807e51dd1D317e1321CBeEb9ace98531EE",
5
5
  "supplyCapReader": "0x251CfB4E84CefecA6c1e6a4D8a0cb9c524e7484f",
6
- "balanceReader": "0x2085F50305f656f96b22ECBfe0A4f5e786Ff0438"
7
- }
6
+ "balanceReader": "0x2085F50305f656f96b22ECBfe0A4f5e786Ff0438",
7
+ "limitBackendHelperV2": "0x05f6bAF4189e46aC0C728bb3fE2fCba247441100"
8
+ }
@@ -4,5 +4,6 @@
4
4
  "implicitSwapfeeContract": "0x704478Dd72FD7F9B83d1F1e0fc18C14B54F034d0",
5
5
  "simulateHelper": "0x2b3EC64160F658fFe7061769415Ff080fca80BbA",
6
6
  "supplyCapReader": "0x438C7dBA7d355aA0c77459AF38B2E62f9f9EccBf",
7
- "balanceReader": "0x2085F50305f656f96b22ECBfe0A4f5e786Ff0438"
8
- }
7
+ "balanceReader": "0x2085F50305f656f96b22ECBfe0A4f5e786Ff0438",
8
+ "limitBackendHelperV2": "0x05f6bAF4189e46aC0C728bb3fE2fCba247441100"
9
+ }
@@ -4,5 +4,6 @@
4
4
  "implicitSwapfeeContract": "0xa87f7EeDD570943BcFFcE6D00B13D9a95ede8810",
5
5
  "simulateHelper": "0x2b3EC64160F658fFe7061769415Ff080fca80BbA",
6
6
  "supplyCapReader": "0x438C7dBA7d355aA0c77459AF38B2E62f9f9EccBf",
7
- "balanceReader": "0x2085F50305f656f96b22ECBfe0A4f5e786Ff0438"
8
- }
7
+ "balanceReader": "0x2085F50305f656f96b22ECBfe0A4f5e786Ff0438",
8
+ "limitBackendHelperV2": "0x05f6bAF4189e46aC0C728bb3fE2fCba247441100"
9
+ }
@@ -4,5 +4,6 @@
4
4
  "implicitSwapfeeContract": "0xed18de5442297a4ec1ce59c7c7d9427adc2a012b",
5
5
  "simulateHelper": "0x2b3EC64160F658fFe7061769415Ff080fca80BbA",
6
6
  "supplyCapReader": "0x438C7dBA7d355aA0c77459AF38B2E62f9f9EccBf",
7
- "balanceReader": "0x2085F50305f656f96b22ECBfe0A4f5e786Ff0438"
8
- }
7
+ "balanceReader": "0x2085F50305f656f96b22ECBfe0A4f5e786Ff0438",
8
+ "limitBackendHelperV2": "0x05f6bAF4189e46aC0C728bb3fE2fCba247441100"
9
+ }
@@ -3,5 +3,6 @@
3
3
  "implicitSwapfeeContract": "0x82Fae57b2A79D893D88488A7D8BdF2AC6bd2C463",
4
4
  "simulateHelper": "0xc23Dd2807e51dd1D317e1321CBeEb9ace98531EE",
5
5
  "supplyCapReader": "0x251CfB4E84CefecA6c1e6a4D8a0cb9c524e7484f",
6
- "balanceReader": "0x2085F50305f656f96b22ECBfe0A4f5e786Ff0438"
7
- }
6
+ "balanceReader": "0x2085F50305f656f96b22ECBfe0A4f5e786Ff0438",
7
+ "limitBackendHelperV2": "0x05f6bAF4189e46aC0C728bb3fE2fCba247441100"
8
+ }