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

Fix FIO Request Crypto Text Multiplier #4422

Merged
merged 3 commits into from
Aug 31, 2023
Merged

Fix FIO Request Crypto Text Multiplier #4422

merged 3 commits into from
Aug 31, 2023

Conversation

Jon-edge
Copy link
Collaborator

@Jon-edge Jon-edge commented Aug 31, 2023

The FioRequest interface represents crypto amounts in "typical" amount multipliers as seen in any modern crypto website/product/social verbiage - i.e. "1.23 BTC." These are known in Edge as "exchange" denomination multipliers.

Properly factor in the "exchangeDenomination" (described above) and "displayDenomination" (user denom/mult setting) in the FioRequestRow crypto amount

image

CHANGELOG

  • fixed: Properly factor user currency display denomination settings in FIO requests.

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)

@paullinator
Copy link
Member

Good cleanup and implementation

The original "useCryptoText" wasn't actually a hook to begin with. "useCryptoTextSimple" was the real hook.

- Rename/move useCryptoText->getCryptoText in a separate cryptoTextUtils.ts
- Rename/move useCryptoTextSimple->useCryptoText, move to useCryptoText.ts
The FioRequest interface represents crypto amounts in "typical" amount multipliers as seen in any modern crypto website/product/social verbiage - i.e. "1.23 BTC." These are known in Edge as "exchange" denomination multipliers.

Properly factor in the "exchangeDenomination" (described above) and "displayDenomination" (user denom/mult setting) in the FioRequestRow crypto amount
@Jon-edge Jon-edge merged commit 855c3a9 into develop Aug 31, 2023
2 checks passed
@Jon-edge Jon-edge deleted the jon/fio-req-denom branch August 31, 2023 21:46
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