Skip to main content

EthRewardSplitter

Git Source ↗

Inherits: ReentrancyGuardUpgradeable ↗, RewardSplitter

The EthRewardSplitter can be used on Ethereum networks to split the rewards of the fee recipient of the vault based on configured shares

Functions​

constructor​

Constructor for EthRewardSplitter

constructor() RewardSplitter();

receive​

Allows to claim rewards from the vault and receive them to the reward splitter address

receive() external payable;

initialize​

Initializes the RewardSplitter contract

function initialize(address _vault) external override initializer;

Parameters

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

_transferRewards​

Transfers the specified amount of rewards to the shareholder

function _transferRewards(address shareholder, uint256 amount) internal override nonReentrant;

Parameters

NameTypeDescription
shareholderaddressThe address of the shareholder
amountuint256The amount of rewards to transfer