Vyper Vested Claims

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

Extcall is vulnerable

Summary:

https://github.com/CodeHawks-Contests/2025-02-vyper-vested-claims/blob/main/src/VestedAirdrop.vy#L136

_success: bool = extcall IERC20(self.token).transfer(user, claimable)

extcall in claim and rescue_tokens is Unsafe

Impact:

extcall (low-level call) does not revert on failure, which can lead to silent failures.

Tools Used: none

Recommendations

Fix: Use assert IERC20(self.token).transfer(user, claimable), "Transfer failed" instead.

Updates

Appeal created

bube Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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