Open hats-bug-reporter[bot] opened 1 year ago
Hello, Thanks a lot for your attention. We don't consider misconfiguration as an issue. We are aware of this and assume the risks. The revoke is here just in case of extreme emergency. In conclusion we have so to consider this issue as invalid.
Github username: @8ahoz Submission hash (on-chain): 0x6f0d9a78a92ea6b22f74dc3a118e49f8bddce6fc94210dcaa499e02dd16d4d8f Severity: medium
Description: Description:
createVestingSchedule()
inVestingCvg.sol
creates a new Vesting schedule and sets the vesting type to the newly created schedule.However by doing so, it does not check if there is already a vesting schedule for that
vestingType
and directly resets to a new one.This may cause two problems with different impacts depending on what is the intended behavior:
withdrawOnlyExcess()
. This is a Lower severity issueRecommended Mitigation:
Check if the
vestingIdForType[_vestingType]
exists, depending on the intended behavior, do one of the followings:revokeVestingSchedule()
with the oldvestingId