Company Simulator

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

Unspecified Vyper pragma

Author Revealed upon completion

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

Support

FAQs

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