跳到主要内容

JBSingleTokenPaymentTerminal

Generic terminal managing all inflows and outflows of funds into the protocol ecosystem.

Traits

abstract

Code

https://github.com/jbx-protocol/juice-contracts-v3/blob/main/contracts/abstract/JBPayoutRedemptionPaymentTerminal.sol

Interfaces

NameDescription
IJBSingleTokenPaymentTerminalGeneral interface for the methods in this contract that interact with the blockchain's state according to the protocol's rules.

Inheritance

ContractDescription
ERC165Introspection 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;
}
  • _token is the token that this terminal manages.
  • _decimals is the number of decimals the token fixed point amounts are expected to have.
  • _currency is the currency that this terminal's token adheres to for price feeds. From JBCurrencies.

Properties

FunctionDefinition
token

Traits

  • immutable

Returns

  • address
decimals

Traits

  • immutable

Returns

  • uint256
currency

Traits

  • immutable

Returns

  • uint256

Read

FunctionDefinition
acceptsToken

Params

  • address _token

Returns

  • bool flag
decimalsForToken

Params

  • address _token

Returns

  • uint256 decimals
currencyForToken

Params

  • address _token

Returns

  • uint256 currency
supportsInterface

Params

  • uint256 _interfaceId

Returns

  • bool