Skip to content

_stakeNotStarted if closing stake same day when created #14

Description

@vm06007

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();
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions