Skip to main content


Contract: JBController​‌

Interface: IJBController

A project's latest configured funding cycle along with its metadata and the ballot state of the configuration.


function latestConfiguredFundingCycleOf(uint256 _projectId)
returns (
JBFundingCycle memory fundingCycle,
JBFundingCycleMetadata memory metadata,
JBBallotState ballotState
) { ... }
  • Arguments:
  • _projectId is 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 IJBController interface.
  • The function returns:
    • fundingCycle is the latest configured funding cycle.
    • metadata is the latest configured funding cycle's metadata.
    • ballotState is the state of the configuration.


  1. Get the latest configured funding cycle and its ballot state.

    (fundingCycle, ballotState) = fundingCycleStore.latestConfiguredOf(_projectId);

    Internal references:

    External references:

  2. Expand the metadata of the funding cycle.

    metadata = fundingCycle.expandMetadata();

    Library references: