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:
parent
1c25be075c
commit
6acd4e92e2
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-dao-interface",
|
"name": "ghost-dao-interface",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.7.2",
|
"version": "0.7.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@ -151,12 +151,11 @@ export const useLiveBonds = (chainId, chainName) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const zero = new DecimalBigNumber(0n, 0);
|
const zero = new DecimalBigNumber(0n, 0);
|
||||||
const bondName = `${baseTokenSymbol}/${tokenNameConverter(chainId, "WETH")}`;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id,
|
id,
|
||||||
discount,
|
discount,
|
||||||
displayName: getBondNameDisplayName(chainId, bondName, quoteTokenAddress),
|
displayName: getBondNameDisplayName(chainId, quoteTokenAddress, baseTokenSymbol),
|
||||||
baseToken: {
|
baseToken: {
|
||||||
name: baseTokenSymbol,
|
name: baseTokenSymbol,
|
||||||
purchaseUrl: getTokenPurchaseLink(chainId, "", chainName),
|
purchaseUrl: getTokenPurchaseLink(chainId, "", chainName),
|
||||||
|
|||||||
@ -178,9 +178,10 @@ export const getTokenIcons = (chainId, address) => {
|
|||||||
return icons;
|
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()) {
|
if (tokenAddress.toUpperCase() === FTSO_DAI_LP_ADDRESSES[chainId].toUpperCase()) {
|
||||||
stringValue = `${stringValue} LP`;
|
stringValue = `${baseTokenSymbol}-${stringValue} LP`;
|
||||||
}
|
}
|
||||||
return stringValue;
|
return stringValue;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user