@pendle/core-v2 0.10.5-testnet → 0.11.1-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.
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiSAvaxSCY.sol/PendleQiSAvaxSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleSAvaxSCY.sol/PendleSAvaxSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Euler/PendleEulerSCY.sol/PendleEulerSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleStargateSCY.sol/PendleStargateSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultSCY.sol/PendleYearnVaultSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol/PendleSJoeSCY.json +2 -2
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiverUpg.sol/CelerReceiverUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSenderUpg.sol/CelerSenderUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/FeeDistributorVePendle.sol/FeeDistributorVePendle.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/FeeDistributorVePendle.sol/FeeDistributorVePendle.json +188 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorAbstract.sol/PendleFeeDistributorAbstract.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorAbstract.sol/PendleFeeDistributorAbstract.json +164 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorVoting.sol/PendleFeeDistributorVoting.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorVoting.sol/PendleFeeDistributorVoting.json +206 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorVotingFactory.sol/PendleFeeDistributorVotingFactory.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorVotingFactory.sol/PendleFeeDistributorVotingFactory.json +149 -0
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
- package/build/artifacts/contracts/core/LiquidityMining/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +62 -14
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +192 -12
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +51 -8
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +33 -8
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
- package/build/artifacts/contracts/core/PendleERC20.sol/PendleERC20.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.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/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +3 -3
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.json +2 -2
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.json +2 -2
- package/build/artifacts/contracts/core/actions/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IEulerEToken.sol/IEulerEToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IEulerMarkets.sol/IEulerMarkets.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.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/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.json +151 -0
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +25 -0
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +124 -0
- package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.json +86 -0
- package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISAvax.sol/ISAvax.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISJoe.sol/ISJoe.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWAvax.sol/IWAvax.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/SCY/SCYUtils.sol/SCYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/SSTORE2Deployer.sol/SSTORE2Deployer.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.json +2 -2
- package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +2 -2
- package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +1 -1
- package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
- package/contracts/SuperComposableYield/SCY-implementations/TraderJoe/PendleSJoeSCY.sol +0 -1
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +1 -1
- package/contracts/core/LiquidityMining/PendleGauge.sol +1 -1
- package/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +1 -2
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol +2 -2
- package/contracts/core/Market/PendleMarket.sol +32 -19
- package/contracts/core/Market/PendleMarketFactory.sol +11 -16
- package/contracts/core/PendleRouter.sol +1 -3
- package/contracts/core/YieldContracts/PendlePrincipalToken.sol +1 -1
- package/contracts/core/YieldContracts/PendleYieldContractFactory.sol +5 -5
- package/contracts/core/actions/ActionAddRemoveLiq.sol +41 -21
- package/contracts/interfaces/IPGauge.sol +2 -0
- package/contracts/interfaces/IPGaugeController.sol +1 -1
- package/contracts/interfaces/IPMarket.sol +16 -4
- package/contracts/interfaces/IPMarketFactory.sol +1 -1
- package/contracts/interfaces/ISJoe.sol +3 -6
- package/contracts/libraries/kyberswap/AggregationRouterHelper.sol +308 -0
- package/contracts/libraries/kyberswap/IMultihopRouter.sol +139 -0
- package/contracts/libraries/kyberswap/KyberSwapHelper.sol +7 -1
- package/contracts/libraries/math/WeekMath.sol +1 -1
- package/contracts/offchain-helpers/RouterStatic.sol +5 -5
- package/contracts/offchain-helpers/SSTORE2DeployerContract.sol +21 -0
- package/contracts/periphery/BoringOwnableUpgradeable.sol +2 -2
- package/deployments/43113-core.json +8 -7
- package/deployments/43113-markets/benqi-market-QI-USDC-FEB-2ND.json +8 -0
- package/deployments/43113-markets/benqi-market-QI-USDC-SEP-22TH.json +8 -0
- package/deployments/43113-markets/benqi-market-QI-WETH-DEC-1ST.json +8 -0
- package/deployments/43113-testenv.json +1 -1
- package/deployments/80001-core.json +4 -4
- package/package.json +4 -5
- package/typechain-types/ActionAddRemoveLiq.ts +1 -1
- package/typechain-types/FeeDistributorAbstract.ts +240 -0
- package/typechain-types/FeeDistributorVePendle.ts +302 -0
- package/typechain-types/FeeDistributorVoting.ts +272 -0
- package/typechain-types/FeeDistributorVotingFactory.ts +293 -0
- package/typechain-types/IPFeeDistributor.ts +270 -0
- package/typechain-types/IPMarket.ts +32 -5
- package/typechain-types/IPVotingController.ts +205 -7
- package/typechain-types/IPVotingControllerStorage.ts +169 -0
- package/typechain-types/IPVotingEscrow.ts +117 -0
- package/typechain-types/PendleFeeDistributorAbstract.ts +289 -0
- package/typechain-types/PendleFeeDistributorVoting.ts +321 -0
- package/typechain-types/PendleFeeDistributorVotingFactory.ts +294 -0
- package/typechain-types/PendleMarket.ts +32 -5
- package/typechain-types/PendleVotingControllerUpg.ts +73 -24
- package/typechain-types/VotingControllerStorageUpg.ts +207 -27
- package/typechain-types/VotingEscrowPendleMainchain.ts +57 -13
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +2 -2
- package/typechain-types/factories/ActionCallback__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
- package/typechain-types/factories/ActionMisc__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
- package/typechain-types/factories/FeeDistributorAbstract__factory.ts +127 -0
- package/typechain-types/factories/FeeDistributorVePendle__factory.ts +250 -0
- package/typechain-types/factories/FeeDistributorVotingFactory__factory.ts +211 -0
- package/typechain-types/factories/FeeDistributorVoting__factory.ts +219 -0
- package/typechain-types/factories/IPFeeDistributor__factory.ts +166 -0
- package/typechain-types/factories/IPMarket__factory.ts +25 -0
- package/typechain-types/factories/IPVotingControllerStorage__factory.ts +107 -0
- package/typechain-types/factories/IPVotingController__factory.ts +124 -0
- package/typechain-types/factories/IPVotingEscrow__factory.ts +86 -0
- package/typechain-types/factories/MarketMathStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributorAbstract__factory.ts +183 -0
- package/typechain-types/factories/PendleFeeDistributorVotingFactory__factory.ts +213 -0
- package/typechain-types/factories/PendleFeeDistributorVoting__factory.ts +275 -0
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleMarket__factory.ts +26 -1
- package/typechain-types/factories/PendleSJoeSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +61 -13
- package/typechain-types/factories/RouterStatic__factory.ts +1 -1
- package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +192 -12
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +50 -7
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +54 -0
- package/typechain-types/index.ts +12 -0
- package/contracts/periphery/PendleGovernanceManager.sol +0 -38
- package/contracts/periphery/PermissionsV2Upg.sol +0 -29
- package/deployments/43113-markets/benqi-market-35237d.json +0 -8
- package/deployments/43113-markets/benqi-market-438DAA.json +0 -8
- package/deployments/43113-markets/benqi-market-590025.json +0 -8
- package/deployments/43113-markets/benqi-market-a45e40.json +0 -8
- package/deployments/43113-markets/benqi-market-c93916.json +0 -8
- package/deployments/80001-markets/benqi-market-3b8BD1.json +0 -8
- package/deployments/80001-markets/benqi-market-b61e7f.json +0 -8
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
|
|
3
|
+
pragma solidity >=0.7.6;
|
|
4
|
+
|
|
5
|
+
pragma abicoder v2;
|
|
6
|
+
|
|
7
|
+
interface IMultihopRouter {
|
|
8
|
+
enum DexType {
|
|
9
|
+
UNI,
|
|
10
|
+
STABLESWAP,
|
|
11
|
+
CURVE,
|
|
12
|
+
KYBERDMM,
|
|
13
|
+
SADDLE,
|
|
14
|
+
UNIV3PROMM,
|
|
15
|
+
BALANCERV2,
|
|
16
|
+
KYBERRFQ,
|
|
17
|
+
DODO,
|
|
18
|
+
VELODROME,
|
|
19
|
+
PLATYPUS
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
event Exchange(address pair, uint256 amountOut, address output);
|
|
23
|
+
struct Swap {
|
|
24
|
+
bytes data;
|
|
25
|
+
//dexType:
|
|
26
|
+
// 0: uni
|
|
27
|
+
// 1: stable swap
|
|
28
|
+
// 2: curve
|
|
29
|
+
// 3: kyber dmm
|
|
30
|
+
// 4: saddle
|
|
31
|
+
// 5: univ3 or kyber ProMM
|
|
32
|
+
// 6: balancerv2
|
|
33
|
+
// 7: kyber RFQ
|
|
34
|
+
// 8: dodo
|
|
35
|
+
// 9: velodrome
|
|
36
|
+
// 10: platypus
|
|
37
|
+
//dexId:
|
|
38
|
+
// 0: firebird
|
|
39
|
+
uint16 dexOption; //dexType(8bit) + dexId(8bit)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
struct UniSwap {
|
|
43
|
+
address pool;
|
|
44
|
+
address tokenIn;
|
|
45
|
+
address tokenOut;
|
|
46
|
+
address recipient;
|
|
47
|
+
uint256 collectAmount; // amount that should be transferred to the pool
|
|
48
|
+
uint256 limitReturnAmount;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
struct StableSwap {
|
|
52
|
+
address pool;
|
|
53
|
+
address tokenFrom;
|
|
54
|
+
address tokenTo;
|
|
55
|
+
uint8 tokenIndexFrom;
|
|
56
|
+
uint8 tokenIndexTo;
|
|
57
|
+
uint256 dx;
|
|
58
|
+
uint256 minDy;
|
|
59
|
+
uint256 poolLength;
|
|
60
|
+
address poolLp;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
struct CurveSwap {
|
|
64
|
+
address pool;
|
|
65
|
+
address tokenFrom;
|
|
66
|
+
address tokenTo;
|
|
67
|
+
int128 tokenIndexFrom;
|
|
68
|
+
int128 tokenIndexTo;
|
|
69
|
+
uint256 dx;
|
|
70
|
+
uint256 minDy;
|
|
71
|
+
bool usePoolUnderlying;
|
|
72
|
+
bool useTriCrypto;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
struct UniSwapV3ProMM {
|
|
76
|
+
address recipient;
|
|
77
|
+
address pool;
|
|
78
|
+
address tokenIn;
|
|
79
|
+
address tokenOut;
|
|
80
|
+
uint256 swapAmount;
|
|
81
|
+
uint256 limitReturnAmount;
|
|
82
|
+
uint160 sqrtPriceLimitX96;
|
|
83
|
+
bool isUniV3; // true = UniV3, false = ProMM
|
|
84
|
+
}
|
|
85
|
+
struct SwapCallbackData {
|
|
86
|
+
bytes path;
|
|
87
|
+
address payer;
|
|
88
|
+
}
|
|
89
|
+
struct SwapCallbackDataPath {
|
|
90
|
+
address pool;
|
|
91
|
+
address tokenIn;
|
|
92
|
+
address tokenOut;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
struct BalancerV2 {
|
|
96
|
+
address vault;
|
|
97
|
+
bytes32 poolId;
|
|
98
|
+
address assetIn;
|
|
99
|
+
address assetOut;
|
|
100
|
+
uint256 amount;
|
|
101
|
+
uint256 limit;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
struct KyberRFQ {
|
|
105
|
+
address rfq;
|
|
106
|
+
bytes order;
|
|
107
|
+
bytes signature;
|
|
108
|
+
uint256 amount;
|
|
109
|
+
address payable target;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
struct DODO {
|
|
113
|
+
address recipient;
|
|
114
|
+
address pool;
|
|
115
|
+
address tokenFrom;
|
|
116
|
+
address tokenTo;
|
|
117
|
+
uint256 amount;
|
|
118
|
+
uint256 minReceiveQuote;
|
|
119
|
+
address sellHelper;
|
|
120
|
+
bool isSellBase;
|
|
121
|
+
bool isVersion2;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function factory() external view returns (address);
|
|
125
|
+
|
|
126
|
+
function formula() external view returns (address);
|
|
127
|
+
|
|
128
|
+
function WETH() external view returns (address);
|
|
129
|
+
|
|
130
|
+
function multihopBatchSwapExactIn(
|
|
131
|
+
Swap[][] memory swapSequences,
|
|
132
|
+
address tokenIn,
|
|
133
|
+
address tokenOut,
|
|
134
|
+
uint256 minTotalAmountOut,
|
|
135
|
+
address to,
|
|
136
|
+
uint256 deadline,
|
|
137
|
+
bytes memory destTokenFeeData
|
|
138
|
+
) external payable returns (uint256 totalAmountOut);
|
|
139
|
+
}
|
|
@@ -26,6 +26,7 @@ import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
|
|
|
26
26
|
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
|
|
27
27
|
import "@openzeppelin/contracts/utils/Address.sol";
|
|
28
28
|
import "../helpers/TokenHelper.sol";
|
|
29
|
+
import "./AggregationRouterHelper.sol";
|
|
29
30
|
|
|
30
31
|
struct TokenInput {
|
|
31
32
|
address tokenIn;
|
|
@@ -53,9 +54,14 @@ abstract contract KyberSwapHelper is TokenHelper {
|
|
|
53
54
|
function _kyberswap(
|
|
54
55
|
address tokenIn,
|
|
55
56
|
uint256 amountIn,
|
|
56
|
-
bytes calldata
|
|
57
|
+
bytes calldata rawKybercall
|
|
57
58
|
) internal {
|
|
58
59
|
_safeApproveInf(tokenIn, kyberSwapRouter);
|
|
60
|
+
|
|
61
|
+
bytes memory kybercall = AggregationRouterHelper.getScaledInputData(
|
|
62
|
+
rawKybercall,
|
|
63
|
+
amountIn
|
|
64
|
+
);
|
|
59
65
|
kyberSwapRouter.functionCallWithValue(kybercall, tokenIn == NATIVE ? amountIn : 0);
|
|
60
66
|
}
|
|
61
67
|
}
|
|
@@ -4,12 +4,12 @@ pragma solidity 0.8.15;
|
|
|
4
4
|
import "../interfaces/IPYieldContractFactory.sol";
|
|
5
5
|
import "../interfaces/IPMarketFactory.sol";
|
|
6
6
|
import "./MarketMathStatic.sol";
|
|
7
|
-
import "@openzeppelin/contracts
|
|
8
|
-
import "@openzeppelin/contracts
|
|
9
|
-
import "
|
|
7
|
+
import "@openzeppelin/contracts/proxy/utils/Initializable.sol";
|
|
8
|
+
import "@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol";
|
|
9
|
+
import "../periphery/BoringOwnableUpgradeable.sol";
|
|
10
10
|
|
|
11
11
|
/// EXCLUDED FROM ALL AUDITS, TO BE CALLED ONLY BY PENDLE's SDK
|
|
12
|
-
contract RouterStatic is
|
|
12
|
+
contract RouterStatic is Initializable, BoringOwnableUpgradeable, UUPSUpgradeable {
|
|
13
13
|
using Math for uint256;
|
|
14
14
|
|
|
15
15
|
struct TokenAmount {
|
|
@@ -56,7 +56,7 @@ contract RouterStatic is OwnableUpgradeable, UUPSUpgradeable {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
function initialize() external initializer {
|
|
59
|
-
|
|
59
|
+
__BoringOwnable_init();
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
function getDefaultApproxParams() public pure returns (ApproxParams memory) {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
pragma solidity 0.8.15;
|
|
3
|
+
import "../libraries/helpers/SSTORE2Deployer.sol";
|
|
4
|
+
import "../periphery/BoringOwnableUpgradeable.sol";
|
|
5
|
+
|
|
6
|
+
contract SSTORE2DeployerContract is BoringOwnableUpgradeable {
|
|
7
|
+
event Deployed(string name, address addr);
|
|
8
|
+
|
|
9
|
+
constructor() {
|
|
10
|
+
__BoringOwnable_init();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function deploy(string memory name, bytes calldata creationCode)
|
|
14
|
+
external
|
|
15
|
+
onlyOwner
|
|
16
|
+
returns (address res)
|
|
17
|
+
{
|
|
18
|
+
res = SSTORE2Deployer.setCreationCode(creationCode);
|
|
19
|
+
emit Deployed(name, res);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// SPDX-License-Identifier: MIT
|
|
2
2
|
pragma solidity 0.8.15;
|
|
3
3
|
|
|
4
|
-
import "@openzeppelin/contracts
|
|
4
|
+
import "@openzeppelin/contracts/proxy/utils/Initializable.sol";
|
|
5
5
|
|
|
6
6
|
contract BoringOwnableUpgradeableData {
|
|
7
7
|
address public owner;
|
|
8
8
|
address public pendingOwner;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
contract BoringOwnableUpgradeable is BoringOwnableUpgradeableData, Initializable {
|
|
11
|
+
abstract contract BoringOwnableUpgradeable is BoringOwnableUpgradeableData, Initializable {
|
|
12
12
|
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
|
|
13
13
|
|
|
14
14
|
function __BoringOwnable_init() internal onlyInitializing {
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"deployer": "0x1FcCC097db89A86Bfc474A1028F93958295b1Fb7",
|
|
3
|
+
"sstore2": "0x00E8aAE633b426cb67614f432B4604C6fA2BF101",
|
|
3
4
|
"network": 43113,
|
|
4
5
|
"celerBus": "0xE9533976C590200E32d95C53f06AE12d292cFc47",
|
|
5
6
|
"treasury": "0xB4E292AD98Ba0D5531Ca573757f7b7d6c0C205d8",
|
|
6
7
|
"PENDLE": "0x83B694f9Ef84D22BECe87257f0cd4513737A505e",
|
|
7
|
-
"yieldContractFactory": "
|
|
8
|
-
"marketFactory": "
|
|
9
|
-
"router": "
|
|
10
|
-
"routerStatic": "
|
|
8
|
+
"yieldContractFactory": "0x2e5DF6e3DA5Ae730aC357Ca1b6a823A9B0EAFaC0",
|
|
9
|
+
"marketFactory": "0x3Ba006773B0cfd7f3549B2D4259524FCb3dCC8E2",
|
|
10
|
+
"router": "0x17C433893321F4457066045E1356e8E8B0C5F596",
|
|
11
|
+
"routerStatic": "0x8CC254DcaE3d01c4Aff79A396d94623E4D9dD2b1",
|
|
11
12
|
"startTime": 1657756800,
|
|
12
|
-
"vePendle": "
|
|
13
|
-
"votingController": "
|
|
14
|
-
"gaugeController": "
|
|
13
|
+
"vePendle": "0xdc6aFe3Aae143f73Abc84766E9c99f18fF3c5aAe",
|
|
14
|
+
"votingController": "0x7d9Bd862090337D572c50068b40E39F76b8dFE03",
|
|
15
|
+
"gaugeController": "0xcE19aEaBE9229F8070ADe311A2d3aAf4f6864B26"
|
|
15
16
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"symbol": "SCY-qiUSDC",
|
|
3
|
+
"SCY": "0xe41eebdC5124693cD9C18162D375590273a911Ed",
|
|
4
|
+
"expiry": 1675382400,
|
|
5
|
+
"PT": "0xF8F6ca86D40A8a9FFc0aC2D9F96a1A439b5535A8",
|
|
6
|
+
"YT": "0x924b41c12FE9b9DAA311E0e0B050C16538c70283",
|
|
7
|
+
"market": "0x485991210C8ec45644588EC1f4957d3d0aA0cE39"
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"symbol": "SCY-qiUSDC",
|
|
3
|
+
"SCY": "0xe41eebdC5124693cD9C18162D375590273a911Ed",
|
|
4
|
+
"expiry": 1663804800,
|
|
5
|
+
"PT": "0x549b110782B89bd40018c12BC1770Cc55e6a2267",
|
|
6
|
+
"YT": "0x80F8302a86775A810c2233e3AbE62990f7cc1051",
|
|
7
|
+
"market": "0x6b2CC53E2c08b9054D00a4a84bf22462a18A249f"
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"symbol": "SCY-qiWETH",
|
|
3
|
+
"SCY": "0x92A502318c1d77f3b2eFCb1BD8ee625Ad206A8d5",
|
|
4
|
+
"expiry": 1669852800,
|
|
5
|
+
"PT": "0x59E95f6f2191bc7dB730a3125cB76c3a4A35a835",
|
|
6
|
+
"YT": "0xf400888C27f134E8cd6313E33d10d2526dec8697",
|
|
7
|
+
"market": "0xbF23860F807Dbc7678Cf53be78D06A14A5c36D16"
|
|
8
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tokens": {
|
|
3
3
|
"fundKeeper": "0x45e03eB183962884d50eC0Af39B03970333426cb",
|
|
4
|
-
"faucet": "
|
|
4
|
+
"faucet": "0x6C881F2b27aB065c6b6fbDf1407f2895104D5856",
|
|
5
5
|
"WAVAX": "0xe43a7aD7C09d8fAE3ADe7361f0b847b23adD5094",
|
|
6
6
|
"DAI": "0xCd3748CE3Bf75A01D99Bf301668E0748558a592C",
|
|
7
7
|
"USDC": "0xc2A6b8d7d0FAB3749A6Bda84cEdb58D2d58f045e",
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
"celerBus": "0x7d43AABC515C356145049227CeE54B608342c0ad",
|
|
5
5
|
"treasury": "0x1fAd3Ce1c1aB563441d58b79e49cb0ebC12C1Bd5",
|
|
6
6
|
"PENDLE": "0x563f1e87a6a3Cb4A84F7D438fCF4882133e59d6d",
|
|
7
|
-
"yieldContractFactory": "
|
|
8
|
-
"marketFactory": "
|
|
7
|
+
"yieldContractFactory": "0x7Ff62939e06412eE0B2b0CB0682E9B29dEd23931",
|
|
8
|
+
"marketFactory": "0xE05082B184a34668CD8A904D85FA815802BBb04c",
|
|
9
9
|
"router": "0x124e2c48433aEe932B39D6aC897660be7A33B9D5",
|
|
10
10
|
"routerStatic": "0xE1c4749b480baA22B070230Aa07a7fCEd4Fdbf0F",
|
|
11
11
|
"startTime": 1657756800,
|
|
12
|
-
"vePendle": "
|
|
13
|
-
"gaugeController": "
|
|
12
|
+
"vePendle": "0xae3764a46934E2E32495bfA3B82d3E3Fdf51dF9F",
|
|
13
|
+
"gaugeController": "0xf10e6Ac14Bc19D944233C64434D158a0b318F1fB"
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@pendle/core-v2",
|
|
3
3
|
"description": "Core smart contracts of Pendle Protocol.",
|
|
4
4
|
"license": "BUSL-1.1",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.11.1-testnet",
|
|
6
6
|
"homepage": "https://pendle.finance",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"pendle",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@typechain/ethers-v5": "^9.0.0",
|
|
27
27
|
"@typechain/hardhat": "^4.0.0",
|
|
28
|
-
"hardhat": "^2.
|
|
28
|
+
"hardhat": "^2.11.0",
|
|
29
29
|
"hardhat-contract-sizer": "^2.6.1",
|
|
30
30
|
"hardhat-storage-layout-diff": "^0.0.4",
|
|
31
31
|
"prettier": "^2.7.1",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"solhint": "^3.3.7",
|
|
35
35
|
"ts-node": "^10.9.1",
|
|
36
36
|
"typechain": "^8.1.0",
|
|
37
|
-
"typescript": "^4.
|
|
37
|
+
"typescript": "^4.8.2"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"compile": "yarn hardhat compile",
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
},
|
|
45
45
|
"packageManager": "yarn@3.2.2",
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@openzeppelin/contracts": "^4.5.0"
|
|
48
|
-
"@openzeppelin/contracts-upgradeable": "^4.5.2"
|
|
47
|
+
"@openzeppelin/contracts": "^4.5.0"
|
|
49
48
|
}
|
|
50
49
|
}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
12
|
+
PopulatedTransaction,
|
|
13
|
+
Signer,
|
|
14
|
+
utils,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import { FunctionFragment, Result } from "@ethersproject/abi";
|
|
17
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
18
|
+
import type {
|
|
19
|
+
TypedEventFilter,
|
|
20
|
+
TypedEvent,
|
|
21
|
+
TypedListener,
|
|
22
|
+
OnEvent,
|
|
23
|
+
} from "./common";
|
|
24
|
+
|
|
25
|
+
export interface FeeDistributorAbstractInterface extends utils.Interface {
|
|
26
|
+
contractName: "FeeDistributorAbstract";
|
|
27
|
+
functions: {
|
|
28
|
+
"claimReward(address,address)": FunctionFragment;
|
|
29
|
+
"deployedEpoch()": FunctionFragment;
|
|
30
|
+
"fund(address,uint256,uint256)": FunctionFragment;
|
|
31
|
+
"incentivesForEpoch(uint256,address)": FunctionFragment;
|
|
32
|
+
"updateUserShare(address)": FunctionFragment;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
encodeFunctionData(
|
|
36
|
+
functionFragment: "claimReward",
|
|
37
|
+
values: [string, string]
|
|
38
|
+
): string;
|
|
39
|
+
encodeFunctionData(
|
|
40
|
+
functionFragment: "deployedEpoch",
|
|
41
|
+
values?: undefined
|
|
42
|
+
): string;
|
|
43
|
+
encodeFunctionData(
|
|
44
|
+
functionFragment: "fund",
|
|
45
|
+
values: [string, BigNumberish, BigNumberish]
|
|
46
|
+
): string;
|
|
47
|
+
encodeFunctionData(
|
|
48
|
+
functionFragment: "incentivesForEpoch",
|
|
49
|
+
values: [BigNumberish, string]
|
|
50
|
+
): string;
|
|
51
|
+
encodeFunctionData(
|
|
52
|
+
functionFragment: "updateUserShare",
|
|
53
|
+
values: [string]
|
|
54
|
+
): string;
|
|
55
|
+
|
|
56
|
+
decodeFunctionResult(
|
|
57
|
+
functionFragment: "claimReward",
|
|
58
|
+
data: BytesLike
|
|
59
|
+
): Result;
|
|
60
|
+
decodeFunctionResult(
|
|
61
|
+
functionFragment: "deployedEpoch",
|
|
62
|
+
data: BytesLike
|
|
63
|
+
): Result;
|
|
64
|
+
decodeFunctionResult(functionFragment: "fund", data: BytesLike): Result;
|
|
65
|
+
decodeFunctionResult(
|
|
66
|
+
functionFragment: "incentivesForEpoch",
|
|
67
|
+
data: BytesLike
|
|
68
|
+
): Result;
|
|
69
|
+
decodeFunctionResult(
|
|
70
|
+
functionFragment: "updateUserShare",
|
|
71
|
+
data: BytesLike
|
|
72
|
+
): Result;
|
|
73
|
+
|
|
74
|
+
events: {};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface FeeDistributorAbstract extends BaseContract {
|
|
78
|
+
contractName: "FeeDistributorAbstract";
|
|
79
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
80
|
+
attach(addressOrName: string): this;
|
|
81
|
+
deployed(): Promise<this>;
|
|
82
|
+
|
|
83
|
+
interface: FeeDistributorAbstractInterface;
|
|
84
|
+
|
|
85
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
86
|
+
event: TypedEventFilter<TEvent>,
|
|
87
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
88
|
+
toBlock?: string | number | undefined
|
|
89
|
+
): Promise<Array<TEvent>>;
|
|
90
|
+
|
|
91
|
+
listeners<TEvent extends TypedEvent>(
|
|
92
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
93
|
+
): Array<TypedListener<TEvent>>;
|
|
94
|
+
listeners(eventName?: string): Array<Listener>;
|
|
95
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
96
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
97
|
+
): this;
|
|
98
|
+
removeAllListeners(eventName?: string): this;
|
|
99
|
+
off: OnEvent<this>;
|
|
100
|
+
on: OnEvent<this>;
|
|
101
|
+
once: OnEvent<this>;
|
|
102
|
+
removeListener: OnEvent<this>;
|
|
103
|
+
|
|
104
|
+
functions: {
|
|
105
|
+
claimReward(
|
|
106
|
+
user: string,
|
|
107
|
+
rewardToken: string,
|
|
108
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
109
|
+
): Promise<ContractTransaction>;
|
|
110
|
+
|
|
111
|
+
deployedEpoch(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
112
|
+
|
|
113
|
+
fund(
|
|
114
|
+
rewardToken: string,
|
|
115
|
+
amount: BigNumberish,
|
|
116
|
+
numEpoch: BigNumberish,
|
|
117
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
118
|
+
): Promise<ContractTransaction>;
|
|
119
|
+
|
|
120
|
+
incentivesForEpoch(
|
|
121
|
+
arg0: BigNumberish,
|
|
122
|
+
arg1: string,
|
|
123
|
+
overrides?: CallOverrides
|
|
124
|
+
): Promise<[BigNumber]>;
|
|
125
|
+
|
|
126
|
+
updateUserShare(
|
|
127
|
+
user: string,
|
|
128
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
129
|
+
): Promise<ContractTransaction>;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
claimReward(
|
|
133
|
+
user: string,
|
|
134
|
+
rewardToken: string,
|
|
135
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
136
|
+
): Promise<ContractTransaction>;
|
|
137
|
+
|
|
138
|
+
deployedEpoch(overrides?: CallOverrides): Promise<BigNumber>;
|
|
139
|
+
|
|
140
|
+
fund(
|
|
141
|
+
rewardToken: string,
|
|
142
|
+
amount: BigNumberish,
|
|
143
|
+
numEpoch: BigNumberish,
|
|
144
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
145
|
+
): Promise<ContractTransaction>;
|
|
146
|
+
|
|
147
|
+
incentivesForEpoch(
|
|
148
|
+
arg0: BigNumberish,
|
|
149
|
+
arg1: string,
|
|
150
|
+
overrides?: CallOverrides
|
|
151
|
+
): Promise<BigNumber>;
|
|
152
|
+
|
|
153
|
+
updateUserShare(
|
|
154
|
+
user: string,
|
|
155
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
156
|
+
): Promise<ContractTransaction>;
|
|
157
|
+
|
|
158
|
+
callStatic: {
|
|
159
|
+
claimReward(
|
|
160
|
+
user: string,
|
|
161
|
+
rewardToken: string,
|
|
162
|
+
overrides?: CallOverrides
|
|
163
|
+
): Promise<BigNumber>;
|
|
164
|
+
|
|
165
|
+
deployedEpoch(overrides?: CallOverrides): Promise<BigNumber>;
|
|
166
|
+
|
|
167
|
+
fund(
|
|
168
|
+
rewardToken: string,
|
|
169
|
+
amount: BigNumberish,
|
|
170
|
+
numEpoch: BigNumberish,
|
|
171
|
+
overrides?: CallOverrides
|
|
172
|
+
): Promise<void>;
|
|
173
|
+
|
|
174
|
+
incentivesForEpoch(
|
|
175
|
+
arg0: BigNumberish,
|
|
176
|
+
arg1: string,
|
|
177
|
+
overrides?: CallOverrides
|
|
178
|
+
): Promise<BigNumber>;
|
|
179
|
+
|
|
180
|
+
updateUserShare(user: string, overrides?: CallOverrides): Promise<void>;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
filters: {};
|
|
184
|
+
|
|
185
|
+
estimateGas: {
|
|
186
|
+
claimReward(
|
|
187
|
+
user: string,
|
|
188
|
+
rewardToken: string,
|
|
189
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
190
|
+
): Promise<BigNumber>;
|
|
191
|
+
|
|
192
|
+
deployedEpoch(overrides?: CallOverrides): Promise<BigNumber>;
|
|
193
|
+
|
|
194
|
+
fund(
|
|
195
|
+
rewardToken: string,
|
|
196
|
+
amount: BigNumberish,
|
|
197
|
+
numEpoch: BigNumberish,
|
|
198
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
199
|
+
): Promise<BigNumber>;
|
|
200
|
+
|
|
201
|
+
incentivesForEpoch(
|
|
202
|
+
arg0: BigNumberish,
|
|
203
|
+
arg1: string,
|
|
204
|
+
overrides?: CallOverrides
|
|
205
|
+
): Promise<BigNumber>;
|
|
206
|
+
|
|
207
|
+
updateUserShare(
|
|
208
|
+
user: string,
|
|
209
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
210
|
+
): Promise<BigNumber>;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
populateTransaction: {
|
|
214
|
+
claimReward(
|
|
215
|
+
user: string,
|
|
216
|
+
rewardToken: string,
|
|
217
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
218
|
+
): Promise<PopulatedTransaction>;
|
|
219
|
+
|
|
220
|
+
deployedEpoch(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
221
|
+
|
|
222
|
+
fund(
|
|
223
|
+
rewardToken: string,
|
|
224
|
+
amount: BigNumberish,
|
|
225
|
+
numEpoch: BigNumberish,
|
|
226
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
227
|
+
): Promise<PopulatedTransaction>;
|
|
228
|
+
|
|
229
|
+
incentivesForEpoch(
|
|
230
|
+
arg0: BigNumberish,
|
|
231
|
+
arg1: string,
|
|
232
|
+
overrides?: CallOverrides
|
|
233
|
+
): Promise<PopulatedTransaction>;
|
|
234
|
+
|
|
235
|
+
updateUserShare(
|
|
236
|
+
user: string,
|
|
237
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
238
|
+
): Promise<PopulatedTransaction>;
|
|
239
|
+
};
|
|
240
|
+
}
|