跳到主要内容

IJBPaymentTerminal

Code

https://github.com/jbx-protocol/juice-contracts-v3/blob/main/contracts/interfaces/IJBPaymentTerminal.sol

Definition

interface IJBPaymentTerminal is IERC165 {
function acceptsToken(address _token, uint256 _projectId) external view returns (bool);

function currencyForToken(address _token) external view returns (uint256);

function decimalsForToken(address _token) external view returns (uint256);

// Return value must be a fixed point number with 18 decimals.
function currentEthOverflowOf(uint256 _projectId) external view returns (uint256);

function pay(
uint256 _projectId,
uint256 _amount,
address _token,
address _beneficiary,
uint256 _minReturnedTokens,
bool _preferClaimedTokens,
string calldata _memo,
bytes calldata _metadata
) external payable returns (uint256 beneficiaryTokenCount);

function addToBalanceOf(
uint256 _projectId,
uint256 _amount,
address _token,
string calldata _memo,
bytes calldata _metadata
) external payable;
}