currentFundingCycleOf
Contract: JBController
Interface: IJBController
- Step by step
 - Code
 - Bug bounty
 
A project's funding cycle for the specified configuration along with its metadata.
Definition
function getFundingCycleOf(uint256 _projectId, uint256 _configuration)
  external
  view
  override
  returns (JBFundingCycle memory fundingCycle, JBFundingCycleMetadata memory metadata) { ... }
- Arguments:
 _projectIdis the ID of the project to which the funding cycle belongs.- The view function can be accessed externally by anyone.
 - The view function does not alter state on the blockchain.
 - The function overrides a function definition from the 
IJBControllerinterface. - The function returns:
fundingCycleis the funding cycle.metadatais the funding cycle's metadata.
 
Body
- 
Get the current funding cycle.
fundingCycle = fundingCycleStore.get(_projectId, _configuration);Internal references:
External references:
 - 
Expand the metadata of the funding cycle.
metadata = fundingCycle.expandMetadata();Library references:
JBFundingCycleMetadataResolver
.expandMetadata(...)
 
/**
  @notice
  A project's funding cycle for the specified configuration along with its metadata.
  @param _projectId The ID of the project to which the funding cycle belongs.
  @return fundingCycle The funding cycle.
  @return metadata The funding cycle's metadata.
*/
function getFundingCycleOf(uint256 _projectId, uint256 _configuration)
  external
  view
  override
  returns (JBFundingCycle memory fundingCycle, JBFundingCycleMetadata memory metadata)
{
  fundingCycle = fundingCycleStore.get(_projectId, _configuration);
  metadata = fundingCycle.expandMetadata();
}
| Category | Description | Reward | 
|---|---|---|
| Optimization | Help make this operation more efficient. | 0.5ETH | 
| Low severity | Identify a vulnerability in this operation that could lead to an inconvenience for a user of the protocol or for a protocol developer. | 1ETH | 
| High severity | Identify a vulnerability in this operation that could lead to data corruption or loss of funds. | 5+ETH |