Vyper Vested Claims

First Flight #34
Beginner FriendlyDeFi
100 EXP
View results
Submission Details
Severity: low
Valid

Missing #pragma version 0.4.0 in VestedAirdrop

Summary

The contract does not specify the Vyper compiler version.

Vulnerability Details

  • Vyper requires the #pragma version directive to ensure compatibility with the intended compiler version.

  • Missing this may lead to compilation errors or unexpected behavior if the code is compiled with a different version.

Impact

  • The contract may fail to compile or behave unpredictably with newer compiler versions.

Recommendations

  • Add the compiler version directive

# @version 0.4.0
Updates

Appeal created

bube Lead Judge 4 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Missing pragma version

Without a pragma version specified, the contract will be compiled using the version of Vyper that was installed during deployment. It is highly recommended to specify the pragma and ensure that the protocol will work properly. Given that this is an owner action and the owner knows which compiler version to use, this is between Informational and Low. But also, this is First Flight, so I will accept it as Low.

Support

FAQs

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