terminalsOf
- Step by step
 - Code
 - Bug bounty
 
For each project ID, the terminals that are currently managing its funds.
Definitionβ
function terminalsOf(uint256 _projectId)
  external
  view
  override
  returns (IJBPaymentTerminal[] memory) { ... }
- Arguments:
_projectIdis the ID of the project to get terminals of.
 - 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 
IJBDirectoryinterface. - The function returns an array of terminal addresses.
 
Bodyβ
- 
This function just reads and returns the stored
_terminalsOfthe project.return _terminalsOf[_projectId];Internal references:
 
/**
  @notice
  For each project ID, the terminals that are currently managing its funds.
  @param _projectId The ID of the project to get terminals of.
  @return An array of terminal addresses.
*/
function terminalsOf(uint256 _projectId)
  external
  view
  override
  returns (IJBPaymentTerminal[] memory)
{
  return _terminalsOf[_projectId];
}
| 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 |