@pendle/core-v2 2.13.3-mainnet → 2.14.1-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.
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol/CamelotRewardHelper.json +6 -6
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileCommon.sol/CamelotV1VolatileCommon.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol/CamelotV1VolatileLpHelper.json +0 -26
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatilePreview.sol/CamelotV1VolatilePreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.json +10 -41
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNFTPool.sol/ICamelotNFTPool.json +48 -0
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPool.sol/ICamelotNitroPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol/ICamelotNitroPoolFactory.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol/ICamelotNitroPoolFactory.json +638 -0
- package/build/artifacts/contracts/interfaces/Camelot/ICamelotPair.sol/ICamelotPair.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/samples/PendlePtUsdChainlinkOracle.sol/PendlePtUsdChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotRewardHelper.sol +18 -10
- package/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/CamelotV1VolatileLpHelper.sol +2 -10
- package/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol +42 -34
- package/contracts/interfaces/Camelot/ICamelotNFTPool.sol +14 -0
- package/contracts/interfaces/Camelot/ICamelotNitroPoolFactory.sol +95 -0
- package/deployments/42161-markets/CAMELOT-ARBETH-27JUNE2024-ARBITRUM.json +8 -0
- package/package.json +1 -1
- package/typechain-types/CamelotV1LpHelper.ts +203 -0
- package/typechain-types/CamelotV1Preview.ts +431 -0
- package/typechain-types/CamelotV1VolatileLpHelper.ts +0 -32
- package/typechain-types/ICamelotNFTPool.ts +85 -0
- package/typechain-types/ICamelotNitroPoolFactory.ts +1053 -0
- package/typechain-types/ICamelotSY.ts +100 -0
- package/typechain-types/IPendlePreviewHelper.ts +147 -0
- package/typechain-types/PendleCamelotV1SY.ts +2011 -0
- package/typechain-types/PendleCamelotV1VolatileSY.ts +14 -46
- package/typechain-types/factories/CamelotRewardHelper__factory.ts +24 -13
- package/typechain-types/factories/CamelotV1LpHelper__factory.ts +143 -0
- package/typechain-types/factories/CamelotV1Preview__factory.ts +309 -0
- package/typechain-types/factories/CamelotV1VolatileLpHelper__factory.ts +0 -26
- package/typechain-types/factories/ICamelotNFTPool__factory.ts +48 -0
- package/typechain-types/factories/ICamelotNitroPoolFactory__factory.ts +657 -0
- package/typechain-types/factories/ICamelotSY__factory.ts +49 -0
- package/typechain-types/factories/IPendlePreviewHelper__factory.ts +78 -0
- package/typechain-types/factories/PendleCamelotV1SY__factory.ts +1621 -0
- package/typechain-types/factories/PendleCamelotV1VolatileSY__factory.ts +25 -53
- package/typechain-types/hardhat.d.ts +54 -0
- package/typechain-types/index.ts +12 -0
|
@@ -39,7 +39,6 @@ export interface PendleCamelotV1VolatileSYInterface extends utils.Interface {
|
|
|
39
39
|
"decimals()": FunctionFragment;
|
|
40
40
|
"deposit(address,address,uint256,uint256)": FunctionFragment;
|
|
41
41
|
"exchangeRate()": FunctionFragment;
|
|
42
|
-
"factory()": FunctionFragment;
|
|
43
42
|
"finalizeRedeem(uint256)": FunctionFragment;
|
|
44
43
|
"getRewardTokens()": FunctionFragment;
|
|
45
44
|
"getTokensIn()": FunctionFragment;
|
|
@@ -68,13 +67,12 @@ export interface PendleCamelotV1VolatileSYInterface extends utils.Interface {
|
|
|
68
67
|
"previewRedeem(address,uint256)": FunctionFragment;
|
|
69
68
|
"redeem(address,uint256,address,uint256,bool)": FunctionFragment;
|
|
70
69
|
"redeemXGrailOwner(uint256,uint256)": FunctionFragment;
|
|
71
|
-
"referrerForSwap()": FunctionFragment;
|
|
72
70
|
"rewardIndexesCurrent()": FunctionFragment;
|
|
73
71
|
"rewardIndexesStored()": FunctionFragment;
|
|
74
72
|
"rewardState(address)": FunctionFragment;
|
|
75
73
|
"rewardTokens(uint256)": FunctionFragment;
|
|
76
74
|
"router()": FunctionFragment;
|
|
77
|
-
"
|
|
75
|
+
"setNewNitroPool(uint256)": FunctionFragment;
|
|
78
76
|
"setRewardDisabled(bool)": FunctionFragment;
|
|
79
77
|
"symbol()": FunctionFragment;
|
|
80
78
|
"token0()": FunctionFragment;
|
|
@@ -131,7 +129,6 @@ export interface PendleCamelotV1VolatileSYInterface extends utils.Interface {
|
|
|
131
129
|
functionFragment: "exchangeRate",
|
|
132
130
|
values?: undefined
|
|
133
131
|
): string;
|
|
134
|
-
encodeFunctionData(functionFragment: "factory", values?: undefined): string;
|
|
135
132
|
encodeFunctionData(
|
|
136
133
|
functionFragment: "finalizeRedeem",
|
|
137
134
|
values: [BigNumberish]
|
|
@@ -228,10 +225,6 @@ export interface PendleCamelotV1VolatileSYInterface extends utils.Interface {
|
|
|
228
225
|
functionFragment: "redeemXGrailOwner",
|
|
229
226
|
values: [BigNumberish, BigNumberish]
|
|
230
227
|
): string;
|
|
231
|
-
encodeFunctionData(
|
|
232
|
-
functionFragment: "referrerForSwap",
|
|
233
|
-
values?: undefined
|
|
234
|
-
): string;
|
|
235
228
|
encodeFunctionData(
|
|
236
229
|
functionFragment: "rewardIndexesCurrent",
|
|
237
230
|
values?: undefined
|
|
@@ -247,8 +240,8 @@ export interface PendleCamelotV1VolatileSYInterface extends utils.Interface {
|
|
|
247
240
|
): string;
|
|
248
241
|
encodeFunctionData(functionFragment: "router", values?: undefined): string;
|
|
249
242
|
encodeFunctionData(
|
|
250
|
-
functionFragment: "
|
|
251
|
-
values: [
|
|
243
|
+
functionFragment: "setNewNitroPool",
|
|
244
|
+
values: [BigNumberish]
|
|
252
245
|
): string;
|
|
253
246
|
encodeFunctionData(
|
|
254
247
|
functionFragment: "setRewardDisabled",
|
|
@@ -323,7 +316,6 @@ export interface PendleCamelotV1VolatileSYInterface extends utils.Interface {
|
|
|
323
316
|
functionFragment: "exchangeRate",
|
|
324
317
|
data: BytesLike
|
|
325
318
|
): Result;
|
|
326
|
-
decodeFunctionResult(functionFragment: "factory", data: BytesLike): Result;
|
|
327
319
|
decodeFunctionResult(
|
|
328
320
|
functionFragment: "finalizeRedeem",
|
|
329
321
|
data: BytesLike
|
|
@@ -403,10 +395,6 @@ export interface PendleCamelotV1VolatileSYInterface extends utils.Interface {
|
|
|
403
395
|
functionFragment: "redeemXGrailOwner",
|
|
404
396
|
data: BytesLike
|
|
405
397
|
): Result;
|
|
406
|
-
decodeFunctionResult(
|
|
407
|
-
functionFragment: "referrerForSwap",
|
|
408
|
-
data: BytesLike
|
|
409
|
-
): Result;
|
|
410
398
|
decodeFunctionResult(
|
|
411
399
|
functionFragment: "rewardIndexesCurrent",
|
|
412
400
|
data: BytesLike
|
|
@@ -425,7 +413,7 @@ export interface PendleCamelotV1VolatileSYInterface extends utils.Interface {
|
|
|
425
413
|
): Result;
|
|
426
414
|
decodeFunctionResult(functionFragment: "router", data: BytesLike): Result;
|
|
427
415
|
decodeFunctionResult(
|
|
428
|
-
functionFragment: "
|
|
416
|
+
functionFragment: "setNewNitroPool",
|
|
429
417
|
data: BytesLike
|
|
430
418
|
): Result;
|
|
431
419
|
decodeFunctionResult(
|
|
@@ -638,8 +626,6 @@ export interface PendleCamelotV1VolatileSY extends BaseContract {
|
|
|
638
626
|
|
|
639
627
|
exchangeRate(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
640
628
|
|
|
641
|
-
factory(overrides?: CallOverrides): Promise<[string]>;
|
|
642
|
-
|
|
643
629
|
finalizeRedeem(
|
|
644
630
|
redeemIndex: BigNumberish,
|
|
645
631
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
@@ -764,8 +750,6 @@ export interface PendleCamelotV1VolatileSY extends BaseContract {
|
|
|
764
750
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
765
751
|
): Promise<ContractTransaction>;
|
|
766
752
|
|
|
767
|
-
referrerForSwap(overrides?: CallOverrides): Promise<[string]>;
|
|
768
|
-
|
|
769
753
|
rewardIndexesCurrent(
|
|
770
754
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
771
755
|
): Promise<ContractTransaction>;
|
|
@@ -788,8 +772,8 @@ export interface PendleCamelotV1VolatileSY extends BaseContract {
|
|
|
788
772
|
|
|
789
773
|
router(overrides?: CallOverrides): Promise<[string]>;
|
|
790
774
|
|
|
791
|
-
|
|
792
|
-
|
|
775
|
+
setNewNitroPool(
|
|
776
|
+
newPoolIndex: BigNumberish,
|
|
793
777
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
794
778
|
): Promise<ContractTransaction>;
|
|
795
779
|
|
|
@@ -905,8 +889,6 @@ export interface PendleCamelotV1VolatileSY extends BaseContract {
|
|
|
905
889
|
|
|
906
890
|
exchangeRate(overrides?: CallOverrides): Promise<BigNumber>;
|
|
907
891
|
|
|
908
|
-
factory(overrides?: CallOverrides): Promise<string>;
|
|
909
|
-
|
|
910
892
|
finalizeRedeem(
|
|
911
893
|
redeemIndex: BigNumberish,
|
|
912
894
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
@@ -1019,8 +1001,6 @@ export interface PendleCamelotV1VolatileSY extends BaseContract {
|
|
|
1019
1001
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1020
1002
|
): Promise<ContractTransaction>;
|
|
1021
1003
|
|
|
1022
|
-
referrerForSwap(overrides?: CallOverrides): Promise<string>;
|
|
1023
|
-
|
|
1024
1004
|
rewardIndexesCurrent(
|
|
1025
1005
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1026
1006
|
): Promise<ContractTransaction>;
|
|
@@ -1038,8 +1018,8 @@ export interface PendleCamelotV1VolatileSY extends BaseContract {
|
|
|
1038
1018
|
|
|
1039
1019
|
router(overrides?: CallOverrides): Promise<string>;
|
|
1040
1020
|
|
|
1041
|
-
|
|
1042
|
-
|
|
1021
|
+
setNewNitroPool(
|
|
1022
|
+
newPoolIndex: BigNumberish,
|
|
1043
1023
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1044
1024
|
): Promise<ContractTransaction>;
|
|
1045
1025
|
|
|
@@ -1151,8 +1131,6 @@ export interface PendleCamelotV1VolatileSY extends BaseContract {
|
|
|
1151
1131
|
|
|
1152
1132
|
exchangeRate(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1153
1133
|
|
|
1154
|
-
factory(overrides?: CallOverrides): Promise<string>;
|
|
1155
|
-
|
|
1156
1134
|
finalizeRedeem(
|
|
1157
1135
|
redeemIndex: BigNumberish,
|
|
1158
1136
|
overrides?: CallOverrides
|
|
@@ -1263,8 +1241,6 @@ export interface PendleCamelotV1VolatileSY extends BaseContract {
|
|
|
1263
1241
|
overrides?: CallOverrides
|
|
1264
1242
|
): Promise<void>;
|
|
1265
1243
|
|
|
1266
|
-
referrerForSwap(overrides?: CallOverrides): Promise<string>;
|
|
1267
|
-
|
|
1268
1244
|
rewardIndexesCurrent(overrides?: CallOverrides): Promise<BigNumber[]>;
|
|
1269
1245
|
|
|
1270
1246
|
rewardIndexesStored(overrides?: CallOverrides): Promise<BigNumber[]>;
|
|
@@ -1283,8 +1259,8 @@ export interface PendleCamelotV1VolatileSY extends BaseContract {
|
|
|
1283
1259
|
|
|
1284
1260
|
router(overrides?: CallOverrides): Promise<string>;
|
|
1285
1261
|
|
|
1286
|
-
|
|
1287
|
-
|
|
1262
|
+
setNewNitroPool(
|
|
1263
|
+
newPoolIndex: BigNumberish,
|
|
1288
1264
|
overrides?: CallOverrides
|
|
1289
1265
|
): Promise<void>;
|
|
1290
1266
|
|
|
@@ -1472,8 +1448,6 @@ export interface PendleCamelotV1VolatileSY extends BaseContract {
|
|
|
1472
1448
|
|
|
1473
1449
|
exchangeRate(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1474
1450
|
|
|
1475
|
-
factory(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1476
|
-
|
|
1477
1451
|
finalizeRedeem(
|
|
1478
1452
|
redeemIndex: BigNumberish,
|
|
1479
1453
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
@@ -1592,8 +1566,6 @@ export interface PendleCamelotV1VolatileSY extends BaseContract {
|
|
|
1592
1566
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1593
1567
|
): Promise<BigNumber>;
|
|
1594
1568
|
|
|
1595
|
-
referrerForSwap(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1596
|
-
|
|
1597
1569
|
rewardIndexesCurrent(
|
|
1598
1570
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1599
1571
|
): Promise<BigNumber>;
|
|
@@ -1609,8 +1581,8 @@ export interface PendleCamelotV1VolatileSY extends BaseContract {
|
|
|
1609
1581
|
|
|
1610
1582
|
router(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1611
1583
|
|
|
1612
|
-
|
|
1613
|
-
|
|
1584
|
+
setNewNitroPool(
|
|
1585
|
+
newPoolIndex: BigNumberish,
|
|
1614
1586
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1615
1587
|
): Promise<BigNumber>;
|
|
1616
1588
|
|
|
@@ -1723,8 +1695,6 @@ export interface PendleCamelotV1VolatileSY extends BaseContract {
|
|
|
1723
1695
|
|
|
1724
1696
|
exchangeRate(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1725
1697
|
|
|
1726
|
-
factory(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1727
|
-
|
|
1728
1698
|
finalizeRedeem(
|
|
1729
1699
|
redeemIndex: BigNumberish,
|
|
1730
1700
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
@@ -1846,8 +1816,6 @@ export interface PendleCamelotV1VolatileSY extends BaseContract {
|
|
|
1846
1816
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1847
1817
|
): Promise<PopulatedTransaction>;
|
|
1848
1818
|
|
|
1849
|
-
referrerForSwap(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1850
|
-
|
|
1851
1819
|
rewardIndexesCurrent(
|
|
1852
1820
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1853
1821
|
): Promise<PopulatedTransaction>;
|
|
@@ -1868,8 +1836,8 @@ export interface PendleCamelotV1VolatileSY extends BaseContract {
|
|
|
1868
1836
|
|
|
1869
1837
|
router(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1870
1838
|
|
|
1871
|
-
|
|
1872
|
-
|
|
1839
|
+
setNewNitroPool(
|
|
1840
|
+
newPoolIndex: BigNumberish,
|
|
1873
1841
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1874
1842
|
): Promise<PopulatedTransaction>;
|
|
1875
1843
|
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
Signer,
|
|
6
|
+
utils,
|
|
7
|
+
Contract,
|
|
8
|
+
ContractFactory,
|
|
9
|
+
Overrides,
|
|
10
|
+
BigNumberish,
|
|
11
|
+
} from "ethers";
|
|
5
12
|
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
13
|
import type {
|
|
7
14
|
CamelotRewardHelper,
|
|
@@ -13,13 +20,13 @@ const _abi = [
|
|
|
13
20
|
inputs: [
|
|
14
21
|
{
|
|
15
22
|
internalType: "address",
|
|
16
|
-
name: "
|
|
23
|
+
name: "_nftPool",
|
|
17
24
|
type: "address",
|
|
18
25
|
},
|
|
19
26
|
{
|
|
20
|
-
internalType: "
|
|
21
|
-
name: "
|
|
22
|
-
type: "
|
|
27
|
+
internalType: "uint256",
|
|
28
|
+
name: "_nitroPoolIndex",
|
|
29
|
+
type: "uint256",
|
|
23
30
|
},
|
|
24
31
|
],
|
|
25
32
|
stateMutability: "nonpayable",
|
|
@@ -253,7 +260,7 @@ const _abi = [
|
|
|
253
260
|
];
|
|
254
261
|
|
|
255
262
|
const _bytecode =
|
|
256
|
-
"
|
|
263
|
+
"0x60e060405260001960015534801561001657600080fd5b50604051610a7b380380610a7b833981016040819052610035916104d7565b6001600160a01b0382166080526000198114610157576040516308c7b93360e21b81526004810182905273e0a6b372ac6af4b37c7f3a989fe5d5b194c245699063231ee4cc90602401602060405180830381865afa15801561009b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100bf9190610503565b600080546001600160a01b0319166001600160a01b0392831690811790915560805160408051630828862d60e01b815290519190931692630828862d9160048083019260209291908290030181865afa158015610120573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101449190610503565b6001600160a01b03161461015757600080fd5b60006080516001600160a01b03166360246c886040518163ffffffff1660e01b815260040161010060405180830381865afa15801561019a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101be9190610525565b5050506001600160a01b0392831660c052505090811660a052608051604080516368e5dab560e01b815290519394509116916368e5dab5916004808201926020929091908290030181865afa15801561021b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023f9190610503565b600280546001600160a01b0319166001600160a01b039290921691909117905560805161026d9082906102df565b60c0516002546040516330d83b4760e21b81526001600160a01b039283169263c360ed1c926102a59291169060001990600401610599565b600060405180830381600087803b1580156102bf57600080fd5b505af11580156102d3573d6000803e3d6000fd5b50505050505050610650565b6001600160a01b0382166102f1575050565b61030360026001600160601b036105b2565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526001600160601b03929092169184169063dd62ed3e90604401602060405180830381865afa15801561035c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061038091906105e6565b101561039f57610392828260006103a3565b61039f82826000196103a3565b5050565b600080846001600160a01b031663095ea7b360e01b85856040516024016103cb929190610599565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b031990941693909317909252905161040991906105ff565b6000604051808303816000865af19150503d8060008114610446576040519150601f19603f3d011682016040523d82523d6000602084013e61044b565b606091505b5091509150818015610475575080511580610475575080806020019051810190610475919061062e565b6104b45760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b604482015260640160405180910390fd5b5050505050565b80516001600160a01b03811681146104d257600080fd5b919050565b600080604083850312156104ea57600080fd5b6104f3836104bb565b9150602083015190509250929050565b60006020828403121561051557600080fd5b61051e826104bb565b9392505050565b600080600080600080600080610100898b03121561054257600080fd5b61054b896104bb565b975061055960208a016104bb565b965061056760408a016104bb565b9550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b6001600160a01b03929092168252602082015260400190565b60006001600160601b03838116806105da57634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b6000602082840312156105f857600080fd5b5051919050565b6000825160005b818110156106205760208186018101518583015201610606565b506000920191825250919050565b60006020828403121561064057600080fd5b8151801515811461051e57600080fd5b60805160a05160c0516103fd61067e600039600061018f0152600061016801526000609801526103fd6000f3fe608060405234801561001057600080fd5b506004361061008e5760003560e01c80630828862d14610093578063150b7a02146100d757806334677c7a146101035780634d6446d91461012657806368e5dab51461013957806371640de31461014c5780637a26603814610163578063896a21de1461018a578063e2b36dc314610103578063fe4ee967146101b1575b600080fd5b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100ea6100e53660046102ad565b6101c4565b6040516001600160e01b031990911681526020016100ce565b610116610111366004610347565b610213565b60405190151581526020016100ce565b6000546100ba906001600160a01b031681565b6002546100ba906001600160a01b031681565b61015560015481565b6040519081526020016100ce565b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b6101166101bf36600461037a565b610251565b60008360015481146102005760015460405163168a450960e21b81526101f7918391600401918252602082015260400190565b60405180910390fd5b50630a85bd0160e11b9695505050505050565b60008260015481146102465760015460405163168a450960e21b81526101f7918391600401918252602082015260400190565b506001949350505050565b60008360015481146102845760015460405163168a450960e21b81526101f7918391600401918252602082015260400190565b5060019695505050505050565b80356001600160a01b03811681146102a857600080fd5b919050565b6000806000806000608086880312156102c557600080fd5b6102ce86610291565b94506102dc60208701610291565b93506040860135925060608601356001600160401b03808211156102ff57600080fd5b818801915088601f83011261031357600080fd5b81358181111561032257600080fd5b89602082850101111561033457600080fd5b9699959850939650602001949392505050565b60008060006060848603121561035c57600080fd5b61036584610291565b95602085013595506040909401359392505050565b600080600080600060a0868803121561039257600080fd5b61039b86610291565b94506103a960208701610291565b9497949650505050604083013592606081013592608090910135915056fea264697066735822122011c35acdea24ccea79c8c789a591b1ec6693c6ef6192d3b4360641ef27fd721464736f6c63430008110033";
|
|
257
264
|
|
|
258
265
|
type CamelotRewardHelperConstructorParams =
|
|
259
266
|
| [signer?: Signer]
|
|
@@ -274,22 +281,26 @@ export class CamelotRewardHelper__factory extends ContractFactory {
|
|
|
274
281
|
}
|
|
275
282
|
|
|
276
283
|
deploy(
|
|
277
|
-
|
|
278
|
-
|
|
284
|
+
_nftPool: string,
|
|
285
|
+
_nitroPoolIndex: BigNumberish,
|
|
279
286
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
280
287
|
): Promise<CamelotRewardHelper> {
|
|
281
288
|
return super.deploy(
|
|
282
|
-
|
|
283
|
-
|
|
289
|
+
_nftPool,
|
|
290
|
+
_nitroPoolIndex,
|
|
284
291
|
overrides || {}
|
|
285
292
|
) as Promise<CamelotRewardHelper>;
|
|
286
293
|
}
|
|
287
294
|
getDeployTransaction(
|
|
288
|
-
|
|
289
|
-
|
|
295
|
+
_nftPool: string,
|
|
296
|
+
_nitroPoolIndex: BigNumberish,
|
|
290
297
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
291
298
|
): TransactionRequest {
|
|
292
|
-
return super.getDeployTransaction(
|
|
299
|
+
return super.getDeployTransaction(
|
|
300
|
+
_nftPool,
|
|
301
|
+
_nitroPoolIndex,
|
|
302
|
+
overrides || {}
|
|
303
|
+
);
|
|
293
304
|
}
|
|
294
305
|
attach(address: string): CamelotRewardHelper {
|
|
295
306
|
return super.attach(address) as CamelotRewardHelper;
|
|
@@ -0,0 +1,143 @@
|
|
|
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
|
+
CamelotV1LpHelper,
|
|
9
|
+
CamelotV1LpHelperInterface,
|
|
10
|
+
} from "../CamelotV1LpHelper";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [],
|
|
15
|
+
name: "factory",
|
|
16
|
+
outputs: [
|
|
17
|
+
{
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
stateMutability: "view",
|
|
24
|
+
type: "function",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
inputs: [],
|
|
28
|
+
name: "isStable",
|
|
29
|
+
outputs: [
|
|
30
|
+
{
|
|
31
|
+
internalType: "bool",
|
|
32
|
+
name: "",
|
|
33
|
+
type: "bool",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
stateMutability: "view",
|
|
37
|
+
type: "function",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
inputs: [],
|
|
41
|
+
name: "multiplier0",
|
|
42
|
+
outputs: [
|
|
43
|
+
{
|
|
44
|
+
internalType: "uint256",
|
|
45
|
+
name: "",
|
|
46
|
+
type: "uint256",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
stateMutability: "view",
|
|
50
|
+
type: "function",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
inputs: [],
|
|
54
|
+
name: "multiplier1",
|
|
55
|
+
outputs: [
|
|
56
|
+
{
|
|
57
|
+
internalType: "uint256",
|
|
58
|
+
name: "",
|
|
59
|
+
type: "uint256",
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
stateMutability: "view",
|
|
63
|
+
type: "function",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
inputs: [],
|
|
67
|
+
name: "pair",
|
|
68
|
+
outputs: [
|
|
69
|
+
{
|
|
70
|
+
internalType: "address",
|
|
71
|
+
name: "",
|
|
72
|
+
type: "address",
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
stateMutability: "view",
|
|
76
|
+
type: "function",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
inputs: [],
|
|
80
|
+
name: "referrerForSwap",
|
|
81
|
+
outputs: [
|
|
82
|
+
{
|
|
83
|
+
internalType: "address",
|
|
84
|
+
name: "",
|
|
85
|
+
type: "address",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
stateMutability: "view",
|
|
89
|
+
type: "function",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
inputs: [],
|
|
93
|
+
name: "router",
|
|
94
|
+
outputs: [
|
|
95
|
+
{
|
|
96
|
+
internalType: "address",
|
|
97
|
+
name: "",
|
|
98
|
+
type: "address",
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
stateMutability: "view",
|
|
102
|
+
type: "function",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
inputs: [],
|
|
106
|
+
name: "token0",
|
|
107
|
+
outputs: [
|
|
108
|
+
{
|
|
109
|
+
internalType: "address",
|
|
110
|
+
name: "",
|
|
111
|
+
type: "address",
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
stateMutability: "view",
|
|
115
|
+
type: "function",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
inputs: [],
|
|
119
|
+
name: "token1",
|
|
120
|
+
outputs: [
|
|
121
|
+
{
|
|
122
|
+
internalType: "address",
|
|
123
|
+
name: "",
|
|
124
|
+
type: "address",
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
stateMutability: "view",
|
|
128
|
+
type: "function",
|
|
129
|
+
},
|
|
130
|
+
];
|
|
131
|
+
|
|
132
|
+
export class CamelotV1LpHelper__factory {
|
|
133
|
+
static readonly abi = _abi;
|
|
134
|
+
static createInterface(): CamelotV1LpHelperInterface {
|
|
135
|
+
return new utils.Interface(_abi) as CamelotV1LpHelperInterface;
|
|
136
|
+
}
|
|
137
|
+
static connect(
|
|
138
|
+
address: string,
|
|
139
|
+
signerOrProvider: Signer | Provider
|
|
140
|
+
): CamelotV1LpHelper {
|
|
141
|
+
return new Contract(address, _abi, signerOrProvider) as CamelotV1LpHelper;
|
|
142
|
+
}
|
|
143
|
+
}
|