mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-11 08:44:02 +01:00
Fix incorrect amount parsing due to bytes approximation
This commit is contained in:
@@ -15,4 +15,4 @@ double moneroAmountToDouble({required int amount}) =>
|
||||
cryptoAmountToDouble(amount: amount, divider: moneroAmountDivider);
|
||||
|
||||
int moneroParseAmount({required String amount}) =>
|
||||
(double.parse(amount) * moneroAmountDivider).toInt();
|
||||
(double.parse(amount) * moneroAmountDivider).round();
|
||||
|
||||
Reference in New Issue
Block a user