minor, affecting only checkStakeByID external view
|
return _stake.rewardAmount == 0 ? _detectReward(_stake) : _stake.rewardAmount; |
if stake is ended pre-maturely on first/second day and there is no reward generated yet the function will try to continue calculating reward for ended stake (issue with unprocessed days and displaying data on UI)
minor, affecting only
checkStakeByIDexternal viewwise-token-contracts/contracts/StakingToken.sol
Line 611 in fe975b5
if stake is ended pre-maturely on first/second day and there is no reward generated yet the function will try to continue calculating reward for ended stake (issue with unprocessed days and displaying data on UI)