remove syncBalance ownable
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user