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

Add token verification message to swaps build quote screen #9891

Merged
merged 5 commits into from
Nov 17, 2020

Conversation

danjm
Copy link
Contributor

@danjm danjm commented Nov 16, 2020

Fixes part of #9873

The user will now see a message below the token 'to' field that links them to etherscan where they can verify that the token they selected is the one they indeed wish to swap.

build-quote-token-message

@danjm danjm requested a review from a team as a code owner November 16, 2020 20:38
@danjm danjm requested a review from rekmarks November 16, 2020 20:39
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@danjm danjm added the v8.1.5 label Nov 16, 2020
@metamaskbot
Copy link
Collaborator

Builds ready [c8d7714]
Page Load Metrics (451 ± 60 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint3191512110
domContentLoaded31467145012560
load31567745112560
domInteractive31467144912560

@danjm
Copy link
Contributor Author

danjm commented Nov 17, 2020

@Gudahtt your two comments are addressed in the two most recent commits

@metamaskbot
Copy link
Collaborator

Builds ready [631fd07]
Page Load Metrics (410 ± 58 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint28373232
domContentLoaded24757440812058
load24857541012058
domInteractive24757440812058

{selectedToToken?.address &&
selectedToToken?.address !== ETH_SWAPS_TOKEN_OBJECT.address && (
<div className="build-quote__token-message">
<span>
Copy link
Member

Choose a reason for hiding this comment

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

What is the purpose of this span?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nothing 😅 It has been removed

@metamaskbot
Copy link
Collaborator

Builds ready [a0565e1]
Page Load Metrics (319 ± 44 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint28583463
domContentLoaded2395803179244
load2415823199244
domInteractive2395803179244

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

@metamaskbot
Copy link
Collaborator

Builds ready [9164df2]
Page Load Metrics (355 ± 50 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint287537105
domContentLoaded23057035410550
load23157135510550
domInteractive22957035310550

@danjm danjm merged commit e4de763 into develop Nov 17, 2020
@danjm danjm deleted the swaps-build-quote-token-message branch November 17, 2020 20:56
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants