CORIONplatform / solidity

GNU General Public License v3.0
12 stars 9 forks source link

Improvement of getter function. #73

Closed Dexaran closed 7 years ago

Dexaran commented 7 years ago

https://github.com/CORIONplatform/solidity/blob/master/schelling.sol#L418

I guess it will be better to allow someone to check someone else's reward in case the user wants to find out the reward of another user.

function checkReward(address _who) constant returns (uint256 _reward) {
        /*
            Withdraw of the amount of the prize (it’s only informational).

            @reward         Prize
        */
        var voter = getVoter(_who);
        return voter.rewards;
}
iFA88 commented 7 years ago

Sorry? The function allow to check every one reward balance.