mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-24 08:09:19 +00:00
6 lines
165 B
Dart
6 lines
165 B
Dart
import 'dart:math';
|
|
|
|
class EthereumFormatter {
|
|
static int parseEthereumAmount(String amount) =>
|
|
BigInt.from(double.parse(amount) * (pow(10, 18))).toInt();
|
|
}
|