_distributeToReservedTokenSplitsOf
- Step by step
- Only code
- Events
- Bug bounty
Distribute tokens to the splits according to the specified funding cycle configuration.
Definition
function _distributeToReservedTokenSplitsOf(
uint256 _projectId,
uint256 _domain,
uint256 _group,
uint256 _amount
) internal returns (uint256 leftoverAmount) { ... }
- Arguments:
_projectId
is the ID of the project for which reserved token splits are being distributed._fundingCycle
is theJBFundingCycle
to base the token distribution on._domain
is the domain of the splits to distribute the reserved tokens between._group
is the group of the splits to distribute the reserved tokens between._amount
is the total amount of tokens to mint.
- The resulting function is internal to this contract and its inheriters.
- The function returns the leftover amount after all splits have been distributed.
Body
-
Keep a reference to the token store.
// Keep a reference to the token store.
IJBTokenStore _tokenStore = tokenStore;