Skip to content

use stake.closeDay or stake.isActive to detect rewardAmount #12

Description

@vm06007

minor, affecting only checkStakeByID external view

return _stake.rewardAmount == 0 ? _detectReward(_stake) : _stake.rewardAmount;

if stake is ended pre-maturely on first/second day and there is no reward generated yet the function will try to continue calculating reward for ended stake (issue with unprocessed days and displaying data on UI)

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