Skip to content

Commit

Permalink
style: resolve style guide violations
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsobries authored and actions-user committed Oct 7, 2024
1 parent 38bc72a commit f6cdc79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Utils/UnitConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down Expand Up @@ -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'.");
}
}
}
}

0 comments on commit f6cdc79

Please sign in to comment.