Skip to main content

currentOverflowOf

Contract: JBSingleTokenPaymentTerminalStore​‌

Interface: IJBSingleTokenPaymentTerminalStore

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:
    • _terminal is the terminal for which the overflow is being calculated.
    • _projectId is 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 JBSingleTokenPaymentTerminalStore interface.
  • The function returns the current amount of overflow that project has in the specified terminal.

Body​

  1. 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: