@pendle/core-v2 0.12.2-testnet → 0.13.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/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +4 -0
- package/build/artifacts/contracts/{core/LiquidityMining → LiquidityMining}/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +3 -3
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +4 -0
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.json +48 -0
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +4 -0
- package/build/artifacts/contracts/{core/LiquidityMining → LiquidityMining}/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +3 -3
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +4 -0
- package/build/artifacts/contracts/{core/LiquidityMining → LiquidityMining}/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +4 -0
- package/build/artifacts/contracts/{core/LiquidityMining → LiquidityMining}/FeeDistributor/EpochResultManager.sol/EpochResultManager.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +4 -0
- package/build/artifacts/contracts/{core/LiquidityMining → LiquidityMining}/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +3 -3
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +4 -0
- package/build/artifacts/contracts/{core/LiquidityMining → LiquidityMining}/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +3 -3
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +4 -0
- package/build/artifacts/contracts/{core/LiquidityMining → LiquidityMining}/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +4 -0
- package/build/artifacts/contracts/{core/LiquidityMining → LiquidityMining}/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +3 -3
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +4 -0
- package/build/artifacts/contracts/{core/LiquidityMining → LiquidityMining}/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +3 -3
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +4 -0
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +1084 -0
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +4 -0
- package/build/artifacts/contracts/{core/LiquidityMining → LiquidityMining}/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +32 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +4 -0
- package/build/artifacts/contracts/{core/LiquidityMining → LiquidityMining}/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +3 -3
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +4 -0
- package/build/artifacts/contracts/{core/LiquidityMining → LiquidityMining}/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +3 -3
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +4 -0
- package/build/artifacts/contracts/{core/LiquidityMining → LiquidityMining}/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries → LiquidityMining/libraries}/VeBalanceLib.sol/VeBalanceLib.json +3 -3
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries → LiquidityMining/libraries}/VeHistoryLib.sol/CheckpointHelper.json +3 -3
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries → LiquidityMining/libraries}/VeHistoryLib.sol/Checkpoints.json +3 -3
- package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries/math → LiquidityMining/libraries}/WeekMath.sol/WeekMath.json +3 -3
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries/math → core/Market}/MarketMathCore.sol/MarketMathCore.json +3 -3
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries → core/Market}/OracleLib.sol/OracleLib.json +3 -3
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +4 -0
- package/build/artifacts/contracts/core/{LiquidityMining → Market}/PendleGauge.sol/PendleGauge.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 +4 -4
- 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/RewardManager/RewardManager.sol/RewardManager.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries → core/RewardManager}/RewardManager.sol/RewardManager.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries → core/RewardManager}/RewardManagerAbstract.sol/RewardManagerAbstract.json +1 -1
- package/build/artifacts/contracts/core/SuperComposableYield/PYIndex.sol/PYIndexLib.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries/helpers → core/SuperComposableYield}/PYIndex.sol/PYIndexLib.json +3 -3
- package/build/artifacts/contracts/core/SuperComposableYield/SCYBase.sol/SCYBase.dbg.json +4 -0
- package/build/artifacts/contracts/{SuperComposableYield/base-implementations → core/SuperComposableYield}/SCYBase.sol/SCYBase.json +1 -1
- package/build/artifacts/contracts/core/SuperComposableYield/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +4 -0
- package/build/artifacts/contracts/{SuperComposableYield/base-implementations → core/SuperComposableYield}/SCYBaseWithRewards.sol/SCYBaseWithRewards.json +1 -1
- package/build/artifacts/contracts/core/SuperComposableYield/SCYUtils.sol/SCYUtils.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries/SCY → core/SuperComposableYield}/SCYUtils.sol/SCYUtils.json +3 -3
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +4 -0
- package/build/artifacts/contracts/{SuperComposableYield/SCY-implementations → core/SuperComposableYield/implementations}/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +3 -3
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +4 -0
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.json +1007 -0
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol/Pendle3CrvAndTokenSCY.dbg.json +4 -0
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol/Pendle3CrvAndTokenSCY.json +1030 -0
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol/PendleConvexCurveLP2PoolSCY.dbg.json +4 -0
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol/PendleConvexCurveLP2PoolSCY.json +1025 -0
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol/PendleConvexCurveLPSCY.dbg.json +4 -0
- package/build/artifacts/contracts/{SuperComposableYield/SCY-implementations → core/SuperComposableYield/implementations}/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol/PendleConvexCurveLPSCY.json +1 -1
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.dbg.json +4 -0
- package/build/artifacts/contracts/{SuperComposableYield/SCY-implementations → core/SuperComposableYield/implementations}/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.json +3 -3
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +4 -0
- package/build/artifacts/contracts/core/SuperComposableYield/implementations/PendleWstEthSCY.sol/PendleWstEthSCY.json +851 -0
- 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/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
- package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +4 -0
- package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.json +254 -0
- package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +4 -0
- package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.json +329 -0
- package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries/helpers → core/libraries}/ArrayLib.sol/ArrayLib.json +3 -3
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries/helpers → core/libraries}/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.json +3 -3
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries/helpers → core/libraries}/BaseSplitCodeFactory.sol/CodeDeployer.json +3 -3
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +4 -0
- package/build/artifacts/contracts/{periphery → core/libraries}/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +4 -0
- package/build/artifacts/contracts/{periphery → core/libraries}/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.json +3 -3
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries → core/libraries}/Errors.sol/Errors.json +9 -4
- package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries/helpers → core/libraries}/ExpiryUtilsLib.sol/ExpiryUtils.json +3 -3
- package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries/helpers → core/libraries}/MiniHelpers.sol/MiniHelpers.json +3 -3
- package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries/helpers → core/libraries}/TokenHelper.sol/TokenHelper.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries → core/libraries}/math/LogExpMath.sol/LogExpMath.json +3 -3
- package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries → core/libraries}/math/Math.sol/Math.json +3 -3
- package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.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/IBoringOwnableUpgradeable.sol/IBoringOwnableUpgradeable.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/IPActionSwapPTYT.sol/IPActionSwapPTYT.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 +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.dbg.json +1 -1
- 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/IPGovernanceManager.sol/IPGovernanceManager.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/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.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 +31 -0
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
- 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/IREDACTEDStaking.sol/IREDACTEDStaking.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/IWXBTRFLY.sol/IWXBTRFLY.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/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/ImplicitSwapfeeContract.sol/ImplicitSwapfeeContract.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/ImplicitSwapfeeContract.sol/ImplicitSwapfeeContract.json +190 -0
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +8 -3
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +60 -89
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +4 -0
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +1237 -0
- package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +4 -0
- package/build/artifacts/contracts/{core/actions → router}/ActionCallback.sol/ActionCallback.json +3 -3
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +4 -0
- package/build/artifacts/contracts/{core/actions → router}/ActionMintRedeem.sol/ActionMintRedeem.json +5 -5
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +4 -0
- package/build/artifacts/contracts/{core/actions → router}/ActionMisc.sol/ActionMisc.json +3 -3
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +4 -0
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +698 -0
- package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +4 -0
- package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +317 -0
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +4 -0
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +645 -0
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +4 -0
- package/build/artifacts/contracts/{core → router}/PendleRouter.sol/PendleRouter.json +3 -3
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +4 -0
- package/build/artifacts/contracts/{core/actions → router}/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.json +1 -1
- package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +4 -0
- package/build/artifacts/contracts/{core/actions → router}/base/CallbackHelper.sol/CallbackHelper.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries/math → router/base}/MarketApproxLib.sol/MarketApproxPtInLib.json +3 -3
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries/math → router/base}/MarketApproxLib.sol/MarketApproxPtOutLib.json +3 -3
- package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +4 -0
- package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +35 -0
- package/build/artifacts/contracts/router/kyberswap/IMultihopRouter.sol/IMultihopRouter.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries → router}/kyberswap/IMultihopRouter.sol/IMultihopRouter.json +1 -1
- package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +4 -0
- package/build/artifacts/contracts/{libraries → router}/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.json +1 -1
- package/contracts/{core/LiquidityMining → LiquidityMining}/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol +6 -6
- package/contracts/{core/LiquidityMining → LiquidityMining}/CrossChainMsg/PendleMsgReceiverAppUpg.sol +5 -5
- package/contracts/{core/LiquidityMining → LiquidityMining}/CrossChainMsg/PendleMsgSendEndpointUpg.sol +5 -5
- package/contracts/{core/LiquidityMining → LiquidityMining}/CrossChainMsg/PendleMsgSenderAppUpg.sol +4 -4
- package/contracts/{core/LiquidityMining → LiquidityMining}/FeeDistributor/EpochResultManager.sol +7 -7
- package/contracts/{core/LiquidityMining → LiquidityMining}/FeeDistributor/PendleFeeDistributor.sol +14 -11
- package/contracts/{core/LiquidityMining → LiquidityMining}/FeeDistributor/PendleFeeDistributorFactory.sol +6 -4
- package/contracts/{core/LiquidityMining → LiquidityMining}/GaugeController/PendleGaugeControllerBaseUpg.sol +14 -11
- package/contracts/{core/LiquidityMining → LiquidityMining}/GaugeController/PendleGaugeControllerMainchainUpg.sol +2 -2
- package/contracts/{core/LiquidityMining → LiquidityMining}/GaugeController/PendleGaugeControllerSidechainUpg.sol +1 -1
- package/contracts/{core/LiquidityMining → LiquidityMining}/README.md +0 -0
- package/contracts/{core/LiquidityMining → LiquidityMining}/VotingController/PendleVotingControllerUpg.sol +6 -5
- package/contracts/{core/LiquidityMining → LiquidityMining}/VotingController/VotingControllerStorageUpg.sol +16 -12
- package/contracts/{core/LiquidityMining → LiquidityMining}/VotingEscrow/VotingEscrowPendleMainchain.sol +11 -7
- package/contracts/{core/LiquidityMining → LiquidityMining}/VotingEscrow/VotingEscrowPendleSidechain.sol +9 -4
- package/contracts/{core/LiquidityMining → LiquidityMining}/VotingEscrow/VotingEscrowTokenBase.sol +9 -7
- package/contracts/{libraries → LiquidityMining/libraries}/VeBalanceLib.sol +3 -3
- package/contracts/{libraries → LiquidityMining/libraries}/VeHistoryLib.sol +2 -2
- package/contracts/{libraries/math → LiquidityMining/libraries}/WeekMath.sol +2 -2
- package/contracts/{libraries/math → core/Market}/MarketMathCore.sol +17 -19
- package/contracts/{libraries → core/Market}/OracleLib.sol +2 -2
- package/contracts/core/{LiquidityMining → Market}/PendleGauge.sol +4 -6
- package/contracts/core/Market/PendleMarket.sol +4 -12
- package/contracts/core/Market/PendleMarketFactory.sol +5 -5
- package/contracts/{libraries → core/RewardManager}/RewardManager.sol +2 -4
- package/contracts/{libraries → core/RewardManager}/RewardManagerAbstract.sol +9 -4
- package/contracts/{libraries/helpers → core/SuperComposableYield}/PYIndex.sol +4 -3
- package/contracts/{SuperComposableYield/base-implementations → core/SuperComposableYield}/SCYBase.sol +11 -8
- package/contracts/{SuperComposableYield/base-implementations → core/SuperComposableYield}/SCYBaseWithRewards.sol +5 -4
- package/contracts/{libraries/SCY → core/SuperComposableYield}/SCYUtils.sol +1 -1
- package/contracts/{SuperComposableYield/SCY-implementations → core/SuperComposableYield/implementations}/BenQi/PendleQiTokenHelper.sol +2 -2
- package/contracts/{SuperComposableYield/SCY-implementations → core/SuperComposableYield/implementations}/BenQi/PendleQiTokenSCY.sol +6 -6
- package/contracts/{SuperComposableYield/SCY-implementations → core/SuperComposableYield/implementations}/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol +2 -2
- package/contracts/{SuperComposableYield/SCY-implementations → core/SuperComposableYield/implementations}/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol +1 -1
- package/contracts/{SuperComposableYield/SCY-implementations → core/SuperComposableYield/implementations}/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol +5 -5
- package/contracts/{SuperComposableYield/SCY-implementations → core/SuperComposableYield/implementations}/Convex/Pendle3CrvHelper.sol +2 -2
- package/contracts/{SuperComposableYield/SCY-implementations → core/SuperComposableYield/implementations}/PendleWstEthSCY.sol +6 -5
- package/contracts/core/YieldContracts/InterestManagerYT.sol +5 -5
- package/contracts/core/YieldContracts/PendlePrincipalToken.sol +6 -4
- package/contracts/core/YieldContracts/PendleYieldContractFactory.sol +6 -7
- package/contracts/core/YieldContracts/PendleYieldToken.sol +11 -10
- package/contracts/core/{PendleERC20.sol → erc20/PendleERC20.sol} +0 -0
- package/contracts/core/{PendleERC20Permit.sol → erc20/PendleERC20Permit.sol} +0 -0
- package/contracts/{libraries/helpers → core/libraries}/ArrayLib.sol +0 -0
- package/contracts/{libraries/helpers → core/libraries}/BaseSplitCodeFactory.sol +1 -1
- package/contracts/{periphery → core/libraries}/BoringOwnableUpgradeable.sol +1 -1
- package/contracts/{libraries → core/libraries}/Errors.sol +2 -2
- package/contracts/{libraries/helpers → core/libraries}/ExpiryUtilsLib.sol +1 -1
- package/contracts/{libraries/helpers → core/libraries}/MiniHelpers.sol +1 -1
- package/contracts/{libraries/helpers → core/libraries}/TokenHelper.sol +1 -16
- package/contracts/{libraries → core/libraries}/math/LogExpMath.sol +1 -1
- package/contracts/{libraries → core/libraries}/math/Math.sol +2 -2
- package/contracts/deployments/43113-core.json +16 -0
- package/contracts/deployments/43113-helper.json +3 -0
- package/contracts/deployments/43113-markets/benqi-market-QI-USDC-FEB-2ND.json +8 -0
- package/contracts/deployments/43113-markets/benqi-market-QI-WETH-DEC-1ST.json +8 -0
- package/{deployments → contracts/deployments}/43113-testenv.json +0 -0
- package/contracts/deployments/80001-core.json +15 -0
- package/contracts/deployments/80001-markets/benqi-market-QI-USDC-FEB-2ND.json +8 -0
- package/contracts/deployments/80001-markets/benqi-market-QI-WETH-DEC-1ST.json +8 -0
- package/{deployments → contracts/deployments}/80001-testenv.json +0 -0
- package/contracts/interfaces/ConvexCurve/IBooster.sol +1 -1
- package/contracts/interfaces/ConvexCurve/ICrvDepositor.sol +1 -1
- package/contracts/interfaces/ConvexCurve/ICvxCrv.sol +1 -1
- package/contracts/interfaces/ConvexCurve/IRewards.sol +1 -1
- package/contracts/interfaces/Curve/ICrvPool.sol +1 -1
- package/contracts/interfaces/IAToken.sol +1 -1
- package/contracts/interfaces/IAavePool.sol +1 -1
- package/contracts/interfaces/IAaveRewardsController.sol +1 -1
- package/contracts/interfaces/IBenQiComptroller.sol +1 -1
- package/contracts/interfaces/IBenQiInterestRateModel.sol +1 -1
- package/contracts/interfaces/IBoringOwnableUpgradeable.sol +1 -1
- package/contracts/interfaces/IERC4626.sol +1 -1
- package/contracts/interfaces/IEulerEToken.sol +1 -1
- package/contracts/interfaces/IEulerMarkets.sol +1 -1
- package/contracts/interfaces/IPActionAddRemoveLiq.sol +3 -3
- package/contracts/interfaces/IPActionMintRedeem.sol +3 -3
- package/contracts/interfaces/IPActionMisc.sol +1 -1
- package/contracts/interfaces/IPActionSwapPT.sol +3 -3
- package/contracts/interfaces/IPActionSwapPTYT.sol +3 -3
- package/contracts/interfaces/IPActionSwapYT.sol +3 -3
- package/contracts/interfaces/IPAllAction.sol +1 -1
- package/contracts/interfaces/IPFeeDistributor.sol +1 -1
- package/contracts/interfaces/IPFeeDistributorFactory.sol +1 -1
- package/contracts/interfaces/IPGauge.sol +1 -1
- package/contracts/interfaces/IPGaugeController.sol +1 -1
- package/contracts/interfaces/IPGaugeControllerMainchain.sol +1 -1
- package/contracts/interfaces/IPGovernanceManager.sol +1 -1
- package/contracts/interfaces/IPInterestManagerYT.sol +1 -1
- package/contracts/interfaces/IPMarket.sol +2 -2
- package/contracts/interfaces/IPMarketFactory.sol +1 -1
- package/contracts/interfaces/IPMarketSwapCallback.sol +1 -1
- package/contracts/interfaces/IPPermissionsV2Upg.sol +1 -1
- package/contracts/interfaces/IPPrincipalToken.sol +1 -1
- package/contracts/interfaces/IPVeToken.sol +1 -1
- package/contracts/interfaces/IPVotingController.sol +5 -3
- package/contracts/interfaces/IPVotingEscrowMainchain.sol +3 -3
- package/contracts/interfaces/IPYieldContractFactory.sol +1 -1
- package/contracts/interfaces/IPYieldToken.sol +1 -1
- package/contracts/interfaces/IQiAvax.sol +1 -1
- package/contracts/interfaces/IQiErc20.sol +1 -1
- package/contracts/interfaces/IQiToken.sol +1 -1
- package/contracts/interfaces/IREDACTEDStaking.sol +1 -1
- package/contracts/interfaces/IRewardManager.sol +1 -1
- package/contracts/interfaces/ISAvax.sol +1 -1
- package/contracts/interfaces/ISJoe.sol +1 -1
- package/contracts/interfaces/IStETH.sol +1 -1
- package/contracts/interfaces/IStargateLPStaking.sol +1 -1
- package/contracts/interfaces/IStargatePool.sol +1 -1
- package/contracts/interfaces/IStargateRouter.sol +1 -1
- package/contracts/interfaces/ISuperComposableYield.sol +1 -1
- package/contracts/interfaces/IWAvax.sol +1 -1
- package/contracts/interfaces/IWETH.sol +1 -1
- package/contracts/interfaces/IWXBTRFLY.sol +1 -1
- package/contracts/interfaces/IWstETH.sol +1 -1
- package/contracts/interfaces/IYearnVault.sol +1 -1
- package/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol +4 -3
- package/contracts/offchain-helpers/ImplicitSwapfeeContract.sol +26 -0
- package/contracts/offchain-helpers/MarketMathStatic.sol +7 -7
- package/contracts/offchain-helpers/RouterStatic.sol +7 -14
- package/contracts/{core/actions → router}/ActionAddRemoveLiq.sol +5 -5
- package/contracts/{core/actions → router}/ActionCallback.sol +7 -7
- package/contracts/{core/actions → router}/ActionMintRedeem.sol +4 -4
- package/contracts/{core/actions → router}/ActionMisc.sol +4 -4
- package/contracts/{core/actions → router}/ActionSwapPT.sol +5 -5
- package/contracts/{core/actions → router}/ActionSwapPTYT.sol +5 -5
- package/contracts/{core/actions → router}/ActionSwapYT.sol +5 -5
- package/contracts/{core → router}/PendleRouter.sol +3 -3
- package/contracts/{core/actions → router}/base/ActionBaseMintRedeem.sol +6 -6
- package/contracts/{core/actions → router}/base/CallbackHelper.sol +1 -1
- package/contracts/{libraries/math → router/base}/MarketApproxLib.sol +180 -219
- package/contracts/{libraries → router}/kyberswap/AggregationRouterHelper.sol +1 -1
- package/contracts/{libraries → router}/kyberswap/IMultihopRouter.sol +0 -0
- package/contracts/{libraries → router}/kyberswap/KyberSwapHelper.sol +3 -4
- package/package.json +4 -4
- package/typechain-types/IPVotingController.ts +18 -0
- package/typechain-types/ImplicitSwapfeeContract.ts +157 -0
- package/typechain-types/PendleMsgReceiverAppUpg.ts +3 -128
- package/typechain-types/PendleVotingControllerUpg.ts +18 -0
- package/typechain-types/RouterStatic.ts +0 -45
- package/typechain-types/VotingControllerStorageUpg.ts +18 -0
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +10 -5
- package/typechain-types/factories/ActionCallback__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeem__factory.ts +4 -4
- package/typechain-types/factories/ActionMisc__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPTYT__factory.ts +7 -2
- package/typechain-types/factories/ActionSwapPT__factory.ts +10 -5
- package/typechain-types/factories/ActionSwapYT__factory.ts +10 -5
- package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
- package/typechain-types/factories/BaseSplitCodeFactoryContract__factory.ts +1 -1
- package/typechain-types/factories/BaseSplitCodeFactory__factory.ts +1 -1
- package/typechain-types/factories/BoringOwnableUpgradeableData__factory.ts +1 -1
- package/typechain-types/factories/ERC20__factory.ts +1 -1
- package/typechain-types/factories/Errors__factory.ts +7 -2
- package/typechain-types/factories/IPVotingController__factory.ts +31 -0
- package/typechain-types/factories/ImplicitSwapfeeContract__factory.ts +247 -0
- package/typechain-types/factories/MarketMathStatic__factory.ts +7 -2
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/Pendle3CrvAndTokenSCY__factory.ts +1 -1
- package/typechain-types/factories/Pendle3CrvHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleConvexCurveLP2PoolSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleERC20Permit__factory.ts +1 -1
- package/typechain-types/factories/PendleERC20__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributorFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
- 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 +4 -4
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgReceiverAppUpg__factory.ts +0 -75
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +32 -1
- package/typechain-types/factories/PendleWstEthSCY__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/RouterStatic__factory.ts +1 -30
- package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +31 -0
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +241 -232
- package/typechain-types/index.ts +92 -90
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.json +0 -1007
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol/Pendle3CrvAndTokenSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/Pendle3CrvAndTokenSCY.sol/Pendle3CrvAndTokenSCY.json +0 -1030
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol/PendleConvexCurveLP2PoolSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLP2PoolSCY.sol/PendleConvexCurveLP2PoolSCY.json +0 -1025
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/ConvexCurveLP/PendleConvexCurveLPSCY.sol/PendleConvexCurveLPSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/Convex/Pendle3CrvHelper.sol/Pendle3CrvHelper.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.json +0 -851
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.json +0 -123
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/PendleGauge.sol/PendleGauge.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +0 -1053
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +0 -4
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleERC20.sol/PendleERC20.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleERC20.sol/PendleERC20.json +0 -254
- package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.json +0 -329
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +0 -1232
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/ActionMisc.sol/ActionMisc.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/ActionSwapPT.sol/ActionSwapPT.json +0 -693
- package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/ActionSwapPTYT.sol/ActionSwapPTYT.json +0 -312
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/ActionSwapYT.sol/ActionSwapYT.json +0 -640
- package/build/artifacts/contracts/core/actions/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/Errors.sol/Errors.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/OracleLib.sol/OracleLib.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/RewardManager.sol/RewardManager.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/SCY/SCYUtils.sol/SCYUtils.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/helpers/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/helpers/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/helpers/MiniHelpers.sol/MiniHelpers.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/helpers/PYIndex.sol/PYIndexLib.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +0 -35
- package/build/artifacts/contracts/libraries/kyberswap/IMultihopRouter.sol/IMultihopRouter.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +0 -4
- package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +0 -4
- package/build/artifacts/contracts/periphery/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +0 -4
- package/deployments/43113-core.json +0 -16
- package/deployments/43113-markets/benqi-market-QI-USDC-FEB-2ND.json +0 -8
- package/deployments/43113-markets/benqi-market-QI-WETH-DEC-1ST.json +0 -8
- package/deployments/80001-core.json +0 -15
- package/deployments/80001-markets/benqi-market-QI-USDC-FEB-2ND.json +0 -8
- package/deployments/80001-markets/benqi-market-QI-WETH-DEC-1ST.json +0 -8
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
3
|
-
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
|
+
|
|
4
|
+
import "../../interfaces/IPVeToken.sol";
|
|
5
|
+
import "../../interfaces/IPVotingController.sol";
|
|
6
|
+
|
|
7
|
+
import "../libraries/VeBalanceLib.sol";
|
|
8
|
+
import "../libraries/WeekMath.sol";
|
|
9
|
+
import "../libraries/VeHistoryLib.sol";
|
|
10
|
+
|
|
11
|
+
import "../../core/libraries/MiniHelpers.sol";
|
|
12
|
+
import "../../core/libraries/Errors.sol";
|
|
13
|
+
|
|
11
14
|
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
|
|
12
15
|
|
|
13
16
|
/// This contract is upgradable because
|
|
@@ -46,12 +49,12 @@ abstract contract VotingControllerStorageUpg is IPVotingController {
|
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
uint128 public constant MAX_LOCK_TIME = 104 weeks;
|
|
49
|
-
uint128 public constant WEEK = 1
|
|
52
|
+
uint128 public constant WEEK = 1 weeks;
|
|
50
53
|
uint128 public constant GOVERNANCE_PENDLE_VOTE = 10**24;
|
|
51
54
|
|
|
52
55
|
IPVeToken public immutable vePendle;
|
|
53
56
|
|
|
54
|
-
uint128 public
|
|
57
|
+
uint128 public deployedWTime;
|
|
55
58
|
|
|
56
59
|
uint128 public pendlePerSec;
|
|
57
60
|
|
|
@@ -78,7 +81,6 @@ abstract contract VotingControllerStorageUpg is IPVotingController {
|
|
|
78
81
|
|
|
79
82
|
constructor(address _vePendle) {
|
|
80
83
|
vePendle = IPVeToken(_vePendle);
|
|
81
|
-
deployedWTime = WeekMath.getCurrentWeekStart();
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
/*///////////////////////////////////////////////////////////////
|
|
@@ -242,6 +244,7 @@ abstract contract VotingControllerStorageUpg is IPVotingController {
|
|
|
242
244
|
) internal {
|
|
243
245
|
poolData[pool].totalVote = vote;
|
|
244
246
|
poolData[pool].lastSlopeChangeAppliedAt = wTime;
|
|
247
|
+
emit PoolVoteChange(pool, vote);
|
|
245
248
|
}
|
|
246
249
|
|
|
247
250
|
function _modifyVoteWeight(
|
|
@@ -279,6 +282,7 @@ abstract contract VotingControllerStorageUpg is IPVotingController {
|
|
|
279
282
|
}
|
|
280
283
|
|
|
281
284
|
userPoolHistory[user][pool].push(newVote);
|
|
285
|
+
emit PoolVoteChange(pool, pData.totalVote);
|
|
282
286
|
}
|
|
283
287
|
|
|
284
288
|
function _setAllPastEpochsAsFinalized() internal {
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
3
|
-
import "../../../interfaces/IPVotingEscrowMainchain.sol";
|
|
4
|
-
import "../../../libraries/helpers/MiniHelpers.sol";
|
|
5
|
-
import "./VotingEscrowTokenBase.sol";
|
|
6
|
-
import "../CrossChainMsg/PendleMsgSenderAppUpg.sol";
|
|
7
|
-
import "../../../libraries/VeHistoryLib.sol";
|
|
8
|
-
import "../../../libraries/Errors.sol";
|
|
2
|
+
pragma solidity 0.8.17;
|
|
9
3
|
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
|
|
10
4
|
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
|
|
11
5
|
|
|
6
|
+
import "../../interfaces/IPVotingEscrowMainchain.sol";
|
|
7
|
+
|
|
8
|
+
import "../libraries/VeHistoryLib.sol";
|
|
9
|
+
|
|
10
|
+
import "../../core/libraries/MiniHelpers.sol";
|
|
11
|
+
import "../../core/libraries/Errors.sol";
|
|
12
|
+
|
|
13
|
+
import "./VotingEscrowTokenBase.sol";
|
|
14
|
+
import "../CrossChainMsg/PendleMsgSenderAppUpg.sol";
|
|
15
|
+
|
|
12
16
|
contract VotingEscrowPendleMainchain is
|
|
13
17
|
VotingEscrowTokenBase,
|
|
14
18
|
IPVotingEscrowMainchain,
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
2
|
|
|
3
|
-
pragma solidity 0.8.
|
|
3
|
+
pragma solidity 0.8.17;
|
|
4
|
+
|
|
5
|
+
import "../libraries/VeBalanceLib.sol";
|
|
6
|
+
import "../libraries/WeekMath.sol";
|
|
4
7
|
|
|
5
|
-
import "../../../libraries/VeBalanceLib.sol";
|
|
6
|
-
import "../../../libraries/math/WeekMath.sol";
|
|
7
8
|
import "./VotingEscrowTokenBase.sol";
|
|
8
9
|
import "../CrossChainMsg/PendleMsgReceiverAppUpg.sol";
|
|
9
10
|
|
|
10
11
|
// solhint-disable no-empty-blocks
|
|
11
|
-
contract VotingEscrowPendleSidechain is
|
|
12
|
+
contract VotingEscrowPendleSidechain is
|
|
13
|
+
VotingEscrowTokenBase,
|
|
14
|
+
PendleMsgReceiverAppUpg,
|
|
15
|
+
BoringOwnableUpgradeable
|
|
16
|
+
{
|
|
12
17
|
mapping(address => address) internal delegatorOf;
|
|
13
18
|
|
|
14
19
|
event SetNewDelegator(address delegator, address receiver);
|
package/contracts/{core/LiquidityMining → LiquidityMining}/VotingEscrow/VotingEscrowTokenBase.sol
RENAMED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
3
|
|
|
4
|
-
import "
|
|
5
|
-
|
|
6
|
-
import "
|
|
7
|
-
|
|
4
|
+
import "../../interfaces/IPVeToken.sol";
|
|
5
|
+
|
|
6
|
+
import "../../core/libraries/MiniHelpers.sol";
|
|
7
|
+
|
|
8
|
+
import "../libraries/VeBalanceLib.sol";
|
|
9
|
+
import "../libraries/WeekMath.sol";
|
|
8
10
|
|
|
9
11
|
/**
|
|
10
12
|
* @dev this contract is an abstract for its mainchain and sidechain variant
|
|
@@ -23,9 +25,9 @@ abstract contract VotingEscrowTokenBase is IPVeToken {
|
|
|
23
25
|
using VeBalanceLib for VeBalance;
|
|
24
26
|
using VeBalanceLib for LockedPosition;
|
|
25
27
|
|
|
26
|
-
uint128 public constant WEEK = 1
|
|
28
|
+
uint128 public constant WEEK = 1 weeks;
|
|
27
29
|
uint128 public constant MAX_LOCK_TIME = 104 weeks;
|
|
28
|
-
uint128 public constant MIN_LOCK_TIME = 1
|
|
30
|
+
uint128 public constant MIN_LOCK_TIME = 1 weeks;
|
|
29
31
|
|
|
30
32
|
VeBalance internal _totalSupply;
|
|
31
33
|
uint128 public lastSlopeChangeAppliedAt;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
3
|
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
4
|
+
import "../../core/libraries/math/Math.sol";
|
|
5
|
+
import "../../core/libraries/Errors.sol";
|
|
6
6
|
|
|
7
7
|
struct VeBalance {
|
|
8
8
|
uint128 bias;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// Forked from OpenZeppelin (v4.5.0) (utils/Checkpoints.sol)
|
|
3
3
|
pragma solidity ^0.8.0;
|
|
4
4
|
|
|
5
|
-
import "
|
|
5
|
+
import "../../core/libraries/math/Math.sol";
|
|
6
6
|
import "./VeBalanceLib.sol";
|
|
7
|
-
import "./
|
|
7
|
+
import "./WeekMath.sol";
|
|
8
8
|
|
|
9
9
|
struct Checkpoint {
|
|
10
10
|
uint128 timestamp;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
2
|
|
|
3
|
-
pragma solidity 0.8.
|
|
3
|
+
pragma solidity 0.8.17;
|
|
4
4
|
|
|
5
5
|
library WeekMath {
|
|
6
|
-
uint128 internal constant WEEK =
|
|
6
|
+
uint128 internal constant WEEK = 7 days;
|
|
7
7
|
|
|
8
8
|
function getWeekStartTimestamp(uint128 timestamp) internal pure returns (uint128) {
|
|
9
9
|
return (timestamp / WEEK) * WEEK;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
3
|
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
4
|
+
import "../libraries/math/Math.sol";
|
|
5
|
+
import "../libraries/math/LogExpMath.sol";
|
|
6
|
+
|
|
7
|
+
import "../SuperComposableYield/PYIndex.sol";
|
|
8
|
+
import "../libraries/MiniHelpers.sol";
|
|
9
|
+
import "../libraries/Errors.sol";
|
|
9
10
|
|
|
10
11
|
struct MarketState {
|
|
11
12
|
int256 totalPt;
|
|
@@ -227,16 +228,7 @@ library MarketMathCore {
|
|
|
227
228
|
/// ------------------------------------------------------------
|
|
228
229
|
MarketPreCompute memory comp = getMarketPreCompute(market, index, blockTime);
|
|
229
230
|
|
|
230
|
-
(
|
|
231
|
-
market,
|
|
232
|
-
comp,
|
|
233
|
-
netPtToAccount
|
|
234
|
-
);
|
|
235
|
-
|
|
236
|
-
netScyToAccount = netAssetToAccount < 0
|
|
237
|
-
? index.assetToScyUp(netAssetToAccount)
|
|
238
|
-
: index.assetToScy(netAssetToAccount);
|
|
239
|
-
netScyToReserve = index.assetToScy(netAssetToReserve);
|
|
231
|
+
(netScyToAccount, netScyToReserve) = calcTrade(market, comp, index, netPtToAccount);
|
|
240
232
|
|
|
241
233
|
/// ------------------------------------------------------------
|
|
242
234
|
/// WRITE
|
|
@@ -280,8 +272,9 @@ library MarketMathCore {
|
|
|
280
272
|
function calcTrade(
|
|
281
273
|
MarketState memory market,
|
|
282
274
|
MarketPreCompute memory comp,
|
|
275
|
+
PYIndex index,
|
|
283
276
|
int256 netPtToAccount
|
|
284
|
-
) internal pure returns (int256
|
|
277
|
+
) internal pure returns (int256 netScyToAccount, int256 netScyToReserve) {
|
|
285
278
|
int256 preFeeExchangeRate = _getExchangeRate(
|
|
286
279
|
market.totalPt,
|
|
287
280
|
comp.totalAsset,
|
|
@@ -303,8 +296,13 @@ library MarketMathCore {
|
|
|
303
296
|
fee = ((preFeeAssetToAccount * (Math.IONE - fee)) / fee).neg();
|
|
304
297
|
}
|
|
305
298
|
|
|
306
|
-
netAssetToReserve = (fee * market.reserveFeePercent.Int()) / PERCENTAGE_DECIMALS;
|
|
307
|
-
netAssetToAccount = preFeeAssetToAccount - fee;
|
|
299
|
+
int256 netAssetToReserve = (fee * market.reserveFeePercent.Int()) / PERCENTAGE_DECIMALS;
|
|
300
|
+
int256 netAssetToAccount = preFeeAssetToAccount - fee;
|
|
301
|
+
|
|
302
|
+
netScyToAccount = netAssetToAccount < 0
|
|
303
|
+
? index.assetToScyUp(netAssetToAccount)
|
|
304
|
+
: index.assetToScy(netAssetToAccount);
|
|
305
|
+
netScyToReserve = index.assetToScy(netAssetToReserve);
|
|
308
306
|
}
|
|
309
307
|
|
|
310
308
|
function _setNewMarketStateTrade(
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
3
|
|
|
4
4
|
import "../../interfaces/IPGauge.sol";
|
|
5
|
-
import "../../interfaces/IPGaugeController.sol";
|
|
6
5
|
import "../../interfaces/IPVeToken.sol";
|
|
6
|
+
import "../../interfaces/IPGaugeController.sol";
|
|
7
7
|
import "../../interfaces/ISuperComposableYield.sol";
|
|
8
|
-
|
|
9
|
-
import "
|
|
10
|
-
import "../../libraries/helpers/ArrayLib.sol";
|
|
11
|
-
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
|
|
8
|
+
|
|
9
|
+
import "../RewardManager/RewardManager.sol";
|
|
12
10
|
|
|
13
11
|
/**
|
|
14
12
|
Invariants to maintain:
|
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
3
|
|
|
4
|
-
import "../PendleERC20Permit.sol";
|
|
5
|
-
import "../../interfaces/IPPrincipalToken.sol";
|
|
6
|
-
import "../../interfaces/ISuperComposableYield.sol";
|
|
7
4
|
import "../../interfaces/IPMarket.sol";
|
|
8
5
|
import "../../interfaces/IPMarketFactory.sol";
|
|
9
6
|
import "../../interfaces/IPMarketSwapCallback.sol";
|
|
10
7
|
|
|
11
|
-
import "
|
|
12
|
-
import "
|
|
13
|
-
import "
|
|
14
|
-
import "../../libraries/helpers/MiniHelpers.sol";
|
|
15
|
-
import "../../libraries/Errors.sol";
|
|
16
|
-
|
|
17
|
-
import "../LiquidityMining/PendleGauge.sol";
|
|
18
|
-
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
|
|
8
|
+
import "../erc20/PendleERC20Permit.sol";
|
|
9
|
+
import "./PendleGauge.sol";
|
|
10
|
+
import "./OracleLib.sol";
|
|
19
11
|
|
|
20
12
|
/**
|
|
21
13
|
Invariance to maintain:
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
3
|
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
|
|
4
4
|
|
|
5
5
|
import "../../interfaces/IPMarket.sol";
|
|
6
6
|
import "../../interfaces/IPYieldContractFactory.sol";
|
|
7
7
|
import "../../interfaces/IPMarketFactory.sol";
|
|
8
8
|
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import "
|
|
9
|
+
import "../libraries/BaseSplitCodeFactory.sol";
|
|
10
|
+
import "../libraries/Errors.sol";
|
|
11
|
+
import "../libraries/BoringOwnableUpgradeable.sol";
|
|
12
12
|
|
|
13
13
|
import "./PendleMarket.sol";
|
|
14
|
-
import "
|
|
14
|
+
import "./PendleGauge.sol";
|
|
15
15
|
|
|
16
16
|
contract PendleMarketFactory is BoringOwnableUpgradeable, IPMarketFactory {
|
|
17
17
|
using EnumerableSet for EnumerableSet.AddressSet;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
3
|
-
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
|
+
|
|
4
4
|
import "./RewardManagerAbstract.sol";
|
|
5
|
-
import "./math/Math.sol";
|
|
6
|
-
import "../libraries/helpers/ArrayLib.sol";
|
|
7
5
|
|
|
8
6
|
/// NOTE: This RewardManager is used with PendleMarket & SCY. For YT, it will use RewardManagerAbstract
|
|
9
7
|
/// NOTE: RewardManager must not have duplicated rewardTokens
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
3
|
-
|
|
4
|
-
import "
|
|
5
|
-
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
|
+
|
|
4
|
+
import "../../interfaces/IRewardManager.sol";
|
|
5
|
+
|
|
6
|
+
import "../libraries/ArrayLib.sol";
|
|
7
|
+
import "../libraries/TokenHelper.sol";
|
|
8
|
+
import "../libraries/math/Math.sol";
|
|
9
|
+
|
|
10
|
+
import "./RewardManagerAbstract.sol";
|
|
6
11
|
|
|
7
12
|
/// NOTE: RewardManager must not have duplicated rewardTokens
|
|
8
13
|
abstract contract RewardManagerAbstract is IRewardManager, TokenHelper {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
3
|
import "../../interfaces/IPYieldToken.sol";
|
|
4
4
|
import "../../interfaces/IPPrincipalToken.sol";
|
|
5
|
-
|
|
6
|
-
import "
|
|
5
|
+
|
|
6
|
+
import "./SCYUtils.sol";
|
|
7
|
+
import "../libraries/math/Math.sol";
|
|
7
8
|
|
|
8
9
|
type PYIndex is uint256;
|
|
9
10
|
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
3
|
-
import "../../interfaces/ISuperComposableYield.sol";
|
|
4
|
-
import "../../libraries/RewardManager.sol";
|
|
2
|
+
pragma solidity 0.8.17;
|
|
5
3
|
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
|
6
4
|
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
|
|
7
|
-
|
|
8
|
-
import "../../
|
|
9
|
-
|
|
10
|
-
import "
|
|
11
|
-
|
|
5
|
+
|
|
6
|
+
import "../../interfaces/ISuperComposableYield.sol";
|
|
7
|
+
|
|
8
|
+
import "../erc20/PendleERC20Permit.sol";
|
|
9
|
+
|
|
10
|
+
import "../RewardManager/RewardManager.sol";
|
|
11
|
+
import "../libraries/math/Math.sol";
|
|
12
|
+
import "../libraries/TokenHelper.sol";
|
|
13
|
+
import "../libraries/Errors.sol";
|
|
14
|
+
import "./SCYUtils.sol";
|
|
12
15
|
|
|
13
16
|
abstract contract SCYBase is ISuperComposableYield, PendleERC20Permit, TokenHelper {
|
|
14
17
|
using Math for uint256;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
|
+
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
|
4
|
+
|
|
3
5
|
import "../../interfaces/ISuperComposableYield.sol";
|
|
4
|
-
|
|
6
|
+
|
|
7
|
+
import "../libraries/math/Math.sol";
|
|
5
8
|
import "./SCYBase.sol";
|
|
6
|
-
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
|
7
|
-
import "../../libraries/math/Math.sol";
|
|
8
9
|
|
|
9
10
|
/// NOTE: yieldToken MUST NEVER BE a rewardToken, else the rewardManager will behave erroneously
|
|
10
11
|
abstract contract SCYBaseWithRewards is SCYBase, RewardManager {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
3
|
|
|
4
|
-
import "
|
|
4
|
+
import "../../../../interfaces/IQiToken.sol";
|
|
5
5
|
import "../../../libraries/Errors.sol";
|
|
6
6
|
|
|
7
7
|
contract PendleQiTokenHelper {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
3
|
|
|
4
|
-
import "../../
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
4
|
+
import "../../SCYBaseWithRewards.sol";
|
|
5
|
+
import "../../../../interfaces/IQiErc20.sol";
|
|
6
|
+
import "../../../../interfaces/IQiAvax.sol";
|
|
7
|
+
import "../../../../interfaces/IBenQiComptroller.sol";
|
|
8
|
+
import "../../../../interfaces/IWETH.sol";
|
|
9
9
|
|
|
10
10
|
import "./PendleQiTokenHelper.sol";
|
|
11
11
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
3
|
|
|
4
4
|
import "./PendleConvexCurveLP2PoolSCY.sol";
|
|
5
5
|
import "../Pendle3CrvHelper.sol";
|
|
6
|
-
import "../../../../libraries/
|
|
6
|
+
import "../../../../libraries/ArrayLib.sol";
|
|
7
7
|
|
|
8
8
|
contract Pendle3CrvAndTokenSCY is PendleConvexCurveLP2PoolSCY {
|
|
9
9
|
using ArrayLib for address[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
3
|
|
|
4
|
-
import "../../../
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
4
|
+
import "../../../SCYBaseWithRewards.sol";
|
|
5
|
+
import "../../../../../interfaces/ConvexCurve/IBooster.sol";
|
|
6
|
+
import "../../../../../interfaces/ConvexCurve/IRewards.sol";
|
|
7
|
+
import "../../../../../interfaces/Curve/ICrvPool.sol";
|
|
8
8
|
|
|
9
9
|
abstract contract PendleConvexCurveLPSCY is SCYBaseWithRewards {
|
|
10
10
|
using SafeERC20 for IERC20;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
3
|
|
|
4
|
-
import "
|
|
4
|
+
import "../../../../interfaces/Curve/ICrvPool.sol";
|
|
5
5
|
import "../../../libraries/math/Math.sol";
|
|
6
6
|
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
|
|
7
7
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
3
|
-
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
|
+
|
|
4
|
+
import "../SCYBase.sol";
|
|
5
|
+
import "../../../interfaces/IWstETH.sol";
|
|
6
|
+
import "../../../interfaces/IWETH.sol";
|
|
7
|
+
import "../../../interfaces/IStETH.sol";
|
|
7
8
|
|
|
8
9
|
contract PendleWstEthSCY is SCYBase {
|
|
9
10
|
address public immutable wETH;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
3
|
|
|
4
4
|
import "../../interfaces/IPYieldToken.sol";
|
|
5
5
|
import "../../interfaces/IPPrincipalToken.sol";
|
|
6
6
|
import "../../interfaces/IPInterestManagerYT.sol";
|
|
7
|
+
import "../../interfaces/IPYieldContractFactory.sol";
|
|
7
8
|
|
|
8
9
|
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
|
|
9
10
|
|
|
10
|
-
import "
|
|
11
|
-
import "
|
|
12
|
-
import "
|
|
13
|
-
import "../../libraries/helpers/TokenHelper.sol";
|
|
11
|
+
import "../libraries/math/Math.sol";
|
|
12
|
+
import "../libraries/TokenHelper.sol";
|
|
13
|
+
import "../SuperComposableYield/SCYUtils.sol";
|
|
14
14
|
|
|
15
15
|
/*
|
|
16
16
|
With YT yielding more SCYs overtime, which is allowed to be redeemed by users, the reward distribution should
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
3
|
|
|
4
4
|
import "../../interfaces/IPPrincipalToken.sol";
|
|
5
5
|
import "../../interfaces/IPYieldToken.sol";
|
|
6
6
|
|
|
7
|
-
import "../
|
|
8
|
-
import "
|
|
9
|
-
|
|
7
|
+
import "../libraries/MiniHelpers.sol";
|
|
8
|
+
import "../libraries/Errors.sol";
|
|
9
|
+
|
|
10
|
+
import "../erc20/PendleERC20Permit.sol";
|
|
11
|
+
|
|
10
12
|
import "@openzeppelin/contracts/proxy/utils/Initializable.sol";
|
|
11
13
|
|
|
12
14
|
contract PendlePrincipalToken is PendleERC20Permit, Initializable, IPPrincipalToken {
|
|
@@ -21,19 +21,18 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
pragma solidity 0.8.
|
|
24
|
+
pragma solidity 0.8.17;
|
|
25
25
|
|
|
26
26
|
import "../../interfaces/IPYieldContractFactory.sol";
|
|
27
27
|
|
|
28
28
|
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
|
29
29
|
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
|
|
30
30
|
|
|
31
|
-
import "
|
|
32
|
-
import "
|
|
33
|
-
import "
|
|
34
|
-
import "
|
|
35
|
-
|
|
36
|
-
import "../../periphery/BoringOwnableUpgradeable.sol";
|
|
31
|
+
import "../libraries/ExpiryUtilsLib.sol";
|
|
32
|
+
import "../libraries/BaseSplitCodeFactory.sol";
|
|
33
|
+
import "../libraries/MiniHelpers.sol";
|
|
34
|
+
import "../libraries/Errors.sol";
|
|
35
|
+
import "../libraries/BoringOwnableUpgradeable.sol";
|
|
37
36
|
|
|
38
37
|
import "./PendlePrincipalToken.sol";
|
|
39
38
|
import "./PendleYieldToken.sol";
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
pragma solidity 0.8.
|
|
2
|
+
pragma solidity 0.8.17;
|
|
3
|
+
|
|
4
|
+
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
|
|
3
5
|
|
|
4
6
|
import "../../interfaces/ISuperComposableYield.sol";
|
|
5
7
|
import "../../interfaces/IPYieldToken.sol";
|
|
6
8
|
import "../../interfaces/IPPrincipalToken.sol";
|
|
7
9
|
|
|
8
|
-
import "
|
|
9
|
-
|
|
10
|
-
import "../../libraries/math/Math.sol";
|
|
11
|
-
import "../../libraries/helpers/ArrayLib.sol";
|
|
10
|
+
import "../libraries/math/Math.sol";
|
|
11
|
+
import "../libraries/ArrayLib.sol";
|
|
12
12
|
import "../../interfaces/IPYieldContractFactory.sol";
|
|
13
|
-
import "
|
|
14
|
-
import "
|
|
15
|
-
import "
|
|
16
|
-
|
|
17
|
-
import "../
|
|
13
|
+
import "../SuperComposableYield/SCYUtils.sol";
|
|
14
|
+
import "../libraries/Errors.sol";
|
|
15
|
+
import "../libraries/MiniHelpers.sol";
|
|
16
|
+
|
|
17
|
+
import "../RewardManager/RewardManagerAbstract.sol";
|
|
18
|
+
import "../erc20/PendleERC20Permit.sol";
|
|
18
19
|
import "./InterestManagerYT.sol";
|
|
19
20
|
|
|
20
21
|
/**
|
|
File without changes
|
|
File without changes
|
|
File without changes
|