@pendle/core-v2 4.4.0 → 4.4.2
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/core/Market/v1/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v1/PendleMarket.sol/PendleMarket.json +9 -149
- package/build/artifacts/contracts/core/Market/v2/PendleMarketV2.sol/PendleMarketV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v2/PendleMarketV2.sol/PendleMarketV2.json +9 -149
- package/build/artifacts/contracts/core/Market/v3/PendleMarketV3.sol/PendleMarketV3.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v3/PendleMarketV3.sol/PendleMarketV3.json +9 -149
- package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseUpg.sol/SYBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewardsUpg.sol/SYBaseWithRewardsUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/AaveV3/PendleAaveV3SY.sol/PendleAaveV3SY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ankr/PendleAnkrBNBSY.sol/PendleAnkrBNBSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/AuraEthxBbAWethSY.sol/AuraEthxBbAWethSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/AuraSwEthBbAWethSYV2.sol/AuraSwEthBbAWethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/AuraWethVethSYUpg.sol/AuraWethVethSYUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraBbAWethSwethSY.sol/PendleAuraBbAWethSwethSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWstethAnkreth.sol/PendleAuraWstethAnkreth.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV3Upg.sol/PendleAuraBalancerStableLPSYV3Upg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BedRock/PendleUniETHSY.sol/PendleUniETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/CamelotV1Volatile/PendleCamelotV1VolatileSY.sol/PendleCamelotV1VolatileSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleSUSDEMantleSY.sol/PendleSUSDEMantleSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleSUSDEMantleSY.sol/PendleSUSDEMantleSY.json +1099 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleSUSDESY.sol/PendleSUSDESY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleUSDEMantleSY.sol/PendleUSDEMantleSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleUSDEMantleSY.sol/PendleUSDEMantleSY.json +1055 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ethena/PendleUSDESY.sol/PendleUSDESY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/EtherFi/PendleWEEthSY.sol/PendleWEEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Flux/PendleFluxLendingSY.sol/PendleFluxLendingSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGMV2TokenSY.sol/PendleGMV2TokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/HMX/PendleHlpSY.sol/PendleHlpSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/KelpDAO/PendleRsETHSY.sol/PendleRsETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/KelpDAO/PendleRsETHSY.sol/PendleRsETHSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Kyber/PendleKyberElasticSYUpg.sol/PendleKyberElasticSYUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MUX/PendleMlpSY.sol/PendleMlpSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MantleStakedEth/PendleMantleStakedEthSY.sol/PendleMantleStakedEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/MantleStakedEth/PendleOracleForSyProxy.sol/PendleOracleForSyProxy.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleArbitrumStakedEthSY.sol/PendleArbitrumStakedEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleBridgedLSDSY.sol/PendleBridgedLSDSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20SY.sol/PendleERC20SY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20SYUpg.sol/PendleERC20SYUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC20SYUpg.sol/PendleERC20SYUpg.json +976 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC4626SY.sol/PendleERC4626SY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleERC4626UpgSY.sol/PendleERC4626SYUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleEUSDSY.sol/PendleEUSDSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleL2LRTSY.sol/PendleL2LRTSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWbEthSY.sol/PendleWbEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PirexETH/PendleApxETHSY.sol/PendleApxETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Puffer/PendlePufStETHSY.sol/PendlePufStETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Puffer/PendlePufWETHSY.sol/PendlePufWETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Renzo/PendleEzETHL2SY.sol/PendleEzETHL2SY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Renzo/PendleEzETHSY.sol/PendleEzETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Silo/PendleSiloWithIncentiveSY.sol/PendleSiloWithIncentiveSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Stader/PendleETHXSY.sol/PendleETHXSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleRswETHSY.sol/PendleRswETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Swell/PendleSwETH.sol/SwETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Thena/PendleThenaSY.sol/PendleThenaSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Zircuit/PendleZtakeEzETHSY.sol/PendleZtakeEzETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Zircuit/PendleZtakeRsETHSY.sol/PendleZtakeRsETHSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Zircuit/PendleZtakeRsETHSY.sol/PendleZtakeRsETHSY.json +1074 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Zircuit/PendleZtakeWETHSY.sol/PendleZtakeWETHSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Zircuit/PendleZtakeWETHSY.sol/PendleZtakeWETHSY.json +1025 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Zircuit/PendleZtakeWeETHSY.sol/PendleZtakeWeETHSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -142
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -142
- package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +2 -142
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +2 -2
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +2 -142
- package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20PermitUpg.sol/PendleERC20PermitUpg.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/KelpDAO/IKelpDepositPool.sol/IKelpDepositPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/KelpDAO/IKelpDepositPool.sol/IKelpDepositPool.json +18 -0
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL1.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL1.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwapL2.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol/IExecutorHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol/IExecutorHelper.json +336 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol/IExecutorHelperL2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol/IExecutorHelperL2.json +54 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol/InputScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol/InputScalingHelper.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol/ScalingDataLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol/ScalingDataLib.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol/CalldataWriter.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/CalldataWriter.sol/CalldataWriter.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol/DexScaler.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/DexScaler.sol/DexScaler.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol/InputScalingHelperL2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/InputScalingHelperL2.sol/InputScalingHelperL2.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol/ScalingDataL2Lib.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/l2-contracts/ScalingDataL2Lib.sol/ScalingDataL2Lib.json +2 -2
- package/contracts/core/Market/v1/PendleMarket.sol +3 -3
- package/contracts/core/Market/v2/PendleMarketV2.sol +3 -3
- package/contracts/core/Market/v3/PendleMarketV3.sol +3 -3
- package/contracts/core/StandardizedYield/implementations/Ethena/PendleSUSDEMantleSY.sol +86 -0
- package/contracts/core/StandardizedYield/implementations/Ethena/PendleUSDEMantleSY.sol +61 -0
- package/contracts/core/StandardizedYield/implementations/PendleERC20SYUpg.sol +66 -0
- package/contracts/core/StandardizedYield/implementations/Zircuit/PendleZtakeRsETHSY.sol +117 -0
- package/contracts/core/StandardizedYield/implementations/Zircuit/PendleZtakeWETHSY.sol +89 -0
- package/contracts/core/YieldContracts/PendlePrincipalToken.sol +3 -3
- package/contracts/core/YieldContracts/PendleYieldToken.sol +3 -3
- package/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol +3 -3
- package/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol +3 -3
- package/contracts/interfaces/KelpDAO/IKelpDepositPool.sol +2 -0
- package/contracts/limit/LimitRouterBase.sol +2 -2
- package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelper.sol +64 -0
- package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperL2.sol +15 -0
- package/contracts/router/swap-aggregator/kyberswap/l1-contracts/InputScalingHelper.sol +28 -0
- package/contracts/router/swap-aggregator/kyberswap/l1-contracts/ScalingDataLib.sol +83 -2
- package/deployments/1-core.json +1 -1
- package/deployments/1-markets/AAVE-USDT-SEP2024.json +3 -3
- package/deployments/1-markets/RSWETH-JUNE2024-NEW.json +11 -0
- package/deployments/1-markets/UNIETH-JUNE2024-NEW.json +11 -0
- package/deployments/1-markets/USDE-JUL2024.json +13 -0
- package/deployments/1-markets/ZIRCUIT-EETH-JUN2024.json +11 -0
- package/deployments/1-markets/ZIRCUIT-RSETH-JUN2024.json +11 -0
- package/deployments/10-core.json +1 -1
- package/deployments/42161-core.json +1 -1
- package/deployments/42161-markets/EZETH-JUNE2024-NEW.json +11 -0
- package/deployments/5000-core.json +3 -2
- package/deployments/5000-markets/USD-MANTLE-JUL2024.json +11 -0
- package/deployments/5000-offchain-helper.json +5 -0
- package/deployments/56-core.json +1 -1
- package/deployments/merkle-distribution/2024-03-28.json +12725 -0
- package/package.json +1 -1
- package/typechain-types/IExecutorHelper.ts +546 -0
- package/typechain-types/IExecutorHelperL2.ts +65 -0
- package/typechain-types/IKelpDepositPool.ts +37 -0
- package/typechain-types/PendleERC20SYUpg.ts +1270 -0
- package/typechain-types/PendleMarket.ts +0 -169
- package/typechain-types/PendleMarketV2.ts +0 -169
- package/typechain-types/PendleMarketV3.ts +0 -169
- package/typechain-types/PendlePrincipalToken.ts +0 -169
- package/typechain-types/PendlePrincipalTokenV2.ts +0 -169
- package/typechain-types/PendleSUSDEMantleSY.ts +1438 -0
- package/typechain-types/PendleUSDEMantleSY.ts +1363 -0
- package/typechain-types/PendleYieldToken.ts +0 -169
- package/typechain-types/PendleYieldTokenV2.ts +0 -169
- package/typechain-types/PendleZtakeRsETHSY.ts +1377 -0
- package/typechain-types/PendleZtakeWETHSY.ts +1324 -0
- package/typechain-types/factories/IExecutorHelperL2__factory.ts +54 -0
- package/typechain-types/factories/IExecutorHelper__factory.ts +336 -0
- package/typechain-types/factories/IKelpDepositPool__factory.ts +18 -0
- package/typechain-types/factories/PendleERC20SYUpg__factory.ts +991 -0
- package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketV2__factory.ts +1 -141
- package/typechain-types/factories/PendleMarketV3__factory.ts +1 -141
- package/typechain-types/factories/PendleMarket__factory.ts +1 -141
- package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -141
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -141
- package/typechain-types/factories/PendleRsETHSY__factory.ts +1 -1
- package/typechain-types/factories/PendleSUSDEMantleSY__factory.ts +1157 -0
- package/typechain-types/factories/PendleSwapL1__factory.ts +1 -1
- package/typechain-types/factories/PendleSwapL2__factory.ts +1 -1
- package/typechain-types/factories/PendleUSDEMantleSY__factory.ts +1110 -0
- package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1 -141
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -141
- package/typechain-types/factories/PendleZtakeRsETHSY__factory.ts +1147 -0
- package/typechain-types/factories/PendleZtakeWETHSY__factory.ts +1086 -0
- package/typechain-types/hardhat.d.ts +45 -0
- package/typechain-types/index.ts +10 -0
|
@@ -282,6 +282,34 @@ library InputScalingHelper {
|
|
|
282
282
|
swap.data = ScalingDataLib.newRocketPool(swap.data, oldAmount, newAmount);
|
|
283
283
|
} else if (functionSelector == IExecutorHelper.executeMakersDAI.selector) {
|
|
284
284
|
swap.data = ScalingDataLib.newMakersDAI(swap.data, oldAmount, newAmount);
|
|
285
|
+
} else if (functionSelector == IExecutorHelper.executeRenzo.selector) {
|
|
286
|
+
swap.data = ScalingDataLib.newRenzo(swap.data, oldAmount, newAmount);
|
|
287
|
+
} else if (functionSelector == IExecutorHelper.executeWBETH.selector) {
|
|
288
|
+
swap.data = ScalingDataLib.newEtherFieETH(swap.data, oldAmount, newAmount); // same etherfi eETH
|
|
289
|
+
} else if (functionSelector == IExecutorHelper.executeMantleETH.selector) {
|
|
290
|
+
swap.data = ScalingDataLib.newEtherFieETH(swap.data, oldAmount, newAmount); // same etherfi eETH
|
|
291
|
+
} else if (functionSelector == IExecutorHelper.executeFrxETH.selector) {
|
|
292
|
+
swap.data = ScalingDataLib.newFrxETH(swap.data, oldAmount, newAmount);
|
|
293
|
+
} else if (functionSelector == IExecutorHelper.executeSfrxETH.selector) {
|
|
294
|
+
swap.data = ScalingDataLib.newSfrxETH(swap.data, oldAmount, newAmount);
|
|
295
|
+
} else if (functionSelector == IExecutorHelper.executeSfrxETHConvertor.selector) {
|
|
296
|
+
swap.data = ScalingDataLib.newSfrxETHConvertor(swap.data, oldAmount, newAmount);
|
|
297
|
+
} else if (functionSelector == IExecutorHelper.executeSwellETH.selector) {
|
|
298
|
+
swap.data = ScalingDataLib.newEtherFieETH(swap.data, oldAmount, newAmount); // same etherfi eETH
|
|
299
|
+
} else if (functionSelector == IExecutorHelper.executeRswETH.selector) {
|
|
300
|
+
swap.data = ScalingDataLib.newEtherFieETH(swap.data, oldAmount, newAmount); // same etherfi eETH
|
|
301
|
+
} else if (functionSelector == IExecutorHelper.executeStaderETHx.selector) {
|
|
302
|
+
swap.data = ScalingDataLib.newEthenaSusde(swap.data, oldAmount, newAmount); // same ethena susde
|
|
303
|
+
} else if (functionSelector == IExecutorHelper.executeOriginETH.selector) {
|
|
304
|
+
swap.data = ScalingDataLib.newOriginETH(swap.data, oldAmount, newAmount);
|
|
305
|
+
} else if (functionSelector == IExecutorHelper.executePrimeETH.selector) {
|
|
306
|
+
swap.data = ScalingDataLib.newOriginETH(swap.data, oldAmount, newAmount); // same originETH
|
|
307
|
+
} else if (functionSelector == IExecutorHelper.executeMantleUsd.selector) {
|
|
308
|
+
swap.data = ScalingDataLib.newMantleUsd(swap.data, oldAmount, newAmount);
|
|
309
|
+
} else if (functionSelector == IExecutorHelper.executeBedrockUniETH.selector) {
|
|
310
|
+
swap.data = ScalingDataLib.newEtherFieETH(swap.data, oldAmount, newAmount); // same etherfi eETH
|
|
311
|
+
} else if (functionSelector == IExecutorHelper.executeMaiPSM.selector) {
|
|
312
|
+
swap.data = ScalingDataLib.newFrxETH(swap.data, oldAmount, newAmount); // same frxeth
|
|
285
313
|
} else {
|
|
286
314
|
revert("AggregationExecutor: Dex type not supported");
|
|
287
315
|
}
|
|
@@ -332,8 +332,16 @@ library ScalingDataLib {
|
|
|
332
332
|
uint256 newAmount
|
|
333
333
|
) internal pure returns (bytes memory) {
|
|
334
334
|
IExecutorHelper.RocketPool memory structData = abi.decode(data, (IExecutorHelper.RocketPool));
|
|
335
|
+
|
|
335
336
|
uint128 _amount = uint128((uint256(uint128(structData.isDepositAndAmount)) * newAmount) / oldAmount);
|
|
336
|
-
|
|
337
|
+
|
|
338
|
+
bool _isDeposit = (structData.isDepositAndAmount >> 255) == 1;
|
|
339
|
+
|
|
340
|
+
// reset and create new variable for isDeposit and amount
|
|
341
|
+
structData.isDepositAndAmount = 0;
|
|
342
|
+
structData.isDepositAndAmount |= uint256(uint128(_amount));
|
|
343
|
+
structData.isDepositAndAmount |= uint256(_isDeposit ? 1 : 0) << 255;
|
|
344
|
+
|
|
337
345
|
return abi.encode(structData);
|
|
338
346
|
}
|
|
339
347
|
|
|
@@ -344,7 +352,80 @@ library ScalingDataLib {
|
|
|
344
352
|
) internal pure returns (bytes memory) {
|
|
345
353
|
IExecutorHelper.MakersDAI memory structData = abi.decode(data, (IExecutorHelper.MakersDAI));
|
|
346
354
|
uint128 _amount = uint128((uint256(uint128(structData.isRedeemAndAmount)) * newAmount) / oldAmount);
|
|
347
|
-
|
|
355
|
+
|
|
356
|
+
bool _isRedeem = (structData.isRedeemAndAmount >> 255) == 1;
|
|
357
|
+
|
|
358
|
+
// reset and create new variable for isRedeem and amount
|
|
359
|
+
structData.isRedeemAndAmount = 0;
|
|
360
|
+
structData.isRedeemAndAmount |= uint256(uint128(_amount));
|
|
361
|
+
structData.isRedeemAndAmount |= uint256(_isRedeem ? 1 : 0) << 255;
|
|
362
|
+
|
|
348
363
|
return abi.encode(structData);
|
|
349
364
|
}
|
|
365
|
+
|
|
366
|
+
function newRenzo(bytes memory data, uint256 oldAmount, uint256 newAmount) internal pure returns (bytes memory) {
|
|
367
|
+
IExecutorHelper.Renzo memory structData = abi.decode(data, (IExecutorHelper.Renzo));
|
|
368
|
+
structData.amount = uint128((uint256(structData.amount) * newAmount) / oldAmount);
|
|
369
|
+
return abi.encode(structData);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
function newFrxETH(bytes memory data, uint256 oldAmount, uint256 newAmount) internal pure returns (bytes memory) {
|
|
373
|
+
IExecutorHelper.FrxETH memory structData = abi.decode(data, (IExecutorHelper.FrxETH));
|
|
374
|
+
structData.amount = uint128((uint256(structData.amount) * newAmount) / oldAmount);
|
|
375
|
+
return abi.encode(structData);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
function newSfrxETH(bytes memory data, uint256 oldAmount, uint256 newAmount) internal pure returns (bytes memory) {
|
|
379
|
+
IExecutorHelper.SfrxETH memory structData = abi.decode(data, (IExecutorHelper.SfrxETH));
|
|
380
|
+
structData.amount = uint128((uint256(structData.amount) * newAmount) / oldAmount);
|
|
381
|
+
return abi.encode(structData);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
function newSfrxETHConvertor(
|
|
385
|
+
bytes memory data,
|
|
386
|
+
uint256 oldAmount,
|
|
387
|
+
uint256 newAmount
|
|
388
|
+
) internal pure returns (bytes memory) {
|
|
389
|
+
IExecutorHelper.SfrxETHConvertor memory structData = abi.decode(data, (IExecutorHelper.SfrxETHConvertor));
|
|
390
|
+
|
|
391
|
+
uint128 _amount = uint128((uint256(uint128(structData.isDepositAndAmount)) * newAmount) / oldAmount);
|
|
392
|
+
|
|
393
|
+
bool _isDeposit = (structData.isDepositAndAmount >> 255) == 1;
|
|
394
|
+
|
|
395
|
+
// reset and create new variable for isDeposit and amount
|
|
396
|
+
structData.isDepositAndAmount = 0;
|
|
397
|
+
structData.isDepositAndAmount |= uint256(uint128(_amount));
|
|
398
|
+
structData.isDepositAndAmount |= uint256(_isDeposit ? 1 : 0) << 255;
|
|
399
|
+
|
|
400
|
+
return abi.encode(structData);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
function newOriginETH(
|
|
404
|
+
bytes memory data,
|
|
405
|
+
uint256 oldAmount,
|
|
406
|
+
uint256 newAmount
|
|
407
|
+
) internal pure returns (bytes memory) {
|
|
408
|
+
IExecutorHelper.OriginETH memory structData = abi.decode(data, (IExecutorHelper.OriginETH));
|
|
409
|
+
structData.amount = uint128((uint256(structData.amount) * newAmount) / oldAmount);
|
|
410
|
+
return abi.encode(structData);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
function newMantleUsd(
|
|
414
|
+
bytes memory data,
|
|
415
|
+
uint256 oldAmount,
|
|
416
|
+
uint256 newAmount
|
|
417
|
+
) internal pure returns (bytes memory) {
|
|
418
|
+
uint256 isWrapAndAmount = abi.decode(data, (uint256));
|
|
419
|
+
|
|
420
|
+
uint128 _amount = uint128((uint256(uint128(isWrapAndAmount)) * newAmount) / oldAmount);
|
|
421
|
+
|
|
422
|
+
bool _isWrap = (isWrapAndAmount >> 255) == 1;
|
|
423
|
+
|
|
424
|
+
// reset and create new variable for isWrap and amount
|
|
425
|
+
isWrapAndAmount = 0;
|
|
426
|
+
isWrapAndAmount |= uint256(uint128(_amount));
|
|
427
|
+
isWrapAndAmount |= uint256(_isWrap ? 1 : 0) << 255;
|
|
428
|
+
|
|
429
|
+
return abi.encode(isWrapAndAmount);
|
|
430
|
+
}
|
|
350
431
|
}
|
package/deployments/1-core.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"marketFactory": "0x27b1dAcd74688aF24a64BD3C9C1B143118740784",
|
|
23
23
|
"router": "0x00000000005BBB0EF59571E58418F9a4357b68A0",
|
|
24
24
|
"routerStatic": "0x263833d47eA3fA4a30f269323aba6a107f9eB14C",
|
|
25
|
-
"pendleSwap": "
|
|
25
|
+
"pendleSwap": "0x1e8b6Ac39f8A33f46a6Eb2D1aCD1047B99180AD1",
|
|
26
26
|
"routerHelper": "0x462206b11d185ef6F64B41D344325401C37EC335",
|
|
27
27
|
"ptAndLpOracle": "0x66a1096C6366b2529274dF4f5D8247827fe4CEA8",
|
|
28
28
|
"yieldContractFactoryV3": "0xdF3601014686674e53d1Fa52F7602525483F9122",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "SY aUSDT",
|
|
3
3
|
"SY": "0x8c28D28bAd669afadC37b034A8070D6d7B9dFB74",
|
|
4
|
-
"YT": "
|
|
5
|
-
"PT": "
|
|
6
|
-
"market": "
|
|
4
|
+
"YT": "0x6cf80d52e1724437c509a9729719ac9b566ca19f",
|
|
5
|
+
"PT": "0xe6fe6e1f6ef1de6a21cd752e805f953673a7c0f0",
|
|
6
|
+
"market": "0xb8fbf5cc2826c1c9909f59dd11633b494f46fbfe",
|
|
7
7
|
"expiry": 1735171200,
|
|
8
8
|
"scalarRoot": "9800852549000000000",
|
|
9
9
|
"initAnchor": "1201611142000000000",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SY rswETH",
|
|
3
|
+
"SY": "0x7786729eEe8b9d30fE7d91fDFf23A0f1D0C615D9",
|
|
4
|
+
"YT": "0x4AfdB1B0f9A56922e398D29239453e6A06148eD0",
|
|
5
|
+
"PT": "0x5cb12D56F5346a016DBBA8CA90635d82e6D1bcEa",
|
|
6
|
+
"market": "0xA9355a5d306c67027C54De0e5a72df76Befa5694",
|
|
7
|
+
"expiry": 1719446400,
|
|
8
|
+
"scalarRoot": "1968998490000000000",
|
|
9
|
+
"initAnchor": "1279404076000000000",
|
|
10
|
+
"lnFeeRateRoot": "9950330853000000"
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SY uniETH",
|
|
3
|
+
"SY": "0xc430dB19339A3051192233B4c49f9aB3DC6D16b7",
|
|
4
|
+
"YT": "0x5Ae176BbcB9A4461aEEeb97c90C2a80c2078006a",
|
|
5
|
+
"PT": "0xf2ce61699660f0f5800bA7D962741bA582d7346B",
|
|
6
|
+
"market": "0x38100A480dBED278B0fe57bA80a75498a7dC5bB1",
|
|
7
|
+
"expiry": 1719446400,
|
|
8
|
+
"scalarRoot": "1968989345000000000",
|
|
9
|
+
"initAnchor": "1279410789000000000",
|
|
10
|
+
"lnFeeRateRoot": "9950330853000000"
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "USDE-JUL2024",
|
|
3
|
+
"SY": "0x42862F48eAdE25661558AFE0A630b132038553D0",
|
|
4
|
+
"YT": "0x1e3d13932C31d7355fCb3FEc680b0cD159dC1A07",
|
|
5
|
+
"PT": "0xa0021EF8970104c2d008F38D92f115ad56a9B8e1",
|
|
6
|
+
"market": "0x19588F29f9402Bb508007FeADd415c875Ee3f19F",
|
|
7
|
+
"expiry": 1721865600,
|
|
8
|
+
"lnFeeRateRoot": "9950330853000000",
|
|
9
|
+
"scalarRoot": "985792836000000000",
|
|
10
|
+
"initAnchor": "1726141835000000000",
|
|
11
|
+
"doCacheIndexSameBlock": true,
|
|
12
|
+
"deployTxHash": "0x6a5761c55cf33d1ce74ce23987126ad994fd98c9523cee1a21774dbc65953889"
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SY eETH",
|
|
3
|
+
"SY": "0xD7DF7E085214743530afF339aFC420c7c720BFa7",
|
|
4
|
+
"YT": "0x7C2D26182adeEf96976035986cF56474feC03bDa",
|
|
5
|
+
"PT": "0x4AE5411F3863CdB640309e84CEDf4B08B8b33FfF",
|
|
6
|
+
"market": "0xe26D7f9409581f606242300fbFE63f56789F2169",
|
|
7
|
+
"expiry": 1719446400,
|
|
8
|
+
"scalarRoot": "3564947052000000000",
|
|
9
|
+
"initAnchor": "1165353522000000000",
|
|
10
|
+
"lnFeeRateRoot": "2995508979000000"
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SY rsETH",
|
|
3
|
+
"SY": "0x34349c5569e7B846c3558961552D2202760A9789",
|
|
4
|
+
"YT": "0x029aad400f6092Dc735A65be95102efcc2Fe64bf",
|
|
5
|
+
"PT": "0x094bE6bD31D7B860f7d2C1f280fD09F0463d7e67",
|
|
6
|
+
"market": "0x445D25a1c31445Fb29e65d12DA8E0eea38174176",
|
|
7
|
+
"expiry": 1719446400,
|
|
8
|
+
"scalarRoot": "3522956471000000000",
|
|
9
|
+
"initAnchor": "1163479129000000000",
|
|
10
|
+
"lnFeeRateRoot": "2995508979000000"
|
|
11
|
+
}
|
package/deployments/10-core.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"marketFactory": "0x17F100fB4bE2707675c6439468d38249DD993d58",
|
|
22
22
|
"router": "0x00000000005BBB0EF59571E58418F9a4357b68A0",
|
|
23
23
|
"routerStatic": "0x704478Dd72FD7F9B83d1F1e0fc18C14B54F034d0",
|
|
24
|
-
"pendleSwap": "
|
|
24
|
+
"pendleSwap": "0x9B9f96786B1051F5c72c517e7DEB189CF66E704F",
|
|
25
25
|
"routerHelper": "0x462206b11d185ef6F64B41D344325401C37EC335",
|
|
26
26
|
"ptAndLpOracle": "0x15Aab5C1ab800A9e457d9f4335e8A2Dc9f6Ad707",
|
|
27
27
|
"yieldContractFactoryV3": "0xfa6B22FC4c3Ad88B68c16b3061a16b1714F6Bd57",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"marketFactory": "0xf5a7De2D276dbda3EEf1b62A9E718EFf4d29dDC8",
|
|
22
22
|
"router": "0x00000000005BBB0EF59571E58418F9a4357b68A0",
|
|
23
23
|
"routerStatic": "0xAdB09F65bd90d19e3148D9ccb693F3161C6DB3E8",
|
|
24
|
-
"pendleSwap": "
|
|
24
|
+
"pendleSwap": "0x63a45E0B2686F7be77Bb85735c35704D1046459a",
|
|
25
25
|
"routerHelper": "0x462206b11d185ef6F64B41D344325401C37EC335",
|
|
26
26
|
"ptAndLpOracle": "0x1Fd95db7B7C0067De8D45C0cb35D59796adfD187",
|
|
27
27
|
"yieldContractFactoryV3": "0xEb38531db128EcA928aea1B1CE9E5609B15ba146",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SY ezETH",
|
|
3
|
+
"SY": "0x0dE802e3D6Cc9145A150bBDc8da9F988a98c5202",
|
|
4
|
+
"YT": "0x05735B65686635F5C87AA9D2dae494Fb2E838f38",
|
|
5
|
+
"PT": "0x8EA5040d423410f1fdc363379Af88e1DB5eA1C34",
|
|
6
|
+
"market": "0x5E03C94Fc5Fb2E21882000A96Df0b63d2c4312e2",
|
|
7
|
+
"expiry": 1719446400,
|
|
8
|
+
"scalarRoot": "2248078860000000000",
|
|
9
|
+
"initAnchor": "1245320124000000000",
|
|
10
|
+
"lnFeeRateRoot": "9950330853000000"
|
|
11
|
+
}
|
|
@@ -18,13 +18,14 @@
|
|
|
18
18
|
"PENDLE": "0xd27B18915e7acc8FD6Ac75DB6766a80f8D2f5729",
|
|
19
19
|
"router": "0x00000000005BBB0EF59571E58418F9a4357b68A0",
|
|
20
20
|
"routerStatic": "0xCAd502Bb55d1A3F79952F969BFF3f011CF30a94a",
|
|
21
|
-
"pendleSwap": "
|
|
21
|
+
"pendleSwap": "0x497B5E9071a7e30DcdE69E2dEb3B04D7Ca1d9Fe7",
|
|
22
22
|
"ptAndLpOracle": "0xADC3285cFC28c21b59A1C2d177eEb9ED323178dC",
|
|
23
23
|
"yieldContractFactoryV3": "0x964840644B88C583500F473E4B829Ab629aF96A8",
|
|
24
24
|
"marketFactoryV3": "0xD228EC1f7D4313fe321fab511A872475D07F5bA6",
|
|
25
|
-
"
|
|
25
|
+
"poolDeployHelper": "0x01D0A833C3aD951e37E6f9bf5ecE86e519fF8a0c",
|
|
26
26
|
"limitRouter": "0x000000000000c9B3E2C3Ec88B1B4c0cD853f4321",
|
|
27
27
|
"proxyAdmin": "0xA28c08f165116587D4F3E708743B4dEe155c5E64",
|
|
28
|
+
"receiverEndpoint": "0xf799E4c029d14f41Dc1918C9A4C67242F565710e",
|
|
28
29
|
"vePendle": "0x30c6d4e892871220B5Ab66c10db577da96Fb974b",
|
|
29
30
|
"gaugeController": "0x428f2f93afAc3F96B0DE59854038c585e06165C8"
|
|
30
31
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SY USDe Mantle",
|
|
3
|
+
"SY": "0x5B9e411c9E50164133DE07FE1cAC05A094000105",
|
|
4
|
+
"YT": "0xb3c0f96c4208185cC22Afd1b7CF21F1dabd9648A",
|
|
5
|
+
"PT": "0xba567Cf0d8230c0AD8D8bFc50E587E06d6F118E9",
|
|
6
|
+
"market": "0x7dc07C575A0c512422dCab82CE9Ed74dB58Be30C",
|
|
7
|
+
"expiry": 1721865600,
|
|
8
|
+
"scalarRoot": "877034712000000000",
|
|
9
|
+
"initAnchor": "1819330528000000000",
|
|
10
|
+
"lnFeeRateRoot": "9950330853000000"
|
|
11
|
+
}
|
package/deployments/56-core.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"marketFactory": "0x2bEa6BfD8fbFF45aA2a893EB3B6d85D10EFcC70E",
|
|
22
22
|
"router": "0x00000000005BBB0EF59571E58418F9a4357b68A0",
|
|
23
23
|
"routerStatic": "0x2700ADB035F82a11899ce1D3f1BF8451c296eABb",
|
|
24
|
-
"pendleSwap": "
|
|
24
|
+
"pendleSwap": "0x439B4d66255eFf74e621FBacb00D7162b588Ff4b",
|
|
25
25
|
"routerHelper": "0x09D65812dCD0f276e052583d41885cA5C7Dd0086",
|
|
26
26
|
"ptAndLpOracle": "0x30c6d4e892871220B5Ab66c10db577da96Fb974b",
|
|
27
27
|
"yieldContractFactoryV3": "0x40Ae6da2d92aa3DCb7f8d7a7209FD12BDfcb7C85",
|