Skip to content

Commit

Permalink
fix: fix types for uUNIT
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg committed Apr 9, 2024
1 parent a111d11 commit 970aa90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sd1x18/Constants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ SD1x18 constant PI = SD1x18.wrap(3_141592653589793238);

/// @dev The unit number, which gives the decimal precision of SD1x18.
SD1x18 constant UNIT = SD1x18.wrap(1e18);
int256 constant uUNIT = 1e18;
int64 constant uUNIT = 1e18;
2 changes: 1 addition & 1 deletion src/ud2x18/Constants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ UD2x18 constant MAX_UD2x18 = UD2x18.wrap(uMAX_UD2x18);
UD2x18 constant PI = UD2x18.wrap(3_141592653589793238);

/// @dev The unit number, which gives the decimal precision of UD2x18.
uint256 constant uUNIT = 1e18;
UD2x18 constant UNIT = UD2x18.wrap(1e18);
uint64 constant uUNIT = 1e18;

0 comments on commit 970aa90

Please sign in to comment.