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