Skip to content

_isMature returns wrong value for closed stakes overtime #13

@vm06007

Description

@vm06007

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

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