@pendle/core-v2 0.17.7-testnet → 0.18.0-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 (197) 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/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
  10. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +2 -2
  12. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
  15. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
  17. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
  19. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  21. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  22. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  23. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  24. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  26. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  28. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  29. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  30. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  31. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
  33. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
  35. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
  37. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  39. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  41. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
  43. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
  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 +0 -141
  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 +0 -141
  49. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +4 -0
  50. package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +934 -0
  51. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
  53. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +2 -143
  55. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +2 -143
  57. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +2 -143
  59. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.json +0 -141
  61. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
  62. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +2 -143
  63. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
  64. package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +2 -143
  65. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  66. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  67. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
  68. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
  69. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  70. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  71. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  72. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +13 -2
  73. package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +4 -0
  74. package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.json +149 -0
  75. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  87. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
  88. package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
  89. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
  90. package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +42 -2
  91. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
  92. package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +73 -100
  93. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
  94. package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
  95. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +1 -1
  96. package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.json +2 -2
  97. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
  98. package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
  99. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
  100. package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +2 -2
  101. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
  102. package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
  103. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +1 -1
  104. package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +2 -2
  105. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
  106. package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
  107. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
  108. package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
  109. package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
  110. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
  111. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
  112. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
  113. package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
  114. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +1 -1
  115. package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +2 -2
  116. package/build/artifacts/contracts/router/kyberswap/IMultihopRouterEthereum.sol/IMultihopRouterEthereum.dbg.json +4 -0
  117. package/build/artifacts/contracts/router/kyberswap/{IMultihopRouter.sol/IMultihopRouter.json → IMultihopRouterEthereum.sol/IMultihopRouterEthereum.json} +3 -3
  118. package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
  119. package/contracts/core/BulkSeller/BulkSeller.sol +1 -1
  120. package/contracts/core/StandardizedYield/implementations/Ape/{PendleApeStakingSY.sol → sAPE.sol} +43 -30
  121. package/contracts/interfaces/IApeStaking.sol +3 -0
  122. package/contracts/offchain-helpers/MarketMathStatic.sol +30 -55
  123. package/contracts/offchain-helpers/RouterStatic.sol +30 -52
  124. package/contracts/router/kyberswap/AggregationRouterHelper.sol +37 -23
  125. package/contracts/router/kyberswap/{IMultihopRouter.sol → IMultihopRouterEthereum.sol} +11 -9
  126. package/deployments/1-markets/APE-JUNE-29.json +8 -0
  127. package/deployments/80001-core.json +28 -0
  128. package/deployments/80001-markets/USDC-FEB-4TH.json +10 -0
  129. package/deployments/80001-markets/WETH-FEB-4TH.json +11 -0
  130. package/deployments/80001-testenv.json +22 -0
  131. package/package.json +1 -1
  132. package/typechain-types/BribeDistributor.ts +363 -0
  133. package/typechain-types/DistributorBase.ts +363 -0
  134. package/typechain-types/FeeDistributor.ts +416 -0
  135. package/typechain-types/IApeStaking.ts +31 -0
  136. package/typechain-types/IMultihopRouterEthereum.ts +209 -0
  137. package/typechain-types/MarketMathStatic.ts +49 -0
  138. package/typechain-types/PendleApeStakingSY.ts +88 -204
  139. package/typechain-types/PendleConvexLPSY.ts +0 -204
  140. package/typechain-types/PendleCurveFraxUsdcSY.ts +0 -204
  141. package/typechain-types/PendleCurveUsdd3CrvSY.ts +0 -204
  142. package/typechain-types/PendleLooksStakingSY.ts +0 -204
  143. package/typechain-types/PendleQiTokenSY.ts +0 -204
  144. package/typechain-types/PendleWstEthSY.ts +0 -204
  145. package/typechain-types/RouterStatic.ts +0 -49
  146. package/typechain-types/SAPE.ts +1191 -0
  147. package/typechain-types/SYBase.ts +0 -204
  148. package/typechain-types/SYBaseWithRewards.ts +0 -204
  149. package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
  150. package/typechain-types/factories/ActionCallback__factory.ts +1 -1
  151. package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
  152. package/typechain-types/factories/ActionMisc__factory.ts +1 -1
  153. package/typechain-types/factories/ActionSwapPTYT__factory.ts +1 -1
  154. package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
  155. package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
  156. package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
  157. package/typechain-types/factories/BribeDistributor__factory.ts +303 -0
  158. package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
  159. package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
  160. package/typechain-types/factories/BulkSeller__factory.ts +1 -1
  161. package/typechain-types/factories/DistributorBase__factory.ts +249 -0
  162. package/typechain-types/factories/Errors__factory.ts +12 -1
  163. package/typechain-types/factories/FeeDistributor__factory.ts +339 -0
  164. package/typechain-types/factories/IApeStaking__factory.ts +34 -0
  165. package/typechain-types/factories/IMultihopRouterEthereum__factory.ts +155 -0
  166. package/typechain-types/factories/MarketMathStatic__factory.ts +41 -1
  167. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  168. package/typechain-types/factories/PendleApeStakingSY__factory.ts +57 -141
  169. package/typechain-types/factories/PendleConvexLPSY__factory.ts +0 -141
  170. package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -142
  171. package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -142
  172. package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +1 -1
  173. package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
  174. package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
  175. package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
  176. package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -142
  177. package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
  178. package/typechain-types/factories/PendleMarket__factory.ts +1 -1
  179. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  180. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  181. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  182. package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
  183. package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -142
  184. package/typechain-types/factories/PendleRouter__factory.ts +1 -1
  185. package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
  186. package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -142
  187. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
  188. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  189. package/typechain-types/factories/RouterStatic__factory.ts +18 -41
  190. package/typechain-types/factories/SAPE__factory.ts +1001 -0
  191. package/typechain-types/factories/SYBaseWithRewards__factory.ts +0 -141
  192. package/typechain-types/factories/SYBase__factory.ts +0 -141
  193. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  194. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  195. package/typechain-types/hardhat.d.ts +72 -0
  196. package/typechain-types/index.ts +12 -0
  197. package/build/artifacts/contracts/router/kyberswap/IMultihopRouter.sol/IMultihopRouter.dbg.json +0 -4
@@ -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
+ }
@@ -847,6 +847,17 @@ const _abi = [
847
847
  name: "RouterTimeRangeZero",
848
848
  type: "error",
849
849
  },
850
+ {
851
+ inputs: [
852
+ {
853
+ internalType: "uint256",
854
+ name: "amountDeposited",
855
+ type: "uint256",
856
+ },
857
+ ],
858
+ name: "SYApeDepositAmountTooSmall",
859
+ type: "error",
860
+ },
850
861
  {
851
862
  inputs: [],
852
863
  name: "SYCurve3crvPoolNotFound",
@@ -1215,7 +1226,7 @@ const _abi = [
1215
1226
  ];
1216
1227
 
1217
1228
  const _bytecode =
1218
- "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212204d57e7ba9ee04a9e73ec29745e65a629c84f93b81fd54d25b65305ed26e0775064736f6c63430008110033";
1229
+ "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212201339f48729e880a478cfe0778a98265d38b97e74692828e9c1130fcbb4fbe66364736f6c63430008110033";
1219
1230
 
1220
1231
  type ErrorsConstructorParams =
1221
1232
  | [signer?: Signer]
@@ -0,0 +1,339 @@
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
+ FeeDistributor,
8
+ FeeDistributorInterface,
9
+ } from "../FeeDistributor";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [],
14
+ name: "FDEpochLengthMismatch",
15
+ type: "error",
16
+ },
17
+ {
18
+ inputs: [
19
+ {
20
+ internalType: "uint256",
21
+ name: "epoch",
22
+ type: "uint256",
23
+ },
24
+ {
25
+ internalType: "uint256",
26
+ name: "startTime",
27
+ type: "uint256",
28
+ },
29
+ {
30
+ internalType: "uint256",
31
+ name: "currentWeekStart",
32
+ type: "uint256",
33
+ },
34
+ ],
35
+ name: "FDInvalidEpoch",
36
+ type: "error",
37
+ },
38
+ {
39
+ inputs: [],
40
+ name: "FDNotAdmin",
41
+ type: "error",
42
+ },
43
+ {
44
+ anonymous: false,
45
+ inputs: [
46
+ {
47
+ indexed: true,
48
+ internalType: "address",
49
+ name: "user",
50
+ type: "address",
51
+ },
52
+ {
53
+ indexed: true,
54
+ internalType: "address",
55
+ name: "rewardToken",
56
+ type: "address",
57
+ },
58
+ {
59
+ indexed: false,
60
+ internalType: "uint256",
61
+ name: "lastEpochClaimed",
62
+ type: "uint256",
63
+ },
64
+ {
65
+ indexed: false,
66
+ internalType: "uint256",
67
+ name: "totalReward",
68
+ type: "uint256",
69
+ },
70
+ ],
71
+ name: "ClaimReward",
72
+ type: "event",
73
+ },
74
+ {
75
+ anonymous: false,
76
+ inputs: [
77
+ {
78
+ indexed: true,
79
+ internalType: "uint256",
80
+ name: "epoch",
81
+ type: "uint256",
82
+ },
83
+ {
84
+ indexed: false,
85
+ internalType: "uint256",
86
+ name: "incentive",
87
+ type: "uint256",
88
+ },
89
+ ],
90
+ name: "Fund",
91
+ type: "event",
92
+ },
93
+ {
94
+ anonymous: false,
95
+ inputs: [
96
+ {
97
+ indexed: false,
98
+ internalType: "uint8",
99
+ name: "version",
100
+ type: "uint8",
101
+ },
102
+ ],
103
+ name: "Initialized",
104
+ type: "event",
105
+ },
106
+ {
107
+ inputs: [
108
+ {
109
+ internalType: "address",
110
+ name: "user",
111
+ type: "address",
112
+ },
113
+ ],
114
+ name: "claimReward",
115
+ outputs: [
116
+ {
117
+ internalType: "uint256",
118
+ name: "amountRewardOut",
119
+ type: "uint256",
120
+ },
121
+ ],
122
+ stateMutability: "nonpayable",
123
+ type: "function",
124
+ },
125
+ {
126
+ inputs: [],
127
+ name: "factory",
128
+ outputs: [
129
+ {
130
+ internalType: "address",
131
+ name: "",
132
+ type: "address",
133
+ },
134
+ ],
135
+ stateMutability: "view",
136
+ type: "function",
137
+ },
138
+ {
139
+ inputs: [
140
+ {
141
+ internalType: "uint256[]",
142
+ name: "epochs",
143
+ type: "uint256[]",
144
+ },
145
+ {
146
+ internalType: "uint256[]",
147
+ name: "rewardsForEpoch",
148
+ type: "uint256[]",
149
+ },
150
+ ],
151
+ name: "fund",
152
+ outputs: [],
153
+ stateMutability: "nonpayable",
154
+ type: "function",
155
+ },
156
+ {
157
+ inputs: [
158
+ {
159
+ internalType: "uint256",
160
+ name: "",
161
+ type: "uint256",
162
+ },
163
+ ],
164
+ name: "incentivesForEpoch",
165
+ outputs: [
166
+ {
167
+ internalType: "uint256",
168
+ name: "",
169
+ type: "uint256",
170
+ },
171
+ ],
172
+ stateMutability: "view",
173
+ type: "function",
174
+ },
175
+ {
176
+ inputs: [
177
+ {
178
+ internalType: "address",
179
+ name: "_pool",
180
+ type: "address",
181
+ },
182
+ {
183
+ internalType: "address",
184
+ name: "_rewardToken",
185
+ type: "address",
186
+ },
187
+ {
188
+ internalType: "uint256",
189
+ name: "_startEpoch",
190
+ type: "uint256",
191
+ },
192
+ {
193
+ internalType: "address",
194
+ name: "_factory",
195
+ type: "address",
196
+ },
197
+ ],
198
+ name: "initialize",
199
+ outputs: [],
200
+ stateMutability: "nonpayable",
201
+ type: "function",
202
+ },
203
+ {
204
+ inputs: [],
205
+ name: "lastFinishedEpoch",
206
+ outputs: [
207
+ {
208
+ internalType: "uint256",
209
+ name: "",
210
+ type: "uint256",
211
+ },
212
+ ],
213
+ stateMutability: "view",
214
+ type: "function",
215
+ },
216
+ {
217
+ inputs: [],
218
+ name: "pool",
219
+ outputs: [
220
+ {
221
+ internalType: "address",
222
+ name: "",
223
+ type: "address",
224
+ },
225
+ ],
226
+ stateMutability: "view",
227
+ type: "function",
228
+ },
229
+ {
230
+ inputs: [],
231
+ name: "rewardToken",
232
+ outputs: [
233
+ {
234
+ internalType: "address",
235
+ name: "",
236
+ type: "address",
237
+ },
238
+ ],
239
+ stateMutability: "view",
240
+ type: "function",
241
+ },
242
+ {
243
+ inputs: [
244
+ {
245
+ internalType: "uint256",
246
+ name: "newLastFinishedEpoch",
247
+ type: "uint256",
248
+ },
249
+ ],
250
+ name: "setLastFinishedEpoch",
251
+ outputs: [],
252
+ stateMutability: "nonpayable",
253
+ type: "function",
254
+ },
255
+ {
256
+ inputs: [],
257
+ name: "startEpoch",
258
+ outputs: [
259
+ {
260
+ internalType: "uint256",
261
+ name: "",
262
+ type: "uint256",
263
+ },
264
+ ],
265
+ stateMutability: "view",
266
+ type: "function",
267
+ },
268
+ {
269
+ inputs: [
270
+ {
271
+ internalType: "address",
272
+ name: "",
273
+ type: "address",
274
+ },
275
+ ],
276
+ name: "userUnclaimedEpoch",
277
+ outputs: [
278
+ {
279
+ internalType: "uint256",
280
+ name: "",
281
+ type: "uint256",
282
+ },
283
+ ],
284
+ stateMutability: "view",
285
+ type: "function",
286
+ },
287
+ ];
288
+
289
+ const _bytecode =
290
+ "0x608060405234801561001057600080fd5b50610e25806100206000396000f3fe608060405234801561001057600080fd5b50600436106100985760003560e01c8062bd0e4b1461009d57806316f0115b146100b257806321a56181146100e15780638413bb89146100f4578063a2c8b17714610122578063b9a53a841461012b578063be20309414610134578063c45a015514610147578063d279c1911461015a578063f4466f071461016d578063f7c618c11461018d575b600080fd5b6100b06100ab366004610af8565b6101a0565b005b6000546100cb906201000090046001600160a01b031681565b6040516100d89190610b63565b60405180910390f35b6100b06100ef366004610b77565b61030b565b610114610102366004610b77565b60056020526000908152604090205481565b6040519081526020016100d8565b61011460025481565b61011460065481565b6100b0610142366004610bac565b61039e565b6003546100cb906001600160a01b031681565b610114610168366004610bf9565b61050d565b61011461017b366004610bf9565b60046020526000908152604090205481565b6001546100cb906001600160a01b031681565b8281146101c057604051635174addf60e11b815260040160405180910390fd5b6000805b8281101561028b5760008686838181106101e0576101e0610c14565b9050602002013590506101f281610742565b600085858481811061020657610206610c14565b905060200201359050806005600084815260200190815260200160002060008282546102329190610c40565b909155505060405181815282907fe10598fa0628b6878df33dddd270fc68abc6bc5b8b864e07ac2d9313cf31043e9060200160405180910390a26102768185610c40565b935050508061028490610c53565b90506101c4565b506001546040516323b872dd60e01b81526001600160a01b03909116906323b872dd906102c090339030908690600401610c6c565b6020604051808303816000875af11580156102df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103039190610c90565b505050505050565b600354604051630935e01b60e21b81526001600160a01b03909116906324d7806c9061033b903390600401610b63565b602060405180830381865afa158015610358573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037c9190610c90565b610399576040516360ce039160e01b815260040160405180910390fd5b600655565b600054610100900460ff16158080156103be5750600054600160ff909116105b806103df57506103cd306107ae565b1580156103df575060005460ff166001145b6104475760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b6000805460ff19166001179055801561046a576000805461ff0019166101001790555b600080546001600160a01b03808816620100000262010000600160b01b031990921691909117909155600180548683166001600160a01b031991821617909155600285905560038054928516929091169190911790558015610506576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b60035460008054604051633c771a6f60e01b81526001600160a01b038581166004830152620100009092048216602482015291921690633c771a6f90604401600060405180830381600087803b15801561056657600080fd5b505af115801561057a573d6000803e3d6000fd5b50505050600061058960065490565b6001600160a01b0384166000908152600460205260409020549091508181036105b6575060009392505050565b806000036105d2576002546105cf9062093a8090610c40565b90505b8181116106b857600081815260056020526040808220546003548354925163c0aabb0d60e01b815291939283926001600160a01b039283169263c0aabb0d9261062c928c9262010000909204909116908990600401610c6c565b6040805180830381865afa158015610648573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066c9190610cb2565b9150915081600003610680575050506105d2565b8061068b8484610cd6565b6106959190610d03565b61069f9087610c40565b95506106ae62093a8085610c40565b93505050506105d2565b6001600160a01b038416600090815260046020526040902082905582156106f0576001546106f0906001600160a01b031685856107bd565b60015460408051848152602081018690526001600160a01b03928316928716917ffe7c5fc89da23a432c91f264decb100ab9d08ab7b14650c3cdb9b6b4f84a60e9910160405180910390a35050919050565b600061074c610814565b6001600160801b0316905060025482108061076657508082115b80610777575061077582610824565b155b156107aa57600254604051637ee6bc2d60e01b81526004810184905260248101919091526044810182905260640161043e565b5050565b6001600160a01b03163b151590565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261080f90849061083a565b505050565b600061081f4261090c565b905090565b600061083362093a8083610d17565b1592915050565b600061088f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661092c9092919063ffffffff16565b80519091501561080f57808060200190518101906108ad9190610c90565b61080f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161043e565b600062093a8061091c8184610d2b565b6109269190610d51565b92915050565b606061093b8484600085610945565b90505b9392505050565b6060824710156109a65760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161043e565b6109af856107ae565b6109fb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161043e565b600080866001600160a01b03168587604051610a179190610da0565b60006040518083038185875af1925050503d8060008114610a54576040519150601f19603f3d011682016040523d82523d6000602084013e610a59565b606091505b5091509150610a69828286610a74565b979650505050505050565b60608315610a8357508161093e565b825115610a935782518084602001fd5b8160405162461bcd60e51b815260040161043e9190610dbc565b60008083601f840112610abf57600080fd5b5081356001600160401b03811115610ad657600080fd5b6020830191508360208260051b8501011115610af157600080fd5b9250929050565b60008060008060408587031215610b0e57600080fd5b84356001600160401b0380821115610b2557600080fd5b610b3188838901610aad565b90965094506020870135915080821115610b4a57600080fd5b50610b5787828801610aad565b95989497509550505050565b6001600160a01b0391909116815260200190565b600060208284031215610b8957600080fd5b5035919050565b80356001600160a01b0381168114610ba757600080fd5b919050565b60008060008060808587031215610bc257600080fd5b610bcb85610b90565b9350610bd960208601610b90565b925060408501359150610bee60608601610b90565b905092959194509250565b600060208284031215610c0b57600080fd5b61093e82610b90565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561092657610926610c2a565b600060018201610c6557610c65610c2a565b5060010190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600060208284031215610ca257600080fd5b8151801515811461093e57600080fd5b60008060408385031215610cc557600080fd5b505080516020909101519092909150565b808202811582820484141761092657610926610c2a565b634e487b7160e01b600052601260045260246000fd5b600082610d1257610d12610ced565b500490565b600082610d2657610d26610ced565b500690565b60006001600160801b0383811680610d4557610d45610ced565b92169190910492915050565b6001600160801b03818116838216028082169190828114610d7457610d74610c2a565b505092915050565b60005b83811015610d97578181015183820152602001610d7f565b50506000910152565b60008251610db2818460208701610d7c565b9190910192915050565b6020815260008251806020840152610ddb816040850160208701610d7c565b601f01601f1916919091016040019291505056fea2646970667358221220c2966d5fdaf4a3caafd675d58bae4b1b1b40a6843e6356203d96050d443550c064736f6c63430008110033";
291
+
292
+ type FeeDistributorConstructorParams =
293
+ | [signer?: Signer]
294
+ | ConstructorParameters<typeof ContractFactory>;
295
+
296
+ const isSuperArgs = (
297
+ xs: FeeDistributorConstructorParams
298
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
299
+
300
+ export class FeeDistributor__factory extends ContractFactory {
301
+ constructor(...args: FeeDistributorConstructorParams) {
302
+ if (isSuperArgs(args)) {
303
+ super(...args);
304
+ } else {
305
+ super(_abi, _bytecode, args[0]);
306
+ }
307
+ this.contractName = "FeeDistributor";
308
+ }
309
+
310
+ deploy(
311
+ overrides?: Overrides & { from?: string | Promise<string> }
312
+ ): Promise<FeeDistributor> {
313
+ return super.deploy(overrides || {}) as Promise<FeeDistributor>;
314
+ }
315
+ getDeployTransaction(
316
+ overrides?: Overrides & { from?: string | Promise<string> }
317
+ ): TransactionRequest {
318
+ return super.getDeployTransaction(overrides || {});
319
+ }
320
+ attach(address: string): FeeDistributor {
321
+ return super.attach(address) as FeeDistributor;
322
+ }
323
+ connect(signer: Signer): FeeDistributor__factory {
324
+ return super.connect(signer) as FeeDistributor__factory;
325
+ }
326
+ static readonly contractName: "FeeDistributor";
327
+ public readonly contractName: "FeeDistributor";
328
+ static readonly bytecode = _bytecode;
329
+ static readonly abi = _abi;
330
+ static createInterface(): FeeDistributorInterface {
331
+ return new utils.Interface(_abi) as FeeDistributorInterface;
332
+ }
333
+ static connect(
334
+ address: string,
335
+ signerOrProvider: Signer | Provider
336
+ ): FeeDistributor {
337
+ return new Contract(address, _abi, signerOrProvider) as FeeDistributor;
338
+ }
339
+ }
@@ -93,6 +93,40 @@ const _abi = [
93
93
  stateMutability: "view",
94
94
  type: "function",
95
95
  },
96
+ {
97
+ inputs: [
98
+ {
99
+ internalType: "uint256",
100
+ name: "id",
101
+ type: "uint256",
102
+ },
103
+ ],
104
+ name: "pools",
105
+ outputs: [
106
+ {
107
+ internalType: "uint48",
108
+ name: "",
109
+ type: "uint48",
110
+ },
111
+ {
112
+ internalType: "uint16",
113
+ name: "",
114
+ type: "uint16",
115
+ },
116
+ {
117
+ internalType: "uint96",
118
+ name: "totalStaked",
119
+ type: "uint96",
120
+ },
121
+ {
122
+ internalType: "uint96",
123
+ name: "",
124
+ type: "uint96",
125
+ },
126
+ ],
127
+ stateMutability: "view",
128
+ type: "function",
129
+ },
96
130
  {
97
131
  inputs: [
98
132
  {