|
return _stake.startDay > globals.currentWiseDay; |
in scenario when user closes pending stake (same day as creation) this will impact the views as it will return eventually false, even though the stake will never get started as it is closed same day.
solution:
function _stakeNotStarted(Stake memory _stake) internal view returns (bool) {
return _stake.closeDay > 0
? _stake.startDay > _stake.closeDay
: _stake.startDay > _currentWiseDay();
}
wise-token-contracts/contracts/Helper.sol
Line 170 in fe975b5
in scenario when user closes pending stake (same day as creation) this will impact the views as it will return eventually false, even though the stake will never get started as it is closed same day.
solution: