@pendle/core-v2 0.8.1-gamma → 0.9.0-gamma-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 (193) hide show
  1. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +1 -1
  2. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +2 -2
  3. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +1 -1
  4. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.dbg.json +1 -1
  5. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.json +2 -2
  6. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  7. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +1 -1
  8. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.json +2 -2
  9. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.dbg.json +1 -1
  10. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.json +2 -2
  11. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.dbg.json +1 -1
  12. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.json +2 -2
  13. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +1 -1
  14. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.json +2 -2
  15. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.dbg.json +1 -1
  16. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.json +2 -2
  17. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +1 -1
  18. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.json +2 -2
  19. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol/PendleYearnVaultSCY.dbg.json +1 -1
  20. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol/PendleYearnVaultSCY.json +2 -2
  21. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.dbg.json +1 -1
  22. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.json +2 -2
  23. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
  24. package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
  25. package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +1 -1
  27. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  29. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/LiquidityMining/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  33. package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  39. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  41. package/build/artifacts/contracts/core/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +2 -2
  44. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  48. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  50. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +2 -2
  52. package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.json +272 -136
  54. package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.json +75 -41
  56. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.dbg.json +1 -1
  57. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.json +1 -1
  58. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.dbg.json +1 -1
  59. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.json +1 -1
  60. package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.json +1 -1
  62. package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  63. package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +1 -1
  64. package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.dbg.json +1 -1
  65. package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +1 -1
  66. package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
  67. package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
  68. package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.dbg.json +1 -1
  69. package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.dbg.json +1 -1
  70. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
  71. package/build/artifacts/contracts/interfaces/IEulerEToken.sol/IEulerEToken.dbg.json +1 -1
  72. package/build/artifacts/contracts/interfaces/IEulerMarkets.sol/IEulerMarkets.dbg.json +1 -1
  73. package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.dbg.json +1 -1
  74. package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.json +268 -132
  75. package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.json +71 -37
  77. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +339 -169
  79. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.dbg.json +1 -1
  87. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +1 -1
  92. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  94. package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
  96. package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
  97. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  98. package/build/artifacts/contracts/interfaces/ISAvax.sol/ISAvax.dbg.json +1 -1
  99. package/build/artifacts/contracts/interfaces/ISJoe.sol/ISJoe.dbg.json +1 -1
  100. package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
  101. package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +1 -1
  102. package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +1 -1
  103. package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
  104. package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
  105. package/build/artifacts/contracts/interfaces/IWAvax.sol/IWAvax.dbg.json +1 -1
  106. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  107. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  108. package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +1 -1
  109. package/build/artifacts/contracts/libraries/RewardManager.sol/RewardManager.dbg.json +1 -1
  110. package/build/artifacts/contracts/libraries/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  111. package/build/artifacts/contracts/libraries/SCY/SCYUtils.sol/SCYUtils.dbg.json +1 -1
  112. package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  113. package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  114. package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  115. package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  116. package/build/artifacts/contracts/libraries/helpers/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  117. package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  118. package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +1 -1
  119. package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  120. package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +4 -0
  121. package/build/artifacts/contracts/libraries/{traderjoe/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.json → kyberswap/KyberSwapHelper.sol/KyberSwapHelper.json} +3 -3
  122. package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  123. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.dbg.json +1 -1
  124. package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  125. package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
  126. package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
  127. package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +1 -1
  128. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  129. package/build/artifacts/contracts/periphery/PermissionsV2Upg.sol/PermissionsV2Upg.dbg.json +1 -1
  130. package/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol +6 -8
  131. package/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +1 -1
  132. package/contracts/core/PendleRouter.sol +10 -10
  133. package/contracts/core/actions/ActionCore.sol +54 -81
  134. package/contracts/core/actions/ActionYT.sol +17 -37
  135. package/contracts/core/actions/base/ActionSCYAndPTBase.sol +11 -28
  136. package/contracts/core/actions/base/ActionSCYAndPYBase.sol +39 -51
  137. package/contracts/core/actions/base/ActionSCYAndYTBase.sol +10 -27
  138. package/contracts/interfaces/IPActionCore.sol +43 -50
  139. package/contracts/interfaces/IPActionYT.sol +11 -12
  140. package/contracts/libraries/helpers/TokenHelper.sol +8 -3
  141. package/contracts/libraries/kyberswap/KyberSwapHelper.sol +61 -0
  142. package/package.json +1 -1
  143. package/typechain-types/ActionCore.ts +330 -356
  144. package/typechain-types/ActionSCYAndPTBase.ts +11 -8
  145. package/typechain-types/ActionSCYAndPYBase.ts +11 -8
  146. package/typechain-types/ActionSCYAndYTBase.ts +11 -8
  147. package/typechain-types/ActionYT.ts +119 -106
  148. package/typechain-types/IPActionCore.ts +320 -349
  149. package/typechain-types/IPActionYT.ts +110 -100
  150. package/typechain-types/IPAllAction.ts +400 -447
  151. package/typechain-types/KyberSwapHelper.ts +87 -0
  152. package/typechain-types/factories/ActionCallback__factory.ts +1 -1
  153. package/typechain-types/factories/ActionCore__factory.ts +275 -139
  154. package/typechain-types/factories/ActionSCYAndPTBase__factory.ts +1 -1
  155. package/typechain-types/factories/ActionSCYAndPYBase__factory.ts +1 -1
  156. package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +1 -1
  157. package/typechain-types/factories/ActionYT__factory.ts +78 -44
  158. package/typechain-types/factories/IPActionCore__factory.ts +268 -132
  159. package/typechain-types/factories/IPActionYT__factory.ts +71 -37
  160. package/typechain-types/factories/IPAllAction__factory.ts +339 -169
  161. package/typechain-types/factories/KyberSwapHelper__factory.ts +39 -0
  162. package/typechain-types/factories/PendleAaveV3SCY__factory.ts +1 -1
  163. package/typechain-types/factories/PendleERC4626SCY__factory.ts +1 -1
  164. package/typechain-types/factories/PendleEulerSCY__factory.ts +1 -1
  165. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  166. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  167. package/typechain-types/factories/PendleQiSAvaxSCY__factory.ts +1 -1
  168. package/typechain-types/factories/PendleQiTokenSCY__factory.ts +1 -1
  169. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  170. package/typechain-types/factories/PendleSAvaxSCY__factory.ts +1 -1
  171. package/typechain-types/factories/PendleSJoeSCY__factory.ts +1 -1
  172. package/typechain-types/factories/PendleStargateSCY__factory.ts +1 -1
  173. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  174. package/typechain-types/factories/PendleWstEthSCY__factory.ts +1 -1
  175. package/typechain-types/factories/PendleYearnVaultScy__factory.ts +1 -1
  176. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  177. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  178. package/typechain-types/hardhat.d.ts +9 -0
  179. package/typechain-types/index.ts +2 -0
  180. package/build/artifacts/contracts/interfaces/IJoePair.sol/IJoePair.dbg.json +0 -4
  181. package/build/artifacts/contracts/interfaces/IJoePair.sol/IJoePair.json +0 -662
  182. package/build/artifacts/contracts/interfaces/IJoeRouter01.sol/IJoeRouter01.dbg.json +0 -4
  183. package/build/artifacts/contracts/interfaces/IJoeRouter01.sol/IJoeRouter01.json +0 -760
  184. package/build/artifacts/contracts/interfaces/IJoeRouter02.sol/IJoeRouter02.dbg.json +0 -4
  185. package/build/artifacts/contracts/interfaces/IJoeRouter02.sol/IJoeRouter02.json +0 -962
  186. package/build/artifacts/contracts/libraries/traderjoe/JoeLibrary.sol/JoeLibrary.dbg.json +0 -4
  187. package/build/artifacts/contracts/libraries/traderjoe/JoeLibrary.sol/JoeLibrary.json +0 -10
  188. package/build/artifacts/contracts/libraries/traderjoe/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.dbg.json +0 -4
  189. package/contracts/interfaces/IJoePair.sol +0 -98
  190. package/contracts/interfaces/IJoeRouter01.sol +0 -162
  191. package/contracts/interfaces/IJoeRouter02.sol +0 -52
  192. package/contracts/libraries/traderjoe/JoeLibrary.sol +0 -122
  193. package/contracts/libraries/traderjoe/PendleJoeSwapHelperUpg.sol +0 -80
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
+ }
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "_format": "hh-sol-artifact-1",
3
- "contractName": "PendleJoeSwapHelperUpg",
4
- "sourceName": "contracts/libraries/traderjoe/PendleJoeSwapHelperUpg.sol",
3
+ "contractName": "KyberSwapHelper",
4
+ "sourceName": "contracts/libraries/kyberswap/KyberSwapHelper.sol",
5
5
  "abi": [
6
6
  {
7
7
  "inputs": [],
8
- "name": "joeFactory",
8
+ "name": "kyberSwapRouter",
9
9
  "outputs": [
10
10
  {
11
11
  "internalType": "address",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/a4ba5d2a874c9e63492c072e1e1ee71d.json"
3
+ "buildInfo": "../../../build-info/12e51efac9ec486bc1239cdd2596f524.json"
4
4
  }
@@ -40,10 +40,10 @@ contract PendleSJoeSCY is SCYBaseWithRewards {
40
40
  string memory _name,
41
41
  string memory _symbol,
42
42
  address _sJOE
43
- ) SCYBaseWithRewards(_name, _symbol, _sJOE) {
43
+ ) SCYBaseWithRewards(_name, _symbol, ISJoe(_sJOE).joe()) {
44
44
  require(_sJOE != address(0), "zero address");
45
45
  SJOE = _sJOE;
46
- JOE = ISJoe(SJOE).joe();
46
+ JOE = yieldToken;
47
47
 
48
48
  _safeApprove(JOE, SJOE, type(uint256).max);
49
49
  }
@@ -130,7 +130,7 @@ contract PendleSJoeSCY is SCYBaseWithRewards {
130
130
  MISC FUNCTIONS FOR METADATA
131
131
  //////////////////////////////////////////////////////////////*/
132
132
 
133
- function _previewDeposit(address tokenIn, uint256 amountTokenToDeposit)
133
+ function _previewDeposit(address, uint256 amountTokenToDeposit)
134
134
  internal
135
135
  view
136
136
  override
@@ -138,18 +138,16 @@ contract PendleSJoeSCY is SCYBaseWithRewards {
138
138
  {
139
139
  uint256 sJoeDepositFeePrecision = ISJoe(SJOE).depositFeePercent();
140
140
 
141
- amountSharesOut =
142
- (((1e18 - sJoeDepositFeePrecision / 1e18) * amountTokenToDeposit) * 1e18) /
143
- exchangeRate();
141
+ amountSharesOut = ((1e18 - sJoeDepositFeePrecision / 1e18) * amountTokenToDeposit);
144
142
  }
145
143
 
146
- function _previewRedeem(address tokenOut, uint256 amountSharesToRedeem)
144
+ function _previewRedeem(address, uint256 amountSharesToRedeem)
147
145
  internal
148
146
  pure
149
147
  override
150
148
  returns (uint256 amountTokenOut)
151
149
  {
152
- amountTokenOut = (amountSharesToRedeem * exchangeRate()) / 1e18;
150
+ amountTokenOut = amountSharesToRedeem;
153
151
  }
154
152
 
155
153
  function getTokensIn() public view virtual override returns (address[] memory res) {
@@ -70,7 +70,7 @@ contract PendleVotingControllerUpg is
70
70
  address user = msg.sender;
71
71
 
72
72
  require(weights.length == pools.length, "invaid array length");
73
- require(vePendle.balanceOf(user) > 0, "zero vependle balance");
73
+ require(vePendle.balanceOf(user) > 0 || user == _governance(), "zero vependle balance");
74
74
 
75
75
  UserData storage uData = userData[user];
76
76
  LockedPosition memory userPosition = _getUserVePendlePosition(user);
@@ -44,26 +44,26 @@ contract PendleRouter is Proxy, Initializable, UUPSUpgradeable, PermissionsV2Upg
44
44
 
45
45
  function getRouterImplementation(bytes4 sig) public view returns (address) {
46
46
  if (
47
- sig == IPActionCore.mintScyFromRawToken.selector ||
48
- sig == IPActionCore.redeemScyToRawToken.selector ||
49
- sig == IPActionCore.mintPyFromRawToken.selector ||
50
- sig == IPActionCore.redeemPyToRawToken.selector ||
47
+ sig == IPActionCore.mintScyFromToken.selector ||
48
+ sig == IPActionCore.redeemScyToToken.selector ||
49
+ sig == IPActionCore.mintPyFromToken.selector ||
50
+ sig == IPActionCore.redeemPyToToken.selector ||
51
51
  sig == IPActionCore.mintPyFromScy.selector ||
52
52
  sig == IPActionCore.redeemPyToScy.selector ||
53
53
  sig == IPActionCore.addLiquidity.selector ||
54
54
  sig == IPActionCore.addLiquiditySinglePt.selector ||
55
55
  sig == IPActionCore.addLiquiditySingleScy.selector ||
56
- sig == IPActionCore.addLiquiditySingleRawToken.selector ||
56
+ sig == IPActionCore.addLiquiditySingleToken.selector ||
57
57
  sig == IPActionCore.removeLiquidity.selector ||
58
58
  sig == IPActionCore.removeLiquiditySinglePt.selector ||
59
59
  sig == IPActionCore.removeLiquiditySingleScy.selector ||
60
- sig == IPActionCore.removeLiquiditySingleRawToken.selector ||
60
+ sig == IPActionCore.removeLiquiditySingleToken.selector ||
61
61
  sig == IPActionCore.swapExactPtForScy.selector ||
62
62
  sig == IPActionCore.swapPtForExactScy.selector ||
63
63
  sig == IPActionCore.swapScyForExactPt.selector ||
64
64
  sig == IPActionCore.swapExactScyForPt.selector ||
65
- sig == IPActionCore.swapExactRawTokenForPt.selector ||
66
- sig == IPActionCore.swapExactPtForRawToken.selector ||
65
+ sig == IPActionCore.swapExactTokenForPt.selector ||
66
+ sig == IPActionCore.swapExactPtForToken.selector ||
67
67
  sig == IPActionCore.redeemDueInterestAndRewards.selector
68
68
  ) {
69
69
  return ACTION_CORE;
@@ -71,8 +71,8 @@ contract PendleRouter is Proxy, Initializable, UUPSUpgradeable, PermissionsV2Upg
71
71
  sig == IPActionYT.swapExactYtForScy.selector ||
72
72
  sig == IPActionYT.swapScyForExactYt.selector ||
73
73
  sig == IPActionYT.swapExactScyForYt.selector ||
74
- sig == IPActionYT.swapExactRawTokenForYt.selector ||
75
- sig == IPActionYT.swapExactYtForRawToken.selector ||
74
+ sig == IPActionYT.swapExactTokenForYt.selector ||
75
+ sig == IPActionYT.swapExactYtForToken.selector ||
76
76
  sig == IPActionYT.swapYtForExactScy.selector
77
77
  ) {
78
78
  return ACTION_YT;