@pendle/core-v2 0.6.8 → 0.7.0
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 +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +751 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +4 -0
- package/build/artifacts/contracts/{core/PendleSCYImpl → SuperComposableYield/SCY-implementations}/AaveV3/WadRayMath.sol/WadRayMath.json +3 -3
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +27 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol/PendleQiTokenSCY.json +761 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleBtrflySCY.sol/PendleBtrflyScy.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleBtrflySCY.sol/PendleBtrflyScy.json +635 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol/PendleERC4626SCY.json +609 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleJoeLpSCY.sol/PendleJoeLpSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleJoeLpSCY.sol/PendleJoeLpSCY.json +653 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol/PendleWstEthSCY.json +622 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol/PendleYearnVaultSCY.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol/PendleYearnVaultSCY.json +622 -0
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBase.sol/SCYBase.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/{ISuperComposableYield.sol/ISuperComposableYield.json → base-implementations/SCYBase.sol/SCYBase.json} +221 -141
- package/build/artifacts/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +4 -0
- package/build/artifacts/contracts/SuperComposableYield/{implementations → base-implementations}/SCYBaseWithRewards.sol/SCYBaseWithRewards.json +247 -223
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiver.sol/CelerReceiver.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiver.sol/CelerReceiver.json +128 -0
- package/build/artifacts/contracts/core/LiquidityMining/CelerAbstracts/CelerSender.sol/CelerSender.dbg.json +4 -0
- package/build/artifacts/contracts/{SuperComposableYield/implementations/IRewardManager.sol/IRewardManager.json → core/LiquidityMining/CelerAbstracts/CelerSender.sol/CelerSender.json} +29 -33
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeController.sol/PendleGaugeController.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeController.sol/PendleGaugeController.json +193 -0
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchain.sol/PendleGaugeControllerMainchain.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchain.sol/PendleGaugeControllerMainchain.json +255 -0
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechain.sol/PendleGaugeControllerSidechain.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechain.sol/PendleGaugeControllerSidechain.json +318 -0
- package/build/artifacts/contracts/core/LiquidityMining/PendleGauge.sol/PendleGauge.dbg.json +4 -0
- package/build/artifacts/contracts/{interfaces/IPVotingEscrow.sol/IVotingEscrowPendle.json → core/LiquidityMining/PendleGauge.sol/PendleGauge.json} +57 -65
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingController.sol/PendleVotingController.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/PendleVotingController.sol/PendleVotingController.json +707 -0
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorage.sol/VotingControllerStorage.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/VotingController/VotingControllerStorage.sol/VotingControllerStorage.json +342 -0
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +547 -0
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +353 -0
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowToken.sol/VotingEscrowToken.dbg.json +4 -0
- package/build/artifacts/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowToken.sol/VotingEscrowToken.json +138 -0
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.dbg.json +4 -0
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +922 -0
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +4 -0
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +345 -0
- package/build/artifacts/contracts/core/PendleERC20.sol/PendleERC20.dbg.json +4 -0
- package/build/artifacts/contracts/core/PendleERC20.sol/PendleERC20.json +254 -0
- package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +4 -0
- package/build/artifacts/contracts/core/PendleERC20Permit.sol/PendleERC20Permit.json +329 -0
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +2 -20
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +4 -0
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +445 -0
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +4 -0
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +344 -0
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +4 -0
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +750 -0
- 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/ActionCore.sol/ActionCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.json +123 -77
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.json +39 -42
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.json +163 -1
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.json +0 -13
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.json +1 -14
- package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/base/CallbackHelper.sol/CallbackHelper.json +10 -0
- package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.json +39 -0
- 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/IBenQiComptroller.sol/IBenQiComptroller.json +13 -0
- package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.json +74 -0
- package/build/artifacts/contracts/interfaces/ICelerMessageBus.sol/ICelerMessageBus.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IVePToken.sol/IVePToken.json → ICelerMessageBus.sol/ICelerMessageBus.json} +21 -11
- package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/ICelerMessageReceiverApp.sol/ICelerMessageReceiverApp.json +45 -0
- package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +4 -0
- package/build/artifacts/contracts/{core/PendleBaseToken.sol/PendleBaseToken.json → interfaces/IERC4626.sol/IERC4626.json} +53 -68
- package/build/artifacts/contracts/interfaces/IJoePair.sol/IJoePair.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IJoeRouter01.sol/IJoeRouter01.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IJoeRouter02.sol/IJoeRouter02.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IJoeRouter02.sol/IJoeRouter02.json +962 -0
- package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.json +122 -58
- package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.json +36 -21
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +116 -81
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.json +109 -0
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.json +132 -0
- package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.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 +35 -54
- package/build/artifacts/contracts/interfaces/IPMarketAddRemoveCallback.sol/IPMarketAddRemoveCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.json +31 -0
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.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/IPPrincipalToken.sol/IPPrincipalToken.json +5 -5
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.json +99 -0
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +167 -0
- package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IPVotingEscrow.json +148 -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/IPYieldToken.sol/IPYieldToken.json +85 -83
- package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPBaseToken.sol/IPBaseToken.json → IQiAvax.sol/IQiAvax.json} +106 -15
- package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.json +117 -0
- package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.json +117 -0
- package/build/artifacts/contracts/interfaces/IREDACTEDStaking.sol/IREDACTEDStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +4 -0
- package/build/artifacts/contracts/{periphery/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.json → interfaces/IRewardManager.sol/IRewardManager.json} +12 -14
- package/build/artifacts/contracts/interfaces/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +4 -0
- package/build/artifacts/contracts/{SuperComposableYield/implementations/SCYBase.sol/SCYBase.json → interfaces/ISuperComposableYield.sol/ISuperComposableYield.json} +183 -181
- 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/IWXBTRFLY.sol/IWXBTRFLY.json +13 -0
- package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.json +13 -0
- package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.json +13 -0
- package/build/artifacts/contracts/libraries/RewardManager.sol/RewardManager.dbg.json +4 -0
- package/build/artifacts/contracts/{SuperComposableYield/implementations → libraries}/RewardManager.sol/RewardManager.json +44 -33
- package/build/artifacts/contracts/libraries/RewardManagerMini.sol/RewardManagerMini.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/RewardManagerMini.sol/RewardManagerMini.json +101 -0
- package/build/artifacts/contracts/libraries/SCY/SCYIndex.sol/SCYIndexLib.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/{SCYIndex.sol → SCY/SCYIndex.sol}/SCYIndexLib.json +3 -3
- package/build/artifacts/contracts/libraries/SCY/SCYUtils.sol/SCYUtils.dbg.json +4 -0
- package/build/artifacts/contracts/{SuperComposableYield → libraries/SCY}/SCYUtils.sol/SCYUtils.json +3 -3
- package/build/artifacts/contracts/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/{math/MarketMathAux.sol/MarketMathAux.json → VeBalanceLib.sol/VeBalanceLib.json} +4 -4
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/helpers/ArrayLib.sol/ArrayLib.json +10 -0
- package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/MiniDeployer.sol/MiniDeployer.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/helpers/MiniDeployer.sol/MiniDeployer.json +10 -0
- package/build/artifacts/contracts/libraries/helpers/MiniHelpers.sol/MiniHelpers.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/helpers/MiniHelpers.sol/MiniHelpers.json +10 -0
- package/build/artifacts/contracts/libraries/helpers/TokenHelper.sol/TokenHelper.dbg.json +4 -0
- package/build/artifacts/contracts/{core/actions/base/ActionType.sol/ActionType.json → libraries/helpers/TokenHelper.sol/TokenHelper.json} +2 -2
- package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.json +2 -2
- package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/math/WeekMath.sol/WeekMath.json +10 -0
- package/build/artifacts/contracts/libraries/solmate/Bytes32AddressLib.sol/Bytes32AddressLib.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/solmate/Bytes32AddressLib.sol/Bytes32AddressLib.json +10 -0
- package/build/artifacts/contracts/libraries/solmate/LibRLP.sol/LibRLP.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/solmate/LibRLP.sol/LibRLP.json +10 -0
- package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/solmate/SSTORE2.sol/SSTORE2.json +10 -0
- package/build/artifacts/contracts/libraries/traderjoe/JoeLibrary.sol/JoeLibrary.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/{JoeLibrary.sol → traderjoe/JoeLibrary.sol}/JoeLibrary.json +3 -3
- package/build/artifacts/contracts/libraries/traderjoe/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.dbg.json +4 -0
- package/build/artifacts/contracts/libraries/traderjoe/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.json +24 -0
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +862 -0
- package/build/artifacts/contracts/periphery/PendleGovernanceManager.sol/PendleGovernanceManager.dbg.json +1 -1
- package/build/artifacts/contracts/periphery/PendleGovernanceManager.sol/PendleGovernanceManager.json +2 -2
- package/build/artifacts/contracts/periphery/PermissionsV2Upg.sol/PermissionsV2Upg.dbg.json +1 -1
- package/contracts/SuperComposableYield/SCY-implementations/AaveV3/PendleAaveV3SCY.sol +147 -0
- package/contracts/{core/PendleSCYImpl → SuperComposableYield/SCY-implementations}/AaveV3/WadRayMath.sol +1 -1
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenHelper.sol +74 -0
- package/contracts/SuperComposableYield/SCY-implementations/BenQi/PendleQiTokenSCY.sol +187 -0
- package/contracts/SuperComposableYield/SCY-implementations/PendleBtrflySCY.sol +123 -0
- package/contracts/SuperComposableYield/SCY-implementations/PendleERC4626SCY.sol +99 -0
- package/contracts/SuperComposableYield/SCY-implementations/PendleJoeLpSCY.sol +245 -0
- package/contracts/SuperComposableYield/SCY-implementations/PendleWstEthSCY.sol +107 -0
- package/contracts/SuperComposableYield/SCY-implementations/PendleYearnVaultScy.sol +120 -0
- package/contracts/SuperComposableYield/base-implementations/SCYBase.sol +197 -0
- package/contracts/SuperComposableYield/base-implementations/SCYBaseWithRewards.sol +131 -0
- package/contracts/core/LiquidityMining/CelerAbstracts/CelerReceiver.sol +47 -0
- package/contracts/core/LiquidityMining/CelerAbstracts/CelerSender.sol +52 -0
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeController.sol +141 -0
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerMainchain.sol +30 -0
- package/contracts/core/LiquidityMining/GaugeController/PendleGaugeControllerSidechain.sol +22 -0
- package/contracts/core/LiquidityMining/PendleGauge.sol +118 -0
- package/contracts/core/LiquidityMining/README.md +63 -0
- package/contracts/core/LiquidityMining/VotingController/PendleVotingController.sol +323 -0
- package/contracts/core/LiquidityMining/VotingController/VotingControllerStorage.sol +224 -0
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol +241 -0
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol +73 -0
- package/contracts/core/LiquidityMining/VotingEscrow/VotingEscrowToken.sol +53 -0
- package/contracts/core/{PendleMarket.sol → Market/PendleMarket.sol} +139 -103
- package/contracts/core/{PendleMarketFactory.sol → Market/PendleMarketFactory.sol} +62 -19
- package/contracts/core/PendleERC20.sol +358 -0
- package/contracts/core/PendleERC20Permit.sol +84 -0
- package/contracts/core/PendleRouter.sol +6 -12
- package/contracts/core/YieldContracts/InterestManagerYT.sol +87 -0
- package/contracts/core/YieldContracts/PendlePrincipalToken.sol +52 -0
- package/contracts/core/{PendleYieldContractFactory.sol → YieldContracts/PendleYieldContractFactory.sol} +46 -25
- package/contracts/core/YieldContracts/PendleYieldToken.sol +340 -0
- package/contracts/core/actions/ActionCallback.sol +63 -43
- package/contracts/core/actions/ActionCore.sol +95 -78
- package/contracts/core/actions/ActionYT.sol +35 -86
- package/contracts/core/actions/base/ActionSCYAndPTBase.sol +133 -78
- package/contracts/core/actions/base/ActionSCYAndPYBase.sol +31 -46
- package/contracts/core/actions/base/ActionSCYAndYTBase.sol +127 -45
- package/contracts/core/actions/base/CallbackHelper.sol +81 -0
- package/contracts/interfaces/IAToken.sol +11 -1
- package/contracts/interfaces/IAavePool.sol +1 -1
- package/contracts/interfaces/IAaveRewardsController.sol +1 -1
- package/contracts/interfaces/IBenQiComptroller.sol +3 -1
- package/contracts/interfaces/IBenQiInterestRateModel.sol +16 -0
- package/contracts/interfaces/ICelerMessageBus.sol +28 -0
- package/contracts/interfaces/ICelerMessageReceiverApp.sol +25 -0
- package/contracts/interfaces/IERC4626.sol +39 -0
- package/contracts/interfaces/IJoeRouter01.sol +1 -1
- package/contracts/interfaces/IJoeRouter02.sol +52 -0
- package/contracts/interfaces/IPActionCore.sol +44 -27
- package/contracts/interfaces/IPActionYT.sol +12 -9
- package/contracts/interfaces/IPAllAction.sol +2 -3
- package/contracts/interfaces/IPGaugeController.sol +22 -0
- package/contracts/interfaces/IPGaugeControllerMainchain.sol +12 -0
- package/contracts/interfaces/IPGovernanceManager.sol +1 -1
- package/contracts/interfaces/IPInterestManagerYT.sol +9 -0
- package/contracts/interfaces/IPMarket.sol +13 -13
- package/contracts/interfaces/IPMarketAddRemoveCallback.sol +3 -3
- package/contracts/interfaces/IPMarketFactory.sol +8 -1
- package/contracts/interfaces/IPMarketSwapCallback.sol +1 -1
- package/contracts/interfaces/IPPermissionsV2Upg.sol +1 -1
- package/contracts/interfaces/IPPrincipalToken.sol +9 -5
- package/contracts/interfaces/IPRouterStatic.sol +1 -1
- package/contracts/interfaces/IPVeToken.sol +10 -5
- package/contracts/interfaces/IPVotingController.sol +21 -0
- package/contracts/interfaces/IPVotingEscrow.sol +14 -22
- package/contracts/interfaces/IPYieldContractFactory.sol +1 -1
- package/contracts/interfaces/IPYieldToken.sol +17 -17
- package/contracts/interfaces/IQiAvax.sol +31 -0
- package/contracts/interfaces/IQiErc20.sol +1 -1
- package/contracts/interfaces/IQiToken.sol +22 -1
- package/contracts/interfaces/IREDACTEDStaking.sol +1 -1
- package/contracts/interfaces/IRewardManager.sol +9 -0
- package/contracts/interfaces/ISuperComposableYield.sol +182 -0
- package/contracts/interfaces/IWETH.sol +1 -1
- package/contracts/interfaces/IWXBTRFLY.sol +3 -1
- package/contracts/interfaces/IWstETH.sol +3 -1
- package/contracts/interfaces/IYearnVault.sol +3 -1
- package/contracts/libraries/RewardManager.sol +78 -0
- package/contracts/libraries/RewardManagerAbstract.sol +81 -0
- package/contracts/libraries/{SCYIndex.sol → SCY/SCYIndex.sol} +8 -8
- package/contracts/libraries/SCY/SCYUtils.sol +18 -0
- package/contracts/libraries/VeBalanceLib.sol +114 -0
- package/contracts/libraries/helpers/ArrayLib.sol +65 -0
- package/contracts/libraries/helpers/ExpiryUtilsLib.sol +1 -1
- package/contracts/libraries/helpers/MiniDeployer.sol +23 -0
- package/contracts/libraries/helpers/MiniHelpers.sol +15 -0
- package/contracts/libraries/helpers/TokenHelper.sol +105 -0
- package/contracts/libraries/math/LogExpMath.sol +59 -1
- package/contracts/libraries/math/MarketApproxLib.sol +167 -164
- package/contracts/libraries/math/MarketMathCore.sol +106 -25
- package/contracts/libraries/math/Math.sol +28 -21
- package/contracts/libraries/math/WeekMath.sol +19 -0
- package/contracts/libraries/solmate/Bytes32AddressLib.sol +14 -0
- package/contracts/libraries/solmate/LibRLP.sol +30 -0
- package/contracts/libraries/solmate/SSTORE2.sol +99 -0
- package/contracts/libraries/{JoeLibrary.sol → traderjoe/JoeLibrary.sol} +3 -2
- package/contracts/{periphery → libraries/traderjoe}/PendleJoeSwapHelperUpg.sol +8 -10
- package/contracts/{core → offchain-helpers}/RouterStatic.sol +24 -19
- package/contracts/periphery/PendleGovernanceManager.sol +1 -1
- package/contracts/periphery/PermissionsV2Upg.sol +1 -1
- package/package.json +1 -1
- package/typechain-types/ActionCore.ts +169 -96
- package/typechain-types/ActionSCYAndPTBase.ts +210 -0
- package/typechain-types/ActionSCYAndPYBase.ts +0 -13
- package/typechain-types/ActionSCYAndYTBase.ts +8 -21
- package/typechain-types/ActionYT.ts +73 -64
- package/typechain-types/BeaconProxy.ts +97 -0
- package/typechain-types/CelerReceiver.ts +267 -0
- package/typechain-types/CelerSender.ts +197 -0
- package/typechain-types/ERC1967Upgrade.ts +97 -0
- package/typechain-types/ERC20Permit.ts +521 -0
- package/typechain-types/IAToken.ts +55 -0
- package/typechain-types/IBeacon.ts +87 -0
- package/typechain-types/IBenQiComptroller.ts +13 -0
- package/typechain-types/IBenQiInterestRateModel.ts +162 -0
- package/typechain-types/ICelerMessageBus.ts +134 -0
- package/typechain-types/ICelerMessageReceiverApp.ts +120 -0
- package/typechain-types/IERC1822Proxiable.ts +87 -0
- package/typechain-types/IERC20Permit.ts +175 -0
- package/typechain-types/IERC4626.ts +463 -0
- package/typechain-types/IJoeRouter02.ts +1420 -0
- package/typechain-types/IPActionCore.ts +169 -83
- package/typechain-types/IPActionYT.ts +65 -43
- package/typechain-types/IPAllAction.ts +190 -137
- package/typechain-types/IPGauge.ts +104 -0
- package/typechain-types/IPGaugeController.ts +191 -0
- package/typechain-types/IPGaugeControllerMainchain.ts +236 -0
- package/typechain-types/IPMarket.ts +73 -74
- package/typechain-types/IPMarketFactory.ts +27 -0
- package/typechain-types/IPPrincipalToken.ts +8 -20
- package/typechain-types/IPVeToken.ts +198 -0
- package/typechain-types/IPVotingController.ts +179 -0
- package/typechain-types/IPVotingEscrow.ts +217 -0
- package/typechain-types/IPVotingEscrowController.ts +154 -0
- package/typechain-types/IPYieldToken.ts +176 -213
- package/typechain-types/IQiAvax.ts +551 -0
- package/typechain-types/IQiErc20.ts +171 -0
- package/typechain-types/IQiToken.ts +171 -0
- package/typechain-types/IRewardManager.ts +16 -87
- package/typechain-types/ISuperComposableYield.ts +283 -269
- package/typechain-types/IWXBTRFLY.ts +13 -0
- package/typechain-types/IWstETH.ts +13 -0
- package/typechain-types/IYearnVault.ts +13 -0
- package/typechain-types/PendleAaveV3SCY.ts +382 -477
- package/typechain-types/PendleBtrflyScy.ts +287 -348
- package/typechain-types/PendleERC20.ts +339 -0
- package/typechain-types/PendleERC20Permit.ts +443 -0
- package/typechain-types/PendleERC4626SCY.ts +801 -0
- package/typechain-types/PendleGauge.ts +276 -0
- package/typechain-types/PendleGaugeController.ts +346 -0
- package/typechain-types/PendleGaugeControllerMainchain.ts +410 -0
- package/typechain-types/PendleGaugeControllerSidechain.ts +524 -0
- package/typechain-types/PendleJoeLpSCY.ts +837 -0
- package/typechain-types/PendleJoeSwapHelperUpg.ts +0 -13
- package/typechain-types/PendleMarket.ts +265 -151
- package/typechain-types/PendleMarketFactory.ts +111 -16
- package/typechain-types/PendleMarketRewards.ts +1317 -0
- package/typechain-types/PendlePrincipalToken.ts +103 -130
- package/typechain-types/PendleQiTokenHelper.ts +57 -0
- package/typechain-types/PendleQiTokenSCY.ts +991 -0
- package/typechain-types/PendleRouter.ts +0 -19
- package/typechain-types/PendleVotingController.ts +1042 -0
- package/typechain-types/PendleWstEthSCY.ts +813 -0
- package/typechain-types/PendleYearnVaultScy.ts +278 -339
- package/typechain-types/PendleYieldContractFactory.ts +43 -27
- package/typechain-types/PendleYieldToken.ts +297 -428
- package/typechain-types/RewardManager.ts +70 -69
- package/typechain-types/RewardManagerMini.ts +200 -0
- package/typechain-types/SCYBase.ts +276 -335
- package/typechain-types/SCYBaseWithRewards.ts +367 -424
- package/typechain-types/VotingControllerStorage.ts +507 -0
- package/typechain-types/VotingEscrowPendleMainchain.ts +854 -0
- package/typechain-types/VotingEscrowPendleSidechain.ts +546 -0
- package/typechain-types/VotingEscrowToken.ts +251 -0
- package/typechain-types/factories/ActionCallback__factory.ts +1 -1
- package/typechain-types/factories/ActionCore__factory.ts +122 -80
- package/typechain-types/factories/ActionRedeem__factory.ts +1 -1
- package/typechain-types/factories/ActionSCYAndPTBase__factory.ts +187 -0
- package/typechain-types/factories/ActionSCYAndPYBase__factory.ts +0 -13
- package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +1 -14
- package/typechain-types/factories/ActionYT__factory.ts +39 -48
- package/typechain-types/factories/BeaconProxy__factory.ts +141 -0
- package/typechain-types/factories/CelerReceiver__factory.ts +140 -0
- package/typechain-types/factories/CelerSender__factory.ts +85 -0
- package/typechain-types/factories/ERC1967Upgrade__factory.ts +71 -0
- package/typechain-types/factories/ERC20Permit__factory.ts +368 -0
- package/typechain-types/factories/ERC20__factory.ts +1 -1
- package/typechain-types/factories/IAToken__factory.ts +39 -0
- package/typechain-types/factories/IBeacon__factory.ts +36 -0
- package/typechain-types/factories/IBenQiComptroller__factory.ts +13 -0
- package/typechain-types/factories/IBenQiInterestRateModel__factory.ts +93 -0
- package/typechain-types/factories/ICelerMessageBus__factory.ts +68 -0
- package/typechain-types/factories/ICelerMessageReceiverApp__factory.ts +64 -0
- package/typechain-types/factories/IERC1822Proxiable__factory.ts +39 -0
- package/typechain-types/factories/IERC20Permit__factory.ts +98 -0
- package/typechain-types/factories/IERC4626__factory.ts +330 -0
- package/typechain-types/factories/IJoeRouter02__factory.ts +974 -0
- package/typechain-types/factories/IPActionCore__factory.ts +122 -58
- package/typechain-types/factories/IPActionYT__factory.ts +36 -21
- package/typechain-types/factories/IPAllAction__factory.ts +116 -81
- package/typechain-types/factories/IPGaugeControllerMainchain__factory.ts +151 -0
- package/typechain-types/factories/IPGaugeController__factory.ts +124 -0
- package/typechain-types/factories/IPGauge__factory.ts +42 -0
- package/typechain-types/factories/IPMarketFactory__factory.ts +31 -0
- package/typechain-types/factories/IPMarket__factory.ts +35 -54
- package/typechain-types/factories/IPPrincipalToken__factory.ts +5 -5
- package/typechain-types/factories/IPVeToken__factory.ts +111 -0
- package/typechain-types/factories/IPVotingController__factory.ts +182 -0
- package/typechain-types/factories/IPVotingEscrowController__factory.ts +80 -0
- package/typechain-types/factories/IPVotingEscrow__factory.ts +163 -0
- package/typechain-types/factories/IPYieldToken__factory.ts +85 -83
- package/typechain-types/factories/IQiAvax__factory.ts +362 -0
- package/typechain-types/factories/IQiErc20__factory.ts +117 -0
- package/typechain-types/factories/IQiToken__factory.ts +117 -0
- package/typechain-types/factories/IRewardManager__factory.ts +5 -47
- package/typechain-types/factories/ISuperComposableYield__factory.ts +201 -138
- package/typechain-types/factories/IWXBTRFLY__factory.ts +13 -0
- package/typechain-types/factories/IWstETH__factory.ts +13 -0
- package/typechain-types/factories/IYearnVault__factory.ts +13 -0
- package/typechain-types/factories/PendleAaveV3SCY__factory.ts +246 -315
- package/typechain-types/factories/PendleBtrflyScy__factory.ts +200 -234
- package/typechain-types/factories/PendleERC20Permit__factory.ts +405 -0
- package/typechain-types/factories/PendleERC20__factory.ts +327 -0
- package/typechain-types/factories/PendleERC4626SCY__factory.ts +678 -0
- package/typechain-types/factories/PendleGaugeControllerMainchain__factory.ts +332 -0
- package/typechain-types/factories/PendleGaugeControllerSidechain__factory.ts +391 -0
- package/typechain-types/factories/PendleGaugeController__factory.ts +212 -0
- package/typechain-types/factories/PendleGauge__factory.ts +171 -0
- package/typechain-types/factories/PendleGovernanceManager__factory.ts +1 -1
- package/typechain-types/factories/PendleJoeLpSCY__factory.ts +726 -0
- package/typechain-types/factories/PendleJoeSwapHelperUpg__factory.ts +0 -13
- package/typechain-types/factories/PendleMarketFactory__factory.ts +90 -5
- package/typechain-types/factories/PendleMarketRewards__factory.ts +1140 -0
- package/typechain-types/factories/PendleMarket__factory.ts +182 -94
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +74 -77
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +99 -0
- package/typechain-types/factories/PendleQiTokenSCY__factory.ts +845 -0
- package/typechain-types/factories/PendleRouter__factory.ts +1 -23
- package/typechain-types/factories/PendleVotingController__factory.ts +776 -0
- package/typechain-types/factories/PendleWstEthSCY__factory.ts +686 -0
- package/typechain-types/factories/PendleYearnVaultScy__factory.ts +218 -243
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +39 -29
- package/typechain-types/factories/PendleYieldToken__factory.ts +153 -211
- package/typechain-types/factories/RewardManagerMini__factory.ts +116 -0
- package/typechain-types/factories/RewardManager__factory.ts +43 -32
- package/typechain-types/factories/RouterStatic__factory.ts +1 -1
- package/typechain-types/factories/SCYBaseWithRewards__factory.ts +242 -218
- package/typechain-types/factories/SCYBase__factory.ts +195 -176
- package/typechain-types/factories/VotingControllerStorage__factory.ts +361 -0
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +616 -0
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +415 -0
- package/typechain-types/factories/VotingEscrowToken__factory.ts +153 -0
- package/typechain-types/hardhat.d.ts +338 -131
- package/typechain-types/index.ts +92 -38
- package/build/artifacts/contracts/SuperComposableYield/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/SCYUtils.sol/SCYUtils.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/implementations/IRewardManager.sol/IRewardManager.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/implementations/RewardManager.sol/RewardManager.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBase.sol/SCYBase.dbg.json +0 -4
- package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleBaseToken.sol/PendleBaseToken.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleMarket.sol/PendleMarket.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleMarket.sol/PendleMarket.json +0 -842
- package/build/artifacts/contracts/core/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleMarketFactory.sol/PendleMarketFactory.json +0 -265
- package/build/artifacts/contracts/core/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendlePrincipalToken.sol/PendlePrincipalToken.json +0 -452
- package/build/artifacts/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +0 -783
- package/build/artifacts/contracts/core/PendleSCYImpl/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol/PendleBenQiErc20SCY.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol/PendleBenQiErc20SCY.json +0 -766
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol/PendleBtrflyScy.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol/PendleBtrflyScy.json +0 -641
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleStETHSCY.sol/PendleStEthSCY.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleStETHSCY.sol/PendleStEthSCY.json +0 -623
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol/PendleYearnVaultScy.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol/PendleYearnVaultScy.json +0 -623
- package/build/artifacts/contracts/core/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +0 -339
- package/build/artifacts/contracts/core/PendleYieldToken.sol/PendleYieldToken.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleYieldToken.sol/PendleYieldToken.json +0 -808
- package/build/artifacts/contracts/core/RouterStatic.sol/RouterStatic.dbg.json +0 -4
- package/build/artifacts/contracts/core/RouterStatic.sol/RouterStatic.json +0 -862
- package/build/artifacts/contracts/core/actions/ActionRedeem.sol/ActionRedeem.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/ActionRedeem.sol/ActionRedeem.json +0 -55
- package/build/artifacts/contracts/core/actions/base/ActionType.sol/ActionType.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionRedeem.sol/IPActionRedeem.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionRedeem.sol/IPActionRedeem.json +0 -55
- package/build/artifacts/contracts/interfaces/IPBaseToken.sol/IPBaseToken.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPendleGauge.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPendleGauge.json +0 -113
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IVePToken.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IVePToken.json +0 -43
- package/build/artifacts/contracts/interfaces/IPVotingEscrow.sol/IVotingEscrowPendle.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPVotingEscrowController.sol/VotingEscrowController.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPVotingEscrowController.sol/VotingEscrowController.json +0 -61
- package/build/artifacts/contracts/interfaces/IPendleGauge.sol/IPendleGauge.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPendleGauge.sol/IPendleGauge.json +0 -113
- package/build/artifacts/contracts/interfaces/IVePToken.sol/IVePToken.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IVotingEscrowController.sol/VotingEscrowController.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IVotingEscrowController.sol/VotingEscrowController.json +0 -61
- package/build/artifacts/contracts/interfaces/IVotingEscrowPendle.sol/IVotingEscrowPendle.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IVotingEscrowPendle.sol/IVotingEscrowPendle.json +0 -167
- package/build/artifacts/contracts/libraries/JoeLibrary.sol/JoeLibrary.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/SCYIndex.sol/SCYIndexLib.dbg.json +0 -4
- package/build/artifacts/contracts/libraries/math/MarketMathAux.sol/MarketMathAux.dbg.json +0 -4
- package/build/artifacts/contracts/periphery/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.dbg.json +0 -4
- package/contracts/SuperComposableYield/ISuperComposableYield.sol +0 -80
- package/contracts/SuperComposableYield/SCYUtils.sol +0 -14
- package/contracts/SuperComposableYield/implementations/IRewardManager.sol +0 -16
- package/contracts/SuperComposableYield/implementations/RewardManager.sol +0 -151
- package/contracts/SuperComposableYield/implementations/SCYBase.sol +0 -166
- package/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol +0 -88
- package/contracts/core/PendleBaseToken.sol +0 -35
- package/contracts/core/PendlePrincipalToken.sol +0 -54
- package/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol +0 -140
- package/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol +0 -133
- package/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol +0 -120
- package/contracts/core/PendleSCYImpl/PendleStETHSCY.sol +0 -107
- package/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol +0 -109
- package/contracts/core/PendleYieldToken.sol +0 -340
- package/contracts/core/actions/ActionRedeem.sol +0 -36
- package/contracts/core/actions/base/ActionType.sol +0 -11
- package/contracts/interfaces/IPActionRedeem.sol +0 -17
- package/contracts/interfaces/IPBaseToken.sol +0 -9
- package/contracts/interfaces/IPGauge.sol +0 -32
- package/contracts/interfaces/IPVotingEscrowController.sol +0 -14
- package/contracts/interfaces/IPendleGauge.sol +0 -32
- package/contracts/interfaces/IVePToken.sol +0 -14
- package/contracts/interfaces/IVotingEscrowController.sol +0 -14
- package/contracts/interfaces/IVotingEscrowPendle.sol +0 -32
- package/contracts/libraries/math/MarketMathAux.sol +0 -101
|
@@ -0,0 +1,1140 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
Signer,
|
|
6
|
+
utils,
|
|
7
|
+
Contract,
|
|
8
|
+
ContractFactory,
|
|
9
|
+
Overrides,
|
|
10
|
+
BigNumberish,
|
|
11
|
+
} from "ethers";
|
|
12
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
13
|
+
import type {
|
|
14
|
+
PendleMarketRewards,
|
|
15
|
+
PendleMarketRewardsInterface,
|
|
16
|
+
} from "../PendleMarketRewards";
|
|
17
|
+
|
|
18
|
+
const _abi = [
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "address",
|
|
23
|
+
name: "_PT",
|
|
24
|
+
type: "address",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "int256",
|
|
28
|
+
name: "_scalarRoot",
|
|
29
|
+
type: "int256",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "int256",
|
|
33
|
+
name: "_initialAnchor",
|
|
34
|
+
type: "int256",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "_vePendle",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
internalType: "address",
|
|
43
|
+
name: "_gaugeController",
|
|
44
|
+
type: "address",
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
stateMutability: "nonpayable",
|
|
48
|
+
type: "constructor",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
anonymous: false,
|
|
52
|
+
inputs: [
|
|
53
|
+
{
|
|
54
|
+
indexed: true,
|
|
55
|
+
internalType: "address",
|
|
56
|
+
name: "receiver",
|
|
57
|
+
type: "address",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
indexed: false,
|
|
61
|
+
internalType: "uint256",
|
|
62
|
+
name: "lpToAccount",
|
|
63
|
+
type: "uint256",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
indexed: false,
|
|
67
|
+
internalType: "uint256",
|
|
68
|
+
name: "scyUsed",
|
|
69
|
+
type: "uint256",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
indexed: false,
|
|
73
|
+
internalType: "uint256",
|
|
74
|
+
name: "ptUsed",
|
|
75
|
+
type: "uint256",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
name: "AddLiquidity",
|
|
79
|
+
type: "event",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
anonymous: false,
|
|
83
|
+
inputs: [
|
|
84
|
+
{
|
|
85
|
+
indexed: true,
|
|
86
|
+
internalType: "address",
|
|
87
|
+
name: "owner",
|
|
88
|
+
type: "address",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
indexed: true,
|
|
92
|
+
internalType: "address",
|
|
93
|
+
name: "spender",
|
|
94
|
+
type: "address",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
indexed: false,
|
|
98
|
+
internalType: "uint256",
|
|
99
|
+
name: "value",
|
|
100
|
+
type: "uint256",
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
name: "Approval",
|
|
104
|
+
type: "event",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
anonymous: false,
|
|
108
|
+
inputs: [
|
|
109
|
+
{
|
|
110
|
+
indexed: true,
|
|
111
|
+
internalType: "address",
|
|
112
|
+
name: "receiverScy",
|
|
113
|
+
type: "address",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
indexed: true,
|
|
117
|
+
internalType: "address",
|
|
118
|
+
name: "receiverPt",
|
|
119
|
+
type: "address",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
indexed: false,
|
|
123
|
+
internalType: "uint256",
|
|
124
|
+
name: "lpRemoved",
|
|
125
|
+
type: "uint256",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
indexed: false,
|
|
129
|
+
internalType: "uint256",
|
|
130
|
+
name: "scyToAccount",
|
|
131
|
+
type: "uint256",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
indexed: false,
|
|
135
|
+
internalType: "uint256",
|
|
136
|
+
name: "ptToAccount",
|
|
137
|
+
type: "uint256",
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
name: "RemoveLiquidity",
|
|
141
|
+
type: "event",
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
anonymous: false,
|
|
145
|
+
inputs: [
|
|
146
|
+
{
|
|
147
|
+
indexed: true,
|
|
148
|
+
internalType: "address",
|
|
149
|
+
name: "receiver",
|
|
150
|
+
type: "address",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
indexed: false,
|
|
154
|
+
internalType: "int256",
|
|
155
|
+
name: "ptToAccount",
|
|
156
|
+
type: "int256",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
indexed: false,
|
|
160
|
+
internalType: "int256",
|
|
161
|
+
name: "scyToAccount",
|
|
162
|
+
type: "int256",
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
indexed: false,
|
|
166
|
+
internalType: "uint256",
|
|
167
|
+
name: "netScyToReserve",
|
|
168
|
+
type: "uint256",
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
name: "Swap",
|
|
172
|
+
type: "event",
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
anonymous: false,
|
|
176
|
+
inputs: [
|
|
177
|
+
{
|
|
178
|
+
indexed: true,
|
|
179
|
+
internalType: "address",
|
|
180
|
+
name: "from",
|
|
181
|
+
type: "address",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
indexed: true,
|
|
185
|
+
internalType: "address",
|
|
186
|
+
name: "to",
|
|
187
|
+
type: "address",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
indexed: false,
|
|
191
|
+
internalType: "uint256",
|
|
192
|
+
name: "value",
|
|
193
|
+
type: "uint256",
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
name: "Transfer",
|
|
197
|
+
type: "event",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
anonymous: false,
|
|
201
|
+
inputs: [
|
|
202
|
+
{
|
|
203
|
+
indexed: true,
|
|
204
|
+
internalType: "uint256",
|
|
205
|
+
name: "timestamp",
|
|
206
|
+
type: "uint256",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
indexed: false,
|
|
210
|
+
internalType: "uint256",
|
|
211
|
+
name: "lnLastImpliedRate",
|
|
212
|
+
type: "uint256",
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
name: "UpdateImpliedRate",
|
|
216
|
+
type: "event",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
inputs: [],
|
|
220
|
+
name: "PT",
|
|
221
|
+
outputs: [
|
|
222
|
+
{
|
|
223
|
+
internalType: "address",
|
|
224
|
+
name: "",
|
|
225
|
+
type: "address",
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
stateMutability: "view",
|
|
229
|
+
type: "function",
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
inputs: [],
|
|
233
|
+
name: "SCY",
|
|
234
|
+
outputs: [
|
|
235
|
+
{
|
|
236
|
+
internalType: "address",
|
|
237
|
+
name: "",
|
|
238
|
+
type: "address",
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
stateMutability: "view",
|
|
242
|
+
type: "function",
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
inputs: [],
|
|
246
|
+
name: "TOKENLESS_PRODUCTION",
|
|
247
|
+
outputs: [
|
|
248
|
+
{
|
|
249
|
+
internalType: "uint256",
|
|
250
|
+
name: "",
|
|
251
|
+
type: "uint256",
|
|
252
|
+
},
|
|
253
|
+
],
|
|
254
|
+
stateMutability: "view",
|
|
255
|
+
type: "function",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
inputs: [],
|
|
259
|
+
name: "YT",
|
|
260
|
+
outputs: [
|
|
261
|
+
{
|
|
262
|
+
internalType: "address",
|
|
263
|
+
name: "",
|
|
264
|
+
type: "address",
|
|
265
|
+
},
|
|
266
|
+
],
|
|
267
|
+
stateMutability: "view",
|
|
268
|
+
type: "function",
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
inputs: [],
|
|
272
|
+
name: "_storage",
|
|
273
|
+
outputs: [
|
|
274
|
+
{
|
|
275
|
+
internalType: "int128",
|
|
276
|
+
name: "totalPt",
|
|
277
|
+
type: "int128",
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
internalType: "int128",
|
|
281
|
+
name: "totalScy",
|
|
282
|
+
type: "int128",
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
internalType: "uint96",
|
|
286
|
+
name: "lastLnImpliedRate",
|
|
287
|
+
type: "uint96",
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
internalType: "uint96",
|
|
291
|
+
name: "oracleRate",
|
|
292
|
+
type: "uint96",
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
internalType: "uint32",
|
|
296
|
+
name: "lastTradeTime",
|
|
297
|
+
type: "uint32",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
internalType: "uint8",
|
|
301
|
+
name: "_reentrancyStatus",
|
|
302
|
+
type: "uint8",
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
stateMutability: "view",
|
|
306
|
+
type: "function",
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
inputs: [
|
|
310
|
+
{
|
|
311
|
+
internalType: "address",
|
|
312
|
+
name: "",
|
|
313
|
+
type: "address",
|
|
314
|
+
},
|
|
315
|
+
],
|
|
316
|
+
name: "activeBalance",
|
|
317
|
+
outputs: [
|
|
318
|
+
{
|
|
319
|
+
internalType: "uint256",
|
|
320
|
+
name: "",
|
|
321
|
+
type: "uint256",
|
|
322
|
+
},
|
|
323
|
+
],
|
|
324
|
+
stateMutability: "view",
|
|
325
|
+
type: "function",
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
inputs: [
|
|
329
|
+
{
|
|
330
|
+
internalType: "address",
|
|
331
|
+
name: "receiver",
|
|
332
|
+
type: "address",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
internalType: "uint256",
|
|
336
|
+
name: "scyDesired",
|
|
337
|
+
type: "uint256",
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
internalType: "uint256",
|
|
341
|
+
name: "ptDesired",
|
|
342
|
+
type: "uint256",
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
internalType: "bytes",
|
|
346
|
+
name: "data",
|
|
347
|
+
type: "bytes",
|
|
348
|
+
},
|
|
349
|
+
],
|
|
350
|
+
name: "addLiquidity",
|
|
351
|
+
outputs: [
|
|
352
|
+
{
|
|
353
|
+
internalType: "uint256",
|
|
354
|
+
name: "lpToAccount",
|
|
355
|
+
type: "uint256",
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
internalType: "uint256",
|
|
359
|
+
name: "scyUsed",
|
|
360
|
+
type: "uint256",
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
internalType: "uint256",
|
|
364
|
+
name: "ptUsed",
|
|
365
|
+
type: "uint256",
|
|
366
|
+
},
|
|
367
|
+
],
|
|
368
|
+
stateMutability: "nonpayable",
|
|
369
|
+
type: "function",
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
inputs: [
|
|
373
|
+
{
|
|
374
|
+
internalType: "address",
|
|
375
|
+
name: "owner",
|
|
376
|
+
type: "address",
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
internalType: "address",
|
|
380
|
+
name: "spender",
|
|
381
|
+
type: "address",
|
|
382
|
+
},
|
|
383
|
+
],
|
|
384
|
+
name: "allowance",
|
|
385
|
+
outputs: [
|
|
386
|
+
{
|
|
387
|
+
internalType: "uint256",
|
|
388
|
+
name: "",
|
|
389
|
+
type: "uint256",
|
|
390
|
+
},
|
|
391
|
+
],
|
|
392
|
+
stateMutability: "view",
|
|
393
|
+
type: "function",
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
inputs: [
|
|
397
|
+
{
|
|
398
|
+
internalType: "address",
|
|
399
|
+
name: "spender",
|
|
400
|
+
type: "address",
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
internalType: "uint256",
|
|
404
|
+
name: "amount",
|
|
405
|
+
type: "uint256",
|
|
406
|
+
},
|
|
407
|
+
],
|
|
408
|
+
name: "approve",
|
|
409
|
+
outputs: [
|
|
410
|
+
{
|
|
411
|
+
internalType: "bool",
|
|
412
|
+
name: "",
|
|
413
|
+
type: "bool",
|
|
414
|
+
},
|
|
415
|
+
],
|
|
416
|
+
stateMutability: "nonpayable",
|
|
417
|
+
type: "function",
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
inputs: [
|
|
421
|
+
{
|
|
422
|
+
internalType: "address",
|
|
423
|
+
name: "account",
|
|
424
|
+
type: "address",
|
|
425
|
+
},
|
|
426
|
+
],
|
|
427
|
+
name: "balanceOf",
|
|
428
|
+
outputs: [
|
|
429
|
+
{
|
|
430
|
+
internalType: "uint256",
|
|
431
|
+
name: "",
|
|
432
|
+
type: "uint256",
|
|
433
|
+
},
|
|
434
|
+
],
|
|
435
|
+
stateMutability: "view",
|
|
436
|
+
type: "function",
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
inputs: [],
|
|
440
|
+
name: "decimals",
|
|
441
|
+
outputs: [
|
|
442
|
+
{
|
|
443
|
+
internalType: "uint8",
|
|
444
|
+
name: "",
|
|
445
|
+
type: "uint8",
|
|
446
|
+
},
|
|
447
|
+
],
|
|
448
|
+
stateMutability: "view",
|
|
449
|
+
type: "function",
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
inputs: [
|
|
453
|
+
{
|
|
454
|
+
internalType: "address",
|
|
455
|
+
name: "spender",
|
|
456
|
+
type: "address",
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
internalType: "uint256",
|
|
460
|
+
name: "subtractedValue",
|
|
461
|
+
type: "uint256",
|
|
462
|
+
},
|
|
463
|
+
],
|
|
464
|
+
name: "decreaseAllowance",
|
|
465
|
+
outputs: [
|
|
466
|
+
{
|
|
467
|
+
internalType: "bool",
|
|
468
|
+
name: "",
|
|
469
|
+
type: "bool",
|
|
470
|
+
},
|
|
471
|
+
],
|
|
472
|
+
stateMutability: "nonpayable",
|
|
473
|
+
type: "function",
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
inputs: [],
|
|
477
|
+
name: "expiry",
|
|
478
|
+
outputs: [
|
|
479
|
+
{
|
|
480
|
+
internalType: "uint256",
|
|
481
|
+
name: "",
|
|
482
|
+
type: "uint256",
|
|
483
|
+
},
|
|
484
|
+
],
|
|
485
|
+
stateMutability: "view",
|
|
486
|
+
type: "function",
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
inputs: [],
|
|
490
|
+
name: "factory",
|
|
491
|
+
outputs: [
|
|
492
|
+
{
|
|
493
|
+
internalType: "address",
|
|
494
|
+
name: "",
|
|
495
|
+
type: "address",
|
|
496
|
+
},
|
|
497
|
+
],
|
|
498
|
+
stateMutability: "view",
|
|
499
|
+
type: "function",
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
inputs: [],
|
|
503
|
+
name: "gaugeController",
|
|
504
|
+
outputs: [
|
|
505
|
+
{
|
|
506
|
+
internalType: "address",
|
|
507
|
+
name: "",
|
|
508
|
+
type: "address",
|
|
509
|
+
},
|
|
510
|
+
],
|
|
511
|
+
stateMutability: "view",
|
|
512
|
+
type: "function",
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
inputs: [
|
|
516
|
+
{
|
|
517
|
+
internalType: "address",
|
|
518
|
+
name: "spender",
|
|
519
|
+
type: "address",
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
internalType: "uint256",
|
|
523
|
+
name: "addedValue",
|
|
524
|
+
type: "uint256",
|
|
525
|
+
},
|
|
526
|
+
],
|
|
527
|
+
name: "increaseAllowance",
|
|
528
|
+
outputs: [
|
|
529
|
+
{
|
|
530
|
+
internalType: "bool",
|
|
531
|
+
name: "",
|
|
532
|
+
type: "bool",
|
|
533
|
+
},
|
|
534
|
+
],
|
|
535
|
+
stateMutability: "nonpayable",
|
|
536
|
+
type: "function",
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
inputs: [],
|
|
540
|
+
name: "initialAnchor",
|
|
541
|
+
outputs: [
|
|
542
|
+
{
|
|
543
|
+
internalType: "int256",
|
|
544
|
+
name: "",
|
|
545
|
+
type: "int256",
|
|
546
|
+
},
|
|
547
|
+
],
|
|
548
|
+
stateMutability: "view",
|
|
549
|
+
type: "function",
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
inputs: [],
|
|
553
|
+
name: "isExpired",
|
|
554
|
+
outputs: [
|
|
555
|
+
{
|
|
556
|
+
internalType: "bool",
|
|
557
|
+
name: "",
|
|
558
|
+
type: "bool",
|
|
559
|
+
},
|
|
560
|
+
],
|
|
561
|
+
stateMutability: "view",
|
|
562
|
+
type: "function",
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
inputs: [],
|
|
566
|
+
name: "lastRewardBlock",
|
|
567
|
+
outputs: [
|
|
568
|
+
{
|
|
569
|
+
internalType: "uint256",
|
|
570
|
+
name: "",
|
|
571
|
+
type: "uint256",
|
|
572
|
+
},
|
|
573
|
+
],
|
|
574
|
+
stateMutability: "view",
|
|
575
|
+
type: "function",
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
inputs: [],
|
|
579
|
+
name: "name",
|
|
580
|
+
outputs: [
|
|
581
|
+
{
|
|
582
|
+
internalType: "string",
|
|
583
|
+
name: "",
|
|
584
|
+
type: "string",
|
|
585
|
+
},
|
|
586
|
+
],
|
|
587
|
+
stateMutability: "view",
|
|
588
|
+
type: "function",
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
inputs: [],
|
|
592
|
+
name: "pendle",
|
|
593
|
+
outputs: [
|
|
594
|
+
{
|
|
595
|
+
internalType: "address",
|
|
596
|
+
name: "",
|
|
597
|
+
type: "address",
|
|
598
|
+
},
|
|
599
|
+
],
|
|
600
|
+
stateMutability: "view",
|
|
601
|
+
type: "function",
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
inputs: [
|
|
605
|
+
{
|
|
606
|
+
internalType: "bool",
|
|
607
|
+
name: "updateRateOracle",
|
|
608
|
+
type: "bool",
|
|
609
|
+
},
|
|
610
|
+
],
|
|
611
|
+
name: "readState",
|
|
612
|
+
outputs: [
|
|
613
|
+
{
|
|
614
|
+
components: [
|
|
615
|
+
{
|
|
616
|
+
internalType: "int256",
|
|
617
|
+
name: "totalPt",
|
|
618
|
+
type: "int256",
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
internalType: "int256",
|
|
622
|
+
name: "totalScy",
|
|
623
|
+
type: "int256",
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
internalType: "int256",
|
|
627
|
+
name: "totalLp",
|
|
628
|
+
type: "int256",
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
internalType: "uint256",
|
|
632
|
+
name: "oracleRate",
|
|
633
|
+
type: "uint256",
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
internalType: "address",
|
|
637
|
+
name: "treasury",
|
|
638
|
+
type: "address",
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
internalType: "int256",
|
|
642
|
+
name: "scalarRoot",
|
|
643
|
+
type: "int256",
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
internalType: "uint256",
|
|
647
|
+
name: "lnFeeRateRoot",
|
|
648
|
+
type: "uint256",
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
internalType: "uint256",
|
|
652
|
+
name: "rateOracleTimeWindow",
|
|
653
|
+
type: "uint256",
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
internalType: "uint256",
|
|
657
|
+
name: "expiry",
|
|
658
|
+
type: "uint256",
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
internalType: "uint256",
|
|
662
|
+
name: "reserveFeePercent",
|
|
663
|
+
type: "uint256",
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
internalType: "uint256",
|
|
667
|
+
name: "lastLnImpliedRate",
|
|
668
|
+
type: "uint256",
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
internalType: "uint256",
|
|
672
|
+
name: "lastTradeTime",
|
|
673
|
+
type: "uint256",
|
|
674
|
+
},
|
|
675
|
+
],
|
|
676
|
+
internalType: "struct MarketState",
|
|
677
|
+
name: "market",
|
|
678
|
+
type: "tuple",
|
|
679
|
+
},
|
|
680
|
+
],
|
|
681
|
+
stateMutability: "view",
|
|
682
|
+
type: "function",
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
inputs: [],
|
|
686
|
+
name: "readTokens",
|
|
687
|
+
outputs: [
|
|
688
|
+
{
|
|
689
|
+
internalType: "contract ISuperComposableYield",
|
|
690
|
+
name: "_SCY",
|
|
691
|
+
type: "address",
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
internalType: "contract IPPrincipalToken",
|
|
695
|
+
name: "_PT",
|
|
696
|
+
type: "address",
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
internalType: "contract IPYieldToken",
|
|
700
|
+
name: "_YT",
|
|
701
|
+
type: "address",
|
|
702
|
+
},
|
|
703
|
+
],
|
|
704
|
+
stateMutability: "view",
|
|
705
|
+
type: "function",
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
inputs: [
|
|
709
|
+
{
|
|
710
|
+
internalType: "address",
|
|
711
|
+
name: "receiver",
|
|
712
|
+
type: "address",
|
|
713
|
+
},
|
|
714
|
+
],
|
|
715
|
+
name: "redeemReward",
|
|
716
|
+
outputs: [
|
|
717
|
+
{
|
|
718
|
+
internalType: "uint256[]",
|
|
719
|
+
name: "",
|
|
720
|
+
type: "uint256[]",
|
|
721
|
+
},
|
|
722
|
+
],
|
|
723
|
+
stateMutability: "nonpayable",
|
|
724
|
+
type: "function",
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
inputs: [],
|
|
728
|
+
name: "redeemScyReward",
|
|
729
|
+
outputs: [
|
|
730
|
+
{
|
|
731
|
+
internalType: "uint256[]",
|
|
732
|
+
name: "outAmounts",
|
|
733
|
+
type: "uint256[]",
|
|
734
|
+
},
|
|
735
|
+
],
|
|
736
|
+
stateMutability: "nonpayable",
|
|
737
|
+
type: "function",
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
inputs: [
|
|
741
|
+
{
|
|
742
|
+
internalType: "address",
|
|
743
|
+
name: "receiverScy",
|
|
744
|
+
type: "address",
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
internalType: "address",
|
|
748
|
+
name: "receiverPt",
|
|
749
|
+
type: "address",
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
internalType: "uint256",
|
|
753
|
+
name: "lpToRemove",
|
|
754
|
+
type: "uint256",
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
internalType: "bytes",
|
|
758
|
+
name: "data",
|
|
759
|
+
type: "bytes",
|
|
760
|
+
},
|
|
761
|
+
],
|
|
762
|
+
name: "removeLiquidity",
|
|
763
|
+
outputs: [
|
|
764
|
+
{
|
|
765
|
+
internalType: "uint256",
|
|
766
|
+
name: "scyToAccount",
|
|
767
|
+
type: "uint256",
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
internalType: "uint256",
|
|
771
|
+
name: "ptToAccount",
|
|
772
|
+
type: "uint256",
|
|
773
|
+
},
|
|
774
|
+
],
|
|
775
|
+
stateMutability: "nonpayable",
|
|
776
|
+
type: "function",
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
inputs: [
|
|
780
|
+
{
|
|
781
|
+
internalType: "address",
|
|
782
|
+
name: "",
|
|
783
|
+
type: "address",
|
|
784
|
+
},
|
|
785
|
+
],
|
|
786
|
+
name: "rewardState",
|
|
787
|
+
outputs: [
|
|
788
|
+
{
|
|
789
|
+
internalType: "uint128",
|
|
790
|
+
name: "index",
|
|
791
|
+
type: "uint128",
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
internalType: "uint128",
|
|
795
|
+
name: "lastBalance",
|
|
796
|
+
type: "uint128",
|
|
797
|
+
},
|
|
798
|
+
],
|
|
799
|
+
stateMutability: "view",
|
|
800
|
+
type: "function",
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
inputs: [],
|
|
804
|
+
name: "scalarRoot",
|
|
805
|
+
outputs: [
|
|
806
|
+
{
|
|
807
|
+
internalType: "int256",
|
|
808
|
+
name: "",
|
|
809
|
+
type: "int256",
|
|
810
|
+
},
|
|
811
|
+
],
|
|
812
|
+
stateMutability: "view",
|
|
813
|
+
type: "function",
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
inputs: [
|
|
817
|
+
{
|
|
818
|
+
internalType: "address",
|
|
819
|
+
name: "receiver",
|
|
820
|
+
type: "address",
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
internalType: "uint256",
|
|
824
|
+
name: "exactPtIn",
|
|
825
|
+
type: "uint256",
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
internalType: "uint256",
|
|
829
|
+
name: "minScyOut",
|
|
830
|
+
type: "uint256",
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
internalType: "bytes",
|
|
834
|
+
name: "data",
|
|
835
|
+
type: "bytes",
|
|
836
|
+
},
|
|
837
|
+
],
|
|
838
|
+
name: "swapExactPtForScy",
|
|
839
|
+
outputs: [
|
|
840
|
+
{
|
|
841
|
+
internalType: "uint256",
|
|
842
|
+
name: "netScyOut",
|
|
843
|
+
type: "uint256",
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
internalType: "uint256",
|
|
847
|
+
name: "netScyToReserve",
|
|
848
|
+
type: "uint256",
|
|
849
|
+
},
|
|
850
|
+
],
|
|
851
|
+
stateMutability: "nonpayable",
|
|
852
|
+
type: "function",
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
inputs: [
|
|
856
|
+
{
|
|
857
|
+
internalType: "address",
|
|
858
|
+
name: "receiver",
|
|
859
|
+
type: "address",
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
internalType: "uint256",
|
|
863
|
+
name: "exactPtOut",
|
|
864
|
+
type: "uint256",
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
internalType: "uint256",
|
|
868
|
+
name: "maxScyIn",
|
|
869
|
+
type: "uint256",
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
internalType: "bytes",
|
|
873
|
+
name: "data",
|
|
874
|
+
type: "bytes",
|
|
875
|
+
},
|
|
876
|
+
],
|
|
877
|
+
name: "swapScyForExactPt",
|
|
878
|
+
outputs: [
|
|
879
|
+
{
|
|
880
|
+
internalType: "uint256",
|
|
881
|
+
name: "netScyIn",
|
|
882
|
+
type: "uint256",
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
internalType: "uint256",
|
|
886
|
+
name: "netScyToReserve",
|
|
887
|
+
type: "uint256",
|
|
888
|
+
},
|
|
889
|
+
],
|
|
890
|
+
stateMutability: "nonpayable",
|
|
891
|
+
type: "function",
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
inputs: [],
|
|
895
|
+
name: "symbol",
|
|
896
|
+
outputs: [
|
|
897
|
+
{
|
|
898
|
+
internalType: "string",
|
|
899
|
+
name: "",
|
|
900
|
+
type: "string",
|
|
901
|
+
},
|
|
902
|
+
],
|
|
903
|
+
stateMutability: "view",
|
|
904
|
+
type: "function",
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
inputs: [],
|
|
908
|
+
name: "timeCreated",
|
|
909
|
+
outputs: [
|
|
910
|
+
{
|
|
911
|
+
internalType: "uint256",
|
|
912
|
+
name: "",
|
|
913
|
+
type: "uint256",
|
|
914
|
+
},
|
|
915
|
+
],
|
|
916
|
+
stateMutability: "view",
|
|
917
|
+
type: "function",
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
inputs: [],
|
|
921
|
+
name: "totalActiveSupply",
|
|
922
|
+
outputs: [
|
|
923
|
+
{
|
|
924
|
+
internalType: "uint256",
|
|
925
|
+
name: "",
|
|
926
|
+
type: "uint256",
|
|
927
|
+
},
|
|
928
|
+
],
|
|
929
|
+
stateMutability: "view",
|
|
930
|
+
type: "function",
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
inputs: [],
|
|
934
|
+
name: "totalSupply",
|
|
935
|
+
outputs: [
|
|
936
|
+
{
|
|
937
|
+
internalType: "uint256",
|
|
938
|
+
name: "",
|
|
939
|
+
type: "uint256",
|
|
940
|
+
},
|
|
941
|
+
],
|
|
942
|
+
stateMutability: "view",
|
|
943
|
+
type: "function",
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
inputs: [
|
|
947
|
+
{
|
|
948
|
+
internalType: "address",
|
|
949
|
+
name: "to",
|
|
950
|
+
type: "address",
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
internalType: "uint256",
|
|
954
|
+
name: "amount",
|
|
955
|
+
type: "uint256",
|
|
956
|
+
},
|
|
957
|
+
],
|
|
958
|
+
name: "transfer",
|
|
959
|
+
outputs: [
|
|
960
|
+
{
|
|
961
|
+
internalType: "bool",
|
|
962
|
+
name: "",
|
|
963
|
+
type: "bool",
|
|
964
|
+
},
|
|
965
|
+
],
|
|
966
|
+
stateMutability: "nonpayable",
|
|
967
|
+
type: "function",
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
inputs: [
|
|
971
|
+
{
|
|
972
|
+
internalType: "address",
|
|
973
|
+
name: "from",
|
|
974
|
+
type: "address",
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
internalType: "address",
|
|
978
|
+
name: "to",
|
|
979
|
+
type: "address",
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
internalType: "uint256",
|
|
983
|
+
name: "amount",
|
|
984
|
+
type: "uint256",
|
|
985
|
+
},
|
|
986
|
+
],
|
|
987
|
+
name: "transferFrom",
|
|
988
|
+
outputs: [
|
|
989
|
+
{
|
|
990
|
+
internalType: "bool",
|
|
991
|
+
name: "",
|
|
992
|
+
type: "bool",
|
|
993
|
+
},
|
|
994
|
+
],
|
|
995
|
+
stateMutability: "nonpayable",
|
|
996
|
+
type: "function",
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
inputs: [
|
|
1000
|
+
{
|
|
1001
|
+
internalType: "address",
|
|
1002
|
+
name: "",
|
|
1003
|
+
type: "address",
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
internalType: "address",
|
|
1007
|
+
name: "",
|
|
1008
|
+
type: "address",
|
|
1009
|
+
},
|
|
1010
|
+
],
|
|
1011
|
+
name: "userReward",
|
|
1012
|
+
outputs: [
|
|
1013
|
+
{
|
|
1014
|
+
internalType: "uint128",
|
|
1015
|
+
name: "index",
|
|
1016
|
+
type: "uint128",
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
internalType: "uint128",
|
|
1020
|
+
name: "accrued",
|
|
1021
|
+
type: "uint128",
|
|
1022
|
+
},
|
|
1023
|
+
],
|
|
1024
|
+
stateMutability: "view",
|
|
1025
|
+
type: "function",
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
inputs: [
|
|
1029
|
+
{
|
|
1030
|
+
internalType: "address",
|
|
1031
|
+
name: "token",
|
|
1032
|
+
type: "address",
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
internalType: "address",
|
|
1036
|
+
name: "user",
|
|
1037
|
+
type: "address",
|
|
1038
|
+
},
|
|
1039
|
+
],
|
|
1040
|
+
name: "userRewardAccrued",
|
|
1041
|
+
outputs: [
|
|
1042
|
+
{
|
|
1043
|
+
internalType: "uint128",
|
|
1044
|
+
name: "",
|
|
1045
|
+
type: "uint128",
|
|
1046
|
+
},
|
|
1047
|
+
],
|
|
1048
|
+
stateMutability: "view",
|
|
1049
|
+
type: "function",
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
inputs: [],
|
|
1053
|
+
name: "vePendle",
|
|
1054
|
+
outputs: [
|
|
1055
|
+
{
|
|
1056
|
+
internalType: "contract IPVeToken",
|
|
1057
|
+
name: "",
|
|
1058
|
+
type: "address",
|
|
1059
|
+
},
|
|
1060
|
+
],
|
|
1061
|
+
stateMutability: "view",
|
|
1062
|
+
type: "function",
|
|
1063
|
+
},
|
|
1064
|
+
];
|
|
1065
|
+
|
|
1066
|
+
const _bytecode =
|
|
1067
|
+
"0x6102006040523480156200001257600080fd5b506040516200573638038062005736833981016040819052620000359162000441565b8484846040518060400160405280600d81526020016c14195b991b194813585c9ad95d609a1b8152506040518060400160405280600a8152602001691411539113114b53141560b21b8152506012856001600160a01b031663e184c9be6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620000c2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000e891906200049f565b6001600160a01b03808a1660a052881660c081905260408051635162986d60e11b81529051869286928d928d929163a2c530da91600480830192602092919082900301816000875af115801562000143573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001699190620004b9565b6001600160a01b0316608052505081516200018c9060089060208501906200037e565b508051620001a29060099060208401906200037e565b505050428111620001eb5760405162461bcd60e51b815260206004820152600e60248201526d494e56414c49445f45585049525960901b60448201526064015b60405180910390fd5b60ff90911660e052426101005261012052505033610140526001600160a01b038316610160819052604080516323dfd63160e11b815290516347bfac62916004808201926020929091908290030181865afa1580156200024f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002759190620004b9565b6001600160a01b0316610180816001600160a01b031681525050826001600160a01b031663781c18db6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620002ce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002f49190620004b9565b6001600160a01b03166101a05260008213620003535760405162461bcd60e51b815260206004820152601b60248201527f7363616c6172526f6f74206d75737420626520706f73697469766500000000006044820152606401620001e2565b6101c0919091526101e0525050600b805460ff60e01b1916600160e01b179055506200051a92505050565b8280546200038c90620004de565b90600052602060002090601f016020900481019282620003b05760008555620003fb565b82601f10620003cb57805160ff1916838001178555620003fb565b82800160010185558215620003fb579182015b82811115620003fb578251825591602001919060010190620003de565b50620004099291506200040d565b5090565b5b808211156200040957600081556001016200040e565b80516001600160a01b03811681146200043c57600080fd5b919050565b600080600080600060a086880312156200045a57600080fd5b620004658662000424565b94506020860151935060408601519250620004836060870162000424565b9150620004936080870162000424565b90509295509295909350565b600060208284031215620004b257600080fd5b5051919050565b600060208284031215620004cc57600080fd5b620004d78262000424565b9392505050565b600181811c90821680620004f357607f821691505b6020821081036200051457634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516101e0516150a3620006936000396000818161054101526110ef0152600081816105ed0152610fc70152600081816102f401526104f30152600081816102a7015281816103b5015281816109070152818161098d015281816109c701528181610baf01528181610c31015281816110a301528181611252015281816113bb0152818161168f0152818161174e015281816118070152818161310f01526139060152600081816102cc0152818161070001528181610a80015281816111af015281816113ef01526117140152600081816106d901528181610cbb0152610f0b0152600081816103250152818161073a015281816108b401528181610fed015261163c0152600061079501526000610353015260008181610570015261419301526000818161051a0152818161230e01526123a8015260008181610597015281816131a3015261325c01526150a36000f3fe608060405234801561001057600080fd5b50600436106101cd5760003560e01c806306fdde03146101d25780630892cd8b146101f0578063095ea7b31461021e5780631128c55e1461024157806318160ddd1461026957806323b872dd146102715780632b20096c146102845780632c8ce6bc146102995780632f13b60c14610323578063313ce5671461034c578063395093511461037d57806339e718f61461039057806347bfac62146103b05780635308fcb1146103e45780635cbadbe4146104065780636b8ae5f3146104655780636f515945146104bf57806370a08231146104d257806372069264146104e5578063781c18db146104ee57806382dabb211461051557806391e7c0151461053c57806395d89b411461056357806399eecb3b1461056b578063a2c530da14610592578063a457c2d7146105b9578063a9059cbb146105cc578063a9f8d181146105df578063af247da3146105e8578063b286de761461060f578063b4c3da4614610622578063bd4aa74714610635578063c3fb90d61461063d578063c45a0155146106d4578063d94073d4146106fb578063dd62ed3e14610722578063e184c9be14610735578063ea64a8201461075c578063f1653f6e14610790575b600080fd5b6101da6107b7565b6040516101e79190614673565b60405180910390f35b6102106101fe3660046146bb565b60046020526000908152604090205481565b6040519081526020016101e7565b61023161022c3660046146d8565b610849565b60405190151581526020016101e7565b61025461024f36600461474c565b610863565b604080519283526020830191909152016101e7565b600754610210565b61023161027f3660046147b5565b610b6f565b61028c610b95565b6040516101e791906147f6565b604080516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811682527f0000000000000000000000000000000000000000000000000000000000000000811660208301527f000000000000000000000000000000000000000000000000000000000000000016918101919091526060016101e7565b7f0000000000000000000000000000000000000000000000000000000000000000421015610231565b60405160ff7f00000000000000000000000000000000000000000000000000000000000000001681526020016101e7565b61023161038b3660046146d8565b610db1565b6103a361039e366004614848565b610df0565b6040516101e79190614865565b6103d77f000000000000000000000000000000000000000000000000000000000000000081565b6040516101e791906148ff565b6103f76103f236600461474c565b611046565b6040516101e793929190614913565b610445610414366004614929565b60026020908152600092835260408084209091529082529020546001600160801b0380821691600160801b90041682565b604080516001600160801b039384168152929091166020830152016101e7565b6104a7610473366004614929565b6001600160a01b0391821660009081526002602090815260408083209390941682529190915220546001600160801b031690565b6040516001600160801b0390911681526020016101e7565b6102546104cd366004614962565b611349565b6102106104e03660046146bb565b611500565b61021060035481565b6103d77f000000000000000000000000000000000000000000000000000000000000000081565b6103d77f000000000000000000000000000000000000000000000000000000000000000081565b6102107f000000000000000000000000000000000000000000000000000000000000000081565b6101da61151b565b6103d77f000000000000000000000000000000000000000000000000000000000000000081565b6103d77f000000000000000000000000000000000000000000000000000000000000000081565b6102316105c73660046146d8565b61152a565b6102316105da3660046146d8565b6115c7565b61021060005481565b6102107f000000000000000000000000000000000000000000000000000000000000000081565b61028c61061d3660046146bb565b6115d5565b61025461063036600461474c565b6115f4565b610210602881565b600a54600b5461068a91600f81810b92600160801b909204900b906001600160601b0380821691600160601b810490911690600160c01b810463ffffffff1690600160e01b900460ff1686565b60408051600f97880b81529590960b60208601526001600160601b03938416958501959095529116606083015263ffffffff16608082015260ff90911660a082015260c0016101e7565b6103d77f000000000000000000000000000000000000000000000000000000000000000081565b6103d77f000000000000000000000000000000000000000000000000000000000000000081565b610210610730366004614929565b6118c0565b6102107f000000000000000000000000000000000000000000000000000000000000000081565b61044561076a3660046146bb565b6001602052600090815260409020546001600160801b0380821691600160801b90041682565b6102107f000000000000000000000000000000000000000000000000000000000000000081565b6060600880546107c6906149b7565b80601f01602080910402602001604051908101604052809291908181526020018280546107f2906149b7565b801561083f5780601f106108145761010080835404028352916020019161083f565b820191906000526020600020905b81548152906001019060200180831161082257829003601f168201915b5050505050905090565b6000336108578185856118eb565b60019150505b92915050565b600b546000908190600119600160e01b90910460ff160161089f5760405162461bcd60e51b8152600401610896906149eb565b60405180910390fd5b600b805460ff60e01b1916600160e11b1790557f000000000000000000000000000000000000000000000000000000000000000042106108f15760405162461bcd60e51b815260040161089690614a22565b60006108fd6001610df0565b905061093461092b7f0000000000000000000000000000000000000000000000000000000000000000611a0f565b82908942611a75565b9093509150858310156109805760405162461bcd60e51b81526020600482015260146024820152731a5b9cdd59999a58da595b9d081cd8de481bdd5d60621b6044820152606401610896565b6109b46001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168985611ab4565b60808101516109ee906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169084611ab4565b6109f781611b0b565b8315610a69573363fa483e72610a0c89611c3b565b610a1586611c52565b88886040518563ffffffff1660e01b8152600401610a369493929190614a73565b600060405180830381600087803b158015610a5057600080fd5b505af1158015610a64573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610ab59030906004016148ff565b602060405180830381865afa158015610ad2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af69190614a9d565b8151610b0190611c68565b1115610b0c57600080fd5b876001600160a01b031660008051602061502e833981519152610b2e89611c3b565b610b3786611c52565b85604051610b4793929190614913565b60405180910390a250600b805460ff60e01b1916600160e01b17905590969095509350505050565b600033610b7d858285611c77565b610b88858585611cf1565b60019150505b9392505050565b604051633bd73ee360e21b81526060906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063ef5cfb8c90610be49030906004016148ff565b6000604051808303816000875af1158015610c03573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c2b9190810190614b1f565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c4f59f9b6040518163ffffffff1660e01b8152600401600060405180830381865afa158015610c8d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610cb59190810190614ba9565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166361d027b36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3b9190614c37565b905060005b8251811015610dab57610d9982858381518110610d5f57610d5f614c54565b6020026020010151858481518110610d7957610d79614c54565b60200260200101516001600160a01b0316611ab49092919063ffffffff16565b80610da381614c80565b915050610d40565b50505090565b3360008181526006602090815260408083206001600160a01b03871684529091528120549091906108579082908690610deb908790614c99565b6118eb565b610e5d6040518061018001604052806000815260200160008152602001600081526020016000815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805160c081018252600a54600f81810b808452600160801b909204810b6020808501918252600b546001600160601b0380821697870197909752600160601b81049096166060860152600160c01b860463ffffffff166080860152600160e01b90950460ff1660a08501529185529051900b91830191909152600754610ee990611c52565b611c52565b82604001818152505080606001516001600160601b03168260600181815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323c113dc6040518163ffffffff1660e01b8152600401608060405180830381865afa158015610f67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8b9190614cb1565b60ff1661012086015263ffffffff90811660e08601526001600160601b0391821660c08601526001600160a01b039092166080808601919091527f000000000000000000000000000000000000000000000000000000000000000060a08601527f000000000000000000000000000000000000000000000000000000000000000061010086015260408401519091166101408501528201511661016083015282156110405761103a8242611ebe565b60608301525b50919050565b600b5460009081908190600119600160e01b90910460ff160161107b5760405162461bcd60e51b8152600401610896906149eb565b600b805460ff60e01b1916600160e11b179055600061109a6001610df0565b905060006110c77f0000000000000000000000000000000000000000000000000000000000000000611a0f565b905060006110d983838c8c6001611f76565b919850965094509050801561111f5761111483837f000000000000000000000000000000000000000000000000000000000000000042611fe3565b61111f600182612078565b6111298b87612078565b61113283611b0b565b8615611198576040516380a6f63560e01b815233906380a6f63590611165908e908a908a908a908f908f90600401614d2b565b600060405180830381600087803b15801561117f57600080fd5b505af1158015611193573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906111e49030906004016148ff565b602060405180830381865afa158015611201573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112259190614a9d565b835161123090611c68565b111561123b57600080fd5b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906112879030906004016148ff565b602060405180830381865afa1580156112a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c89190614a9d565b6112d58460200151611c68565b11156112e057600080fd5b8a6001600160a01b03167fbeb3885786d637a474cbc287c0a44587231633a077f0bd30354d5a4b18996fce87878760405161131d93929190614913565b60405180910390a25050600b805460ff60e01b1916600160e01b17905550919790965090945092505050565b600b546000908190600119600160e01b90910460ff160161137c5760405162461bcd60e51b8152600401610896906149eb565b600b805460ff60e01b1916600160e11b179055600061139b6001610df0565b90506113a98187600161215d565b90935091506113e26001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168985611ab4565b6114166001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168884611ab4565b61141f81611b0b565b83156114875760405163c3a92c3960e01b8152339063c3a92c3990611454908b908b908b90899089908d908d90600401614d5f565b600060405180830381600087803b15801561146e57600080fd5b505af1158015611482573d6000803e3d6000fd5b505050505b611491308761219a565b866001600160a01b0316886001600160a01b03167feb755d537a0caac69ccb1ac1dc2b7397a32bb19f93bd06013c57ac0b2e5dd69c8886866040516114d893929190614913565b60405180910390a350600b805460ff60e01b1916600160e01b17905590969095509350505050565b6001600160a01b031660009081526005602052604090205490565b6060600980546107c6906149b7565b3360008181526006602090815260408083206001600160a01b0387168452909152812054909190838110156115af5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610896565b6115bc82868684036118eb565b506001949350505050565b600033610857818585611cf1565b6060336115e1816122e9565b6115ea816122fd565b610b8e8184612509565b600b546000908190600119600160e01b90910460ff16016116275760405162461bcd60e51b8152600401610896906149eb565b600b805460ff60e01b1916600160e11b1790557f000000000000000000000000000000000000000000000000000000000000000042106116795760405162461bcd60e51b815260040161089690614a22565b60006116856001610df0565b90506116bc6116b37f0000000000000000000000000000000000000000000000000000000000000000611a0f565b829089426126f5565b9093509150858311156117075760405162461bcd60e51b81526020600482015260136024820152721cd8de481a5b88195e18d95959081b1a5b5a5d606a1b6044820152606401610896565b61173b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168989611ab4565b6080810151611775906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169084611ab4565b61177e81611b0b565b83156117f0573363fa483e7261179389611c52565b61179c86611c3b565b88886040518563ffffffff1660e01b81526004016117bd9493929190614a73565b600060405180830381600087803b1580156117d757600080fd5b505af11580156117eb573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319061183c9030906004016148ff565b602060405180830381865afa158015611859573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061187d9190614a9d565b61188a8260200151611c68565b111561189557600080fd5b876001600160a01b031660008051602061502e8339815191526118b789611c52565b610b3786611c3b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b6001600160a01b03831661194d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610896565b6001600160a01b0382166119ae5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610896565b6001600160a01b0383811660008181526006602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000816001600160a01b031663bd6d894d6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611a51573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085d9190614a9d565b600080600080611a8f8888611a8989611c3b565b8861271e565b91509150611a9c82611c68565b9350611aa781611c68565b9250505094509492505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611b069084906127e2565b505050565b8051611b16906128b4565b600a80546001600160801b0319166001600160801b03929092169190911790556020810151611b44906128b4565b600a80546001600160801b03928316600160801b029216919091179055610140810151611b70906128da565b600b80546001600160601b0319166001600160601b03929092169190911790556060810151611b9e906128da565b600b80546001600160601b0392909216600160601b02600160601b600160c01b0319909216919091179055610160810151611bd8906128ec565b600b805463ffffffff92909216600160c01b0263ffffffff60c01b1990921691909117905561014081015160405190815242907f5c0e21d57bb4cf91d8fe238d6f92e2685a695371b19209afcce6217b478f83e19060200160405180910390a250565b6000611c4682611c52565b61085d90600019614d9d565b6000600160ff1b8210611c6457600080fd5b5090565b600080821215611c6457600080fd5b6000611c8384846118c0565b90506000198114611ceb5781811015611cde5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610896565b611ceb84848484036118eb565b50505050565b6001600160a01b038316611d555760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610896565b6001600160a01b038216611db75760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610896565b611dc28383836128fe565b6001600160a01b03831660009081526005602052604090205481811015611e3a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610896565b6001600160a01b03808516600090815260056020526040808220858503905591851681529081208054849290611e71908490614c99565b92505081905550826001600160a01b0316846001600160a01b031660008051602061504e83398151915284604051611eab91815260200190565b60405180910390a3611ceb848484612964565b6000818361016001511115611ed9575061014082015161085d565b600083610160015183611eec9190614e22565b90508360e00151811115611f0757505061014082015161085d565b6000611f208560e00151836129c290919063ffffffff16565b90506000611f3682670de0b6b3a7640000614e22565b90506000611f518288606001516129f190919063ffffffff16565b610140880151611f6190856129f1565b611f6b9190614c99565b979650505050505050565b600080600080600080600080611f9f8d8d611f908e611c52565b611f998e611c52565b8d612a0f565b9350935093509350611fb084611c68565b9750611fbb83611c68565b9650611fc682611c68565b9550611fd181611c68565b94505050505095509550955095915050565b83610100015181106120075760405162461bcd60e51b815260040161089690614e39565b6000612020856020015185612be190919063ffffffff16565b90506000828661010001516120359190614e22565b905060006120438783612c20565b90506120668760000151848388888c61010001516120619190614e22565b612c9f565b61014090970196909652505050505050565b6001600160a01b0382166120ce5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610896565b6120da600083836128fe565b80600760008282546120ec9190614c99565b90915550506001600160a01b03821660009081526005602052604081208054839290612119908490614c99565b90915550506040518181526001600160a01b0383169060009060008051602061504e8339815191529060200160405180910390a361215960008383612964565b5050565b6000806000806121768761217088611c52565b87612cf2565b9150915061218382611c68565b935061218e81611c68565b92505050935093915050565b6001600160a01b0382166121fa5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610896565b612206826000836128fe565b6001600160a01b0382166000908152600560205260409020548181101561227a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610896565b6001600160a01b03831660009081526005602052604081208383039055600780548492906122a9908490614e22565b90915550506040518281526000906001600160a01b0385169060008051602061504e8339815191529060200160405180910390a3611b0683600084612964565b6122f1612dbd565b6122fa81612f2a565b50565b6000612308826130d8565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231846040518263ffffffff1660e01b815260040161235891906148ff565b602060405180830381865afa158015612375573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123999190614e61565b6001600160801b0316905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166330d981af6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015612406573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061242a9190614e61565b6001600160801b0316905060006064612444602886614e8a565b61244e9190614ebf565b905081156124a2576064612463602882614e22565b838561246d6130e3565b6124779190614e8a565b6124819190614ebf565b61248b9190614e8a565b6124959190614ebf565b61249f9082614c99565b90505b60006124ae82866130f3565b6001600160a01b03871660009081526004602052604090205460035491925082916124d99190614e22565b6124e39190614c99565b6003556001600160a01b0390951660009081526004602052604090209490945550505050565b60606000612515613109565b905080516001600160401b0381111561253057612530614ab6565b604051908082528060200260200182016040528015612559578160200160208202803683370190505b50915060005b81518110156126ed57600082828151811061257c5761257c614c54565b6020908102919091018101516001600160a01b038082166000908152600284526040808220928b16825291909352909120548551919250600160801b90046001600160801b0316908590849081106125d6576125d6614c54565b6020908102919091018101919091526001600160a01b038083166000908152600283526040808220928a16825291909252902080546001600160801b03169055835161263b9085908490811061262e5761262e614c54565b602002602001015161331f565b6001600160a01b03821660009081526001602052604090208054601090612673908490600160801b90046001600160801b0316614ed3565b92506101000a8154816001600160801b0302191690836001600160801b031602179055508382815181106126a9576126a9614c54565b60200260200101516000146126dc576126dc81868685815181106126cf576126cf614c54565b6020026020010151613331565b506126e681614c80565b905061255f565b505092915050565b6000806000806127098888611a8989611c52565b91509150611a9c612719836133e8565b611c68565b60008085610100015183106127455760405162461bcd60e51b815260040161089690614e39565b8551841261278e5760405162461bcd60e51b8152602060048201526016602482015275696e73756666696369656e74206c697175696469747960501b6044820152606401610896565b600061279b8787866133f6565b90506000806127ab898489613510565b90925090506127ba888361361d565b94506127c6888261361d565b93506127d689848a8a898b61364a565b50505094509492505050565b6000612837826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166136ff9092919063ffffffff16565b805190915015611b0657808060200190518101906128559190614efb565b611b065760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610896565b60008160016001607f1b0319131580156128d157506001607f1b82125b611c6457600080fd5b6000600160601b8210611c6457600080fd5b6000600160201b8210611c6457600080fd5b612906612dbd565b6001600160a01b0383161580159061292757506001600160a01b0383163014155b156129355761293583612f2a565b6001600160a01b0382161580159061295657506001600160a01b0382163014155b15611b0657611b0682612f2a565b6001600160a01b0383161580159061298557506001600160a01b0383163014155b1561299357612993836122fd565b6001600160a01b038216158015906129b457506001600160a01b0382163014155b15611b0657611b06826122fd565b6000806129d7670de0b6b3a764000085614e8a565b90508281816129e8576129e8614ea9565b04949350505050565b6000806129fe8385614e8a565b9050670de0b6b3a7640000816129e8565b600080600080600087138015612a255750600086135b612a605760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f414d4f554e545360a01b6044820152606401610896565b8860400151600003612a9457612a826103e8612a7c8a8a612be1565b9061370e565b92506103e89350869150859050612b37565b885160408a015160009190612aa99089614d9d565b612ab39190614f18565b905060008a602001518b604001518a612acc9190614d9d565b612ad69190614f18565b905080821215612b0c578194508792508a60400151858c60200151612afb9190614d9d565b612b059190614f18565b9350612b34565b8094508893508a60400151858c60000151612b279190614d9d565b612b319190614f18565b92505b50505b60008313612b875760405162461bcd60e51b815260206004820152601d60248201527f494e53554646494349454e545f4c49515549444954595f4d494e5445440000006044820152606401610896565b8415612bd5578189602001818151612b9f9190614f46565b905250885181908a90612bb3908390614f46565b905250612bc08484614f46565b89604001818151612bd19190614f46565b9052505b95509550955095915050565b60008060008312612bf3576001612bf7565b6000195b9050612c0e610ee485612c0986613755565b61376c565b612c189082614d9d565b949350505050565b6000612c2b82611c52565b612c3d610ee462015180610168614e8a565b8460a00151612c4c9190614d9d565b612c569190614f18565b90506000811361085d5760405162461bcd60e51b8152602060048201526014602482015273726174655363616c617220756e646572666c6f7760601b6044820152606401610896565b600080612cb087878787600061378b565b90506000612cc06127198361385c565b905083612cd262015180610168614e8a565b612cdc9083614e8a565b612ce69190614ebf565b98975050505050505050565b60008060008413612d395760405162461bcd60e51b81526020600482015260116024820152701a5b9d985b1a59081b1c08185b5bdd5b9d607a1b6044820152606401610896565b60408501516020860151612d4d9086614d9d565b612d579190614f18565b6040860151865191935090612d6c9086614d9d565b612d769190614f18565b90508215612db5576040850151612d8d908561370e565b60408601528451612d9e908261370e565b85526020850151612daf908361370e565b60208601525b935093915050565b4360005403612dc857565b43600055612dd46138ef565b6000612ddf60035490565b90506000612deb613109565b905060005b8151811015611b06576000828281518110612e0d57612e0d614c54565b602002602001015190506000612e228261398d565b6001600160a01b03831660009081526001602052604081205491925090612e5990600160801b90046001600160801b031683614e22565b6001600160a01b0384166000908152600160205260408120549192506001600160801b0390911690819003612e8c575060015b8615612ea957612e9c82886129c2565b612ea69082614c99565b90505b6040518060400160405280612ebd8361331f565b6001600160801b03168152602001612ed48561331f565b6001600160801b039081169091526001600160a01b039095166000908152600160209081526040909120825192909101518616600160801b02919095161790935550612f239150829050614c80565b9050612df0565b6000612f34613109565b90506000612f57836001600160a01b031660009081526004602052604090205490565b905060005b8251811015611ceb576000838281518110612f7957612f79614c54565b6020908102919091018101516001600160a01b0380821660009081526001845260408082205460028652818320938b1683529290945292909220549092506001600160801b03918216911680158015612fd25750600082115b15612fdb575060015b808203612fea575050506130c8565b6000612ff68284614e22565b9050600061300487836129f1565b6001600160a01b038681166000908152600260209081526040808320938e168352929052908120549192509061304b908390600160801b90046001600160801b0316614c99565b905060405180604001604052806130618761331f565b6001600160801b031681526020016130788361331f565b6001600160801b039081169091526001600160a01b0397881660009081526002602090815260408083209a8f168352998152989020825192909801518116600160801b0291161790955550505050505b6130d181614c80565b9050612f5c565b600061085d82611500565b60006130ee60075490565b905090565b60008183106131025781610b8e565b5090919050565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c4f59f9b6040518163ffffffff1660e01b8152600401600060405180830381865afa15801561316b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526131939190810190614ba9565b905060005b8151811015613209577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168282815181106131dd576131dd614c54565b60200260200101516001600160a01b0316036131f95750919050565b61320281614c80565b9050613198565b508051613217906001614c99565b6001600160401b0381111561322e5761322e614ab6565b604051908082528060200260200182016040528015613257578160200160208202803683370190505b5091507f00000000000000000000000000000000000000000000000000000000000000008260008151811061328e5761328e614c54565b60200260200101906001600160a01b031690816001600160a01b03168152505060005b815181101561331a578181815181106132cc576132cc614c54565b6020026020010151838260016132e29190614c99565b815181106132f2576132f2614c54565b6001600160a01b039092166020928302919091019091015261331381614c80565b90506132b1565b505090565b6000600160801b8210611c6457600080fd5b6001600160a01b0383166133d4576000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461338c576040519150601f19603f3d011682016040523d82523d6000602084013e613391565b606091505b5050905080611ceb5760405162461bcd60e51b815260206004820152600f60248201526e195d1a081cd95b990819985a5b1959608a1b6044820152606401610896565b611b066001600160a01b0384168383611ab4565b600061085d82600019614d9d565b6134216040518060800160405280600081526020016000815260200160008152602001600081525090565b83610100015182106134455760405162461bcd60e51b815260040161089690614e39565b6000828561010001516134589190614e22565b90506134648582612c20565b82526020850151613476908590612be1565b602083015284511580159061348e5750602082015115155b6134d15760405162461bcd60e51b8152602060048201526014602482015273696e76616c6964206d61726b657420737461746560601b6044820152606401610896565b6134ef85600001518661014001518460200151856000015185613a12565b604083015260c08501516135039082613a8f565b6060830152509392505050565b600080600061353286600001518660200151876000015188604001518861378b565b905060006135486135438684613ac8565b6133e8565b606087015190915060008613156135b35760006135658483613ac8565b9050670de0b6b3a764000081121561358f5760405162461bcd60e51b815260040161089690614f87565b6135ab6135a483670de0b6b3a7640000614fb6565b8490613af7565b9150506135e0565b6135dd816135c981670de0b6b3a7640000614fb6565b6135d39085614d9d565b6135439190614f18565b90505b60646135f0896101200151611c52565b6135fa9083614d9d565b6136049190614f18565b93506136108183614fb6565b9450505050935093915050565b6000806000831261362f576001613633565b6000195b9050612c0e610ee48561364586613755565b613b15565b60008187610100015161365d9190614e22565b61016088018390528751909150613674908561370e565b87526020870151613685908461370e565b6020880181905287516136aa9161369d908890612be1565b885160408a015185612c9f565b61014088018190526000036136f65760405162461bcd60e51b81526020600482015260126024820152717a65726f206c6e496d706c6965645261746560701b6044820152606401610896565b50505050505050565b6060612c188484600085613b2a565b60008183121561374b5760405162461bcd60e51b81526020600482015260086024820152676e6567617469766560c01b6044820152606401610896565b610b8e8284614fb6565b6000808213611c645761376782614ff5565b61085d565b6000670de0b6b3a76400006137818484614e8a565b610b8e9190614ebf565b600080613798878461370e565b905060006137b06137a9888a614f46565b8390613ac8565b9050670d529ae9e86000008113156138045760405162461bcd60e51b81526020600482015260176024820152761b585e081c1c9bdc1bdc9d1a5bdb88195e18d959591959604a1b6044820152606401610896565b600061380f82613c50565b90508561381c8289613ac8565b6138269190614f46565b9350670de0b6b3a76400008412156138505760405162461bcd60e51b815260040161089690614f87565b50505095945050505050565b600080821361389d5760405162461bcd60e51b815260206004820152600d60248201526c6f7574206f6620626f756e647360981b6044820152606401610896565b670c7d713b49da0000821380156138bb5750670f43fc2c04ee000082125b156138e657670de0b6b3a76400006138d283613ccf565b816138df576138df614ea9565b0592915050565b61085d82613dee565b604051633bd73ee360e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063ef5cfb8c9061393b9030906004016148ff565b6000604051808303816000875af115801561395a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526139829190810190614b1f565b5061398b614191565b565b60006001600160a01b03821615613a0b576040516370a0823160e01b81526001600160a01b038316906370a08231906139ca9030906004016148ff565b602060405180830381865afa1580156139e7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137679190614a9d565b4792915050565b600080613a1f8684613a8f565b9050670de0b6b3a7640000811215613a495760405162461bcd60e51b815260040161089690614f87565b6000613a5f613a58878a614f46565b8990613ac8565b90506000613a6c82613c50565b9050613a788187613ac8565b613a829084614fb6565b9998505050505050505050565b600080613aa162015180610168614e8a565b613aab8486614e8a565b613ab59190614ebf565b9050612c18613ac382611c52565b614200565b600080613add670de0b6b3a764000085614d9d565b9050828181613aee57613aee614ea9565b05949350505050565b600080613b048385614d9d565b9050670de0b6b3a764000081613aee565b600082613781670de0b6b3a764000084614e8a565b606082471015613b8b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610896565b6001600160a01b0385163b613be25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610896565b600080866001600160a01b03168587604051613bfe9190615011565b60006040518083038185875af1925050503d8060008114613c3b576040519150601f19603f3d011682016040523d82523d6000602084013e613c40565b606091505b5091509150611f6b82828661460e565b6000670de0b6b3a76400008203613ca65760405162461bcd60e51b815260206004820152601a60248201527970726f706f7274696f6e206d757374206e6f74206265206f6e6560301b6044820152606401610896565b6000613cc4613cbd84670de0b6b3a7640000614fb6565b8490613ac8565b9050610b8e8161385c565b670de0b6b3a7640000026000806a0c097ce7bc90715b34b9f160241b808401906ec097ce7bc90715b34b9f0fffffffff1985010281613d1057613d10614ea9565b05905060006a0c097ce7bc90715b34b9f160241b82800205905081806a0c097ce7bc90715b34b9f160241b81840205915060038205016a0c097ce7bc90715b34b9f160241b82840205915060058205016a0c097ce7bc90715b34b9f160241b82840205915060078205016a0c097ce7bc90715b34b9f160241b82840205915060098205016a0c097ce7bc90715b34b9f160241b828402059150600b8205016a0c097ce7bc90715b34b9f160241b828402059150600d8205016a0c097ce7bc90715b34b9f160241b828402059150600f82050160020295945050505050565b6000670de0b6b3a7640000821215613e2f57613e26826a0c097ce7bc90715b34b9f160241b81613e2057613e20614ea9565b05613dee565b60000392915050565b6000775803bcc5cb9634ba4cfb2213f784019318ed4dcb6017880f60361b8312613e7a5772195e54c5dd42177f53a27172fa9ec63026282760241b830592506806f05b59d3b2000000015b6f8bcc0026baae9e45e470190267a230cf60191b8312613eb1576b1425982cf597cd205cef7380830592506803782dace9d9000000015b606492830292026e01855144814a7ff805980ff00840008312613ef9576e01855144814a7ff805980ff008400068056bc75e2d63100000840205925068ad78ebc5ac62000000015b6b02df0ab5a80a22c61ab5a7008312613f34576b02df0ab5a80a22c61ab5a70068056bc75e2d6310000084020592506856bc75e2d631000000015b693f1fce3da636ea5cf8508312613f6b57693f1fce3da636ea5cf85068056bc75e2d631000008402059250682b5e3af16b18800000015b690127fa27722cc06cc5e28312613fa257690127fa27722cc06cc5e268056bc75e2d6310000084020592506815af1d78b58c400000015b68280e60114edb805d038312613fd75768280e60114edb805d0368056bc75e2d631000008402059250680ad78ebc5ac6200000015b680ebc5fb41746121110831261400257680ebc5fb4174612111068056bc75e2d631000009384020592015b6808f00f760a4b2db55d8312614037576808f00f760a4b2db55d68056bc75e2d6310000084020592506802b5e3af16b1880000015b6806f5f1775788937937831261406c576806f5f177578893793768056bc75e2d63100000840205925068015af1d78b58c40000015b6806248f33704b28660383126140a0576806248f33704b28660368056bc75e2d63100000840205925067ad78ebc5ac620000015b6805c548670b9510e7ac83126140d4576805c548670b9510e7ac68056bc75e2d6310000084020592506756bc75e2d6310000015b600068056bc75e2d63100000840168056bc75e2d6310000080860302816140fd576140fd614ea9565b059050600068056bc75e2d63100000828002059050818068056bc75e2d63100000818402059150600382050168056bc75e2d63100000828402059150600582050168056bc75e2d63100000828402059150600782050168056bc75e2d63100000828402059150600982050168056bc75e2d63100000828402059150600b820501600202606485820105979650505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638b419c776040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156141ec57600080fd5b505af1158015611ceb573d6000803e3d6000fd5b6000680238fd42c5cf03ffff198212158015614225575068070c1cc73b00c800008213155b6142645760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b6044820152606401610896565b60008212156142955761427982600003614200565b6a0c097ce7bc90715b34b9f160241b816138df576138df614ea9565b60006806f05b59d3b200000083126142d357506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b614309565b6803782dace9d9000000831261430557506803782dace9d8ffffff19909101906b1425982cf597cd205cef7380614309565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac6200000084126143595768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d6310000008412614395576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b1880000084126143cf57682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c4000008412614409576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac6200000841261444257680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d63100000841261447b5768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b188000084126144b4576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c4000084126144ed5768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b6060831561461d575081610b8e565b82511561462d5782518084602001fd5b8160405162461bcd60e51b81526004016108969190614673565b60005b8381101561466257818101518382015260200161464a565b83811115611ceb5750506000910152565b6020815260008251806020840152614692816040850160208701614647565b601f01601f19169190910160400192915050565b6001600160a01b03811681146122fa57600080fd5b6000602082840312156146cd57600080fd5b8135610b8e816146a6565b600080604083850312156146eb57600080fd5b82356146f6816146a6565b946020939093013593505050565b60008083601f84011261471657600080fd5b5081356001600160401b0381111561472d57600080fd5b60208301915083602082850101111561474557600080fd5b9250929050565b60008060008060006080868803121561476457600080fd5b853561476f816146a6565b9450602086013593506040860135925060608601356001600160401b0381111561479857600080fd5b6147a488828901614704565b969995985093965092949392505050565b6000806000606084860312156147ca57600080fd5b83356147d5816146a6565b925060208401356147e5816146a6565b929592945050506040919091013590565b6020808252825182820181905260009190848201906040850190845b8181101561482e57835183529284019291840191600101614812565b50909695505050505050565b80151581146122fa57600080fd5b60006020828403121561485a57600080fd5b8135610b8e8161483a565b6000610180820190508251825260208301516020830152604083015160408301526060830151606083015260808301516148aa60808401826001600160a01b03169052565b5060a083015160a083015260c083015160c083015260e083015160e083015261010080840151818401525061012080840151818401525061014080840151818401525061016080840151818401525092915050565b6001600160a01b0391909116815260200190565b9283526020830191909152604082015260600190565b6000806040838503121561493c57600080fd5b8235614947816146a6565b91506020830135614957816146a6565b809150509250929050565b60008060008060006080868803121561497a57600080fd5b8535614985816146a6565b94506020860135614995816146a6565b93506040860135925060608601356001600160401b0381111561479857600080fd5b600181811c908216806149cb57607f821691505b60208210810361104057634e487b7160e01b600052602260045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600e908201526d13505492d15517d156141254915160921b604082015260600190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b848152836020820152606060408201526000614a93606083018486614a4a565b9695505050505050565b600060208284031215614aaf57600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614af457614af4614ab6565b604052919050565b60006001600160401b03821115614b1557614b15614ab6565b5060051b60200190565b60006020808385031215614b3257600080fd5b82516001600160401b03811115614b4857600080fd5b8301601f81018513614b5957600080fd5b8051614b6c614b6782614afc565b614acc565b81815260059190911b82018301908381019087831115614b8b57600080fd5b928401925b82841015611f6b57835182529284019290840190614b90565b60006020808385031215614bbc57600080fd5b82516001600160401b03811115614bd257600080fd5b8301601f81018513614be357600080fd5b8051614bf1614b6782614afc565b81815260059190911b82018301908381019087831115614c1057600080fd5b928401925b82841015611f6b578351614c28816146a6565b82529284019290840190614c15565b600060208284031215614c4957600080fd5b8151610b8e816146a6565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201614c9257614c92614c6a565b5060010190565b60008219821115614cac57614cac614c6a565b500190565b60008060008060808587031215614cc757600080fd5b8451614cd2816146a6565b60208601519094506001600160601b0381168114614cef57600080fd5b604086015190935063ffffffff81168114614d0957600080fd5b606086015190925060ff81168114614d2057600080fd5b939692955090935050565b60018060a01b038716815285602082015284604082015283606082015260a060808201526000612ce660a083018486614a4a565b600060018060a01b03808a16835280891660208401525086604083015285606083015284608083015260c060a0830152613a8260c083018486614a4a565b60006001600160ff1b0381841382841380821686840486111615614dc357614dc3614c6a565b600160ff1b6000871282811687830589121615614de257614de2614c6a565b60008712925087820587128484161615614dfe57614dfe614c6a565b87850587128184161615614e1457614e14614c6a565b505050929093029392505050565b600082821015614e3457614e34614c6a565b500390565b6020808252600e908201526d1b585c9ad95d08195e1c1a5c995960921b604082015260600190565b600060208284031215614e7357600080fd5b81516001600160801b0381168114610b8e57600080fd5b6000816000190483118215151615614ea457614ea4614c6a565b500290565b634e487b7160e01b600052601260045260246000fd5b600082614ece57614ece614ea9565b500490565b60006001600160801b0383811690831681811015614ef357614ef3614c6a565b039392505050565b600060208284031215614f0d57600080fd5b8151610b8e8161483a565b600082614f2757614f27614ea9565b600160ff1b821460001984141615614f4157614f41614c6a565b500590565b600080821280156001600160ff1b0384900385131615614f6857614f68614c6a565b600160ff1b8390038412811615614f8157614f81614c6a565b50500190565b60208082526015908201527465786368616e676520726174652062656c6f77203160581b604082015260600190565b60008083128015600160ff1b850184121615614fd457614fd4614c6a565b6001600160ff1b0384018313811615614fef57614fef614c6a565b50500390565b6000600160ff1b820161500a5761500a614c6a565b5060000390565b60008251615023818460208701614647565b919091019291505056feab7fa439d3be82c9e9dc9527df7b0ebc3b65c9911e3112698997d509abf02882ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212201b7e1e02086975d74b2e98ba7fa6daa78407cbadfb9806da435c365d21b8f25864736f6c634300080e0033";
|
|
1068
|
+
|
|
1069
|
+
type PendleMarketRewardsConstructorParams =
|
|
1070
|
+
| [signer?: Signer]
|
|
1071
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
1072
|
+
|
|
1073
|
+
const isSuperArgs = (
|
|
1074
|
+
xs: PendleMarketRewardsConstructorParams
|
|
1075
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
1076
|
+
|
|
1077
|
+
export class PendleMarketRewards__factory extends ContractFactory {
|
|
1078
|
+
constructor(...args: PendleMarketRewardsConstructorParams) {
|
|
1079
|
+
if (isSuperArgs(args)) {
|
|
1080
|
+
super(...args);
|
|
1081
|
+
} else {
|
|
1082
|
+
super(_abi, _bytecode, args[0]);
|
|
1083
|
+
}
|
|
1084
|
+
this.contractName = "PendleMarketRewards";
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
deploy(
|
|
1088
|
+
_PT: string,
|
|
1089
|
+
_scalarRoot: BigNumberish,
|
|
1090
|
+
_initialAnchor: BigNumberish,
|
|
1091
|
+
_vePendle: string,
|
|
1092
|
+
_gaugeController: string,
|
|
1093
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1094
|
+
): Promise<PendleMarketRewards> {
|
|
1095
|
+
return super.deploy(
|
|
1096
|
+
_PT,
|
|
1097
|
+
_scalarRoot,
|
|
1098
|
+
_initialAnchor,
|
|
1099
|
+
_vePendle,
|
|
1100
|
+
_gaugeController,
|
|
1101
|
+
overrides || {}
|
|
1102
|
+
) as Promise<PendleMarketRewards>;
|
|
1103
|
+
}
|
|
1104
|
+
getDeployTransaction(
|
|
1105
|
+
_PT: string,
|
|
1106
|
+
_scalarRoot: BigNumberish,
|
|
1107
|
+
_initialAnchor: BigNumberish,
|
|
1108
|
+
_vePendle: string,
|
|
1109
|
+
_gaugeController: string,
|
|
1110
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
1111
|
+
): TransactionRequest {
|
|
1112
|
+
return super.getDeployTransaction(
|
|
1113
|
+
_PT,
|
|
1114
|
+
_scalarRoot,
|
|
1115
|
+
_initialAnchor,
|
|
1116
|
+
_vePendle,
|
|
1117
|
+
_gaugeController,
|
|
1118
|
+
overrides || {}
|
|
1119
|
+
);
|
|
1120
|
+
}
|
|
1121
|
+
attach(address: string): PendleMarketRewards {
|
|
1122
|
+
return super.attach(address) as PendleMarketRewards;
|
|
1123
|
+
}
|
|
1124
|
+
connect(signer: Signer): PendleMarketRewards__factory {
|
|
1125
|
+
return super.connect(signer) as PendleMarketRewards__factory;
|
|
1126
|
+
}
|
|
1127
|
+
static readonly contractName: "PendleMarketRewards";
|
|
1128
|
+
public readonly contractName: "PendleMarketRewards";
|
|
1129
|
+
static readonly bytecode = _bytecode;
|
|
1130
|
+
static readonly abi = _abi;
|
|
1131
|
+
static createInterface(): PendleMarketRewardsInterface {
|
|
1132
|
+
return new utils.Interface(_abi) as PendleMarketRewardsInterface;
|
|
1133
|
+
}
|
|
1134
|
+
static connect(
|
|
1135
|
+
address: string,
|
|
1136
|
+
signerOrProvider: Signer | Provider
|
|
1137
|
+
): PendleMarketRewards {
|
|
1138
|
+
return new Contract(address, _abi, signerOrProvider) as PendleMarketRewards;
|
|
1139
|
+
}
|
|
1140
|
+
}
|