Skip to content

Latest commit

 

History

History
272 lines (182 loc) · 8.41 KB

File metadata and controls

272 lines (182 loc) · 8.41 KB

get in touch with Consensys Diligence
[ 🌐 📩 🔥 ]

Solidity Metrics for 'CLI'

Table of contents

Scope

This section lists files that are in scope for the metrics report.

  • Project: 'CLI'

  • Included Files:

    • ``
  • Excluded Paths:

    • ``
  • File Limit: undefined

    • Exclude File list Limit: undefined
  • Workspace Repository: unknown (undefined@undefined)

Source Units in Scope

Source Units Analyzed: 1
Source Units in Scope: 1 (100%)

Type File Logic Contracts Interfaces Lines nLines nSLOC Comment Lines Complex. Score Capabilities
📝 src/oracles/VariableInterestRateOracle.sol 1 **** 228 193 149 20 61 ****
📝 Totals 1 **** 228 193 149 20 61 ****
Legend: [➕]
  • Lines: total lines of the source unit
  • nLines: normalized lines of the source unit (e.g. normalizes functions spanning multiple lines)
  • nSLOC: normalized source lines of code (only source-code lines; no comments, no blank lines)
  • Comment Lines: lines containing single or block comments
  • Complexity Score: a custom complexity score derived from code statements that are known to introduce code complexity (branches, loops, calls, external interfaces, ...)

Out of Scope

Excluded Source Units

Source Units Excluded: 0

[➕]

| File | | ------ | | None |
Duplicate Source Units

Duplicate Source Units Excluded: 0

[➕]

| File | | ------ | | None |
Doppelganger Contracts

Doppelganger Contracts: 0

[➕]

| File | Contract | Doppelganger | | ------ | -------- | ------------ |

Report

Overview

The analysis finished with 0 errors and 0 duplicate files.

Risk

Source Lines (sloc vs. nsloc)

Inline Documentation

  • Comment-to-Source Ratio: On average there are9.2 code lines per comment (lower=better).
  • ToDo's: 0

Components

📝Contracts 📚Libraries 🔍Interfaces 🎨Abstract
1 0 0 0

Exposed Functions

This section lists functions that are explicitly declared public or payable. Please note that getter methods for public stateVars are not included.

🌐Public 💰Payable
4 0
External Internal Private Pure View
4 4 0 0 1

StateVariables

Total 🌐Public
3 3

Capabilities

Solidity Versions observed 🧪 Experimental Features 💰 Can Receive Funds 🖥 Uses Assembly 💣 Has Destroyable Contracts
>=0.8.13 **** **** ****
📤 Transfers ETH ⚡ Low-Level Calls 👥 DelegateCall 🧮 Uses Hash Functions 🔖 ECRecover 🌀 New/Create/Create2
**** **** **** **** **** ****
♻️ TryCatch Σ Unchecked
**** ****

Dependencies / External Imports

Dependency / Import Path Count
@yield-protocol/utils-v2/src/access/AccessControl.sol 1
@yield-protocol/utils-v2/src/utils/Cast.sol 1
@yield-protocol/utils-v2/src/utils/Math.sol 1

Totals

Summary
AST Node Statistics
Function Calls
Assembly Calls
AST Total
Inheritance Graph

[➕]

CallGraph

[➕]

Contract Summary

[➕]

Sūrya's Description Report

Files Description Table

File Name SHA-1 Hash
src/oracles/VariableInterestRateOracle.sol 27ddaf1448df40992acf0f85fc94a3a1c9b97b1c

Contracts Description Table

Contract Type Bases
Function Name Visibility Mutability Modifiers
VariableInterestRateOracle Implementation IOracle, AccessControl, Constants
Public ❗️ 🛑 NO❗️
setSource External ❗️ 🛑 auth
updateParameters External ❗️ 🛑 auth
peek External ❗️ NO❗️
get External ❗️ 🛑 NO❗️

Legend

Symbol Meaning
🛑 Function can modify state
💵 Function is payable
____ Thinking about smart contract security? We can provide training, ongoing advice, and smart contract auditing. [Contact us](https://diligence.consensys.net/contact/).