From bb3abacae0d4c44bdc382549ee5c4c248002fc85 Mon Sep 17 00:00:00 2001 From: "jackgale.eth" Date: Thu, 12 Dec 2024 17:34:41 +0000 Subject: [PATCH 1/2] Add Mode sUSDe to Address Book and modesUSDe price oracleId --- .../src/address-book/mode/tokens/tokens.ts | 15 +++++++++++++++ .../fetchConcentratedLiquidityTokenPrices.ts | 8 ++++++++ 2 files changed, 23 insertions(+) diff --git a/packages/address-book/src/address-book/mode/tokens/tokens.ts b/packages/address-book/src/address-book/mode/tokens/tokens.ts index d99c6f10e..085b84db0 100644 --- a/packages/address-book/src/address-book/mode/tokens/tokens.ts +++ b/packages/address-book/src/address-book/mode/tokens/tokens.ts @@ -142,4 +142,19 @@ export const tokens = { documentation: 'https://velodrome.finance/docs', bridge: 'superchain', }, + sUSDe: { + name: 'Staked USDe', + symbol: 'sUSDe', + oracleId: 'sUSDe', + address: '0x211Cc4DD073734dA055fbF44a2b4667d5E5fE5d2', + chainId: 34443, + decimals: 18, + logoURI: '', + website: 'https://ethena.fi/', + documentation: 'https://ethena-labs.gitbook.io/ethena-labs', + description: + 'Users are able to stake their USDe for sUSDe through the Ethena front-end. sUSDe is a reward-bearing token that accrues value from the yield that Ethena’s underlying delta-neutral position generates. sUSDe is subject to a 7-day un-staking period.', + bridge: 'layer-zero', + risks: ['NO_TIMELOCK'], + }, } as const satisfies Record; diff --git a/src/utils/fetchConcentratedLiquidityTokenPrices.ts b/src/utils/fetchConcentratedLiquidityTokenPrices.ts index 767f9d24a..575aa4459 100644 --- a/src/utils/fetchConcentratedLiquidityTokenPrices.ts +++ b/src/utils/fetchConcentratedLiquidityTokenPrices.ts @@ -491,6 +491,14 @@ const tokens: Partial firstToken: 'XVELO', secondToken: 'WETH', }, + { + type: 'Slipstream', + oracleId: 'modesUSDe', + decimalDelta: 1, + pool: '0xa2E74518fe27B0FC04Ea36024ea837d26cd09CDa', + firstToken: 'sUSDe', + secondToken: 'USDC', + } ], lisk: [ { From 4ce179fb87c120c7cc0a4e85cd3231846c68a70a Mon Sep 17 00:00:00 2001 From: "jackgale.eth" Date: Thu, 12 Dec 2024 18:01:37 +0000 Subject: [PATCH 2/2] Resolve Mistakes --- .../address-book/src/address-book/mode/tokens/tokens.ts | 2 +- src/utils/fetchConcentratedLiquidityTokenPrices.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/address-book/src/address-book/mode/tokens/tokens.ts b/packages/address-book/src/address-book/mode/tokens/tokens.ts index 085b84db0..c3fb5648e 100644 --- a/packages/address-book/src/address-book/mode/tokens/tokens.ts +++ b/packages/address-book/src/address-book/mode/tokens/tokens.ts @@ -145,7 +145,7 @@ export const tokens = { sUSDe: { name: 'Staked USDe', symbol: 'sUSDe', - oracleId: 'sUSDe', + oracleId: 'modesUSDe', address: '0x211Cc4DD073734dA055fbF44a2b4667d5E5fE5d2', chainId: 34443, decimals: 18, diff --git a/src/utils/fetchConcentratedLiquidityTokenPrices.ts b/src/utils/fetchConcentratedLiquidityTokenPrices.ts index 575aa4459..6bb81c1ed 100644 --- a/src/utils/fetchConcentratedLiquidityTokenPrices.ts +++ b/src/utils/fetchConcentratedLiquidityTokenPrices.ts @@ -494,10 +494,10 @@ const tokens: Partial { type: 'Slipstream', oracleId: 'modesUSDe', - decimalDelta: 1, + decimalDelta: 1e12, pool: '0xa2E74518fe27B0FC04Ea36024ea837d26cd09CDa', - firstToken: 'sUSDe', - secondToken: 'USDC', + firstToken: 'USDC', + secondToken: 'modesUSDe', } ], lisk: [