JBSingleTokenPaymentTerminal
Generic terminal managing all inflows and outflows of funds into the protocol ecosystem.
Traits
abstract
Code
Interfaces
| Name | Description | 
|---|---|
IJBSingleTokenPaymentTerminal | General interface for the methods in this contract that interact with the blockchain's state according to the protocol's rules. | 
Inheritance
| Contract | Description | 
|---|---|
ERC165 | Introspection on interface adherance. | 
Constructor
/**
  @param _token The token that this terminal manages.
  @param _decimals The number of decimals the token fixed point amounts are expected to have.
  @param _currency The currency that this terminal's token adheres to for price feeds.
*/
constructor(
  address _token,
  uint256 _decimals,
  uint256 _currency,
) {
  token = _token;
  decimals = _decimals;
  currency = _currency;
}
_tokenis the token that this terminal manages._decimalsis the number of decimals the token fixed point amounts are expected to have._currencyis the currency that this terminal's token adheres to for price feeds. FromJBCurrencies.
Properties
| Function | Definition | 
|---|---|
token | Traits 
 Returns 
  | 
decimals | Traits 
 Returns 
  | 
currency | Traits 
 Returns 
  | 
Read
| Function | Definition | 
|---|---|
acceptsToken | Params 
 Returns 
  | 
decimalsForToken | Params 
 Returns 
  | 
currencyForToken | Params 
 Returns 
  | 
supportsInterface | Params 
 Returns 
  |