JBSurplus
Surplus calculations.
Functions
currentSurplusOf
Gets the total current surplus amount across all of a project's terminals.
This amount changes as the value of the balances changes in relation to the currency being used to measure the project's payout limits.
function currentSurplusOf(
uint256 projectId,
IJBTerminal[] memory terminals,
JBAccountingContext[] memory accountingContexts,
uint256 decimals,
uint256 currency
)
internal
view
returns (uint256 surplus);