fix reserve icons for list of all bonds

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2026-01-05 17:07:51 +03:00
parent 92819639d0
commit 6f4d38efb3
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{
"name": "ghost-dao-interface",
"private": true,
"version": "0.4.2",
"version": "0.4.3",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -137,12 +137,11 @@ export const getTokenAddress = (chainId, name) => {
return address;
}
// TBD: should be extended on new tokens
export const getTokenIcons = (chainId, address) => {
let icons = [""];
switch (address) {
case RESERVE_ADDRESSES[chainId]:
icons = ["RESERVE"];
icons = [chainId === 11155111 ? "GDAI" : "WETH"];
break;
case FTSO_ADDRESSES[chainId]:
icons = ["FTSO"];
@ -154,7 +153,7 @@ export const getTokenIcons = (chainId, address) => {
icons = ["GHST"];
break;
case FTSO_DAI_LP_ADDRESSES[chainId]:
icons = ["FTSO", "RESERVE"];
icons = ["FTSO", chainId === 11155111 ? "GDAI" : "WETH"];
break;
}
return icons;