Omniscia Steer Protocol Audit

Manual Review

Manual Review

A thorough line-by-line review was conducted on the codebase to identify potential malfunctions and vulnerabilities in Steer Protocol's Algebra V1.0 and Algebra V1.9 strategies.

As the project at hand implements Algebra-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 a significant integration flaw within the system which could have had severe ramifications to its overall operation; we urge the Steer Protocol team to promptly evaluate and remediate the relevant exhibit of the AlgebraBaseLiquidityManager contract.

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 advise it to be expanded on certain points such as the seemingly arbitrary configurational restrictions of the vault initialization functions.

A total of 42 findings were identified over the course of the manual review of which 22 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
ABL-01MIncorrect Gap Size Specification
ABL-02MInexistent Sanitization of Liquidity Provision
ABL-03MFirst-Deposit Share Manipulation
ABL-04MInsufficient Protection of Algebra Callbacks
ABL-05MUnsafe Casting Operation
ABL-06MInsufficient TWAP Sanitization
ABL-07MIncorrect Integration of Algebra V1.9
AMP-01MNon-Uniform Restriction of Tick Ranges
AMP-02MInexistent Sanitization of Bin Configuration
ASP-01MInexistent Sanitization of Bin Configuration
AWM-01MPotentially Insecure Sanitization of Deposit
AWS-01MPotentially Insecure Sanitization of Deposit
QSB-01MInexistent Sanitization of Liquidity Provision
QSB-02MFirst-Deposit Share Manipulation
QSB-03MInsufficient Protection of Algebra Callbacks
QSB-04MInsufficient TWAP Sanitization
QSM-01MNon-Uniform Restriction of Tick Ranges
QSM-02MInsecure Negation of Swap Amount
QSM-03MInexistent Sanitization of Bin Configuration
QSS-01MInexistent Sanitization of Bin Configuration
QSW-01MPotentially Insecure Sanitization of Deposit
QSL-01MPotentially Insecure Sanitization of Deposit