|
return _stake.finalDay <= globals.currentWiseDay; |
if the stake gets closed pre-maturely eventually this expression will return true once the _currentWiseDay() has reached the finalDay which will affect checkMyStakeByID() return information for UI, not critical but needs adjustment to take in account stake.closeDay to determine maturity.
function _isMatureStake(Stake memory _stake) internal view returns (bool) { return _stake.closeDay > 0 ? _stake.finalDay <= _stake.closeDay : _stake.finalDay <= _currentWiseDay(); }
as an option
wise-token-contracts/contracts/Helper.sol
Line 162 in fe975b5
if the stake gets closed pre-maturely eventually this expression will return
trueonce the_currentWiseDay()has reached thefinalDaywhich will affectcheckMyStakeByID()return information for UI, not critical but needs adjustment to take in accountstake.closeDayto determine maturity.function _isMatureStake(Stake memory _stake) internal view returns (bool) { return _stake.closeDay > 0 ? _stake.finalDay <= _stake.closeDay : _stake.finalDay <= _currentWiseDay(); }as an option