Vyper Vested Claims

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

verify_proof Should Be @view and @external

Summary

The verify_proof function lacks @view and @external modifiers.

Vulnerability Details

  • verify_proof is a helper function and should be callable externally.

  • Marking it as @view and @internal ensures it is not a read-only and available for external calls.

def verify_proof(user: address, amount: uint256, proof: DynArray[bytes32, 20]) -> bool: # Missing @view and @external

Recommendations

  • Add modifiers:

@view
@external
def verify_proof(user: address, amount: uint256, proof: DynArray[bytes32, 20]) -> bool:
...
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.