Vyper Vested Claims

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

Missing modifiers in _hash_pair function

Summary

The _hash_pair function lacks visibility and purity modifiers.

Vulnerability Details

  • Vyper requires explicit visibility modifiers (@internal, @external).

  • _hash_pair is an helper function and should be marked as @internal and @pure.

def _hash_pair(a: bytes32, b: bytes32) -> bytes32: # Missing @internal and @pure

Impact

  • Function may misbehave if not properly restricted.

Tool Used

  • Manual review

Recommendations

  • Add modifiers:

@internal
@pure
def _hash_pair(a: bytes32, b: bytes32) -> bytes32:
...
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.