File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments