Skip to content

Conversation

@konstantinullrich
Copy link
Contributor

Description

Give users the option to show amounts in sats

Pull Request - Checklist

  • Initial Manual Tests Passed
  • Double check modified code and verify it with the feature/task requirements
  • Format code
  • Look for code duplication
  • Clear naming for variables and methods
  • Manual tests in accessibility mode (TalkBack on Android) passed

…isplay preferences across buy/sell flow and UI adjustments
…formatting crypto amounts in various display modes
…n-amounts-in-sats

# Conflicts:
#	cw_bitcoin/lib/electrum_wallet.dart
#	cw_core/lib/crypto_currency.dart
#	lib/view_model/send/output.dart
…d introduce `AmountParsingProxy` for unified crypto amount handling across the app
…s handling with `AmountParsingProxy` integration for unified crypto processing
…gProxy` and remove debug print in `exchange_view_model`
…arsingProxy`, remove redundant dependencies across view models and adjust related imports
…tup to simplify dependency management [skip ci]
final amount_ = _enteredAmount / bestRate;
_cryptoNumberFormat.maximumFractionDigits = receiveMaxDigits;
receiveAmount = _appStore.amountParsingProxy.getCryptoOutputAmount(
_cryptoNumberFormat.maximumFractionDigits = depositMaxDigits;
Copy link
Contributor

Choose a reason for hiding this comment

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

so is this still needed?

@action
void _updateCryptoAmount() {
try {
final decimals = min(20, cryptoCurrencyHandler().decimals);
Copy link
Contributor

Choose a reason for hiding this comment

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

the reason for this change is that nano has higher decimal points so it was failing to parse with nano

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.

3 participants