From 970aa902098af46191d3b38f94bd30e7496078ae Mon Sep 17 00:00:00 2001 From: Paul Razvan Berg Date: Tue, 9 Apr 2024 16:34:30 +0100 Subject: [PATCH] fix: fix types for uUNIT --- src/sd1x18/Constants.sol | 2 +- src/ud2x18/Constants.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sd1x18/Constants.sol b/src/sd1x18/Constants.sol index 444e0dff..4c1ebc2b 100644 --- a/src/sd1x18/Constants.sol +++ b/src/sd1x18/Constants.sol @@ -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; diff --git a/src/ud2x18/Constants.sol b/src/ud2x18/Constants.sol index df5e9cc2..63a4c540 100644 --- a/src/ud2x18/Constants.sol +++ b/src/ud2x18/Constants.sol @@ -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;