From 12f73cec2a464bb4095c6aa996d1e85fdd7c6bf0 Mon Sep 17 00:00:00 2001 From: Manas Ladha Date: Thu, 11 Dec 2025 09:04:18 +0530 Subject: [PATCH] fix: fix underlying asset for ofc assets TICKET: WIN-8249 --- modules/statics/src/base.ts | 5 ++++- modules/statics/src/coins/ofcCoins.ts | 17 ++++++++++++----- modules/statics/src/coins/ofcErc20Coins.ts | 2 +- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/modules/statics/src/base.ts b/modules/statics/src/base.ts index 61f898349b..bc557e530f 100644 --- a/modules/statics/src/base.ts +++ b/modules/statics/src/base.ts @@ -1742,7 +1742,7 @@ export enum UnderlyingAsset { SWAP = 'SWAP', SWEAT = 'sweat', SWETH = 'sweth', - SWISE = 'swice', + SWISE = 'swise', SWITCH = 'switch', SWRV = 'swrv', SXP = 'sxp', @@ -2441,6 +2441,8 @@ export enum UnderlyingAsset { 'tavaxc:xsgd' = 'tavaxc:xsgd', 'tavaxc:bitgo' = 'tavaxc:bitgo', 'tavaxc:stavax' = 'tavaxc:stavax', + 'avaxc:usdc-e' = 'avaxc:usdc-e', + 'avaxc:usdt-e' = 'avaxc:usdt-e', // Begin FTX missing AVAXC tokens 'avaxc:yeti' = 'avaxc:yeti', 'avaxc:spell' = 'avaxc:spell', @@ -3342,6 +3344,7 @@ export enum UnderlyingAsset { 'hbar:bonzo' = 'hbar:bonzo', 'hbar:co2e' = 'hbar:co2e', 'hbar:hsuite' = 'hbar:hsuite', + 'hbar:usdc' = 'hbar:usdc', // Hbar Testnet tokens 'thbar:txsgd' = 'thbar:txsgd', diff --git a/modules/statics/src/coins/ofcCoins.ts b/modules/statics/src/coins/ofcCoins.ts index 734787fe3b..f69bc18516 100644 --- a/modules/statics/src/coins/ofcCoins.ts +++ b/modules/statics/src/coins/ofcCoins.ts @@ -339,7 +339,14 @@ export const ofcCoins = [ UnderlyingAsset.POLYX, CoinKind.CRYPTO ), - ofc('77661a48-865f-48ea-bb73-875744729a69', 'ofcbera:dolo', 'Dolomite', 18, UnderlyingAsset.BERA, CoinKind.CRYPTO), + ofc( + '77661a48-865f-48ea-bb73-875744729a69', + 'ofcbera:dolo', + 'Dolomite', + 18, + UnderlyingAsset['bera:dolo'], + CoinKind.CRYPTO + ), ofc('411fd61a-3571-41f4-b632-6058a30a66a2', 'ofcapt', 'Aptos', 8, UnderlyingAsset.APT, CoinKind.CRYPTO), ofc('2fee34a2-cfb8-4882-953a-ac02f2c1577d', 'ofcvet', 'VeChain', 18, UnderlyingAsset.VET, CoinKind.CRYPTO), ofc('195cfca5-2a3e-4581-b47c-5582fe9bcf25', 'ofccanton', 'Canton Coin', 10, UnderlyingAsset.CANTON, CoinKind.CRYPTO), @@ -1306,7 +1313,7 @@ export const ofcCoins = [ 'ofcsol:glxy', 'Galaxy Digital Inc. Class A Common Stock', 6, - UnderlyingAsset['sol:ford'], + UnderlyingAsset['sol:glxy'], SOL_TOKEN_FEATURES ), @@ -1787,7 +1794,7 @@ export const ofcCoins = [ 'ofcavaxc:usdc-e', 'USD Coin', 6, - UnderlyingAsset['avaxc:usdc'], + UnderlyingAsset['avaxc:usdc-e'], undefined, [CoinFeature.STABLECOIN] ), @@ -1805,7 +1812,7 @@ export const ofcCoins = [ 'ofcavaxc:usdt-e', 'Tether USD', 6, - UnderlyingAsset['avaxc:usdt'], + UnderlyingAsset['avaxc:usdt-e'], undefined, [CoinFeature.STABLECOIN] ), @@ -3346,7 +3353,7 @@ export const ofcCoins = [ 'ofchbar:usdc', 'Mainnet Hedera USD Coin', 6, - UnderlyingAsset.USDC, + UnderlyingAsset['hbar:usdc'], undefined, [CoinFeature.STABLECOIN] ), diff --git a/modules/statics/src/coins/ofcErc20Coins.ts b/modules/statics/src/coins/ofcErc20Coins.ts index 3d88824528..d75d213456 100644 --- a/modules/statics/src/coins/ofcErc20Coins.ts +++ b/modules/statics/src/coins/ofcErc20Coins.ts @@ -2046,7 +2046,7 @@ export const ofcErc20Coins = [ ofcerc20('db12970d-9be6-4399-9657-705a984661a6', 'ofcgate', 'GATENet', 18, underlyingAssetForSymbol('gate')), ofcerc20('7949daf7-305c-47bd-9e08-f85a4972b002', 'ofclcx', 'LCX', 18, underlyingAssetForSymbol('lcx')), ofcerc20('a2872b71-b5d1-4ac9-bcaa-5a0c18062b44', 'ofcrfox', 'RFOX', 18, underlyingAssetForSymbol('rfox')), - ofcerc20('8dfdb813-b1e7-4975-9b14-a862906563b5', 'ofcswise', 'StakeWise', 18, underlyingAssetForSymbol('swice')), + ofcerc20('8dfdb813-b1e7-4975-9b14-a862906563b5', 'ofcswise', 'StakeWise', 18, underlyingAssetForSymbol('swise')), ofcerc20('c8224deb-4439-4fa1-8472-bb84c9852736', 'ofcdamm', 'dAMM', 18, underlyingAssetForSymbol('damm')), ofcerc20('8303eadb-7732-4b60-9c5e-2699aed58111', 'ofccere', 'CERE Network', 10, underlyingAssetForSymbol('cere')), ofcerc20(