From e59ae8d0752131c8415be6a8d2c39e03dffc1f5c Mon Sep 17 00:00:00 2001 From: Jonathan Tzeng Date: Tue, 9 Jun 2026 23:45:57 -0700 Subject: [PATCH] Label USDC.e Tarot/Velodrome pools correctly on Optimism The TAROT/USDC and USDC/VELO Tarot pools on Optimism use the USDC.e contract (0x7F5c764cBc14f9669B88837ca1490cCa17c31607) but were labeled USDC. Users with native USDC could not stake in those pools and had no indication the pools require USDC.e. Relabel the token symbol to USDC.e so the staking UI shows the correct required asset. Only the display symbol changes; tokenId, contract addresses, and stakePolicyId are unchanged, so on-chain behavior and existing positions are unaffected. --- CHANGELOG.md | 1 + eslint.config.mjs | 2 +- .../stake-plugins/generic/pluginInfo/optimismTarotPool.ts | 8 +++++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a93be492443..771d41112e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - added: Logbox disable option to env.json - added: Reverse-resolve recipient addresses to ENS / Unstoppable Domains / ZNS names in the send flow, address modal, and transaction history. +- fixed: Label Optimism Tarot/Velodrome pools that use USDC.e as USDC.e instead of USDC, so staking shows the correct required asset. ## 4.49.0 (staging) diff --git a/eslint.config.mjs b/eslint.config.mjs index 4ed016e51dd..0f083762d4c 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -437,7 +437,7 @@ export default [ 'src/plugins/gui/util/fetchRevolut.ts', 'src/plugins/gui/util/initializeProviders.ts', 'src/plugins/stake-plugins/currency/tronStakePlugin.ts', - 'src/plugins/stake-plugins/generic/pluginInfo/optimismTarotPool.ts', + 'src/plugins/stake-plugins/generic/policyAdapters/CardanoKilnAdaptor.ts', 'src/plugins/stake-plugins/generic/policyAdapters/EthereumKilnAdaptor.ts', 'src/plugins/stake-plugins/generic/policyAdapters/GlifInfinityPoolAdapter.ts', diff --git a/src/plugins/stake-plugins/generic/pluginInfo/optimismTarotPool.ts b/src/plugins/stake-plugins/generic/pluginInfo/optimismTarotPool.ts index da7a231ba0d..fe4cb4e48fb 100644 --- a/src/plugins/stake-plugins/generic/pluginInfo/optimismTarotPool.ts +++ b/src/plugins/stake-plugins/generic/pluginInfo/optimismTarotPool.ts @@ -87,7 +87,7 @@ const adaptors: TarotPoolAdapterConfig[] = [ }, token1: { contractAddress: '0x7F5c764cBc14f9669B88837ca1490cCa17c31607', - symbol: 'USDC', + symbol: 'USDC.e', decimals: 6, tokenId: '7f5c764cbc14f9669b88837ca1490cca17c31607' }, @@ -110,7 +110,7 @@ const adaptors: TarotPoolAdapterConfig[] = [ poolContractAddress: '0x5B0dce514B4AEd993751D2CF7379B75df9860312', token0: { contractAddress: '0x7F5c764cBc14f9669B88837ca1490cCa17c31607', - symbol: 'USDC', + symbol: 'USDC.e', decimals: 6, tokenId: '7f5c764cbc14f9669b88837ca1490cca17c31607' }, @@ -165,7 +165,9 @@ const adaptors: TarotPoolAdapterConfig[] = [ } ] -const makePolicyConfig = (adapterConfig: TarotPoolAdapterConfig) => { +const makePolicyConfig = ( + adapterConfig: TarotPoolAdapterConfig +): StakePolicyConfig => { return { stakePolicyId: `optimism_tarot_${adapterConfig.token0.tokenId}_${adapterConfig.token1.tokenId}_${adapterConfig.leverage}x`, stakeProviderInfo: {