limit x 0 100

This commit is contained in:
牛涛涛
2020-12-21 21:42:27 +08:00
parent 4cd56fa553
commit f215d36297

View File

@@ -151,6 +151,7 @@ contract CrowdPoolingFactory is Ownable {
// ============ Owner Functions ============
function setXY(uint256 x,uint256 y) public onlyOwner {
require(x>0&&x<=100,"between 0,100");
_X_=x;
_Y_=y;
}