diff --git a/src/RNSCommission.sol b/src/RNSCommission.sol index f1decb7..a2382d9 100644 --- a/src/RNSCommission.sol +++ b/src/RNSCommission.sol @@ -78,13 +78,13 @@ contract RNSCommission is Initializable, AccessControlEnumerable, INSCommission sumValue += commissionAmount; RONTransferHelper.safeTransfer(_commissionInfos[i].recipient, commissionAmount); - emit Transfer(_commissionInfos[i].recipient, commissionAmount); + emit Distributed(_commissionInfos[i].recipient, commissionAmount); } // This code send the remaining RON to the last recipient. if (sumValue < ronAmount) { RONTransferHelper.safeTransfer(_commissionInfos[lastIdx].recipient, ronAmount - sumValue); - emit Transfer(_commissionInfos[lastIdx].recipient, ronAmount - sumValue); + emit Distributed(_commissionInfos[lastIdx].recipient, ronAmount - sumValue); } } diff --git a/src/interfaces/INSCommission.sol b/src/interfaces/INSCommission.sol index 84b677e..b52645c 100644 --- a/src/interfaces/INSCommission.sol +++ b/src/interfaces/INSCommission.sol @@ -15,7 +15,7 @@ interface INSCommission { address indexed updatedBy, uint256 indexed commissionIdx, address payable newRecipient, string newName ); /// @dev Emiited when transfer RON to commission's recipient. - event Transfer(address indexed recipient, uint256 commissionAmount); + event Distributed(address indexed recipient, uint256 commissionAmount); /// @dev Revert when index is out of range error InvalidArrayLength();