The MembershipERC1155
contract allows users to claim profits accumulated from total profit . However, the current design incentivizes new users to join the DAO later, as they can claim a larger share of profits without having contributed to the DAO's activities. This creates an imbalance in the profit distribution mechanism, potentially leading to dissatisfaction among early members and undermining the intended purpose of the DAO and incentivises new users to join as late as possible .
In the claimProfit
function, profits are calculated based on the total profit available in the contract. The relevant code is as follows:
This design allows users who join later to claim profits that have accumulated over time(totalProfit
), including those generated by earlier members. As a result, new users can benefit from the efforts and contributions of existing members without having participated in the DAO's activities.
An early member joins the DAO and contributes to the profit pool over several months.
A new member joins the DAO after several months and claims profits that have accumulated during that time.
The new member receives a significant profit share without having contributed to the DAO, while the early member's share is diluted.
An imbalance in the profit-sharing mechanism that undermines the DAO's sustainability and fairness.
Manual code review
Cursor-small
Some possible mitigation could be :
Implement a Vesting Mechanism: Introduce a vesting period for profit claims, where new members must wait a certain amount of time before they can claim profits. This would ensure that only those who have been part of the DAO for a specified duration can access the accumulated profits.
Adjust Profit Calculation: Modify the profit calculation logic to account for the duration of membership. For example, profits could be distributed based on the length of time a member has held tokens or been part of the DAO.
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.