The functions getVestingSchedule()
and getCategoryDetails()
return values without validating whether the requested data exists.
getVestingSchedule()
returns an uninitialized VestingSchedule
struct if the beneficiary has no schedule.
getCategoryDetails()
allows querying non-existent categories without reverting.
This could mislead users and other smart contracts relying on these functions to determine vesting status or category allocations.
getVestingSchedule()
:
getCategoryDetails()
:
Add a check in getVestingSchedule()
to revert if the schedule is uninitialized:
Ensure getCategoryDetails()
reverts for non-existent categories:
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.