Skip to content

Commit

Permalink
whitelist fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dudnyk4singree committed Feb 5, 2018
1 parent d71bd3b commit 5cc8342
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions contracts/OpportyWhiteList.sol
Expand Up @@ -3,15 +3,13 @@ pragma solidity ^0.4.18;
import "./OpportyToken.sol";
import "./Pausable.sol";
import "./OpportyWhiteListHold.sol";
import "./OpportyPresale.sol";

contract OpportyWhiteList is Pausable {
using SafeMath for uint256;

OpportyToken public token;

OpportyWhiteListHold public holdContract;
OpportyPresale public preSaleContract;

enum SaleState { NEW, SALE, ENDED }
SaleState public state;
Expand Down Expand Up @@ -87,10 +85,6 @@ contract OpportyWhiteList is Pausable {
addAssetsOwner(msg.sender);
}

function setOldPresaleContract(address presaleContract) public onlyOwner {
preSaleContract = OpportyPresale(presaleContract);
}

function setToken(address newToken) public onlyOwner {
token = OpportyToken(newToken);
TokenChanged(token);
Expand Down Expand Up @@ -232,8 +226,7 @@ contract OpportyWhiteList is Pausable {
}

function getEthRaised() constant external returns (uint) {
uint pre = preSaleContract.getEthRaised();
return pre + ethRaised;
return ethRaised;
}

function addAssetsOwner(address _owner) public onlyOwner {
Expand Down

0 comments on commit 5cc8342

Please sign in to comment.