Function: increaseIndexedAssetPeriod(uint256 sharesPerToken)
This function is used to increase the current period and update the shares per token. It can only be called by addresses with the DISTRIBUTOR_ROLE
and when the contract is not paused.
Inputs
sharesPerToken
Control: Arbitrary.
Constraints: None.
Impact: The new number of shares per token.
Branches and code coverage
Intended branches
Update the global pool's previous pool amounts with the current period, total supply, and shares per token.
Negative behavior
Revert if the caller does not have the
DISTRIBUTOR_ROLE
.Revert if the contract is paused.