Vyper Vested Claims

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

[I-1] No pragma directives does not ensure version compatibility

Summary

Pragma directive is missing in VestedAirdrop, letting the contract to be compiled by any compiler version. To ensure version compatibility, it is recommended to add a pragma directive with a specific version.

Recommendations

Add this at the top of the contract, with the version needed:

# pragma 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.