@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_format": "hh-sol-artifact-1",
3
- "contractName": "IPActionCore",
4
- "sourceName": "contracts/interfaces/IPActionCore.sol",
3
+ "contractName": "IPActionAddRemoveLiq",
4
+ "sourceName": "contracts/interfaces/IPActionAddRemoveLiq.sol",
5
5
  "abi": [
6
6
  {
7
7
  "anonymous": false,
@@ -27,23 +27,23 @@
27
27
  {
28
28
  "indexed": false,
29
29
  "internalType": "uint256",
30
- "name": "ibTokenUsed",
30
+ "name": "netScyUsed",
31
31
  "type": "uint256"
32
32
  },
33
33
  {
34
34
  "indexed": false,
35
35
  "internalType": "uint256",
36
- "name": "ptUsed",
36
+ "name": "netPtUsed",
37
37
  "type": "uint256"
38
38
  },
39
39
  {
40
40
  "indexed": false,
41
41
  "internalType": "uint256",
42
- "name": "lpOut",
42
+ "name": "netLpOut",
43
43
  "type": "uint256"
44
44
  }
45
45
  ],
46
- "name": "AddLiquidityDualIbTokenAndPt",
46
+ "name": "AddLiquidityDualScyAndPt",
47
47
  "type": "event"
48
48
  },
49
49
  {
@@ -67,26 +67,32 @@
67
67
  "name": "receiver",
68
68
  "type": "address"
69
69
  },
70
+ {
71
+ "indexed": false,
72
+ "internalType": "address",
73
+ "name": "tokenIn",
74
+ "type": "address"
75
+ },
70
76
  {
71
77
  "indexed": false,
72
78
  "internalType": "uint256",
73
- "name": "scyUsed",
79
+ "name": "tokenUsed",
74
80
  "type": "uint256"
75
81
  },
76
82
  {
77
83
  "indexed": false,
78
84
  "internalType": "uint256",
79
- "name": "ptUsed",
85
+ "name": "netPtUsed",
80
86
  "type": "uint256"
81
87
  },
82
88
  {
83
89
  "indexed": false,
84
90
  "internalType": "uint256",
85
- "name": "lpOut",
91
+ "name": "netLpOut",
86
92
  "type": "uint256"
87
93
  }
88
94
  ],
89
- "name": "AddLiquidityDualScyAndPt",
95
+ "name": "AddLiquidityDualTokenAndPt",
90
96
  "type": "event"
91
97
  },
92
98
  {
@@ -101,29 +107,29 @@
101
107
  {
102
108
  "indexed": true,
103
109
  "internalType": "address",
104
- "name": "receiver",
110
+ "name": "market",
105
111
  "type": "address"
106
112
  },
107
113
  {
108
114
  "indexed": true,
109
115
  "internalType": "address",
110
- "name": "YT",
116
+ "name": "receiver",
111
117
  "type": "address"
112
118
  },
113
119
  {
114
120
  "indexed": false,
115
121
  "internalType": "uint256",
116
- "name": "netScyIn",
122
+ "name": "netPtIn",
117
123
  "type": "uint256"
118
124
  },
119
125
  {
120
126
  "indexed": false,
121
127
  "internalType": "uint256",
122
- "name": "netPyOut",
128
+ "name": "netLpOut",
123
129
  "type": "uint256"
124
130
  }
125
131
  ],
126
- "name": "MintPyFromScy",
132
+ "name": "AddLiquiditySinglePt",
127
133
  "type": "event"
128
134
  },
129
135
  {
@@ -138,35 +144,29 @@
138
144
  {
139
145
  "indexed": true,
140
146
  "internalType": "address",
141
- "name": "receiver",
147
+ "name": "market",
142
148
  "type": "address"
143
149
  },
144
150
  {
145
151
  "indexed": true,
146
152
  "internalType": "address",
147
- "name": "YT",
148
- "type": "address"
149
- },
150
- {
151
- "indexed": false,
152
- "internalType": "address",
153
- "name": "tokenIn",
153
+ "name": "receiver",
154
154
  "type": "address"
155
155
  },
156
156
  {
157
157
  "indexed": false,
158
158
  "internalType": "uint256",
159
- "name": "netTokenIn",
159
+ "name": "netScyIn",
160
160
  "type": "uint256"
161
161
  },
162
162
  {
163
163
  "indexed": false,
164
164
  "internalType": "uint256",
165
- "name": "netPyOut",
165
+ "name": "netLpOut",
166
166
  "type": "uint256"
167
167
  }
168
168
  ],
169
- "name": "MintPyFromToken",
169
+ "name": "AddLiquiditySingleScy",
170
170
  "type": "event"
171
171
  },
172
172
  {
@@ -181,19 +181,19 @@
181
181
  {
182
182
  "indexed": true,
183
183
  "internalType": "address",
184
- "name": "receiver",
184
+ "name": "market",
185
185
  "type": "address"
186
186
  },
187
187
  {
188
188
  "indexed": true,
189
189
  "internalType": "address",
190
- "name": "SCY",
190
+ "name": "token",
191
191
  "type": "address"
192
192
  },
193
193
  {
194
194
  "indexed": false,
195
195
  "internalType": "address",
196
- "name": "tokenIn",
196
+ "name": "receiver",
197
197
  "type": "address"
198
198
  },
199
199
  {
@@ -205,11 +205,11 @@
205
205
  {
206
206
  "indexed": false,
207
207
  "internalType": "uint256",
208
- "name": "netScyOut",
208
+ "name": "netLpOut",
209
209
  "type": "uint256"
210
210
  }
211
211
  ],
212
- "name": "MintScyFromToken",
212
+ "name": "AddLiquiditySingleToken",
213
213
  "type": "event"
214
214
  },
215
215
  {
@@ -224,19 +224,25 @@
224
224
  {
225
225
  "indexed": true,
226
226
  "internalType": "address",
227
- "name": "receiver",
227
+ "name": "market",
228
228
  "type": "address"
229
229
  },
230
230
  {
231
231
  "indexed": true,
232
232
  "internalType": "address",
233
- "name": "YT",
233
+ "name": "receiver",
234
234
  "type": "address"
235
235
  },
236
236
  {
237
237
  "indexed": false,
238
238
  "internalType": "uint256",
239
- "name": "netPyIn",
239
+ "name": "netLpToRemove",
240
+ "type": "uint256"
241
+ },
242
+ {
243
+ "indexed": false,
244
+ "internalType": "uint256",
245
+ "name": "netPtOut",
240
246
  "type": "uint256"
241
247
  },
242
248
  {
@@ -246,7 +252,7 @@
246
252
  "type": "uint256"
247
253
  }
248
254
  ],
249
- "name": "RedeemPyToScy",
255
+ "name": "RemoveLiquidityDualScyAndPt",
250
256
  "type": "event"
251
257
  },
252
258
  {
@@ -261,62 +267,25 @@
261
267
  {
262
268
  "indexed": true,
263
269
  "internalType": "address",
264
- "name": "receiver",
270
+ "name": "market",
265
271
  "type": "address"
266
272
  },
267
273
  {
268
274
  "indexed": true,
269
275
  "internalType": "address",
270
- "name": "YT",
271
- "type": "address"
272
- },
273
- {
274
- "indexed": false,
275
- "internalType": "uint256",
276
- "name": "netPyIn",
277
- "type": "uint256"
278
- },
279
- {
280
- "indexed": false,
281
- "internalType": "address",
282
- "name": "tokenOut",
276
+ "name": "receiver",
283
277
  "type": "address"
284
278
  },
285
279
  {
286
280
  "indexed": false,
287
281
  "internalType": "uint256",
288
- "name": "netTokenOut",
282
+ "name": "netLpToRemove",
289
283
  "type": "uint256"
290
- }
291
- ],
292
- "name": "RedeemPyToToken",
293
- "type": "event"
294
- },
295
- {
296
- "anonymous": false,
297
- "inputs": [
298
- {
299
- "indexed": true,
300
- "internalType": "address",
301
- "name": "caller",
302
- "type": "address"
303
- },
304
- {
305
- "indexed": true,
306
- "internalType": "address",
307
- "name": "receiver",
308
- "type": "address"
309
- },
310
- {
311
- "indexed": true,
312
- "internalType": "address",
313
- "name": "SCY",
314
- "type": "address"
315
284
  },
316
285
  {
317
286
  "indexed": false,
318
287
  "internalType": "uint256",
319
- "name": "netScyIn",
288
+ "name": "netPtOut",
320
289
  "type": "uint256"
321
290
  },
322
291
  {
@@ -332,7 +301,7 @@
332
301
  "type": "uint256"
333
302
  }
334
303
  ],
335
- "name": "RedeemScyToToken",
304
+ "name": "RemoveLiquidityDualTokenAndPt",
336
305
  "type": "event"
337
306
  },
338
307
  {
@@ -351,7 +320,7 @@
351
320
  "type": "address"
352
321
  },
353
322
  {
354
- "indexed": false,
323
+ "indexed": true,
355
324
  "internalType": "address",
356
325
  "name": "receiver",
357
326
  "type": "address"
@@ -359,23 +328,17 @@
359
328
  {
360
329
  "indexed": false,
361
330
  "internalType": "uint256",
362
- "name": "lpIn",
331
+ "name": "netLpToRemove",
363
332
  "type": "uint256"
364
333
  },
365
334
  {
366
335
  "indexed": false,
367
336
  "internalType": "uint256",
368
- "name": "amountPTOut",
369
- "type": "uint256"
370
- },
371
- {
372
- "indexed": false,
373
- "internalType": "uint256",
374
- "name": "amountIbTokenOut",
337
+ "name": "netPtOut",
375
338
  "type": "uint256"
376
339
  }
377
340
  ],
378
- "name": "RemoveLiquidityDualIbTokenAndPt",
341
+ "name": "RemoveLiquiditySinglePt",
379
342
  "type": "event"
380
343
  },
381
344
  {
@@ -394,7 +357,7 @@
394
357
  "type": "address"
395
358
  },
396
359
  {
397
- "indexed": false,
360
+ "indexed": true,
398
361
  "internalType": "address",
399
362
  "name": "receiver",
400
363
  "type": "address"
@@ -402,60 +365,17 @@
402
365
  {
403
366
  "indexed": false,
404
367
  "internalType": "uint256",
405
- "name": "lpIn",
368
+ "name": "netLpToRemove",
406
369
  "type": "uint256"
407
370
  },
408
371
  {
409
372
  "indexed": false,
410
373
  "internalType": "uint256",
411
- "name": "amountPTOut",
412
- "type": "uint256"
413
- },
414
- {
415
- "indexed": false,
416
- "internalType": "uint256",
417
- "name": "amountSCYOut",
374
+ "name": "netScyOut",
418
375
  "type": "uint256"
419
376
  }
420
377
  ],
421
- "name": "RemoveLiquidityDualScyAndPt",
422
- "type": "event"
423
- },
424
- {
425
- "anonymous": false,
426
- "inputs": [
427
- {
428
- "indexed": true,
429
- "internalType": "address",
430
- "name": "caller",
431
- "type": "address"
432
- },
433
- {
434
- "indexed": true,
435
- "internalType": "address",
436
- "name": "market",
437
- "type": "address"
438
- },
439
- {
440
- "indexed": true,
441
- "internalType": "address",
442
- "name": "receiver",
443
- "type": "address"
444
- },
445
- {
446
- "indexed": false,
447
- "internalType": "int256",
448
- "name": "amountPtToAccount",
449
- "type": "int256"
450
- },
451
- {
452
- "indexed": false,
453
- "internalType": "int256",
454
- "name": "amountScyToAccount",
455
- "type": "int256"
456
- }
457
- ],
458
- "name": "SwapPtAndScy",
378
+ "name": "RemoveLiquiditySingleScy",
459
379
  "type": "event"
460
380
  },
461
381
  {
@@ -487,18 +407,18 @@
487
407
  },
488
408
  {
489
409
  "indexed": false,
490
- "internalType": "int256",
491
- "name": "amountPtToAccount",
492
- "type": "int256"
410
+ "internalType": "uint256",
411
+ "name": "netLpToRemove",
412
+ "type": "uint256"
493
413
  },
494
414
  {
495
415
  "indexed": false,
496
- "internalType": "int256",
497
- "name": "amountTokenToAccount",
498
- "type": "int256"
416
+ "internalType": "uint256",
417
+ "name": "netTokenOut",
418
+ "type": "uint256"
499
419
  }
500
420
  ],
501
- "name": "SwapPtAndToken",
421
+ "name": "RemoveLiquiditySingleToken",
502
422
  "type": "event"
503
423
  },
504
424
  {
@@ -515,12 +435,12 @@
515
435
  },
516
436
  {
517
437
  "internalType": "uint256",
518
- "name": "ibTokenDesired",
438
+ "name": "netScyDesired",
519
439
  "type": "uint256"
520
440
  },
521
441
  {
522
442
  "internalType": "uint256",
523
- "name": "ptDesired",
443
+ "name": "netPtDesired",
524
444
  "type": "uint256"
525
445
  },
526
446
  {
@@ -529,7 +449,7 @@
529
449
  "type": "uint256"
530
450
  }
531
451
  ],
532
- "name": "addLiquidityDualIbTokenAndPt",
452
+ "name": "addLiquidityDualScyAndPt",
533
453
  "outputs": [
534
454
  {
535
455
  "internalType": "uint256",
@@ -538,12 +458,12 @@
538
458
  },
539
459
  {
540
460
  "internalType": "uint256",
541
- "name": "ibTokenUsed",
461
+ "name": "scyUsed",
542
462
  "type": "uint256"
543
463
  },
544
464
  {
545
465
  "internalType": "uint256",
546
- "name": "ptUsed",
466
+ "name": "netPtUsed",
547
467
  "type": "uint256"
548
468
  }
549
469
  ],
@@ -562,14 +482,19 @@
562
482
  "name": "market",
563
483
  "type": "address"
564
484
  },
485
+ {
486
+ "internalType": "address",
487
+ "name": "tokenIn",
488
+ "type": "address"
489
+ },
565
490
  {
566
491
  "internalType": "uint256",
567
- "name": "scyDesired",
492
+ "name": "netTokenDesired",
568
493
  "type": "uint256"
569
494
  },
570
495
  {
571
496
  "internalType": "uint256",
572
- "name": "ptDesired",
497
+ "name": "netPtDesired",
573
498
  "type": "uint256"
574
499
  },
575
500
  {
@@ -578,7 +503,7 @@
578
503
  "type": "uint256"
579
504
  }
580
505
  ],
581
- "name": "addLiquidityDualScyAndPt",
506
+ "name": "addLiquidityDualTokenAndPt",
582
507
  "outputs": [
583
508
  {
584
509
  "internalType": "uint256",
@@ -587,16 +512,16 @@
587
512
  },
588
513
  {
589
514
  "internalType": "uint256",
590
- "name": "scyUsed",
515
+ "name": "netTokenUsed",
591
516
  "type": "uint256"
592
517
  },
593
518
  {
594
519
  "internalType": "uint256",
595
- "name": "ptUsed",
520
+ "name": "netPtUsed",
596
521
  "type": "uint256"
597
522
  }
598
523
  ],
599
- "stateMutability": "nonpayable",
524
+ "stateMutability": "payable",
600
525
  "type": "function"
601
526
  },
602
527
  {
@@ -816,7 +741,7 @@
816
741
  "type": "uint256"
817
742
  }
818
743
  ],
819
- "stateMutability": "nonpayable",
744
+ "stateMutability": "payable",
820
745
  "type": "function"
821
746
  },
822
747
  {
@@ -828,25 +753,35 @@
828
753
  },
829
754
  {
830
755
  "internalType": "address",
831
- "name": "YT",
756
+ "name": "market",
832
757
  "type": "address"
833
758
  },
834
759
  {
835
760
  "internalType": "uint256",
836
- "name": "netScyIn",
761
+ "name": "netLpToRemove",
762
+ "type": "uint256"
763
+ },
764
+ {
765
+ "internalType": "uint256",
766
+ "name": "minScyOut",
837
767
  "type": "uint256"
838
768
  },
839
769
  {
840
770
  "internalType": "uint256",
841
- "name": "minPyOut",
771
+ "name": "minPtOut",
842
772
  "type": "uint256"
843
773
  }
844
774
  ],
845
- "name": "mintPyFromScy",
775
+ "name": "removeLiquidityDualScyAndPt",
846
776
  "outputs": [
847
777
  {
848
778
  "internalType": "uint256",
849
- "name": "netPyOut",
779
+ "name": "netScyOut",
780
+ "type": "uint256"
781
+ },
782
+ {
783
+ "internalType": "uint256",
784
+ "name": "netPtOut",
850
785
  "type": "uint256"
851
786
  }
852
787
  ],
@@ -862,47 +797,40 @@
862
797
  },
863
798
  {
864
799
  "internalType": "address",
865
- "name": "YT",
800
+ "name": "market",
866
801
  "type": "address"
867
802
  },
868
803
  {
869
804
  "internalType": "uint256",
870
- "name": "minPyOut",
805
+ "name": "netLpToRemove",
871
806
  "type": "uint256"
872
807
  },
873
808
  {
874
- "components": [
875
- {
876
- "internalType": "address",
877
- "name": "tokenIn",
878
- "type": "address"
879
- },
880
- {
881
- "internalType": "uint256",
882
- "name": "netTokenIn",
883
- "type": "uint256"
884
- },
885
- {
886
- "internalType": "address",
887
- "name": "tokenMintScy",
888
- "type": "address"
889
- },
890
- {
891
- "internalType": "bytes",
892
- "name": "kybercall",
893
- "type": "bytes"
894
- }
895
- ],
896
- "internalType": "struct TokenInput",
897
- "name": "input",
898
- "type": "tuple"
809
+ "internalType": "address",
810
+ "name": "tokenOut",
811
+ "type": "address"
812
+ },
813
+ {
814
+ "internalType": "uint256",
815
+ "name": "minTokenOut",
816
+ "type": "uint256"
817
+ },
818
+ {
819
+ "internalType": "uint256",
820
+ "name": "minPtOut",
821
+ "type": "uint256"
899
822
  }
900
823
  ],
901
- "name": "mintPyFromToken",
824
+ "name": "removeLiquidityDualTokenAndPt",
902
825
  "outputs": [
903
826
  {
904
827
  "internalType": "uint256",
905
- "name": "netPyOut",
828
+ "name": "netTokenOut",
829
+ "type": "uint256"
830
+ },
831
+ {
832
+ "internalType": "uint256",
833
+ "name": "netPtOut",
906
834
  "type": "uint256"
907
835
  }
908
836
  ],
@@ -918,47 +846,57 @@
918
846
  },
919
847
  {
920
848
  "internalType": "address",
921
- "name": "SCY",
849
+ "name": "market",
922
850
  "type": "address"
923
851
  },
924
852
  {
925
853
  "internalType": "uint256",
926
- "name": "minScyOut",
854
+ "name": "netLpToRemove",
855
+ "type": "uint256"
856
+ },
857
+ {
858
+ "internalType": "uint256",
859
+ "name": "minPtOut",
927
860
  "type": "uint256"
928
861
  },
929
862
  {
930
863
  "components": [
931
864
  {
932
- "internalType": "address",
933
- "name": "tokenIn",
934
- "type": "address"
865
+ "internalType": "uint256",
866
+ "name": "guessMin",
867
+ "type": "uint256"
935
868
  },
936
869
  {
937
870
  "internalType": "uint256",
938
- "name": "netTokenIn",
871
+ "name": "guessMax",
939
872
  "type": "uint256"
940
873
  },
941
874
  {
942
- "internalType": "address",
943
- "name": "tokenMintScy",
944
- "type": "address"
875
+ "internalType": "uint256",
876
+ "name": "guessOffchain",
877
+ "type": "uint256"
945
878
  },
946
879
  {
947
- "internalType": "bytes",
948
- "name": "kybercall",
949
- "type": "bytes"
880
+ "internalType": "uint256",
881
+ "name": "maxIteration",
882
+ "type": "uint256"
883
+ },
884
+ {
885
+ "internalType": "uint256",
886
+ "name": "eps",
887
+ "type": "uint256"
950
888
  }
951
889
  ],
952
- "internalType": "struct TokenInput",
953
- "name": "input",
890
+ "internalType": "struct ApproxParams",
891
+ "name": "guessPtOut",
954
892
  "type": "tuple"
955
893
  }
956
894
  ],
957
- "name": "mintScyFromToken",
895
+ "name": "removeLiquiditySinglePt",
958
896
  "outputs": [
959
897
  {
960
898
  "internalType": "uint256",
961
- "name": "netScyOut",
899
+ "name": "netPtOut",
962
900
  "type": "uint256"
963
901
  }
964
902
  ],
@@ -969,465 +907,26 @@
969
907
  "inputs": [
970
908
  {
971
909
  "internalType": "address",
972
- "name": "user",
910
+ "name": "receiver",
973
911
  "type": "address"
974
912
  },
975
913
  {
976
- "internalType": "address[]",
977
- "name": "scys",
978
- "type": "address[]"
914
+ "internalType": "address",
915
+ "name": "market",
916
+ "type": "address"
979
917
  },
980
918
  {
981
- "internalType": "address[]",
982
- "name": "yts",
983
- "type": "address[]"
919
+ "internalType": "uint256",
920
+ "name": "netLpToRemove",
921
+ "type": "uint256"
984
922
  },
985
923
  {
986
- "internalType": "address[]",
987
- "name": "markets",
988
- "type": "address[]"
924
+ "internalType": "uint256",
925
+ "name": "minScyOut",
926
+ "type": "uint256"
989
927
  }
990
928
  ],
991
- "name": "redeemDueInterestAndRewards",
992
- "outputs": [
993
- {
994
- "internalType": "uint256[][]",
995
- "name": "scyRewards",
996
- "type": "uint256[][]"
997
- },
998
- {
999
- "internalType": "uint256[]",
1000
- "name": "ytInterests",
1001
- "type": "uint256[]"
1002
- },
1003
- {
1004
- "internalType": "uint256[][]",
1005
- "name": "ytRewards",
1006
- "type": "uint256[][]"
1007
- },
1008
- {
1009
- "internalType": "uint256[][]",
1010
- "name": "marketRewards",
1011
- "type": "uint256[][]"
1012
- }
1013
- ],
1014
- "stateMutability": "nonpayable",
1015
- "type": "function"
1016
- },
1017
- {
1018
- "inputs": [
1019
- {
1020
- "internalType": "address",
1021
- "name": "receiver",
1022
- "type": "address"
1023
- },
1024
- {
1025
- "internalType": "address",
1026
- "name": "YT",
1027
- "type": "address"
1028
- },
1029
- {
1030
- "internalType": "uint256",
1031
- "name": "netPyIn",
1032
- "type": "uint256"
1033
- },
1034
- {
1035
- "internalType": "uint256",
1036
- "name": "minScyOut",
1037
- "type": "uint256"
1038
- }
1039
- ],
1040
- "name": "redeemPyToScy",
1041
- "outputs": [
1042
- {
1043
- "internalType": "uint256",
1044
- "name": "netScyOut",
1045
- "type": "uint256"
1046
- }
1047
- ],
1048
- "stateMutability": "nonpayable",
1049
- "type": "function"
1050
- },
1051
- {
1052
- "inputs": [
1053
- {
1054
- "internalType": "address",
1055
- "name": "receiver",
1056
- "type": "address"
1057
- },
1058
- {
1059
- "internalType": "address",
1060
- "name": "YT",
1061
- "type": "address"
1062
- },
1063
- {
1064
- "internalType": "uint256",
1065
- "name": "netPyIn",
1066
- "type": "uint256"
1067
- },
1068
- {
1069
- "components": [
1070
- {
1071
- "internalType": "address",
1072
- "name": "tokenOut",
1073
- "type": "address"
1074
- },
1075
- {
1076
- "internalType": "uint256",
1077
- "name": "minTokenOut",
1078
- "type": "uint256"
1079
- },
1080
- {
1081
- "internalType": "address",
1082
- "name": "tokenRedeemScy",
1083
- "type": "address"
1084
- },
1085
- {
1086
- "internalType": "bytes",
1087
- "name": "kybercall",
1088
- "type": "bytes"
1089
- }
1090
- ],
1091
- "internalType": "struct TokenOutput",
1092
- "name": "output",
1093
- "type": "tuple"
1094
- }
1095
- ],
1096
- "name": "redeemPyToToken",
1097
- "outputs": [
1098
- {
1099
- "internalType": "uint256",
1100
- "name": "netTokenOut",
1101
- "type": "uint256"
1102
- }
1103
- ],
1104
- "stateMutability": "nonpayable",
1105
- "type": "function"
1106
- },
1107
- {
1108
- "inputs": [
1109
- {
1110
- "internalType": "address",
1111
- "name": "receiver",
1112
- "type": "address"
1113
- },
1114
- {
1115
- "internalType": "address",
1116
- "name": "SCY",
1117
- "type": "address"
1118
- },
1119
- {
1120
- "internalType": "uint256",
1121
- "name": "netScyIn",
1122
- "type": "uint256"
1123
- },
1124
- {
1125
- "components": [
1126
- {
1127
- "internalType": "address",
1128
- "name": "tokenOut",
1129
- "type": "address"
1130
- },
1131
- {
1132
- "internalType": "uint256",
1133
- "name": "minTokenOut",
1134
- "type": "uint256"
1135
- },
1136
- {
1137
- "internalType": "address",
1138
- "name": "tokenRedeemScy",
1139
- "type": "address"
1140
- },
1141
- {
1142
- "internalType": "bytes",
1143
- "name": "kybercall",
1144
- "type": "bytes"
1145
- }
1146
- ],
1147
- "internalType": "struct TokenOutput",
1148
- "name": "output",
1149
- "type": "tuple"
1150
- }
1151
- ],
1152
- "name": "redeemScyToToken",
1153
- "outputs": [
1154
- {
1155
- "internalType": "uint256",
1156
- "name": "netTokenOut",
1157
- "type": "uint256"
1158
- }
1159
- ],
1160
- "stateMutability": "nonpayable",
1161
- "type": "function"
1162
- },
1163
- {
1164
- "inputs": [
1165
- {
1166
- "internalType": "address",
1167
- "name": "receiver",
1168
- "type": "address"
1169
- },
1170
- {
1171
- "internalType": "address",
1172
- "name": "market",
1173
- "type": "address"
1174
- },
1175
- {
1176
- "internalType": "uint256",
1177
- "name": "lpToRemove",
1178
- "type": "uint256"
1179
- },
1180
- {
1181
- "internalType": "uint256",
1182
- "name": "ibTokenMin",
1183
- "type": "uint256"
1184
- },
1185
- {
1186
- "internalType": "uint256",
1187
- "name": "ptOutMin",
1188
- "type": "uint256"
1189
- }
1190
- ],
1191
- "name": "removeLiquidityDualIbTokenAndPt",
1192
- "outputs": [
1193
- {
1194
- "internalType": "uint256",
1195
- "name": "netIbTokenOut",
1196
- "type": "uint256"
1197
- },
1198
- {
1199
- "internalType": "uint256",
1200
- "name": "netPtOut",
1201
- "type": "uint256"
1202
- }
1203
- ],
1204
- "stateMutability": "nonpayable",
1205
- "type": "function"
1206
- },
1207
- {
1208
- "inputs": [
1209
- {
1210
- "internalType": "address",
1211
- "name": "receiver",
1212
- "type": "address"
1213
- },
1214
- {
1215
- "internalType": "address",
1216
- "name": "market",
1217
- "type": "address"
1218
- },
1219
- {
1220
- "internalType": "uint256",
1221
- "name": "lpToRemove",
1222
- "type": "uint256"
1223
- },
1224
- {
1225
- "internalType": "uint256",
1226
- "name": "scyOutMin",
1227
- "type": "uint256"
1228
- },
1229
- {
1230
- "internalType": "uint256",
1231
- "name": "ptOutMin",
1232
- "type": "uint256"
1233
- }
1234
- ],
1235
- "name": "removeLiquidityDualScyAndPt",
1236
- "outputs": [
1237
- {
1238
- "internalType": "uint256",
1239
- "name": "netScyOut",
1240
- "type": "uint256"
1241
- },
1242
- {
1243
- "internalType": "uint256",
1244
- "name": "netPtOut",
1245
- "type": "uint256"
1246
- }
1247
- ],
1248
- "stateMutability": "nonpayable",
1249
- "type": "function"
1250
- },
1251
- {
1252
- "inputs": [
1253
- {
1254
- "internalType": "address",
1255
- "name": "receiver",
1256
- "type": "address"
1257
- },
1258
- {
1259
- "internalType": "address",
1260
- "name": "market",
1261
- "type": "address"
1262
- },
1263
- {
1264
- "internalType": "uint256",
1265
- "name": "lpToRemove",
1266
- "type": "uint256"
1267
- },
1268
- {
1269
- "internalType": "uint256",
1270
- "name": "minPtOut",
1271
- "type": "uint256"
1272
- },
1273
- {
1274
- "components": [
1275
- {
1276
- "internalType": "uint256",
1277
- "name": "guessMin",
1278
- "type": "uint256"
1279
- },
1280
- {
1281
- "internalType": "uint256",
1282
- "name": "guessMax",
1283
- "type": "uint256"
1284
- },
1285
- {
1286
- "internalType": "uint256",
1287
- "name": "guessOffchain",
1288
- "type": "uint256"
1289
- },
1290
- {
1291
- "internalType": "uint256",
1292
- "name": "maxIteration",
1293
- "type": "uint256"
1294
- },
1295
- {
1296
- "internalType": "uint256",
1297
- "name": "eps",
1298
- "type": "uint256"
1299
- }
1300
- ],
1301
- "internalType": "struct ApproxParams",
1302
- "name": "guessPtOut",
1303
- "type": "tuple"
1304
- }
1305
- ],
1306
- "name": "removeLiquiditySinglePt",
1307
- "outputs": [
1308
- {
1309
- "internalType": "uint256",
1310
- "name": "netPtOut",
1311
- "type": "uint256"
1312
- }
1313
- ],
1314
- "stateMutability": "nonpayable",
1315
- "type": "function"
1316
- },
1317
- {
1318
- "inputs": [
1319
- {
1320
- "internalType": "address",
1321
- "name": "receiver",
1322
- "type": "address"
1323
- },
1324
- {
1325
- "internalType": "address",
1326
- "name": "market",
1327
- "type": "address"
1328
- },
1329
- {
1330
- "internalType": "uint256",
1331
- "name": "lpToRemove",
1332
- "type": "uint256"
1333
- },
1334
- {
1335
- "internalType": "uint256",
1336
- "name": "minScyOut",
1337
- "type": "uint256"
1338
- }
1339
- ],
1340
- "name": "removeLiquiditySingleScy",
1341
- "outputs": [
1342
- {
1343
- "internalType": "uint256",
1344
- "name": "netScyOut",
1345
- "type": "uint256"
1346
- }
1347
- ],
1348
- "stateMutability": "nonpayable",
1349
- "type": "function"
1350
- },
1351
- {
1352
- "inputs": [
1353
- {
1354
- "internalType": "address",
1355
- "name": "receiver",
1356
- "type": "address"
1357
- },
1358
- {
1359
- "internalType": "address",
1360
- "name": "market",
1361
- "type": "address"
1362
- },
1363
- {
1364
- "internalType": "uint256",
1365
- "name": "lpToRemove",
1366
- "type": "uint256"
1367
- },
1368
- {
1369
- "components": [
1370
- {
1371
- "internalType": "address",
1372
- "name": "tokenOut",
1373
- "type": "address"
1374
- },
1375
- {
1376
- "internalType": "uint256",
1377
- "name": "minTokenOut",
1378
- "type": "uint256"
1379
- },
1380
- {
1381
- "internalType": "address",
1382
- "name": "tokenRedeemScy",
1383
- "type": "address"
1384
- },
1385
- {
1386
- "internalType": "bytes",
1387
- "name": "kybercall",
1388
- "type": "bytes"
1389
- }
1390
- ],
1391
- "internalType": "struct TokenOutput",
1392
- "name": "output",
1393
- "type": "tuple"
1394
- }
1395
- ],
1396
- "name": "removeLiquiditySingleToken",
1397
- "outputs": [
1398
- {
1399
- "internalType": "uint256",
1400
- "name": "netTokenOut",
1401
- "type": "uint256"
1402
- }
1403
- ],
1404
- "stateMutability": "nonpayable",
1405
- "type": "function"
1406
- },
1407
- {
1408
- "inputs": [
1409
- {
1410
- "internalType": "address",
1411
- "name": "receiver",
1412
- "type": "address"
1413
- },
1414
- {
1415
- "internalType": "address",
1416
- "name": "market",
1417
- "type": "address"
1418
- },
1419
- {
1420
- "internalType": "uint256",
1421
- "name": "exactPtIn",
1422
- "type": "uint256"
1423
- },
1424
- {
1425
- "internalType": "uint256",
1426
- "name": "minScyOut",
1427
- "type": "uint256"
1428
- }
1429
- ],
1430
- "name": "swapExactPtForScy",
929
+ "name": "removeLiquiditySingleScy",
1431
930
  "outputs": [
1432
931
  {
1433
932
  "internalType": "uint256",
@@ -1452,7 +951,7 @@
1452
951
  },
1453
952
  {
1454
953
  "internalType": "uint256",
1455
- "name": "exactPtIn",
954
+ "name": "netLpToRemove",
1456
955
  "type": "uint256"
1457
956
  },
1458
957
  {
@@ -1483,7 +982,7 @@
1483
982
  "type": "tuple"
1484
983
  }
1485
984
  ],
1486
- "name": "swapExactPtForToken",
985
+ "name": "removeLiquiditySingleToken",
1487
986
  "outputs": [
1488
987
  {
1489
988
  "internalType": "uint256",
@@ -1493,260 +992,6 @@
1493
992
  ],
1494
993
  "stateMutability": "nonpayable",
1495
994
  "type": "function"
1496
- },
1497
- {
1498
- "inputs": [
1499
- {
1500
- "internalType": "address",
1501
- "name": "receiver",
1502
- "type": "address"
1503
- },
1504
- {
1505
- "internalType": "address",
1506
- "name": "market",
1507
- "type": "address"
1508
- },
1509
- {
1510
- "internalType": "uint256",
1511
- "name": "exactScyIn",
1512
- "type": "uint256"
1513
- },
1514
- {
1515
- "internalType": "uint256",
1516
- "name": "minPtOut",
1517
- "type": "uint256"
1518
- },
1519
- {
1520
- "components": [
1521
- {
1522
- "internalType": "uint256",
1523
- "name": "guessMin",
1524
- "type": "uint256"
1525
- },
1526
- {
1527
- "internalType": "uint256",
1528
- "name": "guessMax",
1529
- "type": "uint256"
1530
- },
1531
- {
1532
- "internalType": "uint256",
1533
- "name": "guessOffchain",
1534
- "type": "uint256"
1535
- },
1536
- {
1537
- "internalType": "uint256",
1538
- "name": "maxIteration",
1539
- "type": "uint256"
1540
- },
1541
- {
1542
- "internalType": "uint256",
1543
- "name": "eps",
1544
- "type": "uint256"
1545
- }
1546
- ],
1547
- "internalType": "struct ApproxParams",
1548
- "name": "guessPtOut",
1549
- "type": "tuple"
1550
- }
1551
- ],
1552
- "name": "swapExactScyForPt",
1553
- "outputs": [
1554
- {
1555
- "internalType": "uint256",
1556
- "name": "netPtOut",
1557
- "type": "uint256"
1558
- }
1559
- ],
1560
- "stateMutability": "nonpayable",
1561
- "type": "function"
1562
- },
1563
- {
1564
- "inputs": [
1565
- {
1566
- "internalType": "address",
1567
- "name": "receiver",
1568
- "type": "address"
1569
- },
1570
- {
1571
- "internalType": "address",
1572
- "name": "market",
1573
- "type": "address"
1574
- },
1575
- {
1576
- "internalType": "uint256",
1577
- "name": "minPtOut",
1578
- "type": "uint256"
1579
- },
1580
- {
1581
- "components": [
1582
- {
1583
- "internalType": "uint256",
1584
- "name": "guessMin",
1585
- "type": "uint256"
1586
- },
1587
- {
1588
- "internalType": "uint256",
1589
- "name": "guessMax",
1590
- "type": "uint256"
1591
- },
1592
- {
1593
- "internalType": "uint256",
1594
- "name": "guessOffchain",
1595
- "type": "uint256"
1596
- },
1597
- {
1598
- "internalType": "uint256",
1599
- "name": "maxIteration",
1600
- "type": "uint256"
1601
- },
1602
- {
1603
- "internalType": "uint256",
1604
- "name": "eps",
1605
- "type": "uint256"
1606
- }
1607
- ],
1608
- "internalType": "struct ApproxParams",
1609
- "name": "guessPtOut",
1610
- "type": "tuple"
1611
- },
1612
- {
1613
- "components": [
1614
- {
1615
- "internalType": "address",
1616
- "name": "tokenIn",
1617
- "type": "address"
1618
- },
1619
- {
1620
- "internalType": "uint256",
1621
- "name": "netTokenIn",
1622
- "type": "uint256"
1623
- },
1624
- {
1625
- "internalType": "address",
1626
- "name": "tokenMintScy",
1627
- "type": "address"
1628
- },
1629
- {
1630
- "internalType": "bytes",
1631
- "name": "kybercall",
1632
- "type": "bytes"
1633
- }
1634
- ],
1635
- "internalType": "struct TokenInput",
1636
- "name": "input",
1637
- "type": "tuple"
1638
- }
1639
- ],
1640
- "name": "swapExactTokenForPt",
1641
- "outputs": [
1642
- {
1643
- "internalType": "uint256",
1644
- "name": "netPtOut",
1645
- "type": "uint256"
1646
- }
1647
- ],
1648
- "stateMutability": "nonpayable",
1649
- "type": "function"
1650
- },
1651
- {
1652
- "inputs": [
1653
- {
1654
- "internalType": "address",
1655
- "name": "receiver",
1656
- "type": "address"
1657
- },
1658
- {
1659
- "internalType": "address",
1660
- "name": "market",
1661
- "type": "address"
1662
- },
1663
- {
1664
- "internalType": "uint256",
1665
- "name": "exactScyOut",
1666
- "type": "uint256"
1667
- },
1668
- {
1669
- "internalType": "uint256",
1670
- "name": "maxPtIn",
1671
- "type": "uint256"
1672
- },
1673
- {
1674
- "components": [
1675
- {
1676
- "internalType": "uint256",
1677
- "name": "guessMin",
1678
- "type": "uint256"
1679
- },
1680
- {
1681
- "internalType": "uint256",
1682
- "name": "guessMax",
1683
- "type": "uint256"
1684
- },
1685
- {
1686
- "internalType": "uint256",
1687
- "name": "guessOffchain",
1688
- "type": "uint256"
1689
- },
1690
- {
1691
- "internalType": "uint256",
1692
- "name": "maxIteration",
1693
- "type": "uint256"
1694
- },
1695
- {
1696
- "internalType": "uint256",
1697
- "name": "eps",
1698
- "type": "uint256"
1699
- }
1700
- ],
1701
- "internalType": "struct ApproxParams",
1702
- "name": "guessPtIn",
1703
- "type": "tuple"
1704
- }
1705
- ],
1706
- "name": "swapPtForExactScy",
1707
- "outputs": [
1708
- {
1709
- "internalType": "uint256",
1710
- "name": "netPtIn",
1711
- "type": "uint256"
1712
- }
1713
- ],
1714
- "stateMutability": "nonpayable",
1715
- "type": "function"
1716
- },
1717
- {
1718
- "inputs": [
1719
- {
1720
- "internalType": "address",
1721
- "name": "receiver",
1722
- "type": "address"
1723
- },
1724
- {
1725
- "internalType": "address",
1726
- "name": "market",
1727
- "type": "address"
1728
- },
1729
- {
1730
- "internalType": "uint256",
1731
- "name": "exactPtOut",
1732
- "type": "uint256"
1733
- },
1734
- {
1735
- "internalType": "uint256",
1736
- "name": "maxScyIn",
1737
- "type": "uint256"
1738
- }
1739
- ],
1740
- "name": "swapScyForExactPt",
1741
- "outputs": [
1742
- {
1743
- "internalType": "uint256",
1744
- "name": "netScyIn",
1745
- "type": "uint256"
1746
- }
1747
- ],
1748
- "stateMutability": "nonpayable",
1749
- "type": "function"
1750
995
  }
1751
996
  ],
1752
997
  "bytecode": "0x",