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;
}
_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. 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
|