Vyper Vested Claims

First Flight #34
Beginner FriendlyDeFi
100 EXP
View results
Submission Details
Severity: medium
Invalid

Lack of Claimable Amount Checks for Unclaimed Users

Summary

Vulnerability Details

The claimable_amount function allows users to query their claimable amount without any verification of whether they have actually claimed tokens already or not:

claimable: uint256 = 0
...
if vested > current_amount:
claimable = vested - current_amount

Although the function itself is not a security risk, it could lead to potential UI confusion or abuse, as users may incorrectly assume they can claim more tokens than allowed. Since the contract allows anyone to query the claimable amount, the front-end should carefully manage the state and verify user claims before proceeding.

Impact

Tools Used

Recommendations

Ensure that the front-end correctly integrates this function and that any interactions with the contract are clearly explained to the user. Additionally, provide better state management to ensure users can only claim the appropriate amount.

Updates

Appeal created

bube Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.