Skip to content

Commit

Permalink
Allow only PICOPS certified addresses to participate
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanjambazov committed Nov 13, 2017
1 parent 6ea01fe commit 60fcc7c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions contracts/EDUToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,22 @@ import 'zeppelin-solidity/contracts/token/StandardToken.sol';
import 'zeppelin-solidity/contracts/math/SafeMath.sol';


contract Certifier {
event Confirmed(address indexed who);
event Revoked(address indexed who);
function certified(address) public constant returns (bool);
function get(address, string) public constant returns (bytes32);
function getAddress(address, string) public constant returns (address);
function getUint(address, string) public constant returns (uint);
}


contract EDUToken is StandardToken {

using SafeMath for uint256;

Certifier public certifier;

// EVENTS
event CreatedEDU(address indexed _creator, uint256 _amountOfEDU);
event Transfer(address indexed _from, address indexed _to, uint _value);
Expand Down Expand Up @@ -99,6 +111,7 @@ contract EDUToken is StandardToken {
address _multisigBountyProgramAddress,
address _multisigAddress
) {
certifier = Certifier(0x1e2F058C43ac8965938F6e9CA286685A3E63F24E);
ownerAddress = msg.sender; // Store owners address
earlyPresaleAddress = _earlyPresaleAddress; // Store early presale address
presaleAddress = _presaleAddress; // Store presale address
Expand Down Expand Up @@ -143,6 +156,11 @@ contract EDUToken is StandardToken {
{
require(allowContribution);

// Only PICOPS certified addresses will be allowed to participate
if (!certifier.certified(msg.sender)) {
revert();
}

// Transaction value in Wei
uint256 amountInWei = msg.value;

Expand Down

0 comments on commit 60fcc7c

Please sign in to comment.