File: CuratorRewardsDistributor.sol
081:     function distribute(uint256 credId) external {
082:         if (!credContract.isExist(credId)) revert InvalidCredId();
083:         uint256 totalBalance = balanceOf[credId];
084:         
             ...

103:         uint256 royaltyfee = (totalBalance * withdrawRoyalty) / RATIO_BASE;
104:         
             ...
122: 
123:         balanceOf[credId] -= totalBalance;
124: 
125:         _msgSender().safeTransferETH(royaltyfee + distributeAmount - actualDistributeAmount);
126: 
127:         ...
131: 
132:         ...
135:     }
