add k requirement at DVM

This commit is contained in:
mingda
2020-11-23 21:26:18 +08:00
parent bfc6e07a0f
commit 5889aefbd8
3 changed files with 184 additions and 9 deletions

View File

@@ -38,6 +38,8 @@ contract DVM is DVMTrader, DVMFunding {
_GAS_PRICE_LIMIT_ = IExternalValue(gasPriceSource);
_MAINTAINER_ = maintainer;
_I_ = i;
require(k > 0 && k <= 10**18);
_K_ = k;
string memory connect = "_";