CORIONplatform / solidity

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

CheckReward: strange if condition #143

Closed gundas closed 7 years ago

gundas commented 7 years ago

In CheckReward function within the loop there are 3 checks with the following condition: if ( ! ( data.isForRent && data.clientPaidUpTo > data.roundID ) ) {

If data.isForRent = false then the if check above will always evaluate to true, no matter what are the values of data.clientPaidUpTo and data.roundID. It does not seem right...

iFA88 commented 7 years ago

Hmm.. I will check that!

iFA88 commented 7 years ago

Fixed, thanks :)