From 3a650f6bb4b0e75c821e6bd6e194b849bdc3be7c Mon Sep 17 00:00:00 2001 From: ungaro Date: Tue, 3 Dec 2024 10:20:01 -0500 Subject: [PATCH] add _BASE back to componenttoken, change it's visibility, remove from AggregateToken --- nest/src/AggregateToken.sol | 2 -- nest/src/ComponentToken.sol | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nest/src/AggregateToken.sol b/nest/src/AggregateToken.sol index 4baffab..a9ebfab 100644 --- a/nest/src/AggregateToken.sol +++ b/nest/src/AggregateToken.sol @@ -44,8 +44,6 @@ contract AggregateToken is ComponentToken, IAggregateToken, ERC1155Holder { // Constants - // Base that is used to divide all price inputs in order to represent e.g. 1.000001 as 1000001e12 - uint256 private constant _BASE = 1e18; /// @notice Role for the price updater of the AggregateToken bytes32 public constant PRICE_UPDATER_ROLE = keccak256("PRICE_UPDATER_ROLE"); diff --git a/nest/src/ComponentToken.sol b/nest/src/ComponentToken.sol index 5c7d19e..cb89485 100644 --- a/nest/src/ComponentToken.sol +++ b/nest/src/ComponentToken.sol @@ -74,7 +74,9 @@ abstract contract ComponentToken is bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); /// @notice Role for the upgrader of the ComponentToken bytes32 public constant UPGRADER_ROLE = keccak256("UPGRADER_ROLE"); - + /// @notice Base that is used to divide all price inputs in order to represent e.g. 1.000001 as 1000001e12 + uint256 internal constant _BASE = 1e18; + // Events /**