Skip to content

Commit

Permalink
add _BASE back to componenttoken, change it's visibility, remove from…
Browse files Browse the repository at this point in the history
… AggregateToken
  • Loading branch information
ungaro committed Dec 3, 2024
1 parent df15ff5 commit 3a650f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions nest/src/AggregateToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
4 changes: 3 additions & 1 deletion nest/src/ComponentToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down

0 comments on commit 3a650f6

Please sign in to comment.