apply naming fixes for the bond names based on the ui revision 14

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2026-04-07 19:56:03 +03:00
parent 1c25be075c
commit 6acd4e92e2
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
3 changed files with 5 additions and 5 deletions

View File

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

View File

@ -151,12 +151,11 @@ export const useLiveBonds = (chainId, chainName) => {
);
const zero = new DecimalBigNumber(0n, 0);
const bondName = `${baseTokenSymbol}/${tokenNameConverter(chainId, "WETH")}`;
return {
id,
discount,
displayName: getBondNameDisplayName(chainId, bondName, quoteTokenAddress),
displayName: getBondNameDisplayName(chainId, quoteTokenAddress, baseTokenSymbol),
baseToken: {
name: baseTokenSymbol,
purchaseUrl: getTokenPurchaseLink(chainId, "", chainName),

View File

@ -178,9 +178,10 @@ export const getTokenIcons = (chainId, address) => {
return icons;
}
export const getBondNameDisplayName = (chainId, stringValue, tokenAddress) => {
export const getBondNameDisplayName = (chainId, tokenAddress, baseTokenSymbol) => {
let stringValue = tokenNameConverter(chainId, "WETH")
if (tokenAddress.toUpperCase() === FTSO_DAI_LP_ADDRESSES[chainId].toUpperCase()) {
stringValue = `${stringValue} LP`;
stringValue = `${baseTokenSymbol}-${stringValue} LP`;
}
return stringValue;
}