Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial token setup #26

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The Media DAO
# The Macron1 DAO Token

[![Node.js CI](https://github.com/realstorypro/media-doa/actions/workflows/node.js.yml/badge.svg?branch=main)](https://github.com/realstorypro/media-doa/actions/workflows/node.js.yml)
[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)
Expand Down Expand Up @@ -125,4 +125,4 @@ See `contributing.md` for ways to get started.
Please adhere to this project's **Code of Conduct**.

## License
[MIT](https://choosealicense.com/licenses/mit/ "MIT")
[MIT](https://choosealicense.com/licenses/mit/ "MIT")
6 changes: 3 additions & 3 deletions contracts/Token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "@openzeppelin/contracts/security/Pausable.sol";
//import "hardhat/console.sol";

contract Token is ERC20, ERC20Burnable, Pausable, Ownable {
constructor(uint256 initialMint, uint256 initialPrice) ERC20("Token", "TKN") {
constructor(uint256 initialMint, uint256 initialPrice) ERC20("Macron 1", "MAC1") {
_mint(msg.sender, initialMint * 10 ** decimals());
setPrice(initialPrice);
}
Expand Down Expand Up @@ -55,6 +55,6 @@ contract Token is ERC20, ERC20Burnable, Pausable, Ownable {
}

function _requireNotPaused() internal view virtual override{
require(!paused(), "The bank is not selling tokens right now. Please buy from your peers.");
require(!paused(), "The bank is not selling tokens right now.");
}
}
}
Loading
Loading