Skip to content

Commit

Permalink
Merge pull request #225 from PaulRBerg/fix/uunit-types
Browse files Browse the repository at this point in the history
fix: fix types for uUNIT
  • Loading branch information
PaulRBerg authored Apr 9, 2024
2 parents a111d11 + 970aa90 commit 16419e5
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 16419e5

Please sign in to comment.