currentOverflowOf
Contract: JBSingleTokenPaymentTerminalStore
Interface: IJBSingleTokenPaymentTerminalStore
- Step by step
 - Code
 - Bug bounty
 
Gets the current overflowed amount in a terminal for a specified project.
The current overflow is represented as a fixed point number with the same amount of decimals as the specified terminal.
Definition
function currentOverflowOf(IJBSingleTokenPaymentTerminal _terminal, uint256 _projectId)
  external
  view
  override
  returns (uint256) { ... }
- Arguments:
_terminalis the terminal for which the overflow is being calculated._projectIdis the ID of the project to get overflow for.
 - The view function can be accessed externally by anyone.
 - The view function does not alter state on the blockchain.
 - The resulting function overrides a function definition from the 
JBSingleTokenPaymentTerminalStoreinterface. - The function returns the current amount of overflow that project has in the specified terminal.
 
Body
- 
Forward the call to the internal version of the function that is also used by other operations, using the project's current funding cycle.
// Return the overflow during the project's current funding cycle.
return
_overflowDuring(
_terminal,
_projectId,
fundingCycleStore.currentOf(_projectId),
_terminal.currency()
);Internal references:
External references:
 
/**
  @notice
  Gets the current overflowed amount in a terminal for a specified project.
  @dev
  The current overflow is represented as a fixed point number with the same amount of decimals as the specified terminal.
  @param _terminal The terminal for which the overflow is being calculated.
  @param _projectId The ID of the project to get overflow for.
  @return The current amount of overflow that project has in the specified terminal.
*/
function currentOverflowOf(IJBSingleTokenPaymentTerminal _terminal, uint256 _projectId)
  external
  view
  override
  returns (uint256)
{
  // Return the overflow during the project's current funding cycle.
  return
    _overflowDuring(
      _terminal,
      _projectId,
      fundingCycleStore.currentOf(_projectId),
      _terminal.currency()
    );
}
| 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 |