Skip to main content

currencyForToken

Contract: JBV1TokenPaymentTerminal​‌

Interface: IJBPaymentTerminal

The currency that should be used for the specified token.

Definition

function currencyForToken(address _token) external view override returns (uint256) { ... }
  • Arguments:
    • _token is the token to check for the currency of.
  • The view function can be accessed externally by anyone.
  • The view function does not alter state on the blockchain.
  • The resulting function overrides a function definition from the IJBPaymentTerminal interface.
  • The function returns the currency index.

Body

  1. There are no currencies for v1 project tokens.

    // There's no currency for the token.
    return 0;