Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
feat: update token for deployment
Browse files Browse the repository at this point in the history
Signed-off-by: MerlinEgalite <[email protected]>
  • Loading branch information
MerlinEgalite committed Jun 25, 2022
1 parent b94d2cc commit ac1a5a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/MorphoToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ import "@semitransferable-token/Token.sol";
contract MorphoToken is Token {

/// @notice Constructs Morpho token contract.
/// @param _owner The address of the owner (Morpho DAO).
/// @param _owner The address of the owner (Morpho Association -> Morpho DAO).
constructor(address _owner) Token("Morpho Token", "MORPHO", 18, _owner) {
_mint(_owner, 1e9 ether); // Mint 1B of Morpho tokens.
// Before transfering ownership to the DAO, the Morpho Association (ADMO) mints 0.2B of Morpho tokens.
// Those tokens are to be kept by the association or distributed to contributors and investors.
// The 0.8B Morpho tokens left can be minted by the DAO once it has ownership.
_mint(_owner, 0.2e9 ether);
}
}
2 changes: 1 addition & 1 deletion test/TestMorphoToken.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import "forge-std/console2.sol";
contract TestMorphoToken is Test {
MorphoToken public morphoToken;

uint256 public constant TOTAL_SUPPLY = 1e9 ether;
uint256 public constant TOTAL_SUPPLY = 0.2e9 ether;
uint256 public constant AMOUNT = 1e3 ether;
uint8 public constant TRANSFER_ROLE = 0;
uint8 public constant MINT_ROLE = 1;
Expand Down

0 comments on commit ac1a5a5

Please sign in to comment.