Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvestorInteractionContract: Voting cannot be gamed anymore #173

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ contract InvestorInteractionContract is BogusAnnouncement, CheckpointToken, ERC8
KYC = _KYC;

for(uint i=0; i<_options.length; i++) {
require(_options[i] != 0);

address optionAddress = address(100 + i);
options[optionAddress] = _options[i];

Expand All @@ -48,7 +50,7 @@ contract InvestorInteractionContract is BogusAnnouncement, CheckpointToken, ERC8

function importInvestor(address investor) public {
// Anyone can invoke this for failsafe reasons

require(options[investor] == 0);
require(balanceImported[investor] == false);

uint256 value = token.balanceAt(investor, checkpointID);
Expand Down