The function was designed to upgrade users tier, but it decreases it instead
https://github.com/Cyfrin/2024-11-one-world/blob/1e872c7ab393c380010a507398d4b4caca1ae32b/contracts/dao/MembershipFactory.sol#L155C4-L161C6
The function attempts to "upgrade" by burning two tokens from fromTierIndex`` and minting one token at
fromTierIndex - 1. Upgrading should logically involve burning one token from the lower tier and minting at a higher tier. also If
fromTierIndex - 1` is zero, it will cause an invalid tier index error or lead to incorrect behavior if index zero is not intended as a valid tier.
The current setup would decrease the user's tier instead of upgrading it.
subtract exactly 1 and add exactly 1 token
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.