Skip to main content

reservedTokenBalanceOf

Contract: JBController​‌

Interface: IJBController

Gets the amount of reserved tokens that a project has available to distribute.

Definition

function reservedTokenBalanceOf(uint256 _projectId, uint256 _reservedRate)
external
view
override
returns (uint256) { ... }
  • Arguments:
    • _projectId is the ID of the project to get a reserved token balance of.
    • _reservedRate is the reserved rate to use when making the calculation.
  • 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 the reserved token balance.

Body

  1. Forward the call to the internal version of the function that is also used by other operations.

    return
    _reservedTokenAmountFrom(
    _processedTokenTrackerOf[_projectId],
    _reservedRate,
    tokenStore.totalSupplyOf(_projectId)
    );

    Internal references:

    External references: