Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/pages/Home/components/Portfolio/Prompt/Prompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export function Prompt() {
const { captureEncrypted } = useAnalyticsContext();

const tokens = useTokensWithBalances();
console.log('tokens: ', tokens);
const allAvailableTokens = useTokensWithBalances({
forceShowTokensWithoutBalances: true,
});
Expand Down Expand Up @@ -365,6 +366,8 @@ export function Prompt() {
name: token.name,
symbol: token.symbol,
balance: token.balanceDisplayValue,
priceChanges: token.priceChanges,
priceInCurrency: token.priceInCurrency,
})),
(_, v) => (typeof v === 'bigint' ? v.toString() : v),
),
Expand Down
3 changes: 2 additions & 1 deletion src/pages/Home/components/Portfolio/Prompt/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,6 @@ The tokens can be identified by their "symbol" property, as well as their "addre
All known and available tokens for the current network are listed in the following array: __AVAILABLE_TOKENS__
Bridge must be only available the following tokens: __BRIDGE_DATA__ and the source network is always the actual "active" network.
The user can open a dApp by name or by a given URL or if the user wants to buy a token you can open a new window where it can be done.
The important words should be emphasised with bold formatting e.g. token and network names and / or ids, command names and similar things.
The user can ask the daily summary of the tokens which means you are asked to list out the price changes of the owned tokens. The changes are in the __TOKENS__ list. Each index is an owned token and each one has the "priceChanges" property which contains a percentage and a value and a currency vale in the "value" property. The changes can be positive or negative. You can mark the positive changes with green color and the negative ones with red. You can summarize all the changes in short as well how the prices and the percentages are changed and that information is important so format it well e.g. with bold text.
The important words should be emphasised with bold formatting and the positive changes with green color and the negative ones with red color e.g. token and network names and / or ids, command names and similar things. You can also use colored icons for demonstrate the increasing or decreasing. If there is no price or change (means no data or the values are zero or null) you should not report that token at all.
`;
Loading