Skip to main content

issueTokenFor

Contract: JBController​‌

Interface: IJBController

Issues an owner's ERC20 JBTokens that'll be used when claiming tokens.

Deploys a project's ERC20 JBToken contract.

Only a project's owner or operator can issue its token.

Definition

function issueFor(
uint256 _projectId,
string calldata _name,
string calldata _symbol
)
external
virtual
override
requirePermission(projects.ownerOf(_projectId), _projectId, JBOperations.ISSUE)
returns (IJBToken token) { ... }
  • Arguments:
    • _projectId is the ID of the project being issued tokens.
    • _name is the ERC20's name.
    • _symbol is the ERC20's symbol.
  • Through the requirePermission modifier, the function is only accessible by the project's owner, or from an operator that has been given the JBOperations.ISSUE permission by the project owner for the provided _projectId.
  • The function can be overriden by inheriting contracts.
  • The function overrides a function definition from the IJBController interface.
  • The function returns the address of the token that was issued.

Body

  1. Forward the call to the token store.

    // Issue the token in the store.
    return tokenStore.issueFor(_projectId, _name, _symbol);

    Internal references:

    External references: