From 389fe693ffd666a93ee14b1476c5ebd02ff64538 Mon Sep 17 00:00:00 2001 From: Arkhip Vouba <80775286+57Ark@users.noreply.github.com> Date: Fri, 22 Nov 2024 11:03:21 +0100 Subject: [PATCH] fix: renamed new pt tokens --- contracts/PriceFeedDataLive.sol | 12 ++++++------ contracts/Tokens.sol | 4 ++-- contracts/TokensData.sol | 8 ++++---- src/oracles/priceFeeds.ts | 4 ++-- src/tokens/decimals.ts | 4 ++-- src/tokens/normal.ts | 16 ++++++++-------- src/tokens/token.ts | 20 ++++++++++---------- 7 files changed, 34 insertions(+), 34 deletions(-) diff --git a/contracts/PriceFeedDataLive.sol b/contracts/PriceFeedDataLive.sol index 1ef1178..df95f91 100644 --- a/contracts/PriceFeedDataLive.sol +++ b/contracts/PriceFeedDataLive.sol @@ -8037,10 +8037,10 @@ contract PriceFeedDataLive { }) ); - // ------------------------ PT_solvBTC_26DEC2024 ------------------------ + // ------------------------ PT_corn_solvBTC_BBN_26DEC2024 ------------------------ pendlePriceFeedsByNetwork[1].push( PendlePriceFeedData({ - token: Tokens.PT_solvBTC_26DEC2024, + token: Tokens.PT_corn_solvBTC_BBN_26DEC2024, underlying: Tokens.WBTC, market: 0xEb4d3057738b9Ed930F451Be473C1CCC42988384, twapWindow: 1800, @@ -8050,7 +8050,7 @@ contract PriceFeedDataLive { ); pendlePriceFeedsByNetwork[1].push( PendlePriceFeedData({ - token: Tokens.PT_solvBTC_26DEC2024, + token: Tokens.PT_corn_solvBTC_BBN_26DEC2024, underlying: Tokens.WBTC, market: 0xEb4d3057738b9Ed930F451Be473C1CCC42988384, twapWindow: 1800, @@ -8059,10 +8059,10 @@ contract PriceFeedDataLive { }) ); - // ------------------------ PT_pumpBTC_26DEC2024 ------------------------ + // ------------------------ PT_corn_pumpBTC_26DEC2024 ------------------------ pendlePriceFeedsByNetwork[1].push( PendlePriceFeedData({ - token: Tokens.PT_pumpBTC_26DEC2024, + token: Tokens.PT_corn_pumpBTC_26DEC2024, underlying: Tokens.WBTC, market: 0xf8208fB52BA80075aF09840A683143C22DC5B4dd, twapWindow: 1800, @@ -8072,7 +8072,7 @@ contract PriceFeedDataLive { ); pendlePriceFeedsByNetwork[1].push( PendlePriceFeedData({ - token: Tokens.PT_pumpBTC_26DEC2024, + token: Tokens.PT_corn_pumpBTC_26DEC2024, underlying: Tokens.WBTC, market: 0xf8208fB52BA80075aF09840A683143C22DC5B4dd, twapWindow: 1800, diff --git a/contracts/Tokens.sol b/contracts/Tokens.sol index 013ff89..dece5a4 100644 --- a/contracts/Tokens.sol +++ b/contracts/Tokens.sol @@ -72,8 +72,8 @@ enum Tokens { PT_ezETH_26DEC2024, PT_eBTC_26DEC2024, PT_LBTC_27MAR2025, - PT_solvBTC_26DEC2024, - PT_pumpBTC_26DEC2024, + PT_corn_solvBTC_BBN_26DEC2024, + PT_corn_pumpBTC_26DEC2024, sfrxETH, _3Crv, crvFRAX, diff --git a/contracts/TokensData.sol b/contracts/TokensData.sol index de8cfb8..9622a8e 100644 --- a/contracts/TokensData.sol +++ b/contracts/TokensData.sol @@ -521,17 +521,17 @@ contract TokensDataLive { ); tokenDataByNetwork[1].push( TokenData({ - id: Tokens.PT_solvBTC_26DEC2024, + id: Tokens.PT_corn_solvBTC_BBN_26DEC2024, addr: 0x23e479ddcda990E8523494895759bD98cD2fDBF6, - symbol: "PT_solvBTC_26DEC2024", + symbol: "PT_corn_solvBTC_BBN_26DEC2024", tokenType: TokenType.NORMAL_TOKEN }) ); tokenDataByNetwork[1].push( TokenData({ - id: Tokens.PT_pumpBTC_26DEC2024, + id: Tokens.PT_corn_pumpBTC_26DEC2024, addr: 0xa76f0C6e5f286bFF151b891d2A0245077F1Ad74c, - symbol: "PT_pumpBTC_26DEC2024", + symbol: "PT_corn_pumpBTC_26DEC2024", tokenType: TokenType.NORMAL_TOKEN }) ); diff --git a/src/oracles/priceFeeds.ts b/src/oracles/priceFeeds.ts index ebe93f1..677f492 100644 --- a/src/oracles/priceFeeds.ts +++ b/src/oracles/priceFeeds.ts @@ -3824,7 +3824,7 @@ export const priceFeedsByToken: Record< }, }, - PT_solvBTC_26DEC2024: { + PT_corn_solvBTC_BBN_26DEC2024: { Mainnet: { Main: { type: PriceFeedType.PENDLE_PT_TWAP_ORACLE, @@ -3841,7 +3841,7 @@ export const priceFeedsByToken: Record< }, }, }, - PT_pumpBTC_26DEC2024: { + PT_corn_pumpBTC_26DEC2024: { Mainnet: { Main: { type: PriceFeedType.PENDLE_PT_TWAP_ORACLE, diff --git a/src/tokens/decimals.ts b/src/tokens/decimals.ts index 0ba3274..8a6e841 100644 --- a/src/tokens/decimals.ts +++ b/src/tokens/decimals.ts @@ -248,7 +248,7 @@ export const decimals: Record = { PT_eETH_26DEC2024: 18, PT_ezETH_26DEC2024: 18, PT_eBTC_26DEC2024: 8, - PT_solvBTC_26DEC2024: 8, - PT_pumpBTC_26DEC2024: 8, + PT_corn_solvBTC_BBN_26DEC2024: 8, + PT_corn_pumpBTC_26DEC2024: 8, PT_LBTC_27MAR2025: 8, }; diff --git a/src/tokens/normal.ts b/src/tokens/normal.ts index 818e8ab..c985fee 100644 --- a/src/tokens/normal.ts +++ b/src/tokens/normal.ts @@ -71,8 +71,8 @@ export type NormalToken = | "PT_ezETH_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" - | "PT_solvBTC_26DEC2024" - | "PT_pumpBTC_26DEC2024" + | "PT_corn_solvBTC_BBN_26DEC2024" + | "PT_corn_pumpBTC_26DEC2024" // REDSTONE | "SHIB" @@ -468,14 +468,14 @@ export const normalTokens: Record = { symbol: "PT_LBTC_27MAR2025", type: { AllNetworks: TokenType.NORMAL_TOKEN }, }, - PT_solvBTC_26DEC2024: { - name: "Pendle PT solvBTC 26 Dec 2024 expiry", - symbol: "PT_solvBTC_26DEC2024", + PT_corn_solvBTC_BBN_26DEC2024: { + name: "Pendle PT Corn solvBTC Babylon 26 Dec 2024 expiry", + symbol: "PT_corn_solvBTC_BBN_26DEC2024", type: { AllNetworks: TokenType.NORMAL_TOKEN }, }, - PT_pumpBTC_26DEC2024: { - name: "Pendle PT pumpBTC 26 Dec 2024 expiry", - symbol: "PT_pumpBTC_26DEC2024", + PT_corn_pumpBTC_26DEC2024: { + name: "Pendle PT Corn pumpBTC 26 Dec 2024 expiry", + symbol: "PT_corn_pumpBTC_26DEC2024", type: { AllNetworks: TokenType.NORMAL_TOKEN }, }, }; diff --git a/src/tokens/token.ts b/src/tokens/token.ts index 535e476..7c59252 100644 --- a/src/tokens/token.ts +++ b/src/tokens/token.ts @@ -376,8 +376,8 @@ export const tokenDataByNetwork: Record< PT_ezETH_26DEC2024: "0xf7906F274c174A52d444175729E3fa98f9bde285", PT_eBTC_26DEC2024: "0xB997B3418935A1Df0F914Ee901ec83927c1509A0", PT_LBTC_27MAR2025: "0xEc5a52C685CC3Ad79a6a347aBACe330d69e0b1eD", - PT_solvBTC_26DEC2024: "0x23e479ddcda990E8523494895759bD98cD2fDBF6", - PT_pumpBTC_26DEC2024: "0xa76f0C6e5f286bFF151b891d2A0245077F1Ad74c", + PT_corn_solvBTC_BBN_26DEC2024: "0x23e479ddcda990E8523494895759bD98cD2fDBF6", + PT_corn_pumpBTC_26DEC2024: "0xa76f0C6e5f286bFF151b891d2A0245077F1Ad74c", // GEARBOX dDAI: "0x6CFaF95457d7688022FC53e7AbE052ef8DFBbdBA", @@ -667,8 +667,8 @@ export const tokenDataByNetwork: Record< PT_ezETH_26DEC2024: NOT_DEPLOYED, PT_eBTC_26DEC2024: NOT_DEPLOYED, PT_LBTC_27MAR2025: NOT_DEPLOYED, - PT_solvBTC_26DEC2024: NOT_DEPLOYED, - PT_pumpBTC_26DEC2024: NOT_DEPLOYED, + PT_corn_solvBTC_BBN_26DEC2024: NOT_DEPLOYED, + PT_corn_pumpBTC_26DEC2024: NOT_DEPLOYED, // GEARBOX dDAI: NOT_DEPLOYED, @@ -958,8 +958,8 @@ export const tokenDataByNetwork: Record< PT_ezETH_26DEC2024: NOT_DEPLOYED, PT_eBTC_26DEC2024: NOT_DEPLOYED, PT_LBTC_27MAR2025: NOT_DEPLOYED, - PT_solvBTC_26DEC2024: NOT_DEPLOYED, - PT_pumpBTC_26DEC2024: NOT_DEPLOYED, + PT_corn_solvBTC_BBN_26DEC2024: NOT_DEPLOYED, + PT_corn_pumpBTC_26DEC2024: NOT_DEPLOYED, // GEARBOX dDAI: NOT_DEPLOYED, @@ -1251,8 +1251,8 @@ export const tokenDataByNetwork: Record< PT_ezETH_26DEC2024: NOT_DEPLOYED, PT_eBTC_26DEC2024: NOT_DEPLOYED, PT_LBTC_27MAR2025: NOT_DEPLOYED, - PT_solvBTC_26DEC2024: NOT_DEPLOYED, - PT_pumpBTC_26DEC2024: NOT_DEPLOYED, + PT_corn_solvBTC_BBN_26DEC2024: NOT_DEPLOYED, + PT_corn_pumpBTC_26DEC2024: NOT_DEPLOYED, // GEARBOX dDAI: NOT_DEPLOYED, @@ -1499,7 +1499,7 @@ export const tickerInfoTokensByNetwork: Record< reserve: true, }, ], - PT_solvBTC_26DEC2024: [ + PT_corn_solvBTC_BBN_26DEC2024: [ { symbol: "BTC", dataId: "BTC", @@ -1509,7 +1509,7 @@ export const tickerInfoTokensByNetwork: Record< reserve: true, }, ], - PT_pumpBTC_26DEC2024: [ + PT_corn_pumpBTC_26DEC2024: [ { symbol: "BTC", dataId: "BTC",