In the CuratorRewardsDistributor contract, any user can call the distribute() function through the frontend (as seen on the demo site). The user would earn 1% (currently) of the total balance as the royalty reward.
The issue is that all distribute() function calls occurring from the frontend would be made by normal users, which a bot can frontrun by calling the distribute() function itself. This means normal users would never be able to receive royalty fees.
A good way to solve this is by implementing some minimum requirement. E.g., only users who have been holding shares of that credId for a certain duration would be able to call distribute(). 
