The upgradeTier() function in MembershipFactory is designed to allow users to upgrade their membership tier. However, the current logic erroneously decrements the fromTierIndex, causing users to potentially downgrade their tier
The upgradeTier() function allows users to "upgrade" their membership by burning tokens from the current tier and minting tokens in a new tier.
The function decrements fromTierIndex by 1 to determine the new tier for minting. This logic effectively moves the user to a lower tier rather than upgrading them.
Users may unintentionally be moved to a lower tier, which contradicts the purpose of the upgradeTier() function.
Manual Review
Logic should be updated to correctly handle tier upgrades by incrementing the fromTierIndex.
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.