diff --git a/src/Utils/UnitConverter.php b/src/Utils/UnitConverter.php index 5f4972e..6a67ede 100644 --- a/src/Utils/UnitConverter.php +++ b/src/Utils/UnitConverter.php @@ -12,7 +12,9 @@ class UnitConverter * Unit multipliers. */ private const WEI_MULTIPLIER = 1; + private const GWEI_MULTIPLIER = 1000000000; // 1e9 + private const ARK_MULTIPLIER = 1000000000000000000; // 1e18 /** @@ -56,4 +58,4 @@ public static function formatUnits(string $value, string $unit = 'ark'): float throw new InvalidArgumentException("Unsupported unit: {$unit}. Supported units are 'wei', 'gwei', and 'ark'."); } } -} \ No newline at end of file +}