totalSupply
Contract: JBToken
Interface: IJBToken
- Step by step
- Code
- Bug bounty
The total supply of this ERC20.
Definition
function totalSupply(uint256) external view override returns (uint256) { ... }
- Arguments:
_projectId
is 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
IJBToken
interface. - The function returns the total supply of this ERC20, as a fixed point number with 18 decimals.
Body
-
Forward the call to the ERC20 implementation.
return super.totalSupply();
Inherited references:
/**
@notice
The total supply of this ERC20.
@param _projectId the ID of the project to which the token belongs. This is ignored.
@return The total supply of this ERC20, as a fixed point number with 18 decimals.
*/
function totalSupply(uint256 _projectId) external view override returns (uint256) {
_projectId; // Prevents unused var compiler and natspec complaints.
return super.totalSupply();
}
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 |