diff --git a/src/pages/Home/components/Portfolio/Prompt/Prompt.tsx b/src/pages/Home/components/Portfolio/Prompt/Prompt.tsx index ae935977a..3e57da766 100644 --- a/src/pages/Home/components/Portfolio/Prompt/Prompt.tsx +++ b/src/pages/Home/components/Portfolio/Prompt/Prompt.tsx @@ -65,6 +65,7 @@ export function Prompt() { const { captureEncrypted } = useAnalyticsContext(); const tokens = useTokensWithBalances(); + console.log('tokens: ', tokens); const allAvailableTokens = useTokensWithBalances({ forceShowTokensWithoutBalances: true, }); @@ -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), ), diff --git a/src/pages/Home/components/Portfolio/Prompt/models.ts b/src/pages/Home/components/Portfolio/Prompt/models.ts index 2b8a25998..5c8e68157 100644 --- a/src/pages/Home/components/Portfolio/Prompt/models.ts +++ b/src/pages/Home/components/Portfolio/Prompt/models.ts @@ -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. `;