Function: resetIndexedUserAssets(address user)
This function is used to reset the indexed user assets for a specific user. It resets the last updated period and indexed amount of shares to zero. It can only be called by addresses with the DISTRIBUTOR_ROLE
and when the contract is not paused.
Inputs
user
Control: Arbitrary.
Constraints: None.
Impact: Address of the user to reset the indexed assets for.
Branches and code coverage
Intended branches
Reset the last updated period and indexed amount of shares to zero.
Negative behavior
Revert if the caller does not have the
DISTRIBUTOR_ROLE
.Revert if the contract is paused.