JBToken
An ERC-20 token that can be used by a project in the JBTokenStore
.
Code
https://github.com/jbx-protocol/juice-contracts-v3/blob/main/contracts/JBToken.sol
Interfaces
Name | Description |
---|---|
IJBToken | Allows this contract to be used by projects in the JBTokenStore. |
Inheritance
Contract | Description |
---|---|
ERC20Votes | General token standard for fungible membership with snapshot capabilities sufficient to interact with standard governance contracts. |
Ownable | Includes convenience functionality for specifying an address that owns the contract, with modifiers that only allow access by the owner. |
Constructor
/**
@param _name The name of the token.
@param _symbol The symbol that the token should be represented by.
@param _projectId The ID of the project that this token should be exclusively used for. Send 0 to support any project.
*/
constructor(
string memory _name,
string memory _symbol,
uint256 _projectId
)
ERC20(_name, _symbol)
ERC20Permit(_name)
{
projectId = _projectId;
}
_name
is the name of the token._symbol
is the symbol that the token should be represented by._projectId
is the ID of the project that this token should be exclusively used for. Send 0 to support any project.
Properties
Function | Definition |
---|---|
projectId | Returns
|