@pendle/core-v2 0.9.4-beta → 0.10.2-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 (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} +141 -912
  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 +323 -47
  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 +427 -39
  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/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol +7 -7
  178. package/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol +7 -6
  179. package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +4 -5
  180. package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol +6 -3
  181. package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol +6 -3
  182. package/contracts/core/LiquidityMining/PendleGauge.sol +3 -2
  183. package/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +22 -28
  184. package/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +71 -13
  185. package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +7 -4
  186. package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol +6 -2
  187. package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol +4 -3
  188. package/contracts/core/Market/PendleMarket.sol +93 -57
  189. package/contracts/core/Market/PendleMarketFactory.sol +18 -33
  190. package/contracts/core/PendleRouter.sol +60 -52
  191. package/contracts/core/YieldContracts/PendleYieldContractFactory.sol +12 -12
  192. package/contracts/core/YieldContracts/PendleYieldToken.sol +1 -1
  193. package/contracts/core/actions/ActionAddRemoveLiq.sol +366 -0
  194. package/contracts/core/actions/ActionCallback.sol +6 -6
  195. package/contracts/core/actions/ActionMintRedeem.sol +124 -0
  196. package/contracts/core/actions/ActionMisc.sol +24 -0
  197. package/contracts/core/actions/ActionSwapPT.sol +199 -0
  198. package/contracts/core/actions/{base/ActionSCYAndYTBase.sol → ActionSwapYT.sol} +109 -74
  199. package/contracts/core/actions/base/{ActionSCYAndPYBase.sol → ActionBaseMintRedeem.sol} +9 -8
  200. package/contracts/interfaces/IBenQiComptroller.sol +2 -0
  201. package/contracts/interfaces/IPActionAddRemoveLiq.sol +188 -0
  202. package/contracts/interfaces/IPActionMintRedeem.sol +115 -0
  203. package/contracts/interfaces/IPActionMisc.sol +9 -0
  204. package/contracts/interfaces/IPActionSwapPT.sol +69 -0
  205. package/contracts/interfaces/{IPActionYT.sol → IPActionSwapYT.sol} +12 -10
  206. package/contracts/interfaces/IPAllAction.sol +12 -3
  207. package/contracts/interfaces/IPGauge.sol +6 -0
  208. package/contracts/interfaces/IPGaugeController.sol +0 -2
  209. package/contracts/interfaces/IPMarket.sol +28 -10
  210. package/contracts/interfaces/IPMarketFactory.sol +1 -7
  211. package/contracts/interfaces/IPVeToken.sol +1 -1
  212. package/contracts/interfaces/IPVotingController.sol +0 -2
  213. package/contracts/interfaces/IRewardManager.sol +1 -1
  214. package/contracts/libraries/OracleLib.sol +214 -0
  215. package/contracts/libraries/RewardManagerAbstract.sol +1 -1
  216. package/contracts/libraries/math/MarketApproxLib.sol +227 -14
  217. package/contracts/libraries/math/MarketMathCore.sol +0 -33
  218. package/contracts/offchain-helpers/MarketMathStatic.sol +565 -0
  219. package/contracts/offchain-helpers/RouterStatic.sol +187 -251
  220. package/contracts/periphery/BoringOwnableUpgradeable.sol +62 -0
  221. package/deployments/43113-core.json +7 -8
  222. package/deployments/43113-markets/benqi-market-590025.json +8 -0
  223. package/deployments/43113-markets/benqi-market-c93916.json +8 -0
  224. package/deployments/80001-core.json +6 -7
  225. package/deployments/80001-markets/benqi-market-3b8BD1.json +8 -0
  226. package/deployments/80001-markets/benqi-market-b61e7f.json +8 -0
  227. package/package.json +11 -11
  228. package/typechain-types/ActionAddRemoveLiq.ts +1037 -0
  229. package/typechain-types/ActionBaseMintRedeem.ts +87 -0
  230. package/typechain-types/ActionCore.ts +21 -20
  231. package/typechain-types/ActionMintRedeem.ts +665 -0
  232. package/typechain-types/ActionMisc.ts +105 -0
  233. package/typechain-types/ActionSwapPT.ts +515 -0
  234. package/typechain-types/ActionSwapYT.ts +515 -0
  235. package/typechain-types/ActionYT.ts +5 -4
  236. package/typechain-types/BoringOwnable.ts +194 -0
  237. package/typechain-types/BoringOwnableData.ts +100 -0
  238. package/typechain-types/BoringOwnableUpgradeable.ts +194 -0
  239. package/typechain-types/BoringOwnableUpgradeableData.ts +100 -0
  240. package/typechain-types/CelerReceiverUpg.ts +124 -19
  241. package/typechain-types/CelerSenderUpg.ts +116 -11
  242. package/typechain-types/IBenQiComptroller.ts +39 -0
  243. package/typechain-types/IPActionAddRemoveLiq.ts +1018 -0
  244. package/typechain-types/IPActionCore.ts +21 -20
  245. package/typechain-types/IPActionMintRedeem.ts +646 -0
  246. package/typechain-types/IPActionMisc.ts +105 -0
  247. package/typechain-types/IPActionSwapPT.ts +496 -0
  248. package/typechain-types/IPActionSwapYT.ts +496 -0
  249. package/typechain-types/IPActionYT.ts +5 -4
  250. package/typechain-types/IPAllAction.ts +431 -193
  251. package/typechain-types/IPGauge.ts +87 -0
  252. package/typechain-types/IPMarket.ts +133 -50
  253. package/typechain-types/IPMarketFactory.ts +7 -17
  254. package/typechain-types/IPVeToken.ts +8 -8
  255. package/typechain-types/IPVotingController.ts +0 -20
  256. package/typechain-types/IPYieldToken.ts +3 -3
  257. package/typechain-types/IRewardManager.ts +3 -3
  258. package/typechain-types/MarketMathStatic.ts +198 -0
  259. package/typechain-types/OracleLib.ts +124 -0
  260. package/typechain-types/PendleGaugeControllerBaseUpg.ts +118 -15
  261. package/typechain-types/PendleGaugeControllerMainchainUpg.ts +136 -9
  262. package/typechain-types/PendleGaugeControllerSidechainUpg.ts +138 -11
  263. package/typechain-types/PendleMarket.ts +178 -59
  264. package/typechain-types/PendleMarketFactory.ts +135 -61
  265. package/typechain-types/PendleRouter.ts +201 -31
  266. package/typechain-types/PendleVotingControllerUpg.ts +325 -149
  267. package/typechain-types/PendleYieldContractFactory.ts +144 -21
  268. package/typechain-types/RouterStatic.ts +344 -64
  269. package/typechain-types/VotingControllerStorageUpg.ts +182 -113
  270. package/typechain-types/VotingEscrowPendleMainchain.ts +170 -63
  271. package/typechain-types/VotingEscrowPendleSidechain.ts +163 -17
  272. package/typechain-types/VotingEscrowTokenBase.ts +27 -8
  273. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1083 -0
  274. package/typechain-types/factories/ActionBaseMintRedeem__factory.ts +43 -0
  275. package/typechain-types/factories/ActionCallback__factory.ts +1 -1
  276. package/typechain-types/factories/ActionCore__factory.ts +6 -6
  277. package/typechain-types/factories/ActionMintRedeem__factory.ts +680 -0
  278. package/typechain-types/factories/ActionMisc__factory.ts +85 -0
  279. package/typechain-types/factories/ActionSwapPT__factory.ts +514 -0
  280. package/typechain-types/factories/ActionSwapYT__factory.ts +514 -0
  281. package/typechain-types/factories/ActionYT__factory.ts +2 -2
  282. package/typechain-types/factories/BoringOwnableData__factory.ts +90 -0
  283. package/typechain-types/factories/BoringOwnableUpgradeableData__factory.ts +96 -0
  284. package/typechain-types/factories/BoringOwnableUpgradeable__factory.ts +143 -0
  285. package/typechain-types/factories/BoringOwnable__factory.ts +141 -0
  286. package/typechain-types/factories/CelerReceiverUpg__factory.ts +67 -5
  287. package/typechain-types/factories/CelerSenderUpg__factory.ts +63 -1
  288. package/typechain-types/factories/IBenQiComptroller__factory.ts +24 -0
  289. package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +1020 -0
  290. package/typechain-types/factories/IPActionCore__factory.ts +5 -5
  291. package/typechain-types/factories/IPActionMintRedeem__factory.ts +613 -0
  292. package/typechain-types/factories/IPActionMisc__factory.ts +47 -0
  293. package/typechain-types/factories/IPActionSwapPT__factory.ts +450 -0
  294. package/typechain-types/factories/IPActionSwapYT__factory.ts +450 -0
  295. package/typechain-types/factories/IPActionYT__factory.ts +1 -1
  296. package/typechain-types/factories/IPAllAction__factory.ts +323 -47
  297. package/typechain-types/factories/IPGauge__factory.ts +36 -0
  298. package/typechain-types/factories/IPMarketFactory__factory.ts +0 -11
  299. package/typechain-types/factories/IPMarket__factory.ts +72 -29
  300. package/typechain-types/factories/IPVeToken__factory.ts +1 -1
  301. package/typechain-types/factories/IPVotingController__factory.ts +0 -37
  302. package/typechain-types/factories/IPYieldToken__factory.ts +1 -1
  303. package/typechain-types/factories/IRewardManager__factory.ts +1 -1
  304. package/typechain-types/factories/MarketMathStatic__factory.ts +146 -0
  305. package/typechain-types/factories/OracleLib__factory.ts +124 -0
  306. package/typechain-types/factories/PendleAaveV3SCY__factory.ts +1 -1
  307. package/typechain-types/factories/PendleERC4626SCY__factory.ts +1 -1
  308. package/typechain-types/factories/PendleEulerSCY__factory.ts +10 -1
  309. package/typechain-types/factories/PendleGaugeControllerBaseUpg__factory.ts +65 -3
  310. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +73 -13
  311. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +79 -23
  312. package/typechain-types/factories/PendleMarketFactory__factory.ts +84 -86
  313. package/typechain-types/factories/PendleMarket__factory.ts +131 -37
  314. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  315. package/typechain-types/factories/PendleQiSAvaxSCY__factory.ts +1 -1
  316. package/typechain-types/factories/PendleQiTokenSCY__factory.ts +1 -1
  317. package/typechain-types/factories/PendleRouter__factory.ts +141 -22
  318. package/typechain-types/factories/PendleSAvaxSCY__factory.ts +1 -1
  319. package/typechain-types/factories/PendleSJoeSCY__factory.ts +1 -1
  320. package/typechain-types/factories/PendleStargateSCY__factory.ts +1 -1
  321. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +203 -129
  322. package/typechain-types/factories/PendleWstEthSCY__factory.ts +1 -1
  323. package/typechain-types/factories/PendleYearnVaultSCY__factory.ts +1 -1
  324. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +97 -72
  325. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  326. package/typechain-types/factories/RouterStatic__factory.ts +233 -39
  327. package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +126 -72
  328. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +93 -41
  329. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +90 -17
  330. package/typechain-types/factories/VotingEscrowTokenBase__factory.ts +14 -1
  331. package/typechain-types/hardhat.d.ts +162 -0
  332. package/typechain-types/index.ts +36 -0
  333. package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol/PendleYearnVaultSCY.dbg.json +0 -4
  334. package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.dbg.json +0 -4
  335. package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.json +0 -1801
  336. package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.dbg.json +0 -4
  337. package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.json +0 -447
  338. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.dbg.json +0 -4
  339. package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.dbg.json +0 -4
  340. package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.dbg.json +0 -4
  341. package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.json +0 -24
  342. package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.dbg.json +0 -4
  343. package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.dbg.json +0 -4
  344. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +0 -4
  345. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +0 -874
  346. package/contracts/core/actions/ActionCore.sol +0 -382
  347. package/contracts/core/actions/ActionYT.sol +0 -93
  348. package/contracts/core/actions/base/ActionSCYAndPTBase.sol +0 -303
  349. package/contracts/interfaces/IPActionCore.sol +0 -306
  350. package/contracts/interfaces/IPRouterStatic.sol +0 -152
  351. package/deployments/43113-markets/benqi-market-599408.json +0 -7
  352. package/deployments/43113-markets/benqi-market-93bbf0.json +0 -7
  353. package/deployments/43113-markets/benqi-market-95E744.json +0 -7
  354. package/deployments/43113-markets/benqi-market-D91a3F.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
@@ -0,0 +1,1020 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ IPActionAddRemoveLiq,
9
+ IPActionAddRemoveLiqInterface,
10
+ } from "../IPActionAddRemoveLiq";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "address",
19
+ name: "caller",
20
+ type: "address",
21
+ },
22
+ {
23
+ indexed: true,
24
+ internalType: "address",
25
+ name: "market",
26
+ type: "address",
27
+ },
28
+ {
29
+ indexed: true,
30
+ internalType: "address",
31
+ name: "receiver",
32
+ type: "address",
33
+ },
34
+ {
35
+ indexed: false,
36
+ internalType: "uint256",
37
+ name: "netScyUsed",
38
+ type: "uint256",
39
+ },
40
+ {
41
+ indexed: false,
42
+ internalType: "uint256",
43
+ name: "netPtUsed",
44
+ type: "uint256",
45
+ },
46
+ {
47
+ indexed: false,
48
+ internalType: "uint256",
49
+ name: "netLpOut",
50
+ type: "uint256",
51
+ },
52
+ ],
53
+ name: "AddLiquidityDualScyAndPt",
54
+ type: "event",
55
+ },
56
+ {
57
+ anonymous: false,
58
+ inputs: [
59
+ {
60
+ indexed: true,
61
+ internalType: "address",
62
+ name: "caller",
63
+ type: "address",
64
+ },
65
+ {
66
+ indexed: true,
67
+ internalType: "address",
68
+ name: "market",
69
+ type: "address",
70
+ },
71
+ {
72
+ indexed: true,
73
+ internalType: "address",
74
+ name: "receiver",
75
+ type: "address",
76
+ },
77
+ {
78
+ indexed: false,
79
+ internalType: "address",
80
+ name: "tokenIn",
81
+ type: "address",
82
+ },
83
+ {
84
+ indexed: false,
85
+ internalType: "uint256",
86
+ name: "tokenUsed",
87
+ type: "uint256",
88
+ },
89
+ {
90
+ indexed: false,
91
+ internalType: "uint256",
92
+ name: "netPtUsed",
93
+ type: "uint256",
94
+ },
95
+ {
96
+ indexed: false,
97
+ internalType: "uint256",
98
+ name: "netLpOut",
99
+ type: "uint256",
100
+ },
101
+ ],
102
+ name: "AddLiquidityDualTokenAndPt",
103
+ type: "event",
104
+ },
105
+ {
106
+ anonymous: false,
107
+ inputs: [
108
+ {
109
+ indexed: true,
110
+ internalType: "address",
111
+ name: "caller",
112
+ type: "address",
113
+ },
114
+ {
115
+ indexed: true,
116
+ internalType: "address",
117
+ name: "market",
118
+ type: "address",
119
+ },
120
+ {
121
+ indexed: true,
122
+ internalType: "address",
123
+ name: "receiver",
124
+ type: "address",
125
+ },
126
+ {
127
+ indexed: false,
128
+ internalType: "uint256",
129
+ name: "netPtIn",
130
+ type: "uint256",
131
+ },
132
+ {
133
+ indexed: false,
134
+ internalType: "uint256",
135
+ name: "netLpOut",
136
+ type: "uint256",
137
+ },
138
+ ],
139
+ name: "AddLiquiditySinglePt",
140
+ type: "event",
141
+ },
142
+ {
143
+ anonymous: false,
144
+ inputs: [
145
+ {
146
+ indexed: true,
147
+ internalType: "address",
148
+ name: "caller",
149
+ type: "address",
150
+ },
151
+ {
152
+ indexed: true,
153
+ internalType: "address",
154
+ name: "market",
155
+ type: "address",
156
+ },
157
+ {
158
+ indexed: true,
159
+ internalType: "address",
160
+ name: "receiver",
161
+ type: "address",
162
+ },
163
+ {
164
+ indexed: false,
165
+ internalType: "uint256",
166
+ name: "netScyIn",
167
+ type: "uint256",
168
+ },
169
+ {
170
+ indexed: false,
171
+ internalType: "uint256",
172
+ name: "netLpOut",
173
+ type: "uint256",
174
+ },
175
+ ],
176
+ name: "AddLiquiditySingleScy",
177
+ type: "event",
178
+ },
179
+ {
180
+ anonymous: false,
181
+ inputs: [
182
+ {
183
+ indexed: true,
184
+ internalType: "address",
185
+ name: "caller",
186
+ type: "address",
187
+ },
188
+ {
189
+ indexed: true,
190
+ internalType: "address",
191
+ name: "market",
192
+ type: "address",
193
+ },
194
+ {
195
+ indexed: true,
196
+ internalType: "address",
197
+ name: "token",
198
+ type: "address",
199
+ },
200
+ {
201
+ indexed: false,
202
+ internalType: "address",
203
+ name: "receiver",
204
+ type: "address",
205
+ },
206
+ {
207
+ indexed: false,
208
+ internalType: "uint256",
209
+ name: "netTokenIn",
210
+ type: "uint256",
211
+ },
212
+ {
213
+ indexed: false,
214
+ internalType: "uint256",
215
+ name: "netLpOut",
216
+ type: "uint256",
217
+ },
218
+ ],
219
+ name: "AddLiquiditySingleToken",
220
+ type: "event",
221
+ },
222
+ {
223
+ anonymous: false,
224
+ inputs: [
225
+ {
226
+ indexed: true,
227
+ internalType: "address",
228
+ name: "caller",
229
+ type: "address",
230
+ },
231
+ {
232
+ indexed: true,
233
+ internalType: "address",
234
+ name: "market",
235
+ type: "address",
236
+ },
237
+ {
238
+ indexed: true,
239
+ internalType: "address",
240
+ name: "receiver",
241
+ type: "address",
242
+ },
243
+ {
244
+ indexed: false,
245
+ internalType: "uint256",
246
+ name: "netLpToRemove",
247
+ type: "uint256",
248
+ },
249
+ {
250
+ indexed: false,
251
+ internalType: "uint256",
252
+ name: "netPtOut",
253
+ type: "uint256",
254
+ },
255
+ {
256
+ indexed: false,
257
+ internalType: "uint256",
258
+ name: "netScyOut",
259
+ type: "uint256",
260
+ },
261
+ ],
262
+ name: "RemoveLiquidityDualScyAndPt",
263
+ type: "event",
264
+ },
265
+ {
266
+ anonymous: false,
267
+ inputs: [
268
+ {
269
+ indexed: true,
270
+ internalType: "address",
271
+ name: "caller",
272
+ type: "address",
273
+ },
274
+ {
275
+ indexed: true,
276
+ internalType: "address",
277
+ name: "market",
278
+ type: "address",
279
+ },
280
+ {
281
+ indexed: true,
282
+ internalType: "address",
283
+ name: "receiver",
284
+ type: "address",
285
+ },
286
+ {
287
+ indexed: false,
288
+ internalType: "uint256",
289
+ name: "netLpToRemove",
290
+ type: "uint256",
291
+ },
292
+ {
293
+ indexed: false,
294
+ internalType: "uint256",
295
+ name: "netPtOut",
296
+ type: "uint256",
297
+ },
298
+ {
299
+ indexed: false,
300
+ internalType: "address",
301
+ name: "tokenOut",
302
+ type: "address",
303
+ },
304
+ {
305
+ indexed: false,
306
+ internalType: "uint256",
307
+ name: "netTokenOut",
308
+ type: "uint256",
309
+ },
310
+ ],
311
+ name: "RemoveLiquidityDualTokenAndPt",
312
+ type: "event",
313
+ },
314
+ {
315
+ anonymous: false,
316
+ inputs: [
317
+ {
318
+ indexed: true,
319
+ internalType: "address",
320
+ name: "caller",
321
+ type: "address",
322
+ },
323
+ {
324
+ indexed: true,
325
+ internalType: "address",
326
+ name: "market",
327
+ type: "address",
328
+ },
329
+ {
330
+ indexed: true,
331
+ internalType: "address",
332
+ name: "receiver",
333
+ type: "address",
334
+ },
335
+ {
336
+ indexed: false,
337
+ internalType: "uint256",
338
+ name: "netLpToRemove",
339
+ type: "uint256",
340
+ },
341
+ {
342
+ indexed: false,
343
+ internalType: "uint256",
344
+ name: "netPtOut",
345
+ type: "uint256",
346
+ },
347
+ ],
348
+ name: "RemoveLiquiditySinglePt",
349
+ type: "event",
350
+ },
351
+ {
352
+ anonymous: false,
353
+ inputs: [
354
+ {
355
+ indexed: true,
356
+ internalType: "address",
357
+ name: "caller",
358
+ type: "address",
359
+ },
360
+ {
361
+ indexed: true,
362
+ internalType: "address",
363
+ name: "market",
364
+ type: "address",
365
+ },
366
+ {
367
+ indexed: true,
368
+ internalType: "address",
369
+ name: "receiver",
370
+ type: "address",
371
+ },
372
+ {
373
+ indexed: false,
374
+ internalType: "uint256",
375
+ name: "netLpToRemove",
376
+ type: "uint256",
377
+ },
378
+ {
379
+ indexed: false,
380
+ internalType: "uint256",
381
+ name: "netScyOut",
382
+ type: "uint256",
383
+ },
384
+ ],
385
+ name: "RemoveLiquiditySingleScy",
386
+ type: "event",
387
+ },
388
+ {
389
+ anonymous: false,
390
+ inputs: [
391
+ {
392
+ indexed: true,
393
+ internalType: "address",
394
+ name: "caller",
395
+ type: "address",
396
+ },
397
+ {
398
+ indexed: true,
399
+ internalType: "address",
400
+ name: "market",
401
+ type: "address",
402
+ },
403
+ {
404
+ indexed: true,
405
+ internalType: "address",
406
+ name: "token",
407
+ type: "address",
408
+ },
409
+ {
410
+ indexed: false,
411
+ internalType: "address",
412
+ name: "receiver",
413
+ type: "address",
414
+ },
415
+ {
416
+ indexed: false,
417
+ internalType: "uint256",
418
+ name: "netLpToRemove",
419
+ type: "uint256",
420
+ },
421
+ {
422
+ indexed: false,
423
+ internalType: "uint256",
424
+ name: "netTokenOut",
425
+ type: "uint256",
426
+ },
427
+ ],
428
+ name: "RemoveLiquiditySingleToken",
429
+ type: "event",
430
+ },
431
+ {
432
+ inputs: [
433
+ {
434
+ internalType: "address",
435
+ name: "receiver",
436
+ type: "address",
437
+ },
438
+ {
439
+ internalType: "address",
440
+ name: "market",
441
+ type: "address",
442
+ },
443
+ {
444
+ internalType: "uint256",
445
+ name: "netScyDesired",
446
+ type: "uint256",
447
+ },
448
+ {
449
+ internalType: "uint256",
450
+ name: "netPtDesired",
451
+ type: "uint256",
452
+ },
453
+ {
454
+ internalType: "uint256",
455
+ name: "minLpOut",
456
+ type: "uint256",
457
+ },
458
+ ],
459
+ name: "addLiquidityDualScyAndPt",
460
+ outputs: [
461
+ {
462
+ internalType: "uint256",
463
+ name: "netLpOut",
464
+ type: "uint256",
465
+ },
466
+ {
467
+ internalType: "uint256",
468
+ name: "scyUsed",
469
+ type: "uint256",
470
+ },
471
+ {
472
+ internalType: "uint256",
473
+ name: "netPtUsed",
474
+ type: "uint256",
475
+ },
476
+ ],
477
+ stateMutability: "nonpayable",
478
+ type: "function",
479
+ },
480
+ {
481
+ inputs: [
482
+ {
483
+ internalType: "address",
484
+ name: "receiver",
485
+ type: "address",
486
+ },
487
+ {
488
+ internalType: "address",
489
+ name: "market",
490
+ type: "address",
491
+ },
492
+ {
493
+ internalType: "address",
494
+ name: "tokenIn",
495
+ type: "address",
496
+ },
497
+ {
498
+ internalType: "uint256",
499
+ name: "netTokenDesired",
500
+ type: "uint256",
501
+ },
502
+ {
503
+ internalType: "uint256",
504
+ name: "netPtDesired",
505
+ type: "uint256",
506
+ },
507
+ {
508
+ internalType: "uint256",
509
+ name: "minLpOut",
510
+ type: "uint256",
511
+ },
512
+ ],
513
+ name: "addLiquidityDualTokenAndPt",
514
+ outputs: [
515
+ {
516
+ internalType: "uint256",
517
+ name: "netLpOut",
518
+ type: "uint256",
519
+ },
520
+ {
521
+ internalType: "uint256",
522
+ name: "netTokenUsed",
523
+ type: "uint256",
524
+ },
525
+ {
526
+ internalType: "uint256",
527
+ name: "netPtUsed",
528
+ type: "uint256",
529
+ },
530
+ ],
531
+ stateMutability: "payable",
532
+ type: "function",
533
+ },
534
+ {
535
+ inputs: [
536
+ {
537
+ internalType: "address",
538
+ name: "receiver",
539
+ type: "address",
540
+ },
541
+ {
542
+ internalType: "address",
543
+ name: "market",
544
+ type: "address",
545
+ },
546
+ {
547
+ internalType: "uint256",
548
+ name: "netPtIn",
549
+ type: "uint256",
550
+ },
551
+ {
552
+ internalType: "uint256",
553
+ name: "minLpOut",
554
+ type: "uint256",
555
+ },
556
+ {
557
+ components: [
558
+ {
559
+ internalType: "uint256",
560
+ name: "guessMin",
561
+ type: "uint256",
562
+ },
563
+ {
564
+ internalType: "uint256",
565
+ name: "guessMax",
566
+ type: "uint256",
567
+ },
568
+ {
569
+ internalType: "uint256",
570
+ name: "guessOffchain",
571
+ type: "uint256",
572
+ },
573
+ {
574
+ internalType: "uint256",
575
+ name: "maxIteration",
576
+ type: "uint256",
577
+ },
578
+ {
579
+ internalType: "uint256",
580
+ name: "eps",
581
+ type: "uint256",
582
+ },
583
+ ],
584
+ internalType: "struct ApproxParams",
585
+ name: "guessPtSwapToScy",
586
+ type: "tuple",
587
+ },
588
+ ],
589
+ name: "addLiquiditySinglePt",
590
+ outputs: [
591
+ {
592
+ internalType: "uint256",
593
+ name: "netLpOut",
594
+ type: "uint256",
595
+ },
596
+ ],
597
+ stateMutability: "nonpayable",
598
+ type: "function",
599
+ },
600
+ {
601
+ inputs: [
602
+ {
603
+ internalType: "address",
604
+ name: "receiver",
605
+ type: "address",
606
+ },
607
+ {
608
+ internalType: "address",
609
+ name: "market",
610
+ type: "address",
611
+ },
612
+ {
613
+ internalType: "uint256",
614
+ name: "netScyIn",
615
+ type: "uint256",
616
+ },
617
+ {
618
+ internalType: "uint256",
619
+ name: "minLpOut",
620
+ type: "uint256",
621
+ },
622
+ {
623
+ components: [
624
+ {
625
+ internalType: "uint256",
626
+ name: "guessMin",
627
+ type: "uint256",
628
+ },
629
+ {
630
+ internalType: "uint256",
631
+ name: "guessMax",
632
+ type: "uint256",
633
+ },
634
+ {
635
+ internalType: "uint256",
636
+ name: "guessOffchain",
637
+ type: "uint256",
638
+ },
639
+ {
640
+ internalType: "uint256",
641
+ name: "maxIteration",
642
+ type: "uint256",
643
+ },
644
+ {
645
+ internalType: "uint256",
646
+ name: "eps",
647
+ type: "uint256",
648
+ },
649
+ ],
650
+ internalType: "struct ApproxParams",
651
+ name: "guessPtReceivedFromScy",
652
+ type: "tuple",
653
+ },
654
+ ],
655
+ name: "addLiquiditySingleScy",
656
+ outputs: [
657
+ {
658
+ internalType: "uint256",
659
+ name: "netLpOut",
660
+ type: "uint256",
661
+ },
662
+ ],
663
+ stateMutability: "nonpayable",
664
+ type: "function",
665
+ },
666
+ {
667
+ inputs: [
668
+ {
669
+ internalType: "address",
670
+ name: "receiver",
671
+ type: "address",
672
+ },
673
+ {
674
+ internalType: "address",
675
+ name: "market",
676
+ type: "address",
677
+ },
678
+ {
679
+ internalType: "uint256",
680
+ name: "minLpOut",
681
+ type: "uint256",
682
+ },
683
+ {
684
+ components: [
685
+ {
686
+ internalType: "uint256",
687
+ name: "guessMin",
688
+ type: "uint256",
689
+ },
690
+ {
691
+ internalType: "uint256",
692
+ name: "guessMax",
693
+ type: "uint256",
694
+ },
695
+ {
696
+ internalType: "uint256",
697
+ name: "guessOffchain",
698
+ type: "uint256",
699
+ },
700
+ {
701
+ internalType: "uint256",
702
+ name: "maxIteration",
703
+ type: "uint256",
704
+ },
705
+ {
706
+ internalType: "uint256",
707
+ name: "eps",
708
+ type: "uint256",
709
+ },
710
+ ],
711
+ internalType: "struct ApproxParams",
712
+ name: "guessPtReceivedFromScy",
713
+ type: "tuple",
714
+ },
715
+ {
716
+ components: [
717
+ {
718
+ internalType: "address",
719
+ name: "tokenIn",
720
+ type: "address",
721
+ },
722
+ {
723
+ internalType: "uint256",
724
+ name: "netTokenIn",
725
+ type: "uint256",
726
+ },
727
+ {
728
+ internalType: "address",
729
+ name: "tokenMintScy",
730
+ type: "address",
731
+ },
732
+ {
733
+ internalType: "bytes",
734
+ name: "kybercall",
735
+ type: "bytes",
736
+ },
737
+ ],
738
+ internalType: "struct TokenInput",
739
+ name: "input",
740
+ type: "tuple",
741
+ },
742
+ ],
743
+ name: "addLiquiditySingleToken",
744
+ outputs: [
745
+ {
746
+ internalType: "uint256",
747
+ name: "netLpOut",
748
+ type: "uint256",
749
+ },
750
+ ],
751
+ stateMutability: "payable",
752
+ type: "function",
753
+ },
754
+ {
755
+ inputs: [
756
+ {
757
+ internalType: "address",
758
+ name: "receiver",
759
+ type: "address",
760
+ },
761
+ {
762
+ internalType: "address",
763
+ name: "market",
764
+ type: "address",
765
+ },
766
+ {
767
+ internalType: "uint256",
768
+ name: "netLpToRemove",
769
+ type: "uint256",
770
+ },
771
+ {
772
+ internalType: "uint256",
773
+ name: "minScyOut",
774
+ type: "uint256",
775
+ },
776
+ {
777
+ internalType: "uint256",
778
+ name: "minPtOut",
779
+ type: "uint256",
780
+ },
781
+ ],
782
+ name: "removeLiquidityDualScyAndPt",
783
+ outputs: [
784
+ {
785
+ internalType: "uint256",
786
+ name: "netScyOut",
787
+ type: "uint256",
788
+ },
789
+ {
790
+ internalType: "uint256",
791
+ name: "netPtOut",
792
+ type: "uint256",
793
+ },
794
+ ],
795
+ stateMutability: "nonpayable",
796
+ type: "function",
797
+ },
798
+ {
799
+ inputs: [
800
+ {
801
+ internalType: "address",
802
+ name: "receiver",
803
+ type: "address",
804
+ },
805
+ {
806
+ internalType: "address",
807
+ name: "market",
808
+ type: "address",
809
+ },
810
+ {
811
+ internalType: "uint256",
812
+ name: "netLpToRemove",
813
+ type: "uint256",
814
+ },
815
+ {
816
+ internalType: "address",
817
+ name: "tokenOut",
818
+ type: "address",
819
+ },
820
+ {
821
+ internalType: "uint256",
822
+ name: "minTokenOut",
823
+ type: "uint256",
824
+ },
825
+ {
826
+ internalType: "uint256",
827
+ name: "minPtOut",
828
+ type: "uint256",
829
+ },
830
+ ],
831
+ name: "removeLiquidityDualTokenAndPt",
832
+ outputs: [
833
+ {
834
+ internalType: "uint256",
835
+ name: "netTokenOut",
836
+ type: "uint256",
837
+ },
838
+ {
839
+ internalType: "uint256",
840
+ name: "netPtOut",
841
+ type: "uint256",
842
+ },
843
+ ],
844
+ stateMutability: "nonpayable",
845
+ type: "function",
846
+ },
847
+ {
848
+ inputs: [
849
+ {
850
+ internalType: "address",
851
+ name: "receiver",
852
+ type: "address",
853
+ },
854
+ {
855
+ internalType: "address",
856
+ name: "market",
857
+ type: "address",
858
+ },
859
+ {
860
+ internalType: "uint256",
861
+ name: "netLpToRemove",
862
+ type: "uint256",
863
+ },
864
+ {
865
+ internalType: "uint256",
866
+ name: "minPtOut",
867
+ type: "uint256",
868
+ },
869
+ {
870
+ components: [
871
+ {
872
+ internalType: "uint256",
873
+ name: "guessMin",
874
+ type: "uint256",
875
+ },
876
+ {
877
+ internalType: "uint256",
878
+ name: "guessMax",
879
+ type: "uint256",
880
+ },
881
+ {
882
+ internalType: "uint256",
883
+ name: "guessOffchain",
884
+ type: "uint256",
885
+ },
886
+ {
887
+ internalType: "uint256",
888
+ name: "maxIteration",
889
+ type: "uint256",
890
+ },
891
+ {
892
+ internalType: "uint256",
893
+ name: "eps",
894
+ type: "uint256",
895
+ },
896
+ ],
897
+ internalType: "struct ApproxParams",
898
+ name: "guessPtOut",
899
+ type: "tuple",
900
+ },
901
+ ],
902
+ name: "removeLiquiditySinglePt",
903
+ outputs: [
904
+ {
905
+ internalType: "uint256",
906
+ name: "netPtOut",
907
+ type: "uint256",
908
+ },
909
+ ],
910
+ stateMutability: "nonpayable",
911
+ type: "function",
912
+ },
913
+ {
914
+ inputs: [
915
+ {
916
+ internalType: "address",
917
+ name: "receiver",
918
+ type: "address",
919
+ },
920
+ {
921
+ internalType: "address",
922
+ name: "market",
923
+ type: "address",
924
+ },
925
+ {
926
+ internalType: "uint256",
927
+ name: "netLpToRemove",
928
+ type: "uint256",
929
+ },
930
+ {
931
+ internalType: "uint256",
932
+ name: "minScyOut",
933
+ type: "uint256",
934
+ },
935
+ ],
936
+ name: "removeLiquiditySingleScy",
937
+ outputs: [
938
+ {
939
+ internalType: "uint256",
940
+ name: "netScyOut",
941
+ type: "uint256",
942
+ },
943
+ ],
944
+ stateMutability: "nonpayable",
945
+ type: "function",
946
+ },
947
+ {
948
+ inputs: [
949
+ {
950
+ internalType: "address",
951
+ name: "receiver",
952
+ type: "address",
953
+ },
954
+ {
955
+ internalType: "address",
956
+ name: "market",
957
+ type: "address",
958
+ },
959
+ {
960
+ internalType: "uint256",
961
+ name: "netLpToRemove",
962
+ type: "uint256",
963
+ },
964
+ {
965
+ components: [
966
+ {
967
+ internalType: "address",
968
+ name: "tokenOut",
969
+ type: "address",
970
+ },
971
+ {
972
+ internalType: "uint256",
973
+ name: "minTokenOut",
974
+ type: "uint256",
975
+ },
976
+ {
977
+ internalType: "address",
978
+ name: "tokenRedeemScy",
979
+ type: "address",
980
+ },
981
+ {
982
+ internalType: "bytes",
983
+ name: "kybercall",
984
+ type: "bytes",
985
+ },
986
+ ],
987
+ internalType: "struct TokenOutput",
988
+ name: "output",
989
+ type: "tuple",
990
+ },
991
+ ],
992
+ name: "removeLiquiditySingleToken",
993
+ outputs: [
994
+ {
995
+ internalType: "uint256",
996
+ name: "netTokenOut",
997
+ type: "uint256",
998
+ },
999
+ ],
1000
+ stateMutability: "nonpayable",
1001
+ type: "function",
1002
+ },
1003
+ ];
1004
+
1005
+ export class IPActionAddRemoveLiq__factory {
1006
+ static readonly abi = _abi;
1007
+ static createInterface(): IPActionAddRemoveLiqInterface {
1008
+ return new utils.Interface(_abi) as IPActionAddRemoveLiqInterface;
1009
+ }
1010
+ static connect(
1011
+ address: string,
1012
+ signerOrProvider: Signer | Provider
1013
+ ): IPActionAddRemoveLiq {
1014
+ return new Contract(
1015
+ address,
1016
+ _abi,
1017
+ signerOrProvider
1018
+ ) as IPActionAddRemoveLiq;
1019
+ }
1020
+ }