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

feat: add token verification source count and link to block explorer #27759

Merged
merged 35 commits into from
Nov 2, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6081700
feat: add token verification source count and link to block explorer
bfullam Oct 10, 2024
5b410dc
Merge branch 'develop' into MMS-1564-swaps-token-verification-info
bfullam Oct 10, 2024
8523b5b
Merge branch 'develop' into MMS-1564-swaps-token-verification-info
bfullam Oct 10, 2024
9d84fd6
Merge branch 'develop' into MMS-1564-swaps-token-verification-info
bfullam Oct 16, 2024
c7d20bb
fix: update message copy
bfullam Oct 16, 2024
6b4aed5
chore: use enum for human readable block explorer names
bfullam Oct 16, 2024
2650379
fix: don't show verified sources for chain's default token
bfullam Oct 16, 2024
840dbb4
Merge branch 'develop' into MMS-1564-swaps-token-verification-info
bfullam Oct 16, 2024
460fe62
fix: linting
bfullam Oct 16, 2024
4bc7293
test: update blockExplorer naming
bfullam Oct 16, 2024
13eb3a6
Merge branch 'develop' into MMS-1564-swaps-token-verification-info
bfullam Oct 16, 2024
78702c6
fix: linting
bfullam Oct 16, 2024
5b010b0
fix: linting
bfullam Oct 16, 2024
8d00e80
test: fix naming for Etherscan
bfullam Oct 16, 2024
c773039
Merge branch 'develop' into MMS-1564-swaps-token-verification-info
bfullam Oct 17, 2024
6c778bc
test: update tests
bfullam Oct 17, 2024
e1fdd68
Merge branch 'develop' into MMS-1564-swaps-token-verification-info
bfullam Oct 17, 2024
97301cd
Merge branch 'develop' into MMS-1564-swaps-token-verification-info
bfullam Oct 17, 2024
08157c8
refactor: use token address to determine if it is the native token
bfullam Oct 17, 2024
74ad24c
fix: fix missed variable name update
bfullam Oct 17, 2024
5e0bb62
Merge branch 'develop' into MMS-1564-swaps-token-verification-info
bfullam Oct 17, 2024
05130c1
refactor: show verified sources before fetching quote
bfullam Oct 17, 2024
5776149
style: linting
bfullam Oct 17, 2024
05994b1
test: update tests to account for multiple identical elements
bfullam Oct 18, 2024
30182e2
test: linting
bfullam Oct 18, 2024
dd670b9
refactor: copy change
bfullam Oct 18, 2024
2fc40d9
Merge branch 'develop' into MMS-1564-swaps-token-verification-info
bfullam Oct 22, 2024
83acf3a
fix: don't show verified sources count until a to token is selected
bfullam Oct 22, 2024
8f8d708
style: linting
bfullam Oct 22, 2024
dfc8e61
refactor: move block explorer url and human readable name constants t…
bfullam Oct 23, 2024
fed5429
style: lint
bfullam Oct 23, 2024
8eded5d
Merge branch 'develop' into MMS-1564-swaps-token-verification-info
bfullam Oct 23, 2024
255cdb6
Merge branch 'develop' into MMS-1564-swaps-token-verification-info
bfullam Oct 29, 2024
fb7523e
fix: account for zksync explorer token URL scheme
bfullam Oct 30, 2024
7284081
Merge branch 'develop' into MMS-1564-swaps-token-verification-info
bfullam Oct 30, 2024
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
2 changes: 1 addition & 1 deletion app/_locales/en/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion ui/pages/swaps/prepare-swap-page/prepare-swap-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,16 @@ export default function PrepareSwapPage({
alignItems={AlignItems.stretch}
>
<div className="prepare-swap-page__balance-message">
{selectedToToken?.string && yourTokenToBalance}
{showReviewQuote ? (
<div>
{t('swapTokenVerificationSources', [occurrences])}
{t('verifyThisTokenOn', [
<BlockExplorerLink key="block-explorer-link" />,
])}
</div>
) : (
selectedToToken?.string && yourTokenToBalance
)}
</div>
</Box>
</div>
Expand Down