remove syncBalance ownable

This commit is contained in:
owen05
2021-03-27 09:21:57 +08:00
parent 2c3a98d9cd
commit 71260a282a

View File

@@ -55,15 +55,7 @@ contract vDODOMine is BaseMine {
emit Withdraw(msg.sender, amount);
}
// ============ View ============
function getLockedvDODO(address account) external view returns (uint256) {
return balanceOf(account);
}
// =============== Ownable ================
function syncBalance(address[] calldata userList) external onlyOwner {
function syncBalance(address[] calldata userList) external {
for (uint256 i = 0; i < userList.length; ++i) {
address user = userList[i];
uint256 curBalance = balanceOf(user);
@@ -75,4 +67,10 @@ contract vDODOMine is BaseMine {
}
}
}
// ============ View ============
function getLockedvDODO(address account) external view returns (uint256) {
return balanceOf(account);
}
}