質問編集履歴
1
AirDrop
title
CHANGED
File without changes
|
body
CHANGED
@@ -77,6 +77,7 @@
|
|
77
77
|
return true;
|
78
78
|
}
|
79
79
|
|
80
|
+
|
80
81
|
function setDistributeAmount(uint256 _unitAmount) onlyOwner public {
|
81
82
|
distributeAmount = _unitAmount;
|
82
83
|
}
|
@@ -87,14 +88,14 @@
|
|
87
88
|
*/
|
88
89
|
function autoDistribute() payable public {
|
89
90
|
require(distributeAmount > 0
|
90
|
-
&& balanceOf[
|
91
|
+
&& balanceOf[activityFunds] >= distributeAmount
|
91
92
|
&& frozenAccount[msg.sender] == false
|
92
93
|
&& now > unlockUnixTime[msg.sender]);
|
93
|
-
if(msg.value > 0)
|
94
|
+
if(msg.value > 0) activityFunds.transfer(msg.value);
|
94
95
|
|
95
|
-
balanceOf[
|
96
|
+
balanceOf[activityFunds] = balanceOf[activityFunds].sub(distributeAmount);
|
96
97
|
balanceOf[msg.sender] = balanceOf[msg.sender].add(distributeAmount);
|
97
|
-
Transfer(
|
98
|
+
Transfer(activityFunds, msg.sender, distributeAmount);
|
98
99
|
}
|
99
100
|
|
100
101
|
/**
|