MCPcopy Create free account
hub / github.com/byterocket/c4udit / LowRiskIssues

Function LowRiskIssues

analyzer/issues.go:63–90  ·  view source on GitHub ↗

LowRiskIssues returns the list of all low risk issues.

()

Source from the content-addressed store, hash-verified

61
62// LowRiskIssues returns the list of all low risk issues.
63func LowRiskIssues() []Issue {
64 return []Issue{
65 // L001 - Unsafe ERC20 Operation(s)
66 {
67 "L001",
68 LOW,
69 "Unsafe ERC20 Operation(s)",
70 "https://github.com/byterocket/c4-common-issues/blob/main/2-Low-Risk.md#l001---unsafe-erc20-operations",
71 `\.transfer\(|\.transferFrom\(|\.approve\(`, // ".tranfer(", ".transferFrom(" or ".approve("
72 },
73 // L003 - Unspecific Compiler Version Pragma
74 {
75 "L003",
76 LOW,
77 "Unspecific Compiler Version Pragma",
78 "https://github.com/byterocket/c4-common-issues/blob/main/2-Low-Risk.md#l003---unspecific-compiler-version-pragma",
79 "pragma solidity (\\^|>)", // "pragma solidity ^" or "pragma solidity >"
80 },
81 // L005 - Do not use Deprecated Library Functions
82 {
83 "L005",
84 LOW,
85 "Do not use Deprecated Library Functions",
86 "https://github.com/byterocket/c4-common-issues/blob/main/2-Low-Risk.md#l005---do-not-use-deprecated-library-functions",
87 `_setupRole\(|safeApprove\(`, // _setupRole and safeApprove are common deprecated lib functions
88 },
89 }
90}

Callers 1

AllIssuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected