The MembershipERC1155::shareOf function hardcodes the weight value. The weights of user created DAOs might vary from what hard coded value.
As we can see the hardcoded weight values are : 64, 32, 16, 8, 4, 2, 1 corresponding to tiers 0 to 6.
But in a user created DAO, the weight value can very well differ.
The createNewDAOMembership function takes a custom TierConfig which means a dao creator can configure TierConfig.power according to their choice and it doesn't necessarily have to be same as the hardcoded values
As confirmed by the Sponsor the power in TierConfig struct means
Power is the voting weight in that DAO
shareOf function returns wrong value in case of user created DAOs.
This issue is being addressed by the Sponsor too
Just reviewing the logic this appears to handle the fixed tier sized DAOs - however there are potentially bugs in here for non-standard tiers.
Manual review
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.