Skip to content

Commit

Permalink
chore: remove hardcoded address
Browse files Browse the repository at this point in the history
  • Loading branch information
hnimtadd committed Aug 8, 2024
1 parent f295234 commit 66398b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/wallet/src/engine/runners/solana/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const queryTokens = async (
);

const tokenInfo = await getTokenInfo({
address: 'BDHqX9YfJE3M6caox3obUX5YpWHz2cjnGFiZJtRghdCo',
address: doc.mint,
network: doc.network,
});
doc.quotes = tokenInfo?.quotes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export const TokenItem: FC<Props> = ({ style, token, onPress, tokenPnL }) => {
<View style={styles.unitQuoteContainer}>
<Text style={styles.secondaryText}>{formatQuote(unitQuote)}</Text>
<Text style={isLost ? styles.lostText : styles.profitText}>
{isLost ? '-' : '+'} {Math.abs(Math.round(pnl * 10000) / 10000 ?? 0)}%
{isLost ? '-' : '+'}{' '}
{Math.abs(Math.round(pnl * 10000) / 10000 ?? 0)}%
</Text>
</View>
</View>
Expand Down

0 comments on commit 66398b1

Please sign in to comment.