Closed gundas closed 7 years ago
Yes, because we want only to check the rewards. What is the problem with that?
I am not sure if it is a problem - a constant function is a promise not to modify any state. Works in Remix.
Sorry, I still don't understand what is the problem.
The checkReward
should not do any change on the blockchain, this is why that are constant
.
https://github.com/CORIONplatform/solidity/blob/provider-recode/provider.sol#L1431
the current implementation of checkReward(...) function does modify state (is not idempotent).