Function: _updatePoints(UserInfo _user)
This function is used to update points information for a user. It calculates the points earned by the user based on the amount of time the tokens are held in the contract.
Inputs
_user
Control: Arbitrary.
Constraints: None.
Impact: User to update the points for.
Branches and code coverage
Intended branches
Updates the user's point balance by invoking
_calculatePointsDiff
.Updates the user's last updated timestamp.