Skip to main content

IJBSplitsPayer

Code​

https://github.com/jbx-protocol/juice-contracts-v2/blob/main/contracts/interfaces/IJBSplitsPayer.sol

Definition​

interface IJBSplitsPayer is IERC165 {
event SetDefaultSplits(
uint256 indexed projectId,
uint256 indexed domain,
uint256 indexed group,
address caller
);
event Pay(
uint256 indexed projectId,
address beneficiary,
address token,
uint256 amount,
uint256 decimals,
uint256 leftoverAmount,
uint256 minReturnedTokens,
bool preferClaimedTokens,
string memo,
bytes metadata,
address caller
);

event AddToBalance(
uint256 indexed projectId,
address beneficiary,
address token,
uint256 amount,
uint256 decimals,
uint256 leftoverAmount,
string memo,
bytes metadata,
address caller
);

event DistributeToSplitGroup(
uint256 indexed projectId,
uint256 indexed domain,
uint256 indexed group,
address caller
);

event DistributeToSplit(
JBSplit split,
uint256 amount,
address defaultBeneficiary,
address caller
);

function defaultSplitsProjectId() external view returns (uint256);

function defaultSplitsDomain() external view returns (uint256);

function defaultSplitsGroup() external view returns (uint256);

function splitsStore() external view returns (IJBSplitsStore);

function setDefaultSplits(
uint256 _projectId,
uint256 _domain,
uint256 _group
) external;
}