@pendle/core-v2 0.11.10-testnet → 0.12.0-testnet

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  2. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  3. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +1 -1
  4. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.json +199 -30
  5. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol/Pendle3CrvAndTokenSCY.dbg.json +4 -0
  6. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol/Pendle3CrvAndTokenSCY.json +1030 -0
  7. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol/PendleConvexCurveLP2PoolSCY.dbg.json +4 -0
  8. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol/PendleConvexCurveLP2PoolSCY.json +1025 -0
  9. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol/PendleConvexCurveLPSCY.dbg.json +4 -0
  10. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol/PendleConvexCurveLPSCY.json +948 -0
  11. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.dbg.json +4 -0
  12. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.json +76 -0
  13. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +1 -1
  14. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.json +140 -25
  15. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
  16. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.json +138 -23
  17. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
  18. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.json +138 -23
  19. package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +4 -0
  20. package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +310 -0
  21. package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +4 -0
  22. package/build/artifacts/contracts/core/LiquidityMining/{CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.json → CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.json} +18 -85
  23. package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +4 -0
  24. package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +336 -0
  25. package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +4 -0
  26. package/build/artifacts/contracts/core/LiquidityMining/{CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.json → CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.json} +8 -21
  27. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +4 -0
  28. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.json +131 -0
  29. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +4 -0
  30. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +297 -0
  31. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +4 -0
  32. package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +376 -0
  33. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.json +11 -0
  35. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +29 -2
  37. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +40 -86
  39. package/build/artifacts/contracts/core/LiquidityMining/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +228 -40
  42. package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +232 -12
  44. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +164 -47
  46. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +25 -93
  48. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +222 -9
  51. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +106 -5
  53. package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +4 -0
  54. package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.json +329 -0
  55. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +13 -2
  57. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  59. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +87 -2
  60. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +80 -16
  62. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +164 -2
  64. package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +172 -4
  66. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  67. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +109 -2
  68. package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  69. package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.json +62 -4
  70. package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  71. package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.json +7 -2
  72. package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  73. package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.json +199 -4
  74. package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
  75. package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.json +108 -2
  76. package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  77. package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.json +146 -4
  78. package/build/artifacts/contracts/core/actions/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  79. package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +4 -0
  81. package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.json +177 -0
  82. package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.dbg.json +4 -0
  83. package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.json +78 -0
  84. package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.dbg.json +4 -0
  85. package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.json +24 -0
  86. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +4 -0
  87. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.json +264 -0
  88. package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +4 -0
  89. package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.json +305 -0
  90. package/build/artifacts/contracts/interfaces/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.dbg.json +4 -0
  91. package/build/artifacts/contracts/interfaces/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.json +34 -0
  92. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json +31 -1
  94. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +5 -0
  96. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  97. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.json +30 -0
  98. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
  99. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.json +10 -0
  100. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  101. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.json +30 -0
  102. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  103. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +106 -1
  104. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +4 -0
  105. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.json +112 -0
  106. package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.dbg.json +4 -0
  107. package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.json +76 -0
  108. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  109. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +13 -0
  110. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +4 -0
  111. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.json +24 -0
  112. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +4 -0
  113. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.json +63 -0
  114. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  115. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +148 -0
  116. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +4 -0
  117. package/build/artifacts/contracts/interfaces/{IPVotingEscrow.sol/IPVotingEscrow.json → IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.json} +88 -2
  118. package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
  119. package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.json +4 -28
  120. package/build/artifacts/contracts/libraries/Errors.sol/Errors.dbg.json +4 -0
  121. package/build/artifacts/contracts/libraries/Errors.sol/Errors.json +886 -0
  122. package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.dbg.json +1 -1
  123. package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.json +28 -2
  124. package/build/artifacts/contracts/libraries/RewardManager.sol/RewardManager.dbg.json +1 -1
  125. package/build/artifacts/contracts/libraries/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  126. package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  127. package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  128. package/build/artifacts/contracts/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +4 -0
  129. package/build/artifacts/contracts/libraries/{solmate/SSTORE2.sol/SSTORE2.json → VeHistoryLib.sol/CheckpointHelper.json} +4 -4
  130. package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  131. package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  132. package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  133. package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.json +2 -2
  134. package/build/artifacts/contracts/libraries/helpers/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +4 -0
  135. package/build/artifacts/contracts/libraries/helpers/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.json +45 -0
  136. package/build/artifacts/contracts/libraries/helpers/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +4 -0
  137. package/build/artifacts/contracts/libraries/helpers/{SSTORE2Deployer.sol/SSTORE2Deployer.json → BaseSplitCodeFactory.sol/CodeDeployer.json} +4 -4
  138. package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  139. package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.json +2 -2
  140. package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  141. package/build/artifacts/contracts/libraries/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +1 -1
  142. package/build/artifacts/contracts/libraries/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +2 -2
  143. package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
  144. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  145. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  146. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  147. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  148. package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  149. package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.json +2 -2
  150. package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
  151. package/build/artifacts/contracts/libraries/math/Math.sol/Math.json +2 -2
  152. package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
  153. package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.json +2 -2
  154. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +4 -0
  155. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.json +167 -0
  156. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  157. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +182 -4
  158. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  159. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +126 -79
  160. package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol +3 -1
  161. package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol +19 -16
  162. package/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol +135 -0
  163. package/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol +96 -0
  164. package/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol +215 -0
  165. package/contracts/SuperComposableYield/SCY-implementations/Convex/Pendle3CrvHelper.sol +83 -0
  166. package/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol +10 -15
  167. package/contracts/SuperComposableYield/base-implementations/SCYBase.sol +30 -43
  168. package/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol +74 -0
  169. package/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol +38 -0
  170. package/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol +83 -0
  171. package/contracts/core/LiquidityMining/{CelerAbstracts/CelerSenderUpg.sol → CrossChainMsg/PendleMsgSenderAppUpg.sol} +12 -13
  172. package/contracts/core/LiquidityMining/FeeDistributor/EpochResultManager.sol +159 -0
  173. package/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol +96 -0
  174. package/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol +68 -0
  175. package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +4 -3
  176. package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol +6 -2
  177. package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol +12 -4
  178. package/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +29 -19
  179. package/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +27 -19
  180. package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +63 -27
  181. package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol +6 -5
  182. package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol +2 -2
  183. package/contracts/core/Market/PendleMarket.sol +26 -24
  184. package/contracts/core/Market/PendleMarketFactory.sol +41 -20
  185. package/contracts/core/PendleERC20Permit.sol +84 -0
  186. package/contracts/core/PendleRouter.sol +2 -1
  187. package/contracts/core/YieldContracts/PendlePrincipalToken.sol +8 -7
  188. package/contracts/core/YieldContracts/PendleYieldContractFactory.sol +37 -22
  189. package/contracts/core/YieldContracts/PendleYieldToken.sol +106 -35
  190. package/contracts/core/actions/ActionAddRemoveLiq.sol +58 -41
  191. package/contracts/core/actions/ActionCallback.sol +24 -14
  192. package/contracts/core/actions/ActionMintRedeem.sol +14 -4
  193. package/contracts/core/actions/ActionMisc.sol +2 -1
  194. package/contracts/core/actions/ActionSwapPT.sol +38 -19
  195. package/contracts/core/actions/ActionSwapPTYT.sol +7 -6
  196. package/contracts/core/actions/ActionSwapYT.sol +36 -19
  197. package/contracts/core/actions/base/ActionBaseMintRedeem.sol +15 -8
  198. package/contracts/interfaces/ConvexCurve/IBooster.sol +32 -0
  199. package/contracts/interfaces/ConvexCurve/ICrvDepositor.sol +20 -0
  200. package/contracts/interfaces/ConvexCurve/ICvxCrv.sol +6 -0
  201. package/contracts/interfaces/ConvexCurve/IRewards.sol +38 -0
  202. package/contracts/interfaces/Curve/ICrvPool.sol +69 -0
  203. package/contracts/interfaces/IBoringOwnableUpgradeable.sol +10 -0
  204. package/contracts/interfaces/IPActionAddRemoveLiq.sol +7 -7
  205. package/contracts/interfaces/IPActionMintRedeem.sol +1 -0
  206. package/contracts/interfaces/IPActionSwapPT.sol +6 -6
  207. package/contracts/interfaces/IPActionSwapPTYT.sol +2 -2
  208. package/contracts/interfaces/IPActionSwapYT.sol +13 -13
  209. package/contracts/interfaces/IPFeeDistributor.sol +19 -0
  210. package/contracts/interfaces/IPFeeDistributorFactory.sol +14 -0
  211. package/contracts/interfaces/IPMarket.sol +2 -0
  212. package/contracts/interfaces/IPMsgReceiverApp.sol +7 -0
  213. package/contracts/interfaces/IPMsgSendEndpoint.sol +17 -0
  214. package/contracts/interfaces/IPVotingController.sol +22 -0
  215. package/contracts/interfaces/{IPVotingEscrow.sol → IPVotingEscrowMainchain.sol} +11 -1
  216. package/contracts/interfaces/ISuperComposableYield.sol +2 -7
  217. package/contracts/libraries/Errors.sol +121 -0
  218. package/contracts/libraries/OracleLib.sol +6 -3
  219. package/contracts/libraries/VeBalanceLib.sol +5 -1
  220. package/contracts/libraries/VeHistoryLib.sol +20 -31
  221. package/contracts/libraries/helpers/ArrayLib.sol +0 -17
  222. package/contracts/libraries/helpers/BaseSplitCodeFactory.sol +288 -0
  223. package/contracts/libraries/helpers/TokenHelper.sol +4 -0
  224. package/contracts/libraries/kyberswap/AggregationRouterHelper.sol +0 -7
  225. package/contracts/libraries/math/MarketMathCore.sol +29 -25
  226. package/contracts/libraries/math/Math.sol +6 -2
  227. package/contracts/libraries/math/WeekMath.sol +2 -2
  228. package/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol +43 -0
  229. package/contracts/offchain-helpers/MarketMathStatic.sol +36 -36
  230. package/contracts/offchain-helpers/RouterStatic.sol +45 -37
  231. package/deployments/43113-core.json +11 -10
  232. package/deployments/43113-markets/benqi-market-QI-USDC-FEB-2ND.json +8 -0
  233. package/deployments/43113-markets/benqi-market-QI-WETH-DEC-1ST.json +8 -0
  234. package/deployments/43113-testenv.json +9 -9
  235. package/deployments/80001-core.json +10 -9
  236. package/deployments/80001-markets/benqi-market-QI-USDC-FEB-2ND.json +8 -0
  237. package/deployments/80001-markets/benqi-market-QI-WETH-DEC-1ST.json +8 -0
  238. package/deployments/80001-testenv.json +16 -16
  239. package/package.json +1 -1
  240. package/typechain-types/ActionAddRemoveLiq.ts +18 -6
  241. package/typechain-types/ActionMintRedeem.ts +9 -2
  242. package/typechain-types/ActionSwapPT.ts +18 -6
  243. package/typechain-types/ActionSwapPTYT.ts +6 -2
  244. package/typechain-types/ActionSwapYT.ts +18 -6
  245. package/typechain-types/Errors.ts +57 -0
  246. package/typechain-types/ICrvPool.ts +137 -22
  247. package/typechain-types/IPActionAddRemoveLiq.ts +19 -7
  248. package/typechain-types/IPActionMintRedeem.ts +9 -2
  249. package/typechain-types/IPActionSwapPT.ts +18 -6
  250. package/typechain-types/IPActionSwapPTYT.ts +6 -2
  251. package/typechain-types/IPActionSwapYT.ts +18 -6
  252. package/typechain-types/IPAllAction.ts +70 -23
  253. package/typechain-types/IPBatchSeller.ts +252 -0
  254. package/typechain-types/IPMarket.ts +13 -0
  255. package/typechain-types/IPVotingController.ts +244 -7
  256. package/typechain-types/IPVotingEscrowMainchain.ts +461 -0
  257. package/typechain-types/IRewards.ts +25 -10
  258. package/typechain-types/ISuperComposableYield.ts +7 -46
  259. package/typechain-types/MarketMathStatic.ts +139 -10
  260. package/typechain-types/Pendle3CrvAndTokenSCY.ts +1215 -0
  261. package/typechain-types/Pendle3CrvTokenSCY.ts +85 -185
  262. package/typechain-types/PendleBatchSeller.ts +626 -0
  263. package/typechain-types/PendleConvexCurveLP2PoolSCY.ts +185 -220
  264. package/typechain-types/PendleConvexCurveLPSCY.ts +159 -182
  265. package/typechain-types/PendleCvxCRVSCY.ts +0 -34
  266. package/typechain-types/PendleGaugeControllerSidechainUpg.ts +28 -149
  267. package/typechain-types/PendleMarket.ts +104 -0
  268. package/typechain-types/PendleMarketFactory.ts +76 -13
  269. package/typechain-types/PendlePrincipalToken.ts +104 -0
  270. package/typechain-types/PendleQiTokenSCY.ts +111 -46
  271. package/typechain-types/PendleVotingControllerUpg.ts +133 -77
  272. package/typechain-types/PendleWstEthSCY.ts +111 -46
  273. package/typechain-types/PendleYieldContractFactory.ts +84 -21
  274. package/typechain-types/PendleYieldToken.ts +175 -0
  275. package/typechain-types/PtAMMArb.ts +587 -0
  276. package/typechain-types/RouterStatic.ts +99 -75
  277. package/typechain-types/SCYBase.ts +111 -46
  278. package/typechain-types/SCYBaseWithRewards.ts +111 -46
  279. package/typechain-types/VotingControllerStorageUpg.ts +246 -27
  280. package/typechain-types/VotingEscrowPendleMainchain.ts +81 -93
  281. package/typechain-types/VotingEscrowPendleSidechain.ts +26 -171
  282. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +169 -1
  283. package/typechain-types/factories/ActionCallback__factory.ts +108 -1
  284. package/typechain-types/factories/ActionMintRedeem__factory.ts +59 -1
  285. package/typechain-types/factories/ActionMisc__factory.ts +6 -1
  286. package/typechain-types/factories/ActionSwapPTYT__factory.ts +107 -1
  287. package/typechain-types/factories/ActionSwapPT__factory.ts +196 -1
  288. package/typechain-types/factories/ActionSwapYT__factory.ts +143 -1
  289. package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
  290. package/typechain-types/factories/Errors__factory.ts +933 -0
  291. package/typechain-types/factories/ICrvPool__factory.ts +85 -12
  292. package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +31 -1
  293. package/typechain-types/factories/IPActionMintRedeem__factory.ts +5 -0
  294. package/typechain-types/factories/IPActionSwapPTYT__factory.ts +10 -0
  295. package/typechain-types/factories/IPActionSwapPT__factory.ts +30 -0
  296. package/typechain-types/factories/IPActionSwapYT__factory.ts +30 -0
  297. package/typechain-types/factories/IPAllAction__factory.ts +106 -1
  298. package/typechain-types/factories/IPBatchSeller__factory.ts +138 -0
  299. package/typechain-types/factories/IPMarket__factory.ts +13 -0
  300. package/typechain-types/factories/IPVotingController__factory.ts +148 -0
  301. package/typechain-types/factories/IPVotingEscrowMainchain__factory.ts +340 -0
  302. package/typechain-types/factories/IRewards__factory.ts +14 -1
  303. package/typechain-types/factories/ISuperComposableYield__factory.ts +4 -28
  304. package/typechain-types/factories/MarketMathStatic__factory.ts +181 -3
  305. package/typechain-types/factories/OracleLib__factory.ts +27 -1
  306. package/typechain-types/factories/Pendle3CrvAndTokenSCY__factory.ts +1130 -0
  307. package/typechain-types/factories/Pendle3CrvHelper__factory.ts +1 -1
  308. package/typechain-types/factories/Pendle3CrvTokenSCY__factory.ts +74 -128
  309. package/typechain-types/factories/PendleBatchSeller__factory.ts +558 -0
  310. package/typechain-types/factories/PendleConvexCurveLP2PoolSCY__factory.ts +207 -136
  311. package/typechain-types/factories/PendleConvexCurveLPSCY__factory.ts +170 -95
  312. package/typechain-types/factories/PendleCvxCRVSCY__factory.ts +1 -29
  313. package/typechain-types/factories/PendleERC20Permit__factory.ts +1 -1
  314. package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +17 -1
  315. package/typechain-types/factories/PendleFeeDistributor__factory.ts +6 -1
  316. package/typechain-types/factories/PendleGaugeControllerBaseUpg__factory.ts +11 -0
  317. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +28 -1
  318. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +48 -86
  319. package/typechain-types/factories/PendleMarketFactory__factory.ts +129 -9
  320. package/typechain-types/factories/PendleMarket__factory.ts +214 -1
  321. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +17 -1
  322. package/typechain-types/factories/PendleMsgReceiverAppUpg__factory.ts +11 -0
  323. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +6 -1
  324. package/typechain-types/factories/PendlePrincipalToken__factory.ts +86 -1
  325. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  326. package/typechain-types/factories/PendleQiTokenSCY__factory.ts +198 -29
  327. package/typechain-types/factories/PendleRouter__factory.ts +12 -1
  328. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +235 -40
  329. package/typechain-types/factories/PendleWstEthSCY__factory.ts +137 -22
  330. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +103 -20
  331. package/typechain-types/factories/PendleYieldToken__factory.ts +163 -1
  332. package/typechain-types/factories/PtAMMArb__factory.ts +525 -0
  333. package/typechain-types/factories/RouterStatic__factory.ts +67 -20
  334. package/typechain-types/factories/SCYBaseWithRewards__factory.ts +136 -21
  335. package/typechain-types/factories/SCYBase__factory.ts +136 -21
  336. package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +232 -12
  337. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +171 -47
  338. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +31 -93
  339. package/typechain-types/hardhat.d.ts +99 -0
  340. package/typechain-types/index.ts +22 -0
  341. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +0 -4
  342. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +0 -810
  343. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +0 -4
  344. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.json +0 -10
  345. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.dbg.json +0 -4
  346. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.json +0 -833
  347. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.dbg.json +0 -4
  348. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.json +0 -723
  349. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.dbg.json +0 -4
  350. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.json +0 -728
  351. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +0 -4
  352. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.json +0 -705
  353. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.dbg.json +0 -4
  354. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.json +0 -864
  355. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol/PendleYearnVaultSCY.dbg.json +0 -4
  356. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol/PendleYearnVaultSCY.json +0 -718
  357. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.dbg.json +0 -4
  358. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.json +0 -784
  359. package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +0 -4
  360. package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +0 -4
  361. package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +0 -4
  362. package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +0 -4
  363. package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +0 -4
  364. package/build/artifacts/contracts/offchain-helpers/SSTORE2DeployerContract.sol/SSTORE2DeployerContract.dbg.json +0 -4
  365. package/build/artifacts/contracts/offchain-helpers/SSTORE2DeployerContract.sol/SSTORE2DeployerContract.json +0 -134
  366. package/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol +0 -161
  367. package/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol +0 -126
  368. package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol +0 -242
  369. package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol +0 -146
  370. package/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol +0 -176
  371. package/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol +0 -129
  372. package/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol +0 -193
  373. package/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol +0 -155
  374. package/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol +0 -182
  375. package/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol +0 -53
  376. package/contracts/libraries/helpers/SSTORE2Deployer.sol +0 -30
  377. package/contracts/libraries/solmate/SSTORE2.sol +0 -99
  378. package/contracts/offchain-helpers/SSTORE2DeployerContract.sol +0 -21
  379. package/deployments/43113-markets/benqi-market-10D931.json +0 -8
  380. package/deployments/43113-markets/benqi-market-9fbD64.json +0 -8
  381. package/deployments/43113-markets/benqi-market-A12361.json +0 -8
@@ -0,0 +1,886 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "Errors",
4
+ "sourceName": "contracts/libraries/Errors.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "ArrayEmpty",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "inputs": [],
13
+ "name": "ArrayLengthMismatch",
14
+ "type": "error"
15
+ },
16
+ {
17
+ "inputs": [],
18
+ "name": "ArrayOutOfBounds",
19
+ "type": "error"
20
+ },
21
+ {
22
+ "inputs": [
23
+ {
24
+ "internalType": "uint256",
25
+ "name": "chainId",
26
+ "type": "uint256"
27
+ }
28
+ ],
29
+ "name": "ChainNotSupported",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [
34
+ {
35
+ "internalType": "uint256",
36
+ "name": "expiry",
37
+ "type": "uint256"
38
+ }
39
+ ],
40
+ "name": "ExpiryInThePast",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [],
45
+ "name": "FDCantFundFutureEpoch",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [
50
+ {
51
+ "internalType": "address",
52
+ "name": "pool",
53
+ "type": "address"
54
+ },
55
+ {
56
+ "internalType": "address",
57
+ "name": "distributor",
58
+ "type": "address"
59
+ }
60
+ ],
61
+ "name": "FDFactoryDistributorAlreadyExisted",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [
66
+ {
67
+ "internalType": "address",
68
+ "name": "caller",
69
+ "type": "address"
70
+ }
71
+ ],
72
+ "name": "GCNotPendleMarket",
73
+ "type": "error"
74
+ },
75
+ {
76
+ "inputs": [
77
+ {
78
+ "internalType": "address",
79
+ "name": "caller",
80
+ "type": "address"
81
+ }
82
+ ],
83
+ "name": "GCNotVotingController",
84
+ "type": "error"
85
+ },
86
+ {
87
+ "inputs": [
88
+ {
89
+ "internalType": "uint256",
90
+ "name": "currentFee",
91
+ "type": "uint256"
92
+ },
93
+ {
94
+ "internalType": "uint256",
95
+ "name": "requiredFee",
96
+ "type": "uint256"
97
+ }
98
+ ],
99
+ "name": "InsufficientFeeToSendMsg",
100
+ "type": "error"
101
+ },
102
+ {
103
+ "inputs": [
104
+ {
105
+ "internalType": "uint256",
106
+ "name": "wTime",
107
+ "type": "uint256"
108
+ }
109
+ ],
110
+ "name": "InvalidWTime",
111
+ "type": "error"
112
+ },
113
+ {
114
+ "inputs": [
115
+ {
116
+ "internalType": "uint88",
117
+ "name": "lnFeeRateRoot",
118
+ "type": "uint88"
119
+ },
120
+ {
121
+ "internalType": "uint256",
122
+ "name": "maxLnFeeRateRoot",
123
+ "type": "uint256"
124
+ }
125
+ ],
126
+ "name": "MFactoryLnFeeRateRootTooHigh",
127
+ "type": "error"
128
+ },
129
+ {
130
+ "inputs": [
131
+ {
132
+ "internalType": "uint8",
133
+ "name": "reserveFeePercent",
134
+ "type": "uint8"
135
+ },
136
+ {
137
+ "internalType": "uint8",
138
+ "name": "maxReserveFeePercent",
139
+ "type": "uint8"
140
+ }
141
+ ],
142
+ "name": "MFactoryReserveFeePercentTooHigh",
143
+ "type": "error"
144
+ },
145
+ {
146
+ "inputs": [
147
+ {
148
+ "internalType": "int256",
149
+ "name": "exchangeRate",
150
+ "type": "int256"
151
+ }
152
+ ],
153
+ "name": "MarketExchangeRateBelowOne",
154
+ "type": "error"
155
+ },
156
+ {
157
+ "inputs": [],
158
+ "name": "MarketExpired",
159
+ "type": "error"
160
+ },
161
+ {
162
+ "inputs": [],
163
+ "name": "MarketFactoryExpiredPt",
164
+ "type": "error"
165
+ },
166
+ {
167
+ "inputs": [],
168
+ "name": "MarketFactoryInvalidPt",
169
+ "type": "error"
170
+ },
171
+ {
172
+ "inputs": [],
173
+ "name": "MarketFactoryMarketExists",
174
+ "type": "error"
175
+ },
176
+ {
177
+ "inputs": [
178
+ {
179
+ "internalType": "int256",
180
+ "name": "currentAmount",
181
+ "type": "int256"
182
+ },
183
+ {
184
+ "internalType": "int256",
185
+ "name": "requiredAmount",
186
+ "type": "int256"
187
+ }
188
+ ],
189
+ "name": "MarketInsufficientPtForTrade",
190
+ "type": "error"
191
+ },
192
+ {
193
+ "inputs": [
194
+ {
195
+ "internalType": "uint256",
196
+ "name": "actualBalance",
197
+ "type": "uint256"
198
+ },
199
+ {
200
+ "internalType": "uint256",
201
+ "name": "requiredBalance",
202
+ "type": "uint256"
203
+ }
204
+ ],
205
+ "name": "MarketInsufficientPtReceived",
206
+ "type": "error"
207
+ },
208
+ {
209
+ "inputs": [
210
+ {
211
+ "internalType": "uint256",
212
+ "name": "actualBalance",
213
+ "type": "uint256"
214
+ },
215
+ {
216
+ "internalType": "uint256",
217
+ "name": "requiredBalance",
218
+ "type": "uint256"
219
+ }
220
+ ],
221
+ "name": "MarketInsufficientScyReceived",
222
+ "type": "error"
223
+ },
224
+ {
225
+ "inputs": [],
226
+ "name": "MarketProportionMustNotEqualOne",
227
+ "type": "error"
228
+ },
229
+ {
230
+ "inputs": [
231
+ {
232
+ "internalType": "int256",
233
+ "name": "proportion",
234
+ "type": "int256"
235
+ },
236
+ {
237
+ "internalType": "int256",
238
+ "name": "maxProportion",
239
+ "type": "int256"
240
+ }
241
+ ],
242
+ "name": "MarketProportionTooHigh",
243
+ "type": "error"
244
+ },
245
+ {
246
+ "inputs": [
247
+ {
248
+ "internalType": "int256",
249
+ "name": "rateScalar",
250
+ "type": "int256"
251
+ }
252
+ ],
253
+ "name": "MarketRateScalarBelowZero",
254
+ "type": "error"
255
+ },
256
+ {
257
+ "inputs": [
258
+ {
259
+ "internalType": "int256",
260
+ "name": "scalarRoot",
261
+ "type": "int256"
262
+ }
263
+ ],
264
+ "name": "MarketScalarRootBelowZero",
265
+ "type": "error"
266
+ },
267
+ {
268
+ "inputs": [],
269
+ "name": "MarketZeroAmountsInput",
270
+ "type": "error"
271
+ },
272
+ {
273
+ "inputs": [],
274
+ "name": "MarketZeroAmountsOutput",
275
+ "type": "error"
276
+ },
277
+ {
278
+ "inputs": [],
279
+ "name": "MarketZeroLnImpliedRate",
280
+ "type": "error"
281
+ },
282
+ {
283
+ "inputs": [
284
+ {
285
+ "internalType": "int256",
286
+ "name": "totalPt",
287
+ "type": "int256"
288
+ },
289
+ {
290
+ "internalType": "int256",
291
+ "name": "totalAsset",
292
+ "type": "int256"
293
+ }
294
+ ],
295
+ "name": "MarketZeroTotalPtOrTotalAsset",
296
+ "type": "error"
297
+ },
298
+ {
299
+ "inputs": [
300
+ {
301
+ "internalType": "address",
302
+ "name": "sender",
303
+ "type": "address"
304
+ }
305
+ ],
306
+ "name": "MsgNotFromReceiveEndpoint",
307
+ "type": "error"
308
+ },
309
+ {
310
+ "inputs": [
311
+ {
312
+ "internalType": "address",
313
+ "name": "sender",
314
+ "type": "address"
315
+ }
316
+ ],
317
+ "name": "MsgNotFromSendEndpoint",
318
+ "type": "error"
319
+ },
320
+ {
321
+ "inputs": [],
322
+ "name": "OnlyCelerBus",
323
+ "type": "error"
324
+ },
325
+ {
326
+ "inputs": [],
327
+ "name": "OnlyWhitelisted",
328
+ "type": "error"
329
+ },
330
+ {
331
+ "inputs": [],
332
+ "name": "OnlyYCFactory",
333
+ "type": "error"
334
+ },
335
+ {
336
+ "inputs": [],
337
+ "name": "OnlyYT",
338
+ "type": "error"
339
+ },
340
+ {
341
+ "inputs": [
342
+ {
343
+ "internalType": "uint32",
344
+ "name": "target",
345
+ "type": "uint32"
346
+ },
347
+ {
348
+ "internalType": "uint32",
349
+ "name": "oldest",
350
+ "type": "uint32"
351
+ }
352
+ ],
353
+ "name": "OracleTargetTooOld",
354
+ "type": "error"
355
+ },
356
+ {
357
+ "inputs": [],
358
+ "name": "OracleUninitialized",
359
+ "type": "error"
360
+ },
361
+ {
362
+ "inputs": [],
363
+ "name": "OracleZeroCardinality",
364
+ "type": "error"
365
+ },
366
+ {
367
+ "inputs": [
368
+ {
369
+ "internalType": "address",
370
+ "name": "caller",
371
+ "type": "address"
372
+ }
373
+ ],
374
+ "name": "RouterCallbackNotPendleMarket",
375
+ "type": "error"
376
+ },
377
+ {
378
+ "inputs": [
379
+ {
380
+ "internalType": "uint256",
381
+ "name": "actualPtIn",
382
+ "type": "uint256"
383
+ },
384
+ {
385
+ "internalType": "uint256",
386
+ "name": "limitPtIn",
387
+ "type": "uint256"
388
+ }
389
+ ],
390
+ "name": "RouterExceededLimitPtIn",
391
+ "type": "error"
392
+ },
393
+ {
394
+ "inputs": [
395
+ {
396
+ "internalType": "uint256",
397
+ "name": "actualScyIn",
398
+ "type": "uint256"
399
+ },
400
+ {
401
+ "internalType": "uint256",
402
+ "name": "limitScyIn",
403
+ "type": "uint256"
404
+ }
405
+ ],
406
+ "name": "RouterExceededLimitScyIn",
407
+ "type": "error"
408
+ },
409
+ {
410
+ "inputs": [
411
+ {
412
+ "internalType": "uint256",
413
+ "name": "actualYtIn",
414
+ "type": "uint256"
415
+ },
416
+ {
417
+ "internalType": "uint256",
418
+ "name": "limitYtIn",
419
+ "type": "uint256"
420
+ }
421
+ ],
422
+ "name": "RouterExceededLimitYtIn",
423
+ "type": "error"
424
+ },
425
+ {
426
+ "inputs": [
427
+ {
428
+ "internalType": "uint256",
429
+ "name": "actualLpOut",
430
+ "type": "uint256"
431
+ },
432
+ {
433
+ "internalType": "uint256",
434
+ "name": "requiredLpOut",
435
+ "type": "uint256"
436
+ }
437
+ ],
438
+ "name": "RouterInsufficientLpOut",
439
+ "type": "error"
440
+ },
441
+ {
442
+ "inputs": [
443
+ {
444
+ "internalType": "uint256",
445
+ "name": "actualPYOut",
446
+ "type": "uint256"
447
+ },
448
+ {
449
+ "internalType": "uint256",
450
+ "name": "requiredPYOut",
451
+ "type": "uint256"
452
+ }
453
+ ],
454
+ "name": "RouterInsufficientPYOut",
455
+ "type": "error"
456
+ },
457
+ {
458
+ "inputs": [
459
+ {
460
+ "internalType": "uint256",
461
+ "name": "actualPtOut",
462
+ "type": "uint256"
463
+ },
464
+ {
465
+ "internalType": "uint256",
466
+ "name": "requiredPtOut",
467
+ "type": "uint256"
468
+ }
469
+ ],
470
+ "name": "RouterInsufficientPtOut",
471
+ "type": "error"
472
+ },
473
+ {
474
+ "inputs": [
475
+ {
476
+ "internalType": "uint256",
477
+ "name": "actualPtRepay",
478
+ "type": "uint256"
479
+ },
480
+ {
481
+ "internalType": "uint256",
482
+ "name": "requiredPtRepay",
483
+ "type": "uint256"
484
+ }
485
+ ],
486
+ "name": "RouterInsufficientPtRepay",
487
+ "type": "error"
488
+ },
489
+ {
490
+ "inputs": [
491
+ {
492
+ "internalType": "uint256",
493
+ "name": "actualScyOut",
494
+ "type": "uint256"
495
+ },
496
+ {
497
+ "internalType": "uint256",
498
+ "name": "requiredScyOut",
499
+ "type": "uint256"
500
+ }
501
+ ],
502
+ "name": "RouterInsufficientScyOut",
503
+ "type": "error"
504
+ },
505
+ {
506
+ "inputs": [
507
+ {
508
+ "internalType": "uint256",
509
+ "name": "actualScyRepay",
510
+ "type": "uint256"
511
+ },
512
+ {
513
+ "internalType": "uint256",
514
+ "name": "requiredScyRepay",
515
+ "type": "uint256"
516
+ }
517
+ ],
518
+ "name": "RouterInsufficientScyRepay",
519
+ "type": "error"
520
+ },
521
+ {
522
+ "inputs": [
523
+ {
524
+ "internalType": "uint256",
525
+ "name": "actualTokenOut",
526
+ "type": "uint256"
527
+ },
528
+ {
529
+ "internalType": "uint256",
530
+ "name": "requiredTokenOut",
531
+ "type": "uint256"
532
+ }
533
+ ],
534
+ "name": "RouterInsufficientTokenOut",
535
+ "type": "error"
536
+ },
537
+ {
538
+ "inputs": [
539
+ {
540
+ "internalType": "uint256",
541
+ "name": "actualYtOut",
542
+ "type": "uint256"
543
+ },
544
+ {
545
+ "internalType": "uint256",
546
+ "name": "requiredYtOut",
547
+ "type": "uint256"
548
+ }
549
+ ],
550
+ "name": "RouterInsufficientYtOut",
551
+ "type": "error"
552
+ },
553
+ {
554
+ "inputs": [
555
+ {
556
+ "internalType": "bytes4",
557
+ "name": "selector",
558
+ "type": "bytes4"
559
+ }
560
+ ],
561
+ "name": "RouterInvalidAction",
562
+ "type": "error"
563
+ },
564
+ {
565
+ "inputs": [],
566
+ "name": "RouterTimeRangeZero",
567
+ "type": "error"
568
+ },
569
+ {
570
+ "inputs": [],
571
+ "name": "SCYCurve3crvPoolNotFound",
572
+ "type": "error"
573
+ },
574
+ {
575
+ "inputs": [],
576
+ "name": "SCYCurveInvalidPid",
577
+ "type": "error"
578
+ },
579
+ {
580
+ "inputs": [
581
+ {
582
+ "internalType": "uint256",
583
+ "name": "actualSharesOut",
584
+ "type": "uint256"
585
+ },
586
+ {
587
+ "internalType": "uint256",
588
+ "name": "requiredSharesOut",
589
+ "type": "uint256"
590
+ }
591
+ ],
592
+ "name": "SCYInsufficientSharesOut",
593
+ "type": "error"
594
+ },
595
+ {
596
+ "inputs": [
597
+ {
598
+ "internalType": "uint256",
599
+ "name": "actualTokenOut",
600
+ "type": "uint256"
601
+ },
602
+ {
603
+ "internalType": "uint256",
604
+ "name": "requiredTokenOut",
605
+ "type": "uint256"
606
+ }
607
+ ],
608
+ "name": "SCYInsufficientTokenOut",
609
+ "type": "error"
610
+ },
611
+ {
612
+ "inputs": [
613
+ {
614
+ "internalType": "address",
615
+ "name": "token",
616
+ "type": "address"
617
+ }
618
+ ],
619
+ "name": "SCYInvalidTokenIn",
620
+ "type": "error"
621
+ },
622
+ {
623
+ "inputs": [
624
+ {
625
+ "internalType": "address",
626
+ "name": "token",
627
+ "type": "address"
628
+ }
629
+ ],
630
+ "name": "SCYInvalidTokenOut",
631
+ "type": "error"
632
+ },
633
+ {
634
+ "inputs": [
635
+ {
636
+ "internalType": "uint256",
637
+ "name": "borrowRate",
638
+ "type": "uint256"
639
+ },
640
+ {
641
+ "internalType": "uint256",
642
+ "name": "borrowRateMax",
643
+ "type": "uint256"
644
+ }
645
+ ],
646
+ "name": "SCYQiTokenBorrowRateTooHigh",
647
+ "type": "error"
648
+ },
649
+ {
650
+ "inputs": [
651
+ {
652
+ "internalType": "uint256",
653
+ "name": "errCode",
654
+ "type": "uint256"
655
+ }
656
+ ],
657
+ "name": "SCYQiTokenMintFailed",
658
+ "type": "error"
659
+ },
660
+ {
661
+ "inputs": [
662
+ {
663
+ "internalType": "uint256",
664
+ "name": "errCode",
665
+ "type": "uint256"
666
+ }
667
+ ],
668
+ "name": "SCYQiTokenRedeemFailed",
669
+ "type": "error"
670
+ },
671
+ {
672
+ "inputs": [
673
+ {
674
+ "internalType": "uint256",
675
+ "name": "rewardAccuredType0",
676
+ "type": "uint256"
677
+ },
678
+ {
679
+ "internalType": "uint256",
680
+ "name": "rewardAccuredType1",
681
+ "type": "uint256"
682
+ }
683
+ ],
684
+ "name": "SCYQiTokenRedeemRewardsFailed",
685
+ "type": "error"
686
+ },
687
+ {
688
+ "inputs": [],
689
+ "name": "SCYZeroDeposit",
690
+ "type": "error"
691
+ },
692
+ {
693
+ "inputs": [],
694
+ "name": "SCYZeroRedeem",
695
+ "type": "error"
696
+ },
697
+ {
698
+ "inputs": [
699
+ {
700
+ "internalType": "uint256",
701
+ "name": "wTime",
702
+ "type": "uint256"
703
+ }
704
+ ],
705
+ "name": "VCEpochNotFinalized",
706
+ "type": "error"
707
+ },
708
+ {
709
+ "inputs": [
710
+ {
711
+ "internalType": "uint256",
712
+ "name": "totalWeight",
713
+ "type": "uint256"
714
+ },
715
+ {
716
+ "internalType": "uint256",
717
+ "name": "maxWeight",
718
+ "type": "uint256"
719
+ }
720
+ ],
721
+ "name": "VCExceededMaxWeight",
722
+ "type": "error"
723
+ },
724
+ {
725
+ "inputs": [
726
+ {
727
+ "internalType": "address",
728
+ "name": "pool",
729
+ "type": "address"
730
+ }
731
+ ],
732
+ "name": "VCInactivePool",
733
+ "type": "error"
734
+ },
735
+ {
736
+ "inputs": [
737
+ {
738
+ "internalType": "address",
739
+ "name": "pool",
740
+ "type": "address"
741
+ }
742
+ ],
743
+ "name": "VCPoolAlreadyActive",
744
+ "type": "error"
745
+ },
746
+ {
747
+ "inputs": [
748
+ {
749
+ "internalType": "address",
750
+ "name": "pool",
751
+ "type": "address"
752
+ }
753
+ ],
754
+ "name": "VCPoolAlreadyAddAndRemoved",
755
+ "type": "error"
756
+ },
757
+ {
758
+ "inputs": [
759
+ {
760
+ "internalType": "address",
761
+ "name": "user",
762
+ "type": "address"
763
+ }
764
+ ],
765
+ "name": "VCZeroVePendle",
766
+ "type": "error"
767
+ },
768
+ {
769
+ "inputs": [],
770
+ "name": "VEExceededMaxLockTime",
771
+ "type": "error"
772
+ },
773
+ {
774
+ "inputs": [],
775
+ "name": "VEInsufficientLockTime",
776
+ "type": "error"
777
+ },
778
+ {
779
+ "inputs": [
780
+ {
781
+ "internalType": "uint256",
782
+ "name": "newExpiry",
783
+ "type": "uint256"
784
+ }
785
+ ],
786
+ "name": "VEInvalidNewExpiry",
787
+ "type": "error"
788
+ },
789
+ {
790
+ "inputs": [],
791
+ "name": "VENotAllowedReduceExpiry",
792
+ "type": "error"
793
+ },
794
+ {
795
+ "inputs": [],
796
+ "name": "VEPositionNotExpired",
797
+ "type": "error"
798
+ },
799
+ {
800
+ "inputs": [],
801
+ "name": "VEZeroAmountLocked",
802
+ "type": "error"
803
+ },
804
+ {
805
+ "inputs": [],
806
+ "name": "VEZeroPosition",
807
+ "type": "error"
808
+ },
809
+ {
810
+ "inputs": [
811
+ {
812
+ "internalType": "uint128",
813
+ "name": "bias",
814
+ "type": "uint128"
815
+ },
816
+ {
817
+ "internalType": "uint128",
818
+ "name": "slope",
819
+ "type": "uint128"
820
+ }
821
+ ],
822
+ "name": "VEZeroSlope",
823
+ "type": "error"
824
+ },
825
+ {
826
+ "inputs": [],
827
+ "name": "YCExpired",
828
+ "type": "error"
829
+ },
830
+ {
831
+ "inputs": [],
832
+ "name": "YCFactoryInvalidExpiry",
833
+ "type": "error"
834
+ },
835
+ {
836
+ "inputs": [],
837
+ "name": "YCFactoryYieldContractExisted",
838
+ "type": "error"
839
+ },
840
+ {
841
+ "inputs": [],
842
+ "name": "YCNoFloatingScy",
843
+ "type": "error"
844
+ },
845
+ {
846
+ "inputs": [],
847
+ "name": "YCNotExpired",
848
+ "type": "error"
849
+ },
850
+ {
851
+ "inputs": [],
852
+ "name": "YCNothingToRedeem",
853
+ "type": "error"
854
+ },
855
+ {
856
+ "inputs": [],
857
+ "name": "YCPostExpiryDataNotSet",
858
+ "type": "error"
859
+ },
860
+ {
861
+ "inputs": [
862
+ {
863
+ "internalType": "uint256",
864
+ "name": "actualScy",
865
+ "type": "uint256"
866
+ },
867
+ {
868
+ "internalType": "uint256",
869
+ "name": "requiredScy",
870
+ "type": "uint256"
871
+ }
872
+ ],
873
+ "name": "YieldContractInsufficientScy",
874
+ "type": "error"
875
+ },
876
+ {
877
+ "inputs": [],
878
+ "name": "ZeroAddress",
879
+ "type": "error"
880
+ }
881
+ ],
882
+ "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220eca601b4fae8279e230cd90cc624faedec91fb94f9b818ae23ad21e843b58d8d64736f6c634300080f0033",
883
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220eca601b4fae8279e230cd90cc624faedec91fb94f9b818ae23ad21e843b58d8d64736f6c634300080f0033",
884
+ "linkReferences": {},
885
+ "deployedLinkReferences": {}
886
+ }