-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementNew feature or requestNew feature or request
Description
wise-token-contracts/contracts/Helper.sol
Line 170 in fe975b5
| 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();
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request