mineV2 test ing

This commit is contained in:
owen05
2021-03-26 15:01:10 +08:00
parent df39a2799b
commit 67964f41fc
6 changed files with 275 additions and 3 deletions

View File

@@ -35,10 +35,10 @@ contract vDODOMine is BaseMine {
// ============ Deposit && Withdraw && Exit ============
function deposit(uint256 amount) public {
require(amount > 0, "vDODOMineETH: CANNOT_DEPOSIT_ZERO");
require(amount > 0, "DODOMineV2: CANNOT_DEPOSIT_ZERO");
require(
amount <= IVDODOToken(_vDODO_TOKEN_).availableBalanceOf(msg.sender),
"vDODOMineETH: vDODO_NOT_ENOUGH"
"DODOMineV2: vDODO_NOT_ENOUGH"
);
_totalSupply = _totalSupply.add(amount);
_balances[msg.sender] = _balances[msg.sender].add(amount);