mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
9 lines
325 B
Dart
9 lines
325 B
Dart
import 'package:cake_wallet/src/domain/common/crypto_amount_format.dart';
|
|
|
|
const bitcoinAmountDivider = 100000000;
|
|
|
|
double bitcoinAmountToDouble({int amount}) =>
|
|
cryptoAmountToDouble(amount: amount, divider: bitcoinAmountDivider);
|
|
|
|
int doubleToBitcoinAmount(double amount) =>
|
|
(amount * bitcoinAmountDivider).toInt();
|