Skip to content

Commit

Permalink
Make less changes to verified contract
Browse files Browse the repository at this point in the history
  • Loading branch information
k06a committed Oct 27, 2017
1 parent 044a53b commit b1e03d0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions contracts/CATCrowdsale.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ contract CATCrowdsale is FinalizableCrowdsale, TokensCappedCrowdsale(CATCrowdsal
// Variables
address public remainingTokensWallet;
address public presaleWallet;
bool public mintedForPresale;

/**
* @dev Sets CAT to Ether rate. Will be called multiple times durign the crowdsale to adjsut the rate
Expand Down Expand Up @@ -134,17 +133,16 @@ contract CATCrowdsale is FinalizableCrowdsale, TokensCappedCrowdsale(CATCrowdsal
* @dev Allocates tokens from preSale to a special wallet. Called once as part of crowdsale setup
*/
function mintPresaleTokens(uint256 tokens) public onlyOwner {
require(!mintedForPresale);
mintTokens(presaleWallet, tokens);
mintedForPresale = true;
presaleWallet = 0;
}

/**
* @dev Transfer presaled tokens even on paused token contract
*/
function transferPresaleTokens(address destination, uint256 amount) public onlyOwner {
unpauseTokens();
token.transfer(destination, amount); // from presaleWallet, which is equal to this
token.transfer(destination, amount);
pauseTokens();
}

Expand Down

0 comments on commit b1e03d0

Please sign in to comment.