跳到主要内容

decimalsForToken

Contract: JBSingleTokenPaymentTerminal​‌

Interface: IJBPaymentTerminal

The decimals that should be used in fixed number accounting for the specified token.

Definition

function decimalsForToken(address _token) external view override returns (uint256) { ... }
  • Arguments:
    • _token is the token to check for the decimals 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 number of decimals for the token.

Body

  1. This terminal only uses one decimals.

    return decimals;