File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ contract LifCrowdsale is Ownable, Pausable {
213
213
214
214
@param beneficiary Address to which Lif should be sent
215
215
*/
216
- function buyTokens (address beneficiary ) public payable validPurchase {
216
+ function buyTokens (address beneficiary ) public payable whenNotPaused validPurchase {
217
217
require (beneficiary != address (0 ));
218
218
assert (weiPerUSDinTGE > 0 );
219
219
@@ -376,7 +376,7 @@ contract LifCrowdsale is Ownable, Pausable {
376
376
@dev Allows a TGE contributor to claim their contributed eth in case the
377
377
TGE has finished without reaching the minCapUSD
378
378
*/
379
- function claimEth () public hasEnded {
379
+ function claimEth () public whenNotPaused hasEnded {
380
380
require (isFinalized);
381
381
require (! funded ());
382
382
@@ -394,7 +394,7 @@ contract LifCrowdsale is Ownable, Pausable {
394
394
Mechanism in case the soft cap was exceeded. It also unpauses the token to
395
395
enable transfers. It can be called only once, after `end2Timestamp`
396
396
*/
397
- function finalize () public hasEnded {
397
+ function finalize () public whenNotPaused hasEnded {
398
398
require (! isFinalized);
399
399
400
400
// foward founds and unpause token only if minCap is reached
Original file line number Diff line number Diff line change @@ -423,6 +423,7 @@ async function runClaimEthCommand(command, state) {
423
423
424
424
let shouldThrow = ! state . crowdsaleFinalized ||
425
425
state . crowdsaleFunded ||
426
+ state . crowdsalePaused ||
426
427
( purchases . length == 0 ) ||
427
428
hasZeroAddress ||
428
429
state . claimedEth [ command . fromAccount ] > 0 ;
You can’t perform that action at this time.
0 commit comments