Skip to main content

currentFundingCycleOf

Contract: JBController​‌

Interface: IJBController

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:
  • _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 funding cycle.
    • metadata is the funding cycle's metadata.

Body

  1. Get the current funding cycle.

    fundingCycle = fundingCycleStore.get(_projectId, _configuration);

    Internal references:

    External references:

  2. Expand the metadata of the funding cycle.

    metadata = fundingCycle.expandMetadata();

    Library references: