_balance
Contract: JBPayoutRedemptionPaymentTerminal
- Step by step
 - Code
 - Bug bounty
 
Checks the balance of tokens in this contract.
Definition
function _balance() internal view override returns (uint256) { ...}
- Arguments:
 - The resulting function is internal to this contract and its inheriters.
 - The view function does not alter state on the blockchain.
 - The resulting function overrides a function definition from the 
JBPayoutRedemptionPaymentTerminalinterface. - The function returns the contract's balance, as a fixed point number with the same amount of decimals as this terminal.
 
Body
- 
Return this terminal's token balance.
return address(this).balance; 
/**
  @notice
  Checks the balance of tokens in this contract.
  @return The contract's balance, as a fixed point number with the same amount of decimals as this terminal.
*/
function _balance() internal view override returns (uint256) {
  return address(this).balance;
}
| 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 |