(Feature) Remove spam tokens / Deactivate tokens refresh fix#1331
(Feature) Remove spam tokens / Deactivate tokens refresh fix#1331mmv08 merged 25 commits intodevelopmentfrom
Conversation
…rge, now the active tokens for the safe are not overwritten
|
CLA Assistant Lite All Contributors have signed the CLA. |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
…to 1312-fetch-assets
|
Travis automatic deployment: |
|
Travis automatic deployment: |
src/store/index.ts
Outdated
| [COOKIES_REDUCER_ID]: Map<string, any> | ||
| [ADDRESS_BOOK_REDUCER_ID]: AddressBookReducerMap | ||
| [CURRENT_SESSION_REDUCER_ID]: Map<string, any> | ||
| [CURRENT_SESSION_REDUCER_ID]: SerializedSessionState |
There was a problem hiding this comment.
In your comment you say we are not using it and we should remove it.
But here we are using it?
There was a problem hiding this comment.
Yes but it's not consumed anywhere, it's just added there
@lukasschor is the one now updating the tokens db 😉 |
|
Travis automatic deployment: |
…to 1312-fetch-assets # Conflicts: # src/routes/safe/components/Balances/Coins/index.tsx # src/routes/safe/components/Balances/Coins/styles.ts
|
It's done @mikheevm |
|
Travis automatic deployment: |
mmv08
left a comment
There was a problem hiding this comment.
How does it fix deactivated tokens appear again? Was it an issue with mergeDeep too?
Adds types on updateBlacklistedTokens
also fix blacklisted addresses calculation
also fix blacklisted addresses calculation
Removes actions from Tokens
I thought that because the bug seems fixed but I tested with another safeAddress and the problem was still there, anyway, I fixed it now and refactored an old class component to functional component |
|
Travis automatic deployment: |
| @@ -1,4 +1,6 @@ | |||
| import updateSafe from './updateSafe' | |||
| import { Set } from 'immutable' | |||
| import { Dispatch } from 'redux' | |||
There was a problem hiding this comment.
We have already spoke about Dispatch and ThunkDispatch differences, haven't we?
|
Travis automatic deployment: |
Closes #1324
Closes #1329
Description
exclude_spamparam infetchTokenCurrenciesBalances, now the tokens marked as spam in the backend are not fetched and the total balance is not affected by themsafe statewasn't checked onupdateSafereducer, I fixed that replacingmergewithmergeDeepcurrencyBalance/currencyRatethat were removed in this PR and was causing two bugs:the first one is that the user lost the feature to store his preferred currency and avoid using always USD and the second one was related with the currency balances being deleted every time the user went to the assets tabs on this line:
SerializedSessionStatewasn't working so I fixed it, but seems that we aren't using it, I would suggest removing it.Update
Now I left just the code needed, there are no fixes related to this (CC @dasanra)
I also left only the
spamparameter, but seems that some tokens likeCunningorScatterare still there, as far as I discussed with Lukas, they should be considered spam, just let you know in case you need to update the db @Uxio0Update 14/09:
Closes #1324
Closes #1329
This PR fixes the issue with reloading the tokens and also adds the spam parameter for removing spam tokens from the balances list.