Skip to content

Show Nym mixnet warning in stake/unstake/claim scenes#5995

Open
j0ntz wants to merge 2 commits intodevelopfrom
jon/feat/earn-nym-mixnet-warning
Open

Show Nym mixnet warning in stake/unstake/claim scenes#5995
j0ntz wants to merge 2 commits intodevelopfrom
jon/feat/earn-nym-mixnet-warning

Conversation

@j0ntz
Copy link
Copy Markdown
Contributor

@j0ntz j0ntz commented Apr 15, 2026

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

Description

Asana task

Asana: Earn - Nym Mixnet warning

Adds the existing Nym mixnet warning (already used in the Send scene) to the Stake, Unstake, and Claim Rewards scenes so users are informed that staking transactions may take longer to broadcast when Nym mixnet is active.

  • Gates the warning on isNymActive derived from wallet.currencyConfig.userSettings (same pattern as SendScene2).
  • Reuses lstrings.settings_nym_mixnet_warning_title / settings_nym_mixnet_warning_body via AlertCardUi4 wrapped in EdgeAnim.
  • Warning renders above the slider, matching the Send scene placement.
  • StakeModifyScene handles stake, unstake, and claim modes via route.params.modification, so a single insertion covers all three scenes.
  • Also converts StakeModifySceneComponent to React.FC<Props> to clear a pre-existing lint warning in the same file (separate commit).

Note

Low Risk
UI-only gating/conditional rendering based on existing wallet settings; no transaction creation/signing logic changes.

Overview
Adds a Nym Mixnet warning banner to StakeModifyScene (covering stake/unstake/claim flows) when wallet.currencyConfig.userSettings.networkPrivacy is set to nym, using the existing localized strings and an animated AlertCardUi4.

Also updates StakeModifySceneComponent typing to React.FC, tweaks warning/footer spacing, and records the change in CHANGELOG.md.

Reviewed by Cursor Bugbot for commit 2018c48. Bugbot is set up for automated code reviews on this repo. Configure here.

@j0ntz j0ntz force-pushed the jon/feat/earn-nym-mixnet-warning branch from e0a8784 to 2f6398a Compare April 15, 2026 23:02
@j0ntz j0ntz force-pushed the jon/feat/earn-nym-mixnet-warning branch from 2f6398a to 2018c48 Compare April 15, 2026 23:04
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.

1 participant