Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EVM poisoning vol. 2 #10034

Merged
merged 8 commits into from
Feb 6, 2024
Merged

EVM poisoning vol. 2 #10034

merged 8 commits into from
Feb 6, 2024

Conversation

tomasklim
Copy link
Member

@tomasklim tomasklim commented Nov 22, 2023

Description

  • fetch token definitions for each token available in account, it is done on redux action updateSelectedAccount
  • use this token definition in send form for checking if we know this token
  • mark fake txs
  • do not fetch fiat rates for unknown tokens
  • hide zero balance tokens in send form
  • categorise tokens in send form into known and unknown according to token definitions NO ISSUE
  • categorise tokens page

Related Issue

Resolves #8119
Resolves #10783
Resolves #8007 I slightly refactored the logic, it cannot be part of tx as we need to fetch token definitions first
Resolves #11037
Resolves #11040

Screenshots:

Screenshot 2024-01-29 at 15 49 14

Screenshot 2024-02-06 at 19 18 42
Screenshot 2024-02-06 at 19 18 22

@tomasklim tomasklim force-pushed the feat/tag-scammy-txs branch 2 times, most recently from 6ae7d78 to 1d763fb Compare February 5, 2024 17:05
@tomasklim tomasklim marked this pull request as ready for review February 5, 2024 17:06
@tomasklim tomasklim force-pushed the feat/tag-scammy-txs branch from 1d763fb to 36a596d Compare February 5, 2024 17:22
@tomasklim tomasklim added the release Will be included in the upcoming release. Needs to be backported to the release branch. label Feb 5, 2024
@tomasklim tomasklim requested review from Nodonisko and PeKne February 5, 2024 18:14

isTokenKnown = fetchedTokenDefinition.ok;

dispatch(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't create extra actions for success/fail thunks. RTK has built-in support for these https://redux-toolkit.js.org/api/createAsyncThunk#examples and https://redux-toolkit.js.org/api/createAsyncThunk#handling-thunk-errors

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@PeKne PeKne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small things, otherwise looks good to me.

packages/suite/src/support/messages.ts Outdated Show resolved Hide resolved
suite-common/suite-utils/src/antiFraud.ts Outdated Show resolved Hide resolved
suite-common/suite-utils/src/antiFraud.ts Outdated Show resolved Hide resolved
suite-common/suite-utils/src/antiFraud.ts Outdated Show resolved Hide resolved
@tomasklim tomasklim force-pushed the feat/tag-scammy-txs branch from 36a596d to 2c3b912 Compare February 6, 2024 11:26
Copy link
Contributor

@PeKne PeKne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect 👍

@tomasklim tomasklim force-pushed the feat/tag-scammy-txs branch 2 times, most recently from 0af5c01 to 32c6199 Compare February 6, 2024 15:48
@tomasklim tomasklim force-pushed the feat/tag-scammy-txs branch from 4a46be2 to ff9e384 Compare February 6, 2024 18:17
@tomasklim tomasklim enabled auto-merge (rebase) February 6, 2024 18:20
@tomasklim tomasklim merged commit 1546394 into develop Feb 6, 2024
31 of 32 checks passed
@tomasklim tomasklim deleted the feat/tag-scammy-txs branch February 6, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release Will be included in the upcoming release. Needs to be backported to the release branch.
Projects
No open projects
Archived in project
5 participants