Omniscia Steadefi Audit

Manual Review

Manual Review

A thorough line-by-line review was conducted on the codebase to identify potential malfunctions and vulnerabilities in Steadefi's strategy and lending pool contracts.

As the project at hand implements multi-contract DeFi integrating strategies, intricate care was put into ensuring that the flow of funds within the system conforms to the specifications and restrictions laid forth within the protocol's specification.

We validated that all state transitions of the system occur within sane criteria and that all rudimentary formulas within the system execute as expected. We pinpointed multiple significant vulnerabilities within the system which could have had severe ramifications to its overall operation, however, they were conveyed ahead of time to the Steadefi team to be promptly remediated.

Additionally, the system was investigated for any other commonly present attack vectors such as re-entrancy attacks, mathematical truncations, logical flaws and ERC / EIP standard inconsistencies. The documentation of the project was satisfactory to the extent it need be, however, we strongly advise our optimizational and style guide exhibits to be assimilated to increase the code's legibility as it presently suffers from unwarranted complexity.

A total of 70 findings were identified over the course of the manual review of which 32 findings concerned the behaviour and security of the system. The non-security related findings, such as optimizations, are included in the separate Code Style chapter.

The finding table below enumerates all these security / behavioural findings:

IDSeverityAddressedTitle
CLO-01MInexplicable Capability of Replacement
CLO-02MInexistent Sanitization of Reported Answer
CLO-03MImproper Integration of Chainlink Oracles
GMD-01MInexistent Slippage Protections
GMP-01MPotentially Incorrect Default Values
GMX-01MSignificant Centralization of Contract Configuration
GMX-02MImproper Tokenomic Share System
GMX-03MInexplicable Presence of Variable
GMX-04MIncorrect payable Function Attribute
GMX-05MInexistent Protection Against Paused Invocation
GMX-06MInexistent Slippage Protections
GMX-07MPrecision Loss of Convoluted Calculations
JOE-01MIncorrect Price Utilizations of Formula
LPL-01MImproper Execution Flows
LPL-02MImproper Enforcement of Access Control
LPL-03MImproper Native Deposit / Withdrawal Handling System
LPL-04MInexistent Slippage Protections
LPL-05MTotal Fund Loss of First Deposit
LPC-01MArbitrary Adjustment of Interest Rate Model
LPC-02MInexplicable Per Second Interest Rate Calculation
LPC-03MInexistent Sanitization of Pool Configuration
LPC-04MIncorrect Interest Rate Calculation
TJM-01MInexistent Slippage Protections
TJF-01MInexplicable Delta Return
TJF-02MPotentially Incorrect Default Values
TJF-03MUnsafe Casting Operations
TJY-01MSignificant Centralization of Contract Configuration
TJY-02MImproper Tokenomic Share System
TJY-03MImproper Handling of Native Deposits
TJY-04MInexistent Protection Against Paused Invocation
TJY-05MInexistent Slippage Protections
TJY-06MPrecision Loss of Convoluted Calculations