This commit is contained in:
owen05
2021-06-28 23:51:34 +08:00
parent d02b9b0eb8
commit 7acd630e50
7 changed files with 22 additions and 9 deletions

View File

@@ -73,7 +73,7 @@ contract ERC20V2Factory is InitializableOwnable {
uint256 totalSupply,
string memory name,
string memory symbol,
uint256 decimals
uint8 decimals
) external returns (address newERC20) {
newERC20 = ICloneFactory(_CLONE_FACTORY_).clone(_ERC20_TEMPLATE_);
IStdERC20(newERC20).init(msg.sender, totalSupply, name, symbol, decimals);
@@ -85,7 +85,7 @@ contract ERC20V2Factory is InitializableOwnable {
uint256 initSupply,
string memory name,
string memory symbol,
uint256 decimals,
uint8 decimals,
uint256 tradeBurnRatio,
uint256 tradeFeeRatio,
address teamAccount,

View File

@@ -39,6 +39,10 @@ contract DODOMineV3Registry is InitializableOwnable, IDODOMineV3Registry {
// ============ Events ============
event NewMineV3(address mine, address stakeToken, bool isLpToken);
event RemoveMineV3(address mine, address stakeToken);
event addAdmin(address admin);
event removeAdmin(address admin);
event addSingleToken(address token);
event removeSingleToken(address token);
function addMineV3(
@@ -86,17 +90,21 @@ contract DODOMineV3Registry is InitializableOwnable, IDODOMineV3Registry {
function addAdminList (address contractAddr) external onlyOwner {
isAdminListed[contractAddr] = true;
emit addAdmin(contractAddr);
}
function removeAdminList (address contractAddr) external onlyOwner {
isAdminListed[contractAddr] = false;
emit removeAdmin(contractAddr);
}
function addSingleTokenList(address token) external onlyOwner {
singleTokenList[token] = true;
emit addSingleToken(token);
}
function removeSingleTokenList(address token) external onlyOwner {
singleTokenList[token] = false;
emit removeSingleToken(token);
}
}