@@ -88,7 +88,9 @@ contract PreICOProxyBuyer is Ownable, Haltable {
88
88
function PreICOProxyBuyer (address _owner , uint _freezeEndsAt , uint _weiMinimumLimit , uint _weiMaximumLimit , uint _weiCap ) {
89
89
90
90
// Give argument
91
- require (_freezeEndsAt != 0 && _weiMinimumLimit != 0 && _weiMaximumLimit != 0 );
91
+ require (_freezeEndsAt != 0 );
92
+ require (_weiMinimumLimit != 0 );
93
+ require (_weiMaximumLimit != 0 );
92
94
93
95
owner = _owner;
94
96
@@ -157,7 +159,7 @@ contract PreICOProxyBuyer is Ownable, Haltable {
157
159
function buyForEverybody () stopNonOwnersInEmergency public {
158
160
159
161
// Only allow buy once
160
- require (getState () == State.Funding) ;
162
+ require (getState () == State.Funding);
161
163
162
164
// Crowdsale not yet set
163
165
require (address (crowdsale) != 0 );
@@ -234,7 +236,7 @@ contract PreICOProxyBuyer is Ownable, Haltable {
234
236
require (balances[investor] != 0 );
235
237
uint amount = balances[investor];
236
238
delete balances[investor];
237
- require ( investor.call. value (amount)() );
239
+ investor.transfer (amount);
238
240
Refunded (investor, amount);
239
241
}
240
242
@@ -285,7 +287,6 @@ contract PreICOProxyBuyer is Ownable, Haltable {
285
287
}
286
288
287
289
/** Explicitly call function from your wallet. */
288
- function () payable {
289
- require (false );
290
+ function () {
290
291
}
291
292
}
0 commit comments