Updating DAO does not trigger the function to save the profit for current number of users in the DAO.
Imagine the situation when DAO was created for a certain number of users. Let's say for 70 users: 10 users per each tier.
Over time, the DAO has made a good profit that can be shared between the current users.
At the same time admin decided to update the DAO to accept more users: for example, now it is 700. He calls updateDAOMembership:
Immediately after this action, for every new user who mints a token, the previous users will lose some profit, as it relies on totalSupply of all tokens:
It is unfair to the first users and an instant win for newcomers.
The first users will lose some profit.
Manual review
Consider storing the value of `totalProfit' for each user who joins the DAO, and storing the profit for all current users in the event of a DAO update.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.