Skip to main content

IRewardSplitterFactory

Git Source

Author: StakeWise

Defines the interface for the RewardSplitterFactory contract

Functions

implementation

The address of the RewardSplitter implementation contract used for proxy creation

function implementation() external view returns (address);

Returns

NameTypeDescription
<none>addressThe address of the RewardSplitter proxy contract

createRewardSplitter

Creates RewardSplitter contract proxy

function createRewardSplitter(address vault) external returns (address rewardSplitter);

Parameters

NameTypeDescription
vaultaddressThe address of the vault to which the RewardSplitter will be connected

Returns

NameTypeDescription
rewardSplitteraddressThe address of the created RewardSplitter contract

Events

RewardSplitterCreated

Event emitted on a RewardSplitter creation

event RewardSplitterCreated(address owner, address vault, address rewardSplitter);

Parameters

NameTypeDescription
owneraddressThe address of the RewardSplitter owner
vaultaddressThe address of the connected vault
rewardSplitteraddressThe address of the created RewardSplitter