Skip to content
Permalink
Browse files

some optimizations

  • Loading branch information...
thanhson1085 committed Feb 26, 2018
1 parent 9056879 commit 7aa1b90d4cd11d1a75eb5d6a43ecad1bb07cab2d
Showing with 4 additions and 4 deletions.
  1. +1 −1 README.md
  2. +3 −3 contracts/TomoTokenSale.sol
@@ -13,7 +13,7 @@ Token Sale Start Time: 2018-03-01 04:00:00 GMT

Buy POC End Time: 2018-03-02 04:00:00 GMT (Buying with your Individual Cap - Tier 1,2,3)

Token Sale End Time: 2018-03:04 04:00:00 GMT (Buying with Max Cap)
Token Sale End Time: 2018-03-04 04:00:00 GMT (Buying with Max Cap)

Max Contribution: 10 ether

@@ -305,7 +305,7 @@ contract TomoContributorWhitelist is Ownable {
contract TomoTokenSale is Pausable {
using SafeMath for uint256;

TomoCoin token;
TomoCoin tomo;
TomoContributorWhitelist whitelist;
mapping(address => uint256) public participated;

@@ -334,7 +334,7 @@ contract TomoTokenSale is Pausable {
address _tomoDepositAddress
) public
{
token = TomoCoin(_tomoCoinAddress);
tomo = TomoCoin(_tomoCoinAddress);
whitelist = TomoContributorWhitelist(_tomoContributorWhitelistAddress);
ethFundDepositAddress = _ethFundDepositAddress;
tomoDepositAddress = _tomoDepositAddress;
@@ -344,7 +344,7 @@ contract TomoTokenSale is Pausable {

function buy(address to, uint256 val) internal returns (bool success) {
MintTomo(tomoDepositAddress, to, val);
return token.mint(to, val);
return tomo.mint(to, val);
}

function () public payable {

0 comments on commit 7aa1b90

Please sign in to comment.
You can’t perform that action at this time.