From 299d4fd460fe74727e2246801542f7b30ef15de5 Mon Sep 17 00:00:00 2001 From: GitGuru7 <128375421+GitGuru7@users.noreply.github.com> Date: Fri, 27 Dec 2024 18:28:32 +0530 Subject: [PATCH] fix: replace old pt oracle with new address --- deploy/7-deploy-pendle-oracle.ts | 6 +++--- helpers/deploymentConfig.ts | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/deploy/7-deploy-pendle-oracle.ts b/deploy/7-deploy-pendle-oracle.ts index ff333403..6fa0a02e 100644 --- a/deploy/7-deploy-pendle-oracle.ts +++ b/deploy/7-deploy-pendle-oracle.ts @@ -93,7 +93,7 @@ const func: DeployFunction = async ({ market: addresses.PTweETH_26DEC2024_Market, ptToken: addresses.PTweETH_26DEC2024, underlyingToken: addresses.WETH, - ptOracle: addresses.newPTOracle || (await ethers.getContract("MockPendleOracle")).address, + ptOracle: addresses.PTOracle || (await ethers.getContract("MockPendleOracle")).address, TWAPDuration: 1800, pendleRateKind: PendleRateKind.PT_TO_ASSET, }, @@ -105,7 +105,7 @@ const func: DeployFunction = async ({ ptOracle: network.name === "sepolia" ? (await ethers.getContract("MockPendleOracle_PT_USDe_27MAR2025")).address - : addresses.newPTOracle, + : addresses.PTOracle, TWAPDuration: 1800, pendleRateKind: PendleRateKind.PT_TO_ASSET, }, @@ -117,7 +117,7 @@ const func: DeployFunction = async ({ ptOracle: network.name === "sepolia" ? (await ethers.getContract("MockPendleOracle_PT_sUSDe_27MAR2025")).address - : addresses.newPTOracle, + : addresses.PTOracle, TWAPDuration: 1800, pendleRateKind: PendleRateKind.PT_TO_ASSET, }, diff --git a/helpers/deploymentConfig.ts b/helpers/deploymentConfig.ts index d372747e..c09dc976 100644 --- a/helpers/deploymentConfig.ts +++ b/helpers/deploymentConfig.ts @@ -151,7 +151,7 @@ export const ADDRESSES: PreconfiguredAddresses = { eETH: "0x35fA164735182de50811E8e2E824cFb9B6118ac2", PTweETH_26DEC2024: "0x6ee2b5e19ecba773a352e5b21415dc419a700d1d", PTweETH_26DEC2024_Market: "0x7d372819240d14fb477f17b964f95f33beb4c704", - PTOracle: "0x66a1096C6366b2529274dF4f5D8247827fe4CEA8", + PTOracle: "0x9a9fa8338dd5e5b2188006f1cd2ef26d921650c2", EtherFiLiquidityPool: "0x308861A430be4cce5502d0A12724771Fc6DaF216", WETH: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", SfrxEthFraxOracle: "0x3d3D868522b5a4035ADcb67BF0846D61597A6a6F", @@ -164,7 +164,6 @@ export const ADDRESSES: PreconfiguredAddresses = { eBTC_Accountant: "0x1b293DC39F94157fA0D1D36d7e0090C8B8B8c13F", pufETH: "0xD9A442856C234a39a81a089C06451EBAa4306a72", LBTC: "0x8236a87084f8B84306f72007F36F2618A5634494", - newPTOracle: "0x9a9fa8338dd5e5b2188006f1cd2ef26d921650c2", PTUSDe_27MAR2025_Market: "0xB451A36c8B6b2EAc77AD0737BA732818143A0E25", PTUSDe_27MAR2025: "0x8a47b431a7d947c6a3ed6e42d501803615a97eaa", USDe: "0x4c9edd5852cd905f086c759e8383e09bff1e68b3",