Skip to content

Commit 35057d7

Browse files
committed
Tweaks
1 parent dd288e7 commit 35057d7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

contracts/interfaces/IDistributor.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ interface IDistributor is IComponent {
4646
function setDistribution(address dest, RevenueShare calldata share) external;
4747

4848
/// @custom:governance
49-
function setDistributions(address[] calldata dest, RevenueShare[] calldata share) external;
49+
function setDistributions(address[] calldata dests, RevenueShare[] calldata shares) external;
5050

5151
/// Distribute the `erc20` token across all revenue destinations
5252
/// Only callable by RevenueTraders

contracts/registry/DAOFeeRegistry.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,17 @@ contract DAOFeeRegistry is Ownable {
1616
error DAOFeeRegistry__FeeRecipientAlreadySet();
1717
error DAOFeeRegistry__InvalidFeeRecipient();
1818
error DAOFeeRegistry__InvalidFeeNumerator();
19+
error DAOFeeRegistry__InvalidOwner();
1920

2021
event FeeRecipientSet(address indexed feeRecipient);
2122
event DefaultFeeNumeratorSet(uint256 defaultFeeNumerator);
2223
event RTokenFeeNumeratorSet(address indexed rToken, uint256 feeNumerator, bool isActive);
2324

2425
constructor(address owner_) Ownable() {
26+
if (owner_ == address(0)) {
27+
revert DAOFeeRegistry__InvalidOwner();
28+
}
29+
2530
_transferOwnership(owner_); // Ownership to DAO
2631
feeRecipient = owner_; // DAO as initial fee recipient
2732
}

0 commit comments

Comments
 (0)