Verify that the user has sufficient balance in fromTierIndex
to upgrade.
The function MembershipFactory::upgradeTier
directly calls burn
on fromTierIndex
without first verifying the user’s balance for that tier.
If the user doesn’t have enough tokens in fromTierIndex
, burn
will fail.
Manual review
Add a check to ensure the user has enough tokens in the fromTierIndex tier before attempting to burn:
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.