fix idvm interface

This commit is contained in:
owen05
2021-03-14 16:49:33 +08:00
parent 6b1864866a
commit 4ef8fd9cad
13 changed files with 54 additions and 9 deletions

View File

@@ -91,6 +91,6 @@ contract DVM is DVMTrader, DVMFunding {
// ============ Version Control ============
function version() external pure returns (string memory) {
return "DVM 1.0.1";
return "DVM 1.0.2";
}
}

View File

@@ -180,6 +180,7 @@ contract DVMVault is DVMStorage {
}
function _mint(address user, uint256 value) internal {
require(value > 0, "MINT_INVALID");
_SHARES_[user] = _SHARES_[user].add(value);
totalSupply = totalSupply.add(value);
emit Mint(user, value);