This repository was archived by the owner on May 1, 2026. It is now read-only.
Description i think it's worth changing some names to increase readability
majority bloc - group of voters who voted the majority rule
(plcr)
function isPassed -> majorityBlocVotedFor
returns true if the applicant won a challenge
(tcr)
uint rewardPool -> majorityBlocRewardPct
integer percentage value; used to calculate the amount of reward tokens transferred to msg.sender once claimReward is called
(plcr)
function getTotalNumberOfTokensForWinningOption -> getTotalMajorityBlocNumTokens
returns either the votesFor or votesAgainst (whichever is greater)
(tcr)
uint totalTokens -> totalMajorityBlocNumTokens
value returned from voting.getTotalNumberOfTokensForWinningOption -- either the votesFor or votesAgainst (whichever is greater)
winning voter - single voter who voted in the majority rule
(plcr)
function getNumPassingTokens -> getWinningVoterNumTokens
returns the number of tokens a majority bloc voter voted in a poll
Reactions are currently unavailable
i think it's worth changing some names to increase readability
majority bloc - group of voters who voted the majority rule
(plcr)
function isPassed->majorityBlocVotedFortrueif the applicant won a challenge(tcr)
uint rewardPool->majorityBlocRewardPctmsg.senderonceclaimRewardis called(plcr)
function getTotalNumberOfTokensForWinningOption->getTotalMajorityBlocNumTokensvotesFororvotesAgainst(whichever is greater)(tcr)
uint totalTokens->totalMajorityBlocNumTokensvoting.getTotalNumberOfTokensForWinningOption-- either thevotesFororvotesAgainst(whichever is greater)winning voter - single voter who voted in the majority rule
(plcr)
function getNumPassingTokens->getWinningVoterNumTokens