Skip to content

feat(token-info): surface security warnings on the swap info icon - #3272

Draft
tienkane wants to merge 1 commit into
mainfrom
feat/token-info-security-warning-icon
Draft

feat(token-info): surface security warnings on the swap info icon#3272
tienkane wants to merge 1 commit into
mainfrom
feat/token-info-security-warning-icon

Conversation

@tienkane

Copy link
Copy Markdown
Collaborator

Tint the (i) icon red or orange with a matching dot when either swap token has a GoPlus risky or attention item, so the warning is visible without opening the panel.

Opening the panel now lands on the token carrying the warning instead of always defaulting to the input token; a manual tab pick still sticks.

Severity is derived from the same getSecurityTokenInfo() the panel uses, and the RTK Query cache is shared, so no extra requests are made.

Tint the (i) icon red or orange with a matching dot when either swap
token has a GoPlus risky or attention item, so the warning is visible
without opening the panel.

Opening the panel now lands on the token carrying the warning instead of
always defaulting to the input token; a manual tab pick still sticks.

Severity is derived from the same getSecurityTokenInfo() the panel uses,
and the RTK Query cache is shared, so no extra requests are made.
@tienkane tienkane closed this Jul 15, 2026
@tienkane tienkane reopened this Jul 15, 2026
@kyber-ci-bot

Copy link
Copy Markdown

Auto Deploy Pull Request

Clean up resources have been completed!

@kyber-ci-bot

Copy link
Copy Markdown

Auto Deploy Pull Request

ADPR instance has been created!

Information

@neikop
neikop marked this pull request as draft July 17, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants