_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:
_projectIdis the ID of the project for which reserved token splits are being distributed._fundingCycleis theJBFundingCycleto base the token distribution on._domainis the domain of the splits to distribute the reserved tokens between._groupis the group of the splits to distribute the reserved tokens between._amountis 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;