Skip to content

Commit c3f8403

Browse files
authored
fix arb usdt symbol (#1829)
1 parent 0539da2 commit c3f8403

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/app/earn/constants.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ import { ETH, Token } from '@/constants/tokens'
55

66
function createToken(chainId: number, symbol: string): Token {
77
const token = getTokenByChainAndSymbol(chainId, symbol)!
8-
return { ...token, image: token.logoURI }
8+
9+
return {
10+
...token,
11+
symbol: token.symbol.replace('₮0', 'T'), // handle special case of USD₮0 on arbitrum
12+
image: token.logoURI,
13+
}
914
}
1015

1116
export function getCurrencyTokens(
@@ -29,7 +34,7 @@ export function getCurrencyTokens(
2934
createToken(arbitrum.id, 'WETH'),
3035
createToken(arbitrum.id, 'WBTC'),
3136
createToken(arbitrum.id, 'USDC'),
32-
createToken(arbitrum.id, 'USDT'),
37+
createToken(arbitrum.id, 'USD₮0'),
3338
]
3439
case base.id:
3540
return [

0 commit comments

Comments
 (0)