@pendle/core-v2 1.1.1-mainnet → 1.3.0-mainnet

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 (322) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  10. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  12. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +4 -0
  13. package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +592 -0
  14. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  16. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  19. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  21. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  22. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  23. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  24. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  26. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  28. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  29. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  30. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  32. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  34. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  36. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  38. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  41. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  43. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.json +141 -0
  47. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.json +141 -0
  49. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +4 -0
  50. package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.json +50 -0
  51. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +143 -2
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol/PendleAura3EthSY.dbg.json +4 -0
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol/PendleAura3EthSY.json +1296 -0
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol/PendleAuraCbethWstethSY.dbg.json +4 -0
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol/PendleAuraCbethWstethSY.json +1283 -0
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.dbg.json +4 -0
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.json +1218 -0
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.dbg.json +4 -0
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.json +1231 -0
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +4 -0
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.json +10 -0
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +4 -0
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.json +133 -0
  65. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.dbg.json +4 -0
  66. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.json +10 -0
  67. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +4 -0
  68. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.json +40 -0
  69. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +4 -0
  70. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.json +322 -0
  71. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.dbg.json +4 -0
  72. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.json +1171 -0
  73. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +4 -0
  74. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.json +10 -0
  75. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +4 -0
  76. package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.json +133 -0
  77. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  78. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  79. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  80. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +143 -2
  81. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  82. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +143 -2
  83. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  84. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +143 -2
  85. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  86. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.json +141 -0
  87. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  88. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +143 -2
  89. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  90. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +143 -2
  91. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  92. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  93. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  94. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  95. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  96. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  97. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  98. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.json +2 -2
  99. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  100. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +123 -5
  101. package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +4 -0
  102. package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.json +10 -0
  103. package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +4 -0
  104. package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.json +24 -0
  105. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +4 -0
  106. package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.json +133 -0
  107. package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +4 -0
  108. package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.json +328 -0
  109. package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +4 -0
  110. package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.json +467 -0
  111. package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.dbg.json +4 -0
  112. package/build/artifacts/contracts/interfaces/{IPFeeDistributorFactory.sol/IPFeeDistributorFactory.json → Balancer/IGauge.sol/IGauge.json} +18 -33
  113. package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.dbg.json +4 -0
  114. package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.json +30 -0
  115. package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +4 -0
  116. package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.json +398 -0
  117. package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.dbg.json +4 -0
  118. package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.json +24 -0
  119. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +4 -0
  120. package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.json +278 -0
  121. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.json +18 -0
  123. package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
  128. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  130. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  131. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  132. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.json +43 -32
  133. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  135. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  136. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  137. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  138. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  139. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -2
  140. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +4 -0
  141. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.json +322 -0
  142. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  143. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +2 -2
  144. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  145. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
  146. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  147. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.json +2 -2
  148. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  149. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
  150. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  151. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +2 -2
  152. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  153. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  154. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
  155. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +2 -2
  156. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  157. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  158. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  159. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
  160. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  161. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  162. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  163. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  164. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  165. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +1 -1
  166. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +2 -2
  167. package/build/artifacts/contracts/router/kyberswap/IMultihopRouterEthereum.sol/IMultihopRouterEthereum.dbg.json +4 -0
  168. package/build/artifacts/contracts/router/kyberswap/{IMultihopRouter.sol/IMultihopRouter.json → IMultihopRouterEthereum.sol/IMultihopRouterEthereum.json} +3 -3
  169. package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
  170. package/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol +224 -0
  171. package/contracts/core/BulkSeller/BulkSeller.sol +1 -1
  172. package/contracts/core/StandardizedYield/SYBase.sol +23 -5
  173. package/contracts/core/StandardizedYield/StEthHelper.sol +71 -0
  174. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol +170 -0
  175. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol +162 -0
  176. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol +134 -0
  177. package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol +154 -0
  178. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol +289 -0
  179. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol +618 -0
  180. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol +68 -0
  181. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol +322 -0
  182. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol +390 -0
  183. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol +329 -0
  184. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol +30 -0
  185. package/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol +189 -0
  186. package/contracts/core/libraries/ArrayLib.sol +12 -0
  187. package/contracts/core/libraries/Errors.sol +13 -2
  188. package/contracts/interfaces/Balancer/IAsset.sol +4 -0
  189. package/contracts/interfaces/Balancer/IBalancerFees.sol +6 -0
  190. package/contracts/interfaces/Balancer/IBalancerStablePreview.sol +22 -0
  191. package/contracts/interfaces/Balancer/IBasePool.sol +30 -0
  192. package/contracts/interfaces/Balancer/IComposableStable.sol +39 -0
  193. package/contracts/interfaces/Balancer/IGauge.sol +10 -0
  194. package/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol +6 -0
  195. package/contracts/interfaces/Balancer/IMetaStablePool.sol +31 -0
  196. package/contracts/interfaces/Balancer/IRateProvider.sol +6 -0
  197. package/contracts/interfaces/Balancer/IVault.sol +78 -0
  198. package/contracts/interfaces/ConvexCurve/IRewards.sol +5 -0
  199. package/contracts/interfaces/IPFeeDistributor.sol +12 -10
  200. package/contracts/offchain-helpers/Multicall2.sol +103 -0
  201. package/contracts/router/kyberswap/AggregationRouterHelper.sol +47 -23
  202. package/contracts/router/kyberswap/{IMultihopRouter.sol → IMultihopRouterEthereum.sol} +11 -9
  203. package/deployments/1-core.json +2 -1
  204. package/deployments/1-markets/BALANCER-LP-AURA-RETH-WETH-28DEC.json +11 -0
  205. package/package.json +6 -6
  206. package/typechain-types/BribeDistributor.ts +363 -0
  207. package/typechain-types/ComposableStablePreview.ts +217 -0
  208. package/typechain-types/DistributorBase.ts +363 -0
  209. package/typechain-types/FeeDistributor.ts +416 -0
  210. package/typechain-types/IBalancerFees.ts +89 -0
  211. package/typechain-types/IBalancerStablePreview.ts +217 -0
  212. package/typechain-types/IBasePool.ts +482 -0
  213. package/typechain-types/IComposableStable.ts +730 -0
  214. package/typechain-types/IGauge.ts +160 -0
  215. package/typechain-types/ILiquidityGaugeFactory.ts +99 -0
  216. package/typechain-types/IMetaStablePool.ts +619 -0
  217. package/typechain-types/IMultihopRouterEthereum.ts +209 -0
  218. package/typechain-types/IPFeeDistributor.ts +61 -78
  219. package/typechain-types/IPFeeDistributorFactory.ts +53 -139
  220. package/typechain-types/IRateProvider.ts +81 -0
  221. package/typechain-types/IRewards.ts +35 -5
  222. package/typechain-types/IVault.ts +410 -0
  223. package/typechain-types/MetaStableMath.ts +113 -0
  224. package/typechain-types/MetaStablePreview.ts +501 -0
  225. package/typechain-types/Multicall2.ts +437 -0
  226. package/typechain-types/PendleAura3EthSY.ts +1639 -0
  227. package/typechain-types/PendleAuraBalancerStableLPSY.ts +1523 -0
  228. package/typechain-types/PendleAuraCbethWstethSY.ts +1626 -0
  229. package/typechain-types/PendleAuraWethRethSY.ts +1549 -0
  230. package/typechain-types/PendleAuraWethWstethSY.ts +1562 -0
  231. package/typechain-types/PendleConvexLPSY.ts +204 -0
  232. package/typechain-types/PendleCurveFraxUsdcSY.ts +204 -0
  233. package/typechain-types/PendleCurveUsdd3CrvSY.ts +204 -0
  234. package/typechain-types/PendleFeeDistributor.ts +409 -117
  235. package/typechain-types/PendleLooksStakingSY.ts +204 -0
  236. package/typechain-types/PendleQiTokenSY.ts +204 -0
  237. package/typechain-types/PendleWstEthSY.ts +204 -0
  238. package/typechain-types/SAPE.ts +204 -0
  239. package/typechain-types/SYBase.ts +204 -0
  240. package/typechain-types/SYBaseWithRewards.ts +204 -0
  241. package/typechain-types/StEthHelper.ts +107 -0
  242. package/typechain-types/StablePreviewBase.ts +217 -0
  243. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  244. package/typechain-types/factories/ActionCallback__factory.ts +1 -1
  245. package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
  246. package/typechain-types/factories/ActionMisc__factory.ts +1 -1
  247. package/typechain-types/factories/ActionSwapPTYT__factory.ts +1 -1
  248. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  249. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  250. package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
  251. package/typechain-types/factories/BribeDistributor__factory.ts +303 -0
  252. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  253. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  254. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  255. package/typechain-types/factories/ComposableStablePreview__factory.ts +190 -0
  256. package/typechain-types/factories/DistributorBase__factory.ts +249 -0
  257. package/typechain-types/factories/Errors__factory.ts +122 -4
  258. package/typechain-types/factories/FeeDistributor__factory.ts +339 -0
  259. package/typechain-types/factories/IBalancerFees__factory.ts +36 -0
  260. package/typechain-types/factories/IBalancerStablePreview__factory.ts +152 -0
  261. package/typechain-types/factories/IBasePool__factory.ts +340 -0
  262. package/typechain-types/factories/IComposableStable__factory.ts +482 -0
  263. package/typechain-types/factories/IGauge__factory.ts +70 -0
  264. package/typechain-types/factories/ILiquidityGaugeFactory__factory.ts +49 -0
  265. package/typechain-types/factories/IMetaStablePool__factory.ts +413 -0
  266. package/typechain-types/factories/IMultihopRouterEthereum__factory.ts +155 -0
  267. package/typechain-types/factories/IPFeeDistributorFactory__factory.ts +25 -34
  268. package/typechain-types/factories/IPFeeDistributor__factory.ts +42 -31
  269. package/typechain-types/factories/IRateProvider__factory.ts +36 -0
  270. package/typechain-types/factories/IRewards__factory.ts +18 -0
  271. package/typechain-types/factories/IVault__factory.ts +287 -0
  272. package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
  273. package/typechain-types/factories/MetaStableMath__factory.ts +93 -0
  274. package/typechain-types/factories/MetaStablePreview__factory.ts +375 -0
  275. package/typechain-types/factories/Multicall2__factory.ts +372 -0
  276. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  277. package/typechain-types/factories/PendleAura3EthSY__factory.ts +1365 -0
  278. package/typechain-types/factories/PendleAuraBalancerStableLPSY__factory.ts +1190 -0
  279. package/typechain-types/factories/PendleAuraCbethWstethSY__factory.ts +1356 -0
  280. package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +1291 -0
  281. package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +1304 -0
  282. package/typechain-types/factories/PendleConvexLPSY__factory.ts +141 -0
  283. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +142 -1
  284. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +142 -1
  285. package/typechain-types/factories/PendleFeeDistributor__factory.ts +341 -66
  286. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  287. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  288. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +142 -1
  289. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  290. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  291. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  292. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  293. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  294. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  295. package/typechain-types/factories/PendleQiTokenSY__factory.ts +142 -1
  296. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  297. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  298. package/typechain-types/factories/PendleWstEthSY__factory.ts +142 -1
  299. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  300. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  301. package/typechain-types/factories/RouterStatic__factory.ts +1 -1
  302. package/typechain-types/factories/SAPE__factory.ts +142 -1
  303. package/typechain-types/factories/SYBaseWithRewards__factory.ts +141 -0
  304. package/typechain-types/factories/SYBase__factory.ts +141 -0
  305. package/typechain-types/factories/StEthHelper__factory.ts +62 -0
  306. package/typechain-types/factories/StablePreviewBase__factory.ts +148 -0
  307. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  308. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  309. package/typechain-types/hardhat.d.ts +193 -40
  310. package/typechain-types/index.ts +44 -10
  311. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +0 -4
  312. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.json +0 -131
  313. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +0 -4
  314. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +0 -310
  315. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +0 -4
  316. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +0 -389
  317. package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.dbg.json +0 -4
  318. package/build/artifacts/contracts/router/kyberswap/IMultihopRouter.sol/IMultihopRouter.dbg.json +0 -4
  319. package/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol +0 -159
  320. package/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol +0 -99
  321. package/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol +0 -70
  322. package/contracts/interfaces/IPFeeDistributorFactory.sol +0 -14
@@ -0,0 +1,190 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
6
+ import type {
7
+ ComposableStablePreview,
8
+ ComposableStablePreviewInterface,
9
+ } from "../ComposableStablePreview";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "bytes32",
16
+ name: "poolId",
17
+ type: "bytes32",
18
+ },
19
+ {
20
+ internalType: "address",
21
+ name: "sender",
22
+ type: "address",
23
+ },
24
+ {
25
+ internalType: "address",
26
+ name: "recipient",
27
+ type: "address",
28
+ },
29
+ {
30
+ components: [
31
+ {
32
+ internalType: "address[]",
33
+ name: "assets",
34
+ type: "address[]",
35
+ },
36
+ {
37
+ internalType: "uint256[]",
38
+ name: "minAmountsOut",
39
+ type: "uint256[]",
40
+ },
41
+ {
42
+ internalType: "bytes",
43
+ name: "userData",
44
+ type: "bytes",
45
+ },
46
+ {
47
+ internalType: "bool",
48
+ name: "toInternalBalance",
49
+ type: "bool",
50
+ },
51
+ ],
52
+ internalType: "struct IVault.ExitPoolRequest",
53
+ name: "request",
54
+ type: "tuple",
55
+ },
56
+ {
57
+ internalType: "bytes",
58
+ name: "data",
59
+ type: "bytes",
60
+ },
61
+ ],
62
+ name: "exitPoolPreview",
63
+ outputs: [
64
+ {
65
+ internalType: "uint256",
66
+ name: "amountTokenOut",
67
+ type: "uint256",
68
+ },
69
+ ],
70
+ stateMutability: "view",
71
+ type: "function",
72
+ },
73
+ {
74
+ inputs: [
75
+ {
76
+ internalType: "bytes32",
77
+ name: "poolId",
78
+ type: "bytes32",
79
+ },
80
+ {
81
+ internalType: "address",
82
+ name: "sender",
83
+ type: "address",
84
+ },
85
+ {
86
+ internalType: "address",
87
+ name: "recipient",
88
+ type: "address",
89
+ },
90
+ {
91
+ components: [
92
+ {
93
+ internalType: "address[]",
94
+ name: "assets",
95
+ type: "address[]",
96
+ },
97
+ {
98
+ internalType: "uint256[]",
99
+ name: "maxAmountsIn",
100
+ type: "uint256[]",
101
+ },
102
+ {
103
+ internalType: "bytes",
104
+ name: "userData",
105
+ type: "bytes",
106
+ },
107
+ {
108
+ internalType: "bool",
109
+ name: "fromInternalBalance",
110
+ type: "bool",
111
+ },
112
+ ],
113
+ internalType: "struct IVault.JoinPoolRequest",
114
+ name: "request",
115
+ type: "tuple",
116
+ },
117
+ {
118
+ internalType: "bytes",
119
+ name: "data",
120
+ type: "bytes",
121
+ },
122
+ ],
123
+ name: "joinPoolPreview",
124
+ outputs: [
125
+ {
126
+ internalType: "uint256",
127
+ name: "amountBptOut",
128
+ type: "uint256",
129
+ },
130
+ ],
131
+ stateMutability: "view",
132
+ type: "function",
133
+ },
134
+ ];
135
+
136
+ const _bytecode =
137
+ "0x608060405234801561001057600080fd5b50612617806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063626117301461003b5780636669506014610060575b600080fd5b61004e610049366004611fe6565b610073565b60405190815260200160405180910390f35b61004e61006e366004611fe6565b610096565b600061008c6001878787610086886100a5565b876100d6565b9695505050505050565b600061008c6000878787610086885b6100d260405180608001604052806060815260200160608152602001606081526020016000151581525090565b5090565b6000806100e68460000151610117565b90506000806100f589846101cf565b915091506101098a8a8a8a8a87878c61025f565b9a9950505050505050505050565b6060600082516001600160401b0381111561013457610134611d43565b60405190808252806020026020018201604052801561015d578160200160208202803683370190505b50905060005b83518110156101c85761018e84828151811061018157610181612078565b60200260200101516102c5565b8282815181106101a0576101a0612078565b6001600160a01b03909216602092830291909101909101526101c1816120a4565b9050610163565b5092915050565b604051631f29a8cd60e31b8152600481018390526060906000908190819073ba12222222228d8ba445958a75a0704d566bf2c89063f94d466890602401600060405180830381865afa158015610229573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526102519190810190612118565b909890975095505050505050565b600080896001811115610274576102746121e5565b0361029b5761029488888887876102896102f8565b8b6040015189610375565b90506102b9565b6102b688888887876102ab6102f8565b8b60400151896103d6565b90505b98975050505050505050565b60006001600160a01b038216156102dc57816102f2565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25b92915050565b600073ce88686553686da562ce7cea497ce749da109f9f6001600160a01b03166355c676286040518163ffffffff1660e01b8152600401602060405180830381865afa15801561034c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037091906121fb565b905090565b6000808280602001905181019061038c91906122f2565b90506000610399826104b2565b905060006103a783836104bd565b90506103b38982610588565b6103c58c8c8c8c8c8c878d8b8b610604565b509c9b505050505050505050505050565b600080828060200190518101906103ed91906122f2565b90506000606060006103fe846104b2565b9050600061040c85836104bd565b90506104188b82610588565b61042a8e8e8e8e8e8e878f8d8b61062a565b9094509250610439838261063d565b60005b83518110156104a057600084828151811061045957610459612078565b6020026020010151111561048e5783818151811061047957610479612078565b602002602001015196505050505050506102b9565b80610498816120a4565b91505061043c565b50505050505098975050505050505050565b60606102f2826106b3565b606060008361010001516001600160401b038111156104de576104de611d43565b604051908082528060200260200182016040528015610507578160200160208202803683370190505b50905060005b84610100015181101561058057610553610527858361075c565b8660400151838151811061053d5761053d612078565b60200260200101516107b790919063ffffffff16565b82828151811061056557610565612078565b6020908102919091010152610579816120a4565b905061050d565b509392505050565b815160005b818110156105fe576105d18482815181106105aa576105aa612078565b60200260200101518483815181106105c4576105c4612078565b60200260200101516107b7565b8482815181106105e3576105e3612078565b60209081029190910101526105f7816120a4565b905061058d565b50505050565b6000606061061760018a888888886107d6565b915091509a509a98505050505050505050565b6000606061061760008a888888886107d6565b815160005b818110156105fe5761068684828151811061065f5761065f612078565b602002602001015184838151811061067957610679612078565b602002602001015161083f565b84828151811061069857610698612078565b60209081029190910101526106ac816120a4565b9050610642565b60608161010001516001600160401b038111156106d2576106d2611d43565b60405190808252806020026020018201604052801561070b57816020015b6106f8611d07565b8152602001906001900390816106f05790505b50905060005b8261010001518110156107565761072881846108a2565b82828151811061073a5761073a612078565b60200260200101819052508061074f906120a4565b9050610711565b50919050565b600082828151811061077057610770612078565b6020026020010151600001516000146107a65782828151811061079557610795612078565b6020026020010151600001516107b0565b670de0b6b3a76400005b9392505050565b6000670de0b6b3a76400006107cc8385612415565b6107b09190612442565b600060606000806000806107eb8b8989610a04565b9350935093509350611d218c61080357610b2c610807565b610b4e5b905061081c848487858f8f8f8863ffffffff16565b909750955061082d8660008b610b61565b95505050505050965096945050505050565b60008160000361086a5760405162461bcd60e51b815260040161086190612464565b60405180910390fd5b8260000361087a575060006102f2565b600061088e670de0b6b3a764000085612415565b905061089a8382612442565b9150506102f2565b6108aa611d07565b8160e001518314806108c357506108c18284610c37565b155b6102f257600082608001516001600160a01b0316637f1260d1846000015186815181106108f2576108f2612078565b60200260200101516040518263ffffffff1660e01b815260040161092591906001600160a01b0391909116815260200190565b608060405180830381865afa158015610942573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610966919061248b565b6020860192909252509083529050428110156101c8578260200151848151811061099257610992612078565b60200260200101516001600160a01b031663679aefce6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fb91906121fb565b82525092915050565b6000606060008060008087608001516001600160a01b0316633c975d516040518163ffffffff1660e01b81526004016040805180830381865afa158015610a4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7391906124c1565b915091506000806000610a898c86868e8e610c74565b92509250925060008b608001516001600160a01b0316636daccffa6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610ad3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af791906124e5565b505090506000868214610b1357610b0e8285610ccb565b610b15565b825b949e939d50909b5092995090975050505050505050565b60006060610b3e87878a8c8888610e78565b9150915097509795505050505050565b60006060610b3e87878a8c898989610f7b565b606083516001610b71919061251e565b6001600160401b03811115610b8857610b88611d43565b604051908082528060200260200182016040528015610bb1578160200160208202803683370190505b50905060005b8151811015610580578260e001518114610c0657848360e001518210610be757610be2600183612531565b610be9565b815b81518110610bf957610bf9612078565b6020026020010151610c08565b835b828281518110610c1a57610c1a612078565b602090810291909101015280610c2f816120a4565b915050610bb7565b6000806001600160a01b031683602001518381518110610c5957610c59612078565b60200260200101516001600160a01b03161415905092915050565b600060606000806000610c87878b61102b565b91509150600080610c9b838c8c8c8c61106b565b915091506000610cab85846111e2565b9050610cb7818661251e565b9d939c50909a509198505050505050505050565b80516000908190815b81811015610d1257610d08858281518110610cf157610cf1612078565b60200260200101518461120090919063ffffffff16565b9250600101610cd4565b5081600003610d26576000925050506102f2565b600082868302825b60ff811015610e25578260005b86811015610d8257610d78610d50838761120c565b610d738c8481518110610d6557610d65612078565b60200260200101518a61120c565b611235565b9150600101610d3b565b50839450610ddb610dba610db4610d99848a61120c565b610dae610da6888d61120c565b6103e8611235565b90611200565b8661120c565b610d73610dca896001018561120c565b610dae610da66103e889038a61120c565b935084841115610e0357600185850311610dfe57839750505050505050506102f2565b610e1c565b600184860311610e1c57839750505050505050506102f2565b50600101610d2e565b5060405162461bcd60e51b815260206004820152602160248201527f537461626c6520496e76617269616e7420646964206e6f7420636f6e766572676044820152606560f81b6064820152608401610861565b60006060600080610e888661125b565b91509150600087516001600160401b03811115610ea757610ea7611d43565b604051908082528060200260200182016040528015610ed0578160200160208202803683370190505b509050610f4d8883858e8e8b608001516001600160a01b03166355c676286040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4191906121fb565b8f95949392919061127d565b818381518110610f5f57610f5f612078565b6020908102919091010152919a91995090975050505050505050565b600060606000610f8a856113b1565b509050610fa081610f9b86896113c9565b610588565b600061101a88838d8d89608001516001600160a01b03166355c676286040518163ffffffff1660e01b8152600401602060405180830381865afa158015610feb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100f91906121fb565b8e949392919061148f565b9b919a509098505050505050505050565b6000606061105684848660e001518151811061104957611049612078565b6020026020010151611775565b61106085856113c9565b915091509250929050565b600080600080600061107f8a8a89896117e7565b925092509250600088841161109557600061109f565b61109f8985612531565b905060008484116110b15760006110bb565b6110bb8585612531565b60808a0151604051633823200b60e11b8152600060048201819052929350611141916001600160a01b031690637046401690602401602060405180830381865afa15801561110d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113191906121fb565b61113b858761083f565b906107b7565b60808b0151604051633823200b60e11b8152600260048201529192506000916111c2916001600160a01b031690637046401690602401602060405180830381865afa158015611194573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b891906121fb565b61113b858861083f565b90506111ce818361251e565b9e949d50939b505050505050505050505050565b60006107b06111f08361186a565b6111fa85856107b7565b9061083f565b60006107b0828461251e565b600082820283158061122c5750828482816112295761122961242c565b04145b6107b057600080fd5b60008160000361124457600080fd5b8183816112535761125361242c565b049392505050565b600080828060200190518101906112729190612544565b909590945092505050565b60008061129e8461129887611292818b611890565b9061189c565b90611902565b905060006112ae8a8a848b611936565b905060006112de828b8b815181106112c8576112c8612078565b602002602001015161189090919063ffffffff16565b90506000805b8b51811015611323576113198c828151811061130257611302612078565b60200260200101518361120090919063ffffffff16565b91506001016112e4565b506000611352828d8d8151811061133c5761133c612078565b602002602001015161083f90919063ffffffff16565b9050600061135f8261186a565b9050600061136d8583611902565b9050600061137b8683611890565b905061139c61139583670de0b6b3a76400008d90036107b7565b8290611200565b98505050505050505050979650505050505050565b6060600082806020019051810190611272919061257f565b60606000600183516113db9190612531565b6001600160401b038111156113f2576113f2611d43565b60405190808252806020026020018201604052801561141b578160200160208202803683370190505b50905060005b815181101561058057838560e0015182106114465761144182600161251e565b611448565b815b8151811061145857611458612078565b602002602001015182828151811061147257611472612078565b602090810291909101015280611487816120a4565b915050611421565b600080805b87518110156114bc576114b288828151811061130257611302612078565b9150600101611494565b50600086516001600160401b038111156114d8576114d8611d43565b604051908082528060200260200182016040528015611501578160200160208202803683370190505b5090506000805b89518110156115d6576000611529858c848151811061133c5761133c612078565b905061158d8b838151811061154057611540612078565b60200260200101516111fa8c858151811061155d5761155d612078565b60200260200101518e868151811061157757611577612078565b602002602001015161120090919063ffffffff16565b84838151811061159f5761159f612078565b6020026020010181815250506115cb6115c48286858151811061053d5761053d612078565b8490611200565b925050600101611508565b50600089516001600160401b038111156115f2576115f2611d43565b60405190808252806020026020018201604052801561161b578160200160208202803683370190505b50905060005b8a518110156117135760008385838151811061163f5761163f612078565b602002602001015111156116ba57600061167661166486670de0b6b3a7640000611890565b8e858151811061053d5761053d612078565b90506000611690828e86815181106112c8576112c8612078565b90506116b16116aa82670de0b6b3a76400008d90036107b7565b8390611200565b925050506116d7565b8a82815181106116cc576116cc612078565b602002602001015190505b6116ed818d848151811061157757611577612078565b8383815181106116ff576116ff612078565b602090810291909101015250600101611621565b5060006117208c83610ccb565b9050600061172e828a61083f565b9050670de0b6b3a7640000811115611762576117558a670de0b6b3a763ffff1983016107b7565b965050505050505061008c565b5060009c9b505050505050505050505050565b60006107b08284608001516001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e191906121fb565b90611890565b60008060006118036117fc8860018888611b5d565b8790610ccb565b92508460a0015115611823576118198688610ccb565b9150819050611860565b8460c00151156118415782915061183a8688610ccb565b9050611860565b6118516117fc8860008888611b5d565b915061185d8688610ccb565b90505b9450945094915050565b6000670de0b6b3a764000082106118825760006102f2565b50670de0b6b3a76400000390565b60006107b08284612531565b6000816000036118be5760405162461bcd60e51b815260040161086190612464565b826000036118ce575060006102f2565b60006118e2670de0b6b3a764000085612415565b90508260018203816118f6576118f661242c565b046001019150506102f2565b60008061190f8385612415565b9050806000036119235760009150506102f2565b670de0b6b3a764000060001982016118f6565b60008084518602905060008560008151811061195457611954612078565b60200260200101519050600086518760008151811061197557611975612078565b60200260200101510290506000600190505b87518110156119e7576119c66119c06119b9848b85815181106119ac576119ac612078565b602002602001015161120c565b8a5161120c565b88611235565b91506119dd888281518110610cf157610cf1612078565b9250600101611987565b508685815181106119fa576119fa612078565b6020026020010151820391506000611a12878861120c565b90506000611a49611a37611a2f84611a2a898861120c565b611c8e565b6103e861120c565b8a89815181106119ac576119ac612078565b90506000611a64611a5d611a2f8b89611235565b8690611200565b9050600080611a80611a768686611200565b611a2a8d86611200565b905060005b60ff811015611b0057819250611ab5611aa286610dae858661120c565b611a2a8e6117e188610dae88600261120c565b915082821115611ade57600183830311611ad957509750611b559650505050505050565b611af8565b600182840311611af857509750611b559650505050505050565b600101611a85565b5060405162461bcd60e51b815260206004820152602360248201527f537461626c65206765742062616c616e636520646964206e6f7420636f6e766560448201526272676560e81b6064820152608401610861565b949350505050565b83516060906000816001600160401b03811115611b7c57611b7c611d43565b604051908082528060200260200182016040528015611ba5578160200160208202803683370190505b50905060005b82811015611c835760008660e00151821015611bc75781611bd2565b611bd282600161251e565b9050611bde8782611cca565b80611bf65750878015611bf65750611bf68782610c37565b611c1957888281518110611c0c57611c0c612078565b6020026020010151611c55565b611c55898381518110611c2e57611c2e612078565b6020026020010151878381518110611c4857611c48612078565b6020026020010151611cf2565b838381518110611c6757611c67612078565b602090810291909101015250611c7c816120a4565b9050611bab565b509695505050505050565b600081600003611c9d57600080fd5b82600003611cad575060006102f2565b816001840381611cbf57611cbf61242c565b0460010190506102f2565b600082606001518281518110611ce257611ce2612078565b6020026020010151905092915050565b80516020820151600091906107cc9085612415565b604051806040016040528060008152602001600081525090565b611d296125cb565b565b6001600160a01b0381168114611d4057600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b604051608081016001600160401b0381118282101715611d7b57611d7b611d43565b60405290565b60405161012081016001600160401b0381118282101715611d7b57611d7b611d43565b604051601f8201601f191681016001600160401b0381118282101715611dcc57611dcc611d43565b604052919050565b60006001600160401b03821115611ded57611ded611d43565b5060051b60200190565b600082601f830112611e0857600080fd5b81356020611e1d611e1883611dd4565b611da4565b82815260059290921b84018101918181019086841115611e3c57600080fd5b8286015b84811015611c835780358352918301918301611e40565b600082601f830112611e6857600080fd5b81356001600160401b03811115611e8157611e81611d43565b611e94601f8201601f1916602001611da4565b818152846020838601011115611ea957600080fd5b816020850160208301376000918101602001919091529392505050565b8015158114611d4057600080fd5b8035611edf81611ec6565b919050565b600060808284031215611ef657600080fd5b611efe611d59565b905081356001600160401b0380821115611f1757600080fd5b818401915084601f830112611f2b57600080fd5b81356020611f3b611e1883611dd4565b82815260059290921b84018101918181019088841115611f5a57600080fd5b948201945b83861015611f81578535611f7281611d2b565b82529482019490820190611f5f565b86525085810135935082841115611f9757600080fd5b611fa387858801611df7565b90850152506040840135915080821115611fbc57600080fd5b50611fc984828501611e57565b604083015250611fdb60608301611ed4565b606082015292915050565b600080600080600060a08688031215611ffe57600080fd5b85359450602086013561201081611d2b565b9350604086013561202081611d2b565b925060608601356001600160401b038082111561203c57600080fd5b61204889838a01611ee4565b9350608088013591508082111561205e57600080fd5b5061206b88828901611e57565b9150509295509295909350565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016120b6576120b661208e565b5060010190565b600082601f8301126120ce57600080fd5b815160206120de611e1883611dd4565b82815260059290921b840181019181810190868411156120fd57600080fd5b8286015b84811015611c835780518352918301918301612101565b60008060006060848603121561212d57600080fd5b83516001600160401b038082111561214457600080fd5b818601915086601f83011261215857600080fd5b81516020612168611e1883611dd4565b82815260059290921b8401810191818101908a84111561218757600080fd5b948201945b838610156121ae57855161219f81611d2b565b8252948201949082019061218c565b918901519197509093505050808211156121c757600080fd5b506121d4868287016120bd565b925050604084015190509250925092565b634e487b7160e01b600052602160045260246000fd5b60006020828403121561220d57600080fd5b5051919050565b8051611edf81611d2b565b600082601f83011261223057600080fd5b81516020612240611e1883611dd4565b82815260059290921b8401810191818101908684111561225f57600080fd5b8286015b84811015611c8357805161227681611d2b565b8352918301918301612263565b8051611edf81611ec6565b600082601f83011261229f57600080fd5b815160206122af611e1883611dd4565b82815260059290921b840181019181810190868411156122ce57600080fd5b8286015b84811015611c835780516122e581611ec6565b83529183019183016122d2565b60006020828403121561230457600080fd5b81516001600160401b038082111561231b57600080fd5b90830190610120828603121561233057600080fd5b612338611d81565b82518281111561234757600080fd5b6123538782860161221f565b82525060208301518281111561236857600080fd5b6123748782860161221f565b60208301525060408301518281111561238c57600080fd5b612398878286016120bd565b6040830152506060830151828111156123b057600080fd5b6123bc8782860161228e565b6060830152506123ce60808401612214565b60808201526123df60a08401612283565b60a08201526123f060c08401612283565b60c082015260e083810151908201526101009283015192810192909252509392505050565b80820281158282048414176102f2576102f261208e565b634e487b7160e01b600052601260045260246000fd5b60008261245f57634e487b7160e01b600052601260045260246000fd5b500490565b6020808252600d908201526c2d32b937903234bb34b9b4b7b760991b604082015260600190565b600080600080608085870312156124a157600080fd5b505082516020840151604085015160609095015191969095509092509050565b600080604083850312156124d457600080fd5b505080516020909101519092909150565b6000806000606084860312156124fa57600080fd5b83519250602084015161250c81611ec6565b80925050604084015190509250925092565b808201808211156102f2576102f261208e565b818103818111156102f2576102f261208e565b60008060006060848603121561255957600080fd5b83516002811061256857600080fd5b602085015160409095015190969495509392505050565b60008060006060848603121561259457600080fd5b8351600381106125a357600080fd5b60208501519093506001600160401b038111156125bf57600080fd5b6121d4868287016120bd565b634e487b7160e01b600052605160045260246000fdfea2646970667358221220f47c7e989a8c121dbce44771a9c8411189ae7186160de2014d9cf8de3762578f64736f6c63430008110033";
138
+
139
+ type ComposableStablePreviewConstructorParams =
140
+ | [signer?: Signer]
141
+ | ConstructorParameters<typeof ContractFactory>;
142
+
143
+ const isSuperArgs = (
144
+ xs: ComposableStablePreviewConstructorParams
145
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
146
+
147
+ export class ComposableStablePreview__factory extends ContractFactory {
148
+ constructor(...args: ComposableStablePreviewConstructorParams) {
149
+ if (isSuperArgs(args)) {
150
+ super(...args);
151
+ } else {
152
+ super(_abi, _bytecode, args[0]);
153
+ }
154
+ this.contractName = "ComposableStablePreview";
155
+ }
156
+
157
+ deploy(
158
+ overrides?: Overrides & { from?: string | Promise<string> }
159
+ ): Promise<ComposableStablePreview> {
160
+ return super.deploy(overrides || {}) as Promise<ComposableStablePreview>;
161
+ }
162
+ getDeployTransaction(
163
+ overrides?: Overrides & { from?: string | Promise<string> }
164
+ ): TransactionRequest {
165
+ return super.getDeployTransaction(overrides || {});
166
+ }
167
+ attach(address: string): ComposableStablePreview {
168
+ return super.attach(address) as ComposableStablePreview;
169
+ }
170
+ connect(signer: Signer): ComposableStablePreview__factory {
171
+ return super.connect(signer) as ComposableStablePreview__factory;
172
+ }
173
+ static readonly contractName: "ComposableStablePreview";
174
+ public readonly contractName: "ComposableStablePreview";
175
+ static readonly bytecode = _bytecode;
176
+ static readonly abi = _abi;
177
+ static createInterface(): ComposableStablePreviewInterface {
178
+ return new utils.Interface(_abi) as ComposableStablePreviewInterface;
179
+ }
180
+ static connect(
181
+ address: string,
182
+ signerOrProvider: Signer | Provider
183
+ ): ComposableStablePreview {
184
+ return new Contract(
185
+ address,
186
+ _abi,
187
+ signerOrProvider
188
+ ) as ComposableStablePreview;
189
+ }
190
+ }
@@ -0,0 +1,249 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ DistributorBase,
9
+ DistributorBaseInterface,
10
+ } from "../DistributorBase";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "FDEpochLengthMismatch",
16
+ type: "error",
17
+ },
18
+ {
19
+ anonymous: false,
20
+ inputs: [
21
+ {
22
+ indexed: true,
23
+ internalType: "address",
24
+ name: "user",
25
+ type: "address",
26
+ },
27
+ {
28
+ indexed: true,
29
+ internalType: "address",
30
+ name: "rewardToken",
31
+ type: "address",
32
+ },
33
+ {
34
+ indexed: false,
35
+ internalType: "uint256",
36
+ name: "lastEpochClaimed",
37
+ type: "uint256",
38
+ },
39
+ {
40
+ indexed: false,
41
+ internalType: "uint256",
42
+ name: "totalReward",
43
+ type: "uint256",
44
+ },
45
+ ],
46
+ name: "ClaimReward",
47
+ type: "event",
48
+ },
49
+ {
50
+ anonymous: false,
51
+ inputs: [
52
+ {
53
+ indexed: true,
54
+ internalType: "uint256",
55
+ name: "epoch",
56
+ type: "uint256",
57
+ },
58
+ {
59
+ indexed: false,
60
+ internalType: "uint256",
61
+ name: "incentive",
62
+ type: "uint256",
63
+ },
64
+ ],
65
+ name: "Fund",
66
+ type: "event",
67
+ },
68
+ {
69
+ anonymous: false,
70
+ inputs: [
71
+ {
72
+ indexed: false,
73
+ internalType: "uint8",
74
+ name: "version",
75
+ type: "uint8",
76
+ },
77
+ ],
78
+ name: "Initialized",
79
+ type: "event",
80
+ },
81
+ {
82
+ inputs: [
83
+ {
84
+ internalType: "address",
85
+ name: "user",
86
+ type: "address",
87
+ },
88
+ ],
89
+ name: "claimReward",
90
+ outputs: [
91
+ {
92
+ internalType: "uint256",
93
+ name: "amountRewardOut",
94
+ type: "uint256",
95
+ },
96
+ ],
97
+ stateMutability: "nonpayable",
98
+ type: "function",
99
+ },
100
+ {
101
+ inputs: [],
102
+ name: "factory",
103
+ outputs: [
104
+ {
105
+ internalType: "address",
106
+ name: "",
107
+ type: "address",
108
+ },
109
+ ],
110
+ stateMutability: "view",
111
+ type: "function",
112
+ },
113
+ {
114
+ inputs: [
115
+ {
116
+ internalType: "uint256[]",
117
+ name: "epochs",
118
+ type: "uint256[]",
119
+ },
120
+ {
121
+ internalType: "uint256[]",
122
+ name: "rewardsForEpoch",
123
+ type: "uint256[]",
124
+ },
125
+ ],
126
+ name: "fund",
127
+ outputs: [],
128
+ stateMutability: "nonpayable",
129
+ type: "function",
130
+ },
131
+ {
132
+ inputs: [
133
+ {
134
+ internalType: "uint256",
135
+ name: "",
136
+ type: "uint256",
137
+ },
138
+ ],
139
+ name: "incentivesForEpoch",
140
+ outputs: [
141
+ {
142
+ internalType: "uint256",
143
+ name: "",
144
+ type: "uint256",
145
+ },
146
+ ],
147
+ stateMutability: "view",
148
+ type: "function",
149
+ },
150
+ {
151
+ inputs: [
152
+ {
153
+ internalType: "address",
154
+ name: "_pool",
155
+ type: "address",
156
+ },
157
+ {
158
+ internalType: "address",
159
+ name: "_rewardToken",
160
+ type: "address",
161
+ },
162
+ {
163
+ internalType: "uint256",
164
+ name: "_startEpoch",
165
+ type: "uint256",
166
+ },
167
+ {
168
+ internalType: "address",
169
+ name: "_factory",
170
+ type: "address",
171
+ },
172
+ ],
173
+ name: "initialize",
174
+ outputs: [],
175
+ stateMutability: "nonpayable",
176
+ type: "function",
177
+ },
178
+ {
179
+ inputs: [],
180
+ name: "pool",
181
+ outputs: [
182
+ {
183
+ internalType: "address",
184
+ name: "",
185
+ type: "address",
186
+ },
187
+ ],
188
+ stateMutability: "view",
189
+ type: "function",
190
+ },
191
+ {
192
+ inputs: [],
193
+ name: "rewardToken",
194
+ outputs: [
195
+ {
196
+ internalType: "address",
197
+ name: "",
198
+ type: "address",
199
+ },
200
+ ],
201
+ stateMutability: "view",
202
+ type: "function",
203
+ },
204
+ {
205
+ inputs: [],
206
+ name: "startEpoch",
207
+ outputs: [
208
+ {
209
+ internalType: "uint256",
210
+ name: "",
211
+ type: "uint256",
212
+ },
213
+ ],
214
+ stateMutability: "view",
215
+ type: "function",
216
+ },
217
+ {
218
+ inputs: [
219
+ {
220
+ internalType: "address",
221
+ name: "",
222
+ type: "address",
223
+ },
224
+ ],
225
+ name: "userUnclaimedEpoch",
226
+ outputs: [
227
+ {
228
+ internalType: "uint256",
229
+ name: "",
230
+ type: "uint256",
231
+ },
232
+ ],
233
+ stateMutability: "view",
234
+ type: "function",
235
+ },
236
+ ];
237
+
238
+ export class DistributorBase__factory {
239
+ static readonly abi = _abi;
240
+ static createInterface(): DistributorBaseInterface {
241
+ return new utils.Interface(_abi) as DistributorBaseInterface;
242
+ }
243
+ static connect(
244
+ address: string,
245
+ signerOrProvider: Signer | Provider
246
+ ): DistributorBase {
247
+ return new Contract(address, _abi, signerOrProvider) as DistributorBase;
248
+ }
249
+ }
@@ -78,6 +78,22 @@ const _abi = [
78
78
  name: "ArrayOutOfBounds",
79
79
  type: "error",
80
80
  },
81
+ {
82
+ inputs: [
83
+ {
84
+ internalType: "uint256",
85
+ name: "epoch",
86
+ type: "uint256",
87
+ },
88
+ {
89
+ internalType: "uint256",
90
+ name: "startTime",
91
+ type: "uint256",
92
+ },
93
+ ],
94
+ name: "BDInvalidEpoch",
95
+ type: "error",
96
+ },
81
97
  {
82
98
  inputs: [
83
99
  {
@@ -271,7 +287,39 @@ const _abi = [
271
287
  },
272
288
  {
273
289
  inputs: [],
274
- name: "FDCantFundFutureEpoch",
290
+ name: "FDEpochLengthMismatch",
291
+ type: "error",
292
+ },
293
+ {
294
+ inputs: [
295
+ {
296
+ internalType: "uint256",
297
+ name: "lastFunded",
298
+ type: "uint256",
299
+ },
300
+ {
301
+ internalType: "uint256",
302
+ name: "currentWTime",
303
+ type: "uint256",
304
+ },
305
+ ],
306
+ name: "FDFutureFunding",
307
+ type: "error",
308
+ },
309
+ {
310
+ inputs: [
311
+ {
312
+ internalType: "uint256",
313
+ name: "oldFinishedEpoch",
314
+ type: "uint256",
315
+ },
316
+ {
317
+ internalType: "uint256",
318
+ name: "newFinishedEpoch",
319
+ type: "uint256",
320
+ },
321
+ ],
322
+ name: "FDInvalidNewFinishedEpoch",
275
323
  type: "error",
276
324
  },
277
325
  {
@@ -281,13 +329,67 @@ const _abi = [
281
329
  name: "pool",
282
330
  type: "address",
283
331
  },
332
+ ],
333
+ name: "FDInvalidPool",
334
+ type: "error",
335
+ },
336
+ {
337
+ inputs: [
338
+ {
339
+ internalType: "uint256",
340
+ name: "startEpoch",
341
+ type: "uint256",
342
+ },
343
+ ],
344
+ name: "FDInvalidStartEpoch",
345
+ type: "error",
346
+ },
347
+ {
348
+ inputs: [
349
+ {
350
+ internalType: "uint256",
351
+ name: "lastFunded",
352
+ type: "uint256",
353
+ },
354
+ {
355
+ internalType: "uint256",
356
+ name: "wTime",
357
+ type: "uint256",
358
+ },
359
+ ],
360
+ name: "FDInvalidWTimeFund",
361
+ type: "error",
362
+ },
363
+ {
364
+ inputs: [
284
365
  {
285
366
  internalType: "address",
286
- name: "distributor",
367
+ name: "pool",
287
368
  type: "address",
288
369
  },
289
370
  ],
290
- name: "FDFactoryDistributorAlreadyExisted",
371
+ name: "FDPoolAlreadyExists",
372
+ type: "error",
373
+ },
374
+ {
375
+ inputs: [
376
+ {
377
+ internalType: "uint256",
378
+ name: "actualTotalAmount",
379
+ type: "uint256",
380
+ },
381
+ {
382
+ internalType: "uint256",
383
+ name: "expectedTotalAmount",
384
+ type: "uint256",
385
+ },
386
+ ],
387
+ name: "FDTotalAmountFundedNotMatch",
388
+ type: "error",
389
+ },
390
+ {
391
+ inputs: [],
392
+ name: "FailedToSendEther",
291
393
  type: "error",
292
394
  },
293
395
  {
@@ -858,6 +960,11 @@ const _abi = [
858
960
  name: "SYApeDepositAmountTooSmall",
859
961
  type: "error",
860
962
  },
963
+ {
964
+ inputs: [],
965
+ name: "SYBalancerInvalidPid",
966
+ type: "error",
967
+ },
861
968
  {
862
969
  inputs: [],
863
970
  name: "SYCurve3crvPoolNotFound",
@@ -900,6 +1007,17 @@ const _abi = [
900
1007
  name: "SYInsufficientTokenOut",
901
1008
  type: "error",
902
1009
  },
1010
+ {
1011
+ inputs: [
1012
+ {
1013
+ internalType: "address",
1014
+ name: "token",
1015
+ type: "address",
1016
+ },
1017
+ ],
1018
+ name: "SYInvalidRewardToken",
1019
+ type: "error",
1020
+ },
903
1021
  {
904
1022
  inputs: [
905
1023
  {
@@ -1226,7 +1344,7 @@ const _abi = [
1226
1344
  ];
1227
1345
 
1228
1346
  const _bytecode =
1229
- "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212201339f48729e880a478cfe0778a98265d38b97e74692828e9c1130fcbb4fbe66364736f6c63430008110033";
1347
+ "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200f8ba83fe399a8d5b8a93368c804ff142e5d563d38d68d8ee447c0bc7098a3dc64736f6c63430008110033";
1230
1348
 
1231
1349
  type ErrorsConstructorParams =
1232
1350
  | [signer?: Signer]