Skip to main content

_balance

Contract: JBPayoutRedemptionPaymentTerminal​‌

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 JBPayoutRedemptionPaymentTerminal interface.
  • The function returns the contract's balance, as a fixed point number with the same amount of decimals as this terminal.

Body

  1. Return this terminal's token balance.

    return address(this).balance;