From addf9ebb05e8dc29cef7d1e431517dcd6db36fda Mon Sep 17 00:00:00 2001 From: zugdev Date: Wed, 2 Oct 2024 11:08:58 -0300 Subject: [PATCH] feat: allow owner to add a single payee --- .../contracts/src/dollar/core/GovernanceRewardsSplitter.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contracts/src/dollar/core/GovernanceRewardsSplitter.sol b/packages/contracts/src/dollar/core/GovernanceRewardsSplitter.sol index cf16bab93..2c76a5aaa 100644 --- a/packages/contracts/src/dollar/core/GovernanceRewardsSplitter.sol +++ b/packages/contracts/src/dollar/core/GovernanceRewardsSplitter.sol @@ -108,7 +108,7 @@ contract GovernanceRewardsSplitter is Ownable { * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ - function addPayee(address account, uint256 shares_) private { + function addPayee(address account, uint256 shares_) public onlyOwner { require( account != address(0), "GovernanceRewardsSplitter: account is the zero address"