Skip to content

Commit

Permalink
message format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alwin24 committed Jul 30, 2024
1 parent f03aa99 commit 7e88c5f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/utils/listenerCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ const getTokenInfo = async (tokenMint: string) => {
// Usage
const tokenPriceResult = await fetchTokenPrice(tokenMint);

const accountInfo = (accountInfoResult.value?.data as any).parsed
.info;
const accountInfo = (accountInfoResult.value?.data as any).parsed.info;
const decimals = accountInfo.decimals;
const totalSupply = parseInt(accountInfo.supply) / 10 ** decimals;

Expand Down Expand Up @@ -171,10 +170,9 @@ const callback = async (data: any) => {
: `Position +${positionIncrease}%`
}*\n` +
`💸 Market Cap *$${marketCap}*\n\n` +
`[DexT](${dexTUrl}${poolAddress}) |` +
` [Screener](${dexscreenerUrl}${poolAddress}) |` +
` [Buy](${jupiterUrl}${tokenMint}) |` +
` [Trending](${solTrendingUrl})`;
`[Screener](${dexscreenerUrl}${poolAddress}) |` +
` [DexT](${dexTUrl}${poolAddress}) |` +
` [Buy](${jupiterUrl}${tokenMint})`;

let remainingLength = 1024 - caption.length;
remainingLength -= remainingLength % minValueEmojis.length;
Expand Down

0 comments on commit 7e88c5f

Please sign in to comment.