@pendle/core-v2 0.9.3-beta → 0.10.1-beta

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 (360) 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 +7 -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 +4 -0
  20. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/{PendleYearnVaultScy.sol → PendleYearnVaultSCY.sol}/PendleYearnVaultSCY.json +3 -3
  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/CelerReceiverUpg.sol/CelerReceiverUpg.json +67 -5
  27. package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.json +63 -1
  29. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.json +65 -3
  31. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +74 -10
  33. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +79 -15
  35. package/build/artifacts/contracts/core/LiquidityMining/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +204 -123
  38. package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +127 -73
  40. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +93 -34
  42. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +90 -14
  44. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.json +14 -1
  46. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +139 -37
  48. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +84 -56
  50. package/build/artifacts/contracts/core/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +122 -11
  53. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  56. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  57. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +96 -40
  58. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  59. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  60. package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +4 -0
  61. package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +1025 -0
  62. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +2 -2
  64. package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +4 -0
  65. package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.json +622 -0
  66. package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.dbg.json +4 -0
  67. package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.json +35 -0
  68. package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.dbg.json +4 -0
  69. package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.json +459 -0
  70. package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.dbg.json +4 -0
  71. package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.json +459 -0
  72. package/build/artifacts/contracts/core/actions/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +4 -0
  73. package/build/artifacts/contracts/core/actions/base/{ActionSCYAndPTBase.sol/ActionSCYAndPTBase.json → ActionBaseMintRedeem.sol/ActionBaseMintRedeem.json} +2 -2
  74. package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  75. package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.json +24 -0
  80. package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IEulerEToken.sol/IEulerEToken.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IEulerMarkets.sol/IEulerMarkets.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +4 -0
  87. package/build/artifacts/contracts/interfaces/{IPActionCore.sol/IPActionCore.json → IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json} +154 -909
  88. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +4 -0
  89. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +598 -0
  90. package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +4 -0
  91. package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.json +35 -0
  92. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +4 -0
  93. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.json +435 -0
  94. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +4 -0
  95. package/build/artifacts/contracts/interfaces/{IPActionYT.sol/IPActionYT.json → IPActionSwapYT.sol/IPActionSwapYT.json} +23 -11
  96. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  97. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +349 -57
  98. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +4 -0
  99. package/build/artifacts/contracts/{core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.json → interfaces/IPGauge.sol/IPGauge.json} +5 -5
  100. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  101. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
  102. package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.dbg.json +1 -1
  103. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  104. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  105. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +72 -29
  106. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  107. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.json +0 -11
  108. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  109. package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  111. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  112. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.json +1 -1
  113. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +0 -37
  115. package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  117. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.json +1 -1
  119. package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
  120. package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
  121. package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/IREDACTEDStaking.sol/IREDACTEDStaking.dbg.json +1 -1
  123. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.json +1 -1
  125. package/build/artifacts/contracts/interfaces/ISAvax.sol/ISAvax.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/ISJoe.sol/ISJoe.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
  128. package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +1 -1
  130. package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
  131. package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
  132. package/build/artifacts/contracts/interfaces/IWAvax.sol/IWAvax.dbg.json +1 -1
  133. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/IWXBTRFLY.sol/IWXBTRFLY.dbg.json +1 -1
  135. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  136. package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +1 -1
  137. package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.dbg.json +4 -0
  138. package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.json +74 -0
  139. package/build/artifacts/contracts/libraries/RewardManager.sol/RewardManager.dbg.json +1 -1
  140. package/build/artifacts/contracts/libraries/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  141. package/build/artifacts/contracts/libraries/SCY/SCYUtils.sol/SCYUtils.dbg.json +1 -1
  142. package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  143. package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  144. package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  145. package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  146. package/build/artifacts/contracts/libraries/helpers/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  147. package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  148. package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.json +2 -2
  149. package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +1 -1
  150. package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  151. package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
  152. package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  153. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.dbg.json +1 -1
  154. package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.json +2 -2
  155. package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  156. package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.json +2 -2
  157. package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
  158. package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
  159. package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +1 -1
  160. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +4 -0
  161. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +93 -0
  162. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  163. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +447 -49
  164. package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +4 -0
  165. package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.json +86 -0
  166. package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +4 -0
  167. package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.json +37 -0
  168. package/build/artifacts/contracts/periphery/PendleGovernanceManager.sol/PendleGovernanceManager.dbg.json +1 -1
  169. package/build/artifacts/contracts/periphery/PermissionsV2Upg.sol/PermissionsV2Upg.dbg.json +1 -1
  170. package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol +8 -0
  171. package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol +1 -1
  172. package/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol +11 -5
  173. package/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol +0 -1
  174. package/contracts/SuperComposableYield/SCY-implementations/{PendleYearnVaultScy.sol → PendleYearnVaultSCY.sol} +0 -0
  175. package/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol +1 -0
  176. package/contracts/SuperComposableYield/base-implementations/SCYBase.sol +1 -1
  177. package/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol +1 -1
  178. package/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol +7 -7
  179. package/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol +7 -6
  180. package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +4 -5
  181. package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol +6 -3
  182. package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol +6 -3
  183. package/contracts/core/LiquidityMining/PendleGauge.sol +3 -2
  184. package/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +22 -28
  185. package/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +71 -13
  186. package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +7 -4
  187. package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol +6 -2
  188. package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol +4 -3
  189. package/contracts/core/Market/PendleMarket.sol +91 -55
  190. package/contracts/core/Market/PendleMarketFactory.sol +18 -33
  191. package/contracts/core/PendleRouter.sol +60 -52
  192. package/contracts/core/YieldContracts/PendleYieldContractFactory.sol +12 -12
  193. package/contracts/core/YieldContracts/PendleYieldToken.sol +1 -1
  194. package/contracts/core/actions/ActionAddRemoveLiq.sol +366 -0
  195. package/contracts/core/actions/ActionCallback.sol +6 -6
  196. package/contracts/core/actions/ActionMintRedeem.sol +124 -0
  197. package/contracts/core/actions/ActionMisc.sol +24 -0
  198. package/contracts/core/actions/ActionSwapPT.sol +199 -0
  199. package/contracts/core/actions/{base/ActionSCYAndYTBase.sol → ActionSwapYT.sol} +109 -74
  200. package/contracts/core/actions/base/{ActionSCYAndPYBase.sol → ActionBaseMintRedeem.sol} +9 -8
  201. package/contracts/interfaces/IBenQiComptroller.sol +2 -0
  202. package/contracts/interfaces/IPActionAddRemoveLiq.sol +188 -0
  203. package/contracts/interfaces/IPActionMintRedeem.sol +115 -0
  204. package/contracts/interfaces/IPActionMisc.sol +9 -0
  205. package/contracts/interfaces/IPActionSwapPT.sol +69 -0
  206. package/contracts/interfaces/{IPActionYT.sol → IPActionSwapYT.sol} +12 -10
  207. package/contracts/interfaces/IPAllAction.sol +12 -3
  208. package/contracts/interfaces/IPGauge.sol +6 -0
  209. package/contracts/interfaces/IPGaugeController.sol +0 -2
  210. package/contracts/interfaces/IPMarket.sol +28 -10
  211. package/contracts/interfaces/IPMarketFactory.sol +1 -7
  212. package/contracts/interfaces/IPVeToken.sol +1 -1
  213. package/contracts/interfaces/IPVotingController.sol +0 -2
  214. package/contracts/interfaces/IRewardManager.sol +1 -1
  215. package/contracts/libraries/OracleLib.sol +214 -0
  216. package/contracts/libraries/RewardManagerAbstract.sol +1 -1
  217. package/contracts/libraries/math/MarketApproxLib.sol +227 -14
  218. package/contracts/libraries/math/MarketMathCore.sol +0 -33
  219. package/contracts/offchain-helpers/MarketMathStatic.sol +565 -0
  220. package/contracts/offchain-helpers/RouterStatic.sol +196 -262
  221. package/contracts/periphery/BoringOwnableUpgradeable.sol +62 -0
  222. package/deployments/43113-benqi.json +2 -2
  223. package/deployments/43113-core.json +7 -8
  224. package/deployments/43113-markets/benqi-market-6440d6.json +8 -0
  225. package/deployments/43113-markets/benqi-market-Dc7592.json +8 -0
  226. package/deployments/80001-core.json +6 -7
  227. package/deployments/80001-markets/benqi-market-1542e0.json +8 -0
  228. package/deployments/80001-markets/benqi-market-2b6D02.json +8 -0
  229. package/package.json +11 -11
  230. package/typechain-types/ActionAddRemoveLiq.ts +1037 -0
  231. package/typechain-types/ActionBaseMintRedeem.ts +87 -0
  232. package/typechain-types/ActionCore.ts +116 -104
  233. package/typechain-types/ActionMintRedeem.ts +665 -0
  234. package/typechain-types/ActionMisc.ts +105 -0
  235. package/typechain-types/ActionSwapPT.ts +515 -0
  236. package/typechain-types/ActionSwapYT.ts +515 -0
  237. package/typechain-types/ActionYT.ts +5 -4
  238. package/typechain-types/BoringOwnable.ts +194 -0
  239. package/typechain-types/BoringOwnableData.ts +100 -0
  240. package/typechain-types/BoringOwnableUpgradeable.ts +194 -0
  241. package/typechain-types/BoringOwnableUpgradeableData.ts +100 -0
  242. package/typechain-types/CelerReceiverUpg.ts +124 -19
  243. package/typechain-types/CelerSenderUpg.ts +116 -11
  244. package/typechain-types/IBenQiComptroller.ts +39 -0
  245. package/typechain-types/IPActionAddRemoveLiq.ts +1018 -0
  246. package/typechain-types/IPActionCore.ts +116 -104
  247. package/typechain-types/IPActionMintRedeem.ts +646 -0
  248. package/typechain-types/IPActionMisc.ts +105 -0
  249. package/typechain-types/IPActionSwapPT.ts +496 -0
  250. package/typechain-types/IPActionSwapYT.ts +496 -0
  251. package/typechain-types/IPActionYT.ts +5 -4
  252. package/typechain-types/IPAllAction.ts +499 -250
  253. package/typechain-types/IPGauge.ts +87 -0
  254. package/typechain-types/IPMarket.ts +133 -50
  255. package/typechain-types/IPMarketFactory.ts +7 -17
  256. package/typechain-types/IPVeToken.ts +8 -8
  257. package/typechain-types/IPVotingController.ts +0 -20
  258. package/typechain-types/IPYieldToken.ts +3 -3
  259. package/typechain-types/IRewardManager.ts +3 -3
  260. package/typechain-types/MarketMathStatic.ts +198 -0
  261. package/typechain-types/OracleLib.ts +124 -0
  262. package/typechain-types/PendleGaugeControllerBaseUpg.ts +118 -15
  263. package/typechain-types/PendleGaugeControllerMainchainUpg.ts +136 -9
  264. package/typechain-types/PendleGaugeControllerSidechainUpg.ts +138 -11
  265. package/typechain-types/PendleMarket.ts +178 -59
  266. package/typechain-types/PendleMarketFactory.ts +135 -61
  267. package/typechain-types/PendleRouter.ts +201 -31
  268. package/typechain-types/PendleVotingControllerUpg.ts +325 -149
  269. package/typechain-types/PendleYieldContractFactory.ts +144 -21
  270. package/typechain-types/RouterStatic.ts +404 -114
  271. package/typechain-types/VotingControllerStorageUpg.ts +182 -113
  272. package/typechain-types/VotingEscrowPendleMainchain.ts +170 -63
  273. package/typechain-types/VotingEscrowPendleSidechain.ts +163 -17
  274. package/typechain-types/VotingEscrowTokenBase.ts +27 -8
  275. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1083 -0
  276. package/typechain-types/factories/ActionBaseMintRedeem__factory.ts +43 -0
  277. package/typechain-types/factories/ActionCallback__factory.ts +1 -1
  278. package/typechain-types/factories/ActionCore__factory.ts +39 -23
  279. package/typechain-types/factories/ActionMintRedeem__factory.ts +680 -0
  280. package/typechain-types/factories/ActionMisc__factory.ts +85 -0
  281. package/typechain-types/factories/ActionSwapPT__factory.ts +514 -0
  282. package/typechain-types/factories/ActionSwapYT__factory.ts +514 -0
  283. package/typechain-types/factories/ActionYT__factory.ts +2 -2
  284. package/typechain-types/factories/BoringOwnableData__factory.ts +90 -0
  285. package/typechain-types/factories/BoringOwnableUpgradeableData__factory.ts +96 -0
  286. package/typechain-types/factories/BoringOwnableUpgradeable__factory.ts +143 -0
  287. package/typechain-types/factories/BoringOwnable__factory.ts +141 -0
  288. package/typechain-types/factories/CelerReceiverUpg__factory.ts +67 -5
  289. package/typechain-types/factories/CelerSenderUpg__factory.ts +63 -1
  290. package/typechain-types/factories/IBenQiComptroller__factory.ts +24 -0
  291. package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +1020 -0
  292. package/typechain-types/factories/IPActionCore__factory.ts +38 -22
  293. package/typechain-types/factories/IPActionMintRedeem__factory.ts +613 -0
  294. package/typechain-types/factories/IPActionMisc__factory.ts +47 -0
  295. package/typechain-types/factories/IPActionSwapPT__factory.ts +450 -0
  296. package/typechain-types/factories/IPActionSwapYT__factory.ts +450 -0
  297. package/typechain-types/factories/IPActionYT__factory.ts +1 -1
  298. package/typechain-types/factories/IPAllAction__factory.ts +349 -57
  299. package/typechain-types/factories/IPGauge__factory.ts +36 -0
  300. package/typechain-types/factories/IPMarketFactory__factory.ts +0 -11
  301. package/typechain-types/factories/IPMarket__factory.ts +72 -29
  302. package/typechain-types/factories/IPVeToken__factory.ts +1 -1
  303. package/typechain-types/factories/IPVotingController__factory.ts +0 -37
  304. package/typechain-types/factories/IPYieldToken__factory.ts +1 -1
  305. package/typechain-types/factories/IRewardManager__factory.ts +1 -1
  306. package/typechain-types/factories/MarketMathStatic__factory.ts +146 -0
  307. package/typechain-types/factories/OracleLib__factory.ts +124 -0
  308. package/typechain-types/factories/PendleAaveV3SCY__factory.ts +1 -1
  309. package/typechain-types/factories/PendleERC4626SCY__factory.ts +1 -1
  310. package/typechain-types/factories/PendleEulerSCY__factory.ts +10 -1
  311. package/typechain-types/factories/PendleGaugeControllerBaseUpg__factory.ts +65 -3
  312. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +73 -13
  313. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +79 -23
  314. package/typechain-types/factories/PendleMarketFactory__factory.ts +84 -86
  315. package/typechain-types/factories/PendleMarket__factory.ts +131 -37
  316. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  317. package/typechain-types/factories/PendleQiSAvaxSCY__factory.ts +1 -1
  318. package/typechain-types/factories/PendleQiTokenSCY__factory.ts +1 -1
  319. package/typechain-types/factories/PendleRouter__factory.ts +141 -22
  320. package/typechain-types/factories/PendleSAvaxSCY__factory.ts +1 -1
  321. package/typechain-types/factories/PendleSJoeSCY__factory.ts +1 -1
  322. package/typechain-types/factories/PendleStargateSCY__factory.ts +1 -1
  323. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +203 -129
  324. package/typechain-types/factories/PendleWstEthSCY__factory.ts +1 -1
  325. package/typechain-types/factories/PendleYearnVaultSCY__factory.ts +1 -1
  326. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +97 -72
  327. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  328. package/typechain-types/factories/RouterStatic__factory.ts +253 -49
  329. package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +126 -72
  330. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +93 -41
  331. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +90 -17
  332. package/typechain-types/factories/VotingEscrowTokenBase__factory.ts +14 -1
  333. package/typechain-types/hardhat.d.ts +162 -0
  334. package/typechain-types/index.ts +36 -0
  335. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol/PendleYearnVaultSCY.dbg.json +0 -4
  336. package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.dbg.json +0 -4
  337. package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.json +0 -1785
  338. package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.dbg.json +0 -4
  339. package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.json +0 -447
  340. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.dbg.json +0 -4
  341. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.dbg.json +0 -4
  342. package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.dbg.json +0 -4
  343. package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.json +0 -24
  344. package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.dbg.json +0 -4
  345. package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.dbg.json +0 -4
  346. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +0 -4
  347. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +0 -874
  348. package/contracts/core/actions/ActionCore.sol +0 -377
  349. package/contracts/core/actions/ActionYT.sol +0 -93
  350. package/contracts/core/actions/base/ActionSCYAndPTBase.sol +0 -303
  351. package/contracts/interfaces/IPActionCore.sol +0 -305
  352. package/contracts/interfaces/IPRouterStatic.sol +0 -152
  353. package/deployments/43113-markets/benqi-market-599408.json +0 -7
  354. package/deployments/43113-markets/benqi-market-93bbf0.json +0 -7
  355. package/deployments/80001-markets/benqi-market-007811.json +0 -7
  356. package/deployments/80001-markets/benqi-market-3fe528.json +0 -7
  357. package/typechain-types/FeeDistributorAbstract.ts +0 -164
  358. package/typechain-types/IPVotingControllerStorage.ts +0 -169
  359. package/typechain-types/factories/FeeDistributorAbstract__factory.ts +0 -90
  360. package/typechain-types/factories/IPVotingControllerStorage__factory.ts +0 -107
@@ -31,23 +31,23 @@ const _abi = [
31
31
  {
32
32
  indexed: false,
33
33
  internalType: "uint256",
34
- name: "ibTokenUsed",
34
+ name: "netScyUsed",
35
35
  type: "uint256",
36
36
  },
37
37
  {
38
38
  indexed: false,
39
39
  internalType: "uint256",
40
- name: "ptUsed",
40
+ name: "netPtUsed",
41
41
  type: "uint256",
42
42
  },
43
43
  {
44
44
  indexed: false,
45
45
  internalType: "uint256",
46
- name: "lpOut",
46
+ name: "netLpOut",
47
47
  type: "uint256",
48
48
  },
49
49
  ],
50
- name: "AddLiquidityDualIbTokenAndPt",
50
+ name: "AddLiquidityDualScyAndPt",
51
51
  type: "event",
52
52
  },
53
53
  {
@@ -71,26 +71,149 @@ const _abi = [
71
71
  name: "receiver",
72
72
  type: "address",
73
73
  },
74
+ {
75
+ indexed: false,
76
+ internalType: "address",
77
+ name: "tokenIn",
78
+ type: "address",
79
+ },
74
80
  {
75
81
  indexed: false,
76
82
  internalType: "uint256",
77
- name: "scyUsed",
83
+ name: "tokenUsed",
78
84
  type: "uint256",
79
85
  },
80
86
  {
81
87
  indexed: false,
82
88
  internalType: "uint256",
83
- name: "ptUsed",
89
+ name: "netPtUsed",
84
90
  type: "uint256",
85
91
  },
86
92
  {
87
93
  indexed: false,
88
94
  internalType: "uint256",
89
- name: "lpOut",
95
+ name: "netLpOut",
90
96
  type: "uint256",
91
97
  },
92
98
  ],
93
- name: "AddLiquidityDualScyAndPt",
99
+ name: "AddLiquidityDualTokenAndPt",
100
+ type: "event",
101
+ },
102
+ {
103
+ anonymous: false,
104
+ inputs: [
105
+ {
106
+ indexed: true,
107
+ internalType: "address",
108
+ name: "caller",
109
+ type: "address",
110
+ },
111
+ {
112
+ indexed: true,
113
+ internalType: "address",
114
+ name: "market",
115
+ type: "address",
116
+ },
117
+ {
118
+ indexed: true,
119
+ internalType: "address",
120
+ name: "receiver",
121
+ type: "address",
122
+ },
123
+ {
124
+ indexed: false,
125
+ internalType: "uint256",
126
+ name: "netPtIn",
127
+ type: "uint256",
128
+ },
129
+ {
130
+ indexed: false,
131
+ internalType: "uint256",
132
+ name: "netLpOut",
133
+ type: "uint256",
134
+ },
135
+ ],
136
+ name: "AddLiquiditySinglePt",
137
+ type: "event",
138
+ },
139
+ {
140
+ anonymous: false,
141
+ inputs: [
142
+ {
143
+ indexed: true,
144
+ internalType: "address",
145
+ name: "caller",
146
+ type: "address",
147
+ },
148
+ {
149
+ indexed: true,
150
+ internalType: "address",
151
+ name: "market",
152
+ type: "address",
153
+ },
154
+ {
155
+ indexed: true,
156
+ internalType: "address",
157
+ name: "receiver",
158
+ type: "address",
159
+ },
160
+ {
161
+ indexed: false,
162
+ internalType: "uint256",
163
+ name: "netScyIn",
164
+ type: "uint256",
165
+ },
166
+ {
167
+ indexed: false,
168
+ internalType: "uint256",
169
+ name: "netLpOut",
170
+ type: "uint256",
171
+ },
172
+ ],
173
+ name: "AddLiquiditySingleScy",
174
+ type: "event",
175
+ },
176
+ {
177
+ anonymous: false,
178
+ inputs: [
179
+ {
180
+ indexed: true,
181
+ internalType: "address",
182
+ name: "caller",
183
+ type: "address",
184
+ },
185
+ {
186
+ indexed: true,
187
+ internalType: "address",
188
+ name: "market",
189
+ type: "address",
190
+ },
191
+ {
192
+ indexed: true,
193
+ internalType: "address",
194
+ name: "token",
195
+ type: "address",
196
+ },
197
+ {
198
+ indexed: false,
199
+ internalType: "address",
200
+ name: "receiver",
201
+ type: "address",
202
+ },
203
+ {
204
+ indexed: false,
205
+ internalType: "uint256",
206
+ name: "netTokenIn",
207
+ type: "uint256",
208
+ },
209
+ {
210
+ indexed: false,
211
+ internalType: "uint256",
212
+ name: "netLpOut",
213
+ type: "uint256",
214
+ },
215
+ ],
216
+ name: "AddLiquiditySingleToken",
94
217
  type: "event",
95
218
  },
96
219
  {
@@ -354,8 +477,51 @@ const _abi = [
354
477
  name: "market",
355
478
  type: "address",
356
479
  },
480
+ {
481
+ indexed: true,
482
+ internalType: "address",
483
+ name: "receiver",
484
+ type: "address",
485
+ },
486
+ {
487
+ indexed: false,
488
+ internalType: "uint256",
489
+ name: "netLpToRemove",
490
+ type: "uint256",
491
+ },
492
+ {
493
+ indexed: false,
494
+ internalType: "uint256",
495
+ name: "netPtOut",
496
+ type: "uint256",
497
+ },
357
498
  {
358
499
  indexed: false,
500
+ internalType: "uint256",
501
+ name: "netScyOut",
502
+ type: "uint256",
503
+ },
504
+ ],
505
+ name: "RemoveLiquidityDualScyAndPt",
506
+ type: "event",
507
+ },
508
+ {
509
+ anonymous: false,
510
+ inputs: [
511
+ {
512
+ indexed: true,
513
+ internalType: "address",
514
+ name: "caller",
515
+ type: "address",
516
+ },
517
+ {
518
+ indexed: true,
519
+ internalType: "address",
520
+ name: "market",
521
+ type: "address",
522
+ },
523
+ {
524
+ indexed: true,
359
525
  internalType: "address",
360
526
  name: "receiver",
361
527
  type: "address",
@@ -363,23 +529,29 @@ const _abi = [
363
529
  {
364
530
  indexed: false,
365
531
  internalType: "uint256",
366
- name: "lpIn",
532
+ name: "netLpToRemove",
367
533
  type: "uint256",
368
534
  },
369
535
  {
370
536
  indexed: false,
371
537
  internalType: "uint256",
372
- name: "amountPTOut",
538
+ name: "netPtOut",
373
539
  type: "uint256",
374
540
  },
541
+ {
542
+ indexed: false,
543
+ internalType: "address",
544
+ name: "tokenOut",
545
+ type: "address",
546
+ },
375
547
  {
376
548
  indexed: false,
377
549
  internalType: "uint256",
378
- name: "amountIbTokenOut",
550
+ name: "netTokenOut",
379
551
  type: "uint256",
380
552
  },
381
553
  ],
382
- name: "RemoveLiquidityDualIbTokenAndPt",
554
+ name: "RemoveLiquidityDualTokenAndPt",
383
555
  type: "event",
384
556
  },
385
557
  {
@@ -397,8 +569,45 @@ const _abi = [
397
569
  name: "market",
398
570
  type: "address",
399
571
  },
572
+ {
573
+ indexed: true,
574
+ internalType: "address",
575
+ name: "receiver",
576
+ type: "address",
577
+ },
400
578
  {
401
579
  indexed: false,
580
+ internalType: "uint256",
581
+ name: "netLpToRemove",
582
+ type: "uint256",
583
+ },
584
+ {
585
+ indexed: false,
586
+ internalType: "uint256",
587
+ name: "netPtOut",
588
+ type: "uint256",
589
+ },
590
+ ],
591
+ name: "RemoveLiquiditySinglePt",
592
+ type: "event",
593
+ },
594
+ {
595
+ anonymous: false,
596
+ inputs: [
597
+ {
598
+ indexed: true,
599
+ internalType: "address",
600
+ name: "caller",
601
+ type: "address",
602
+ },
603
+ {
604
+ indexed: true,
605
+ internalType: "address",
606
+ name: "market",
607
+ type: "address",
608
+ },
609
+ {
610
+ indexed: true,
402
611
  internalType: "address",
403
612
  name: "receiver",
404
613
  type: "address",
@@ -406,23 +615,60 @@ const _abi = [
406
615
  {
407
616
  indexed: false,
408
617
  internalType: "uint256",
409
- name: "lpIn",
618
+ name: "netLpToRemove",
619
+ type: "uint256",
620
+ },
621
+ {
622
+ indexed: false,
623
+ internalType: "uint256",
624
+ name: "netScyOut",
410
625
  type: "uint256",
411
626
  },
627
+ ],
628
+ name: "RemoveLiquiditySingleScy",
629
+ type: "event",
630
+ },
631
+ {
632
+ anonymous: false,
633
+ inputs: [
634
+ {
635
+ indexed: true,
636
+ internalType: "address",
637
+ name: "caller",
638
+ type: "address",
639
+ },
640
+ {
641
+ indexed: true,
642
+ internalType: "address",
643
+ name: "market",
644
+ type: "address",
645
+ },
646
+ {
647
+ indexed: true,
648
+ internalType: "address",
649
+ name: "token",
650
+ type: "address",
651
+ },
652
+ {
653
+ indexed: false,
654
+ internalType: "address",
655
+ name: "receiver",
656
+ type: "address",
657
+ },
412
658
  {
413
659
  indexed: false,
414
660
  internalType: "uint256",
415
- name: "amountPTOut",
661
+ name: "netLpToRemove",
416
662
  type: "uint256",
417
663
  },
418
664
  {
419
665
  indexed: false,
420
666
  internalType: "uint256",
421
- name: "amountSCYOut",
667
+ name: "netTokenOut",
422
668
  type: "uint256",
423
669
  },
424
670
  ],
425
- name: "RemoveLiquidityDualScyAndPt",
671
+ name: "RemoveLiquiditySingleToken",
426
672
  type: "event",
427
673
  },
428
674
  {
@@ -449,13 +695,13 @@ const _abi = [
449
695
  {
450
696
  indexed: false,
451
697
  internalType: "int256",
452
- name: "amountPtToAccount",
698
+ name: "netPtToAccount",
453
699
  type: "int256",
454
700
  },
455
701
  {
456
702
  indexed: false,
457
703
  internalType: "int256",
458
- name: "amountScyToAccount",
704
+ name: "netScyToAccount",
459
705
  type: "int256",
460
706
  },
461
707
  ],
@@ -492,13 +738,13 @@ const _abi = [
492
738
  {
493
739
  indexed: false,
494
740
  internalType: "int256",
495
- name: "amountPtToAccount",
741
+ name: "netPtToAccount",
496
742
  type: "int256",
497
743
  },
498
744
  {
499
745
  indexed: false,
500
746
  internalType: "int256",
501
- name: "amountTokenToAccount",
747
+ name: "netTokenToAccount",
502
748
  type: "int256",
503
749
  },
504
750
  ],
@@ -511,7 +757,7 @@ const _abi = [
511
757
  {
512
758
  indexed: true,
513
759
  internalType: "address",
514
- name: "user",
760
+ name: "caller",
515
761
  type: "address",
516
762
  },
517
763
  {
@@ -520,20 +766,26 @@ const _abi = [
520
766
  name: "market",
521
767
  type: "address",
522
768
  },
769
+ {
770
+ indexed: true,
771
+ internalType: "address",
772
+ name: "receiver",
773
+ type: "address",
774
+ },
523
775
  {
524
776
  indexed: false,
525
777
  internalType: "int256",
526
- name: "ytToAccount",
778
+ name: "netYtToAccount",
527
779
  type: "int256",
528
780
  },
529
781
  {
530
782
  indexed: false,
531
783
  internalType: "int256",
532
- name: "scyToAccount",
784
+ name: "netScyToAccount",
533
785
  type: "int256",
534
786
  },
535
787
  ],
536
- name: "SwapYTAndSCY",
788
+ name: "SwapYtAndScy",
537
789
  type: "event",
538
790
  },
539
791
  {
@@ -542,7 +794,7 @@ const _abi = [
542
794
  {
543
795
  indexed: true,
544
796
  internalType: "address",
545
- name: "user",
797
+ name: "caller",
546
798
  type: "address",
547
799
  },
548
800
  {
@@ -557,20 +809,26 @@ const _abi = [
557
809
  name: "token",
558
810
  type: "address",
559
811
  },
812
+ {
813
+ indexed: false,
814
+ internalType: "address",
815
+ name: "receiver",
816
+ type: "address",
817
+ },
560
818
  {
561
819
  indexed: false,
562
820
  internalType: "int256",
563
- name: "ytToAccount",
821
+ name: "netYtToAccount",
564
822
  type: "int256",
565
823
  },
566
824
  {
567
825
  indexed: false,
568
826
  internalType: "int256",
569
- name: "tokenToAccount",
827
+ name: "netTokenToAccount",
570
828
  type: "int256",
571
829
  },
572
830
  ],
573
- name: "SwapYTAndToken",
831
+ name: "SwapYtAndToken",
574
832
  type: "event",
575
833
  },
576
834
  {
@@ -587,12 +845,12 @@ const _abi = [
587
845
  },
588
846
  {
589
847
  internalType: "uint256",
590
- name: "ibTokenDesired",
848
+ name: "netScyDesired",
591
849
  type: "uint256",
592
850
  },
593
851
  {
594
852
  internalType: "uint256",
595
- name: "ptDesired",
853
+ name: "netPtDesired",
596
854
  type: "uint256",
597
855
  },
598
856
  {
@@ -601,7 +859,7 @@ const _abi = [
601
859
  type: "uint256",
602
860
  },
603
861
  ],
604
- name: "addLiquidityDualIbTokenAndPt",
862
+ name: "addLiquidityDualScyAndPt",
605
863
  outputs: [
606
864
  {
607
865
  internalType: "uint256",
@@ -610,12 +868,12 @@ const _abi = [
610
868
  },
611
869
  {
612
870
  internalType: "uint256",
613
- name: "ibTokenUsed",
871
+ name: "scyUsed",
614
872
  type: "uint256",
615
873
  },
616
874
  {
617
875
  internalType: "uint256",
618
- name: "ptUsed",
876
+ name: "netPtUsed",
619
877
  type: "uint256",
620
878
  },
621
879
  ],
@@ -634,14 +892,19 @@ const _abi = [
634
892
  name: "market",
635
893
  type: "address",
636
894
  },
895
+ {
896
+ internalType: "address",
897
+ name: "tokenIn",
898
+ type: "address",
899
+ },
637
900
  {
638
901
  internalType: "uint256",
639
- name: "scyDesired",
902
+ name: "netTokenDesired",
640
903
  type: "uint256",
641
904
  },
642
905
  {
643
906
  internalType: "uint256",
644
- name: "ptDesired",
907
+ name: "netPtDesired",
645
908
  type: "uint256",
646
909
  },
647
910
  {
@@ -650,7 +913,7 @@ const _abi = [
650
913
  type: "uint256",
651
914
  },
652
915
  ],
653
- name: "addLiquidityDualScyAndPt",
916
+ name: "addLiquidityDualTokenAndPt",
654
917
  outputs: [
655
918
  {
656
919
  internalType: "uint256",
@@ -659,16 +922,16 @@ const _abi = [
659
922
  },
660
923
  {
661
924
  internalType: "uint256",
662
- name: "scyUsed",
925
+ name: "netTokenUsed",
663
926
  type: "uint256",
664
927
  },
665
928
  {
666
929
  internalType: "uint256",
667
- name: "ptUsed",
930
+ name: "netPtUsed",
668
931
  type: "uint256",
669
932
  },
670
933
  ],
671
- stateMutability: "nonpayable",
934
+ stateMutability: "payable",
672
935
  type: "function",
673
936
  },
674
937
  {
@@ -888,7 +1151,31 @@ const _abi = [
888
1151
  type: "uint256",
889
1152
  },
890
1153
  ],
891
- stateMutability: "nonpayable",
1154
+ stateMutability: "payable",
1155
+ type: "function",
1156
+ },
1157
+ {
1158
+ inputs: [
1159
+ {
1160
+ internalType: "address",
1161
+ name: "market",
1162
+ type: "address",
1163
+ },
1164
+ {
1165
+ internalType: "uint32",
1166
+ name: "secondsAgo",
1167
+ type: "uint32",
1168
+ },
1169
+ ],
1170
+ name: "consult",
1171
+ outputs: [
1172
+ {
1173
+ internalType: "uint96",
1174
+ name: "lnImpliedRateMean",
1175
+ type: "uint96",
1176
+ },
1177
+ ],
1178
+ stateMutability: "view",
892
1179
  type: "function",
893
1180
  },
894
1181
  {
@@ -978,7 +1265,7 @@ const _abi = [
978
1265
  type: "uint256",
979
1266
  },
980
1267
  ],
981
- stateMutability: "nonpayable",
1268
+ stateMutability: "payable",
982
1269
  type: "function",
983
1270
  },
984
1271
  {
@@ -1034,7 +1321,7 @@ const _abi = [
1034
1321
  type: "uint256",
1035
1322
  },
1036
1323
  ],
1037
- stateMutability: "nonpayable",
1324
+ stateMutability: "payable",
1038
1325
  type: "function",
1039
1326
  },
1040
1327
  {
@@ -1246,25 +1533,25 @@ const _abi = [
1246
1533
  },
1247
1534
  {
1248
1535
  internalType: "uint256",
1249
- name: "lpToRemove",
1536
+ name: "netLpToRemove",
1250
1537
  type: "uint256",
1251
1538
  },
1252
1539
  {
1253
1540
  internalType: "uint256",
1254
- name: "ibTokenMin",
1541
+ name: "minScyOut",
1255
1542
  type: "uint256",
1256
1543
  },
1257
1544
  {
1258
1545
  internalType: "uint256",
1259
- name: "ptOutMin",
1546
+ name: "minPtOut",
1260
1547
  type: "uint256",
1261
1548
  },
1262
1549
  ],
1263
- name: "removeLiquidityDualIbTokenAndPt",
1550
+ name: "removeLiquidityDualScyAndPt",
1264
1551
  outputs: [
1265
1552
  {
1266
1553
  internalType: "uint256",
1267
- name: "netIbTokenOut",
1554
+ name: "netScyOut",
1268
1555
  type: "uint256",
1269
1556
  },
1270
1557
  {
@@ -1290,25 +1577,30 @@ const _abi = [
1290
1577
  },
1291
1578
  {
1292
1579
  internalType: "uint256",
1293
- name: "lpToRemove",
1580
+ name: "netLpToRemove",
1294
1581
  type: "uint256",
1295
1582
  },
1583
+ {
1584
+ internalType: "address",
1585
+ name: "tokenOut",
1586
+ type: "address",
1587
+ },
1296
1588
  {
1297
1589
  internalType: "uint256",
1298
- name: "scyOutMin",
1590
+ name: "minTokenOut",
1299
1591
  type: "uint256",
1300
1592
  },
1301
1593
  {
1302
1594
  internalType: "uint256",
1303
- name: "ptOutMin",
1595
+ name: "minPtOut",
1304
1596
  type: "uint256",
1305
1597
  },
1306
1598
  ],
1307
- name: "removeLiquidityDualScyAndPt",
1599
+ name: "removeLiquidityDualTokenAndPt",
1308
1600
  outputs: [
1309
1601
  {
1310
1602
  internalType: "uint256",
1311
- name: "netScyOut",
1603
+ name: "netTokenOut",
1312
1604
  type: "uint256",
1313
1605
  },
1314
1606
  {
@@ -1334,7 +1626,7 @@ const _abi = [
1334
1626
  },
1335
1627
  {
1336
1628
  internalType: "uint256",
1337
- name: "lpToRemove",
1629
+ name: "netLpToRemove",
1338
1630
  type: "uint256",
1339
1631
  },
1340
1632
  {
@@ -1400,7 +1692,7 @@ const _abi = [
1400
1692
  },
1401
1693
  {
1402
1694
  internalType: "uint256",
1403
- name: "lpToRemove",
1695
+ name: "netLpToRemove",
1404
1696
  type: "uint256",
1405
1697
  },
1406
1698
  {
@@ -1434,7 +1726,7 @@ const _abi = [
1434
1726
  },
1435
1727
  {
1436
1728
  internalType: "uint256",
1437
- name: "lpToRemove",
1729
+ name: "netLpToRemove",
1438
1730
  type: "uint256",
1439
1731
  },
1440
1732
  {
@@ -1783,7 +2075,7 @@ const _abi = [
1783
2075
  type: "uint256",
1784
2076
  },
1785
2077
  ],
1786
- stateMutability: "nonpayable",
2078
+ stateMutability: "payable",
1787
2079
  type: "function",
1788
2080
  },
1789
2081
  {
@@ -1871,7 +2163,7 @@ const _abi = [
1871
2163
  type: "uint256",
1872
2164
  },
1873
2165
  ],
1874
- stateMutability: "nonpayable",
2166
+ stateMutability: "payable",
1875
2167
  type: "function",
1876
2168
  },
1877
2169
  {