balanceOf
Contract: JBToken
Interface: IJBToken
- Step by step
- Code
- Bug bounty
An account's balance of this ERC20.
Definition
function balanceOf(address _account, uint256 _projectId)
  external
  view
  override
  returns (uint256) { ... }
- Arguments:
- _accountis the account to get a balance of.
- _projectIdis the ID of the project to which the token belongs. This is ignored.
 
- The view function can be accessed externally by anyone.
- The view function does not alter state on the blockchain.
- The function overrides a function definition from the IJBTokeninterface.
- The function returns the balance of the _accountof this ERC20, as a fixed point number with 18 decimals.
Body
- 
Forward the call to the ERC20 implementation. return super.balanceOf(_account);Inherited references: 
/**
  @notice
  An account's balance of this ERC20.
  @param _account The account to get a balance of.
  @param _projectId is the ID of the project to which the token belongs. This is ignored.
  @return The balance of the `_account` of this ERC20, as a fixed point number with 18 decimals.
*/
function balanceOf(address _account, uint256 _projectId)
  external
  view
  override
  returns (uint256)
{
  _projectId; // Prevents unused var compiler and natspec complaints.
  return super.balanceOf(_account);
}
| 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 |