Company Simulator

First Flight #51
Beginner FriendlyDeFi
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

Unspecified Vyper pragma

Unspecified Vyper pragma, contributors could use the wrong compiler

Description

  • Consider using a specific version of Vyper in your contracts instead of a wide version. For example, instead of # @version ^0.4.1, use # @version ~=0.4.1

# @version ^0.4.1

Risk

Impact:

  • Contributors could use a the wrong compiler

Recommended Mitigation

Use a ~= compatible release clause or a == version matching clause for the compiler version

- # @version ^0.4.1
+ # @version ~=0.4.1
Updates

Lead Judging Commences

0xshaedyw Lead Judge
about 1 month ago
0xshaedyw Lead Judge about 1 month ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
Assigned finding tags:

Invalid – Pragma Specified

Both contracts declare @version ^0.4.1, so the compiler version is fixed.

Support

FAQs

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

Give us feedback!