Omniscia Bolide Finance Audit

Manual Review

Manual Review

A thorough line-by-line review was conducted on the codebase to identify potential malfunctions and vulnerabilities in Bolide Finance's multi-asset staking system.

As the project at hand implements a staking system, 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 high impact vulnerabilities within the system which could have had severe ramifications to its overall operation.

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 a certain extent, however, we strongly recommend it to be expanded at certain complex points such as the Earn period calculations and what each variable of the struct represents.

A total of 24 findings were identified over the course of the manual review of which 15 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
SEG-01MIncorrect Assignment of Initial BLID Per Block
SEG-02MIncorrect Interface Usage
SEG-03MSignificant Centralization of System Configuration
SEG-04MInexistent Initialization Protection of Base Implementation
SEG-05MIncorrect Payable Definition of Deposit Functions
SEG-06MIncorrect Re-Calculation of Deposit Amount
SEG-07MInexistent Initialization of Reward Block
SEG-08MInexplicable Usage of Signed Integer Type
SEG-09MPotentially Insecure Decimal Normalizations
SEG-10MInexistent Application of Chainlink Security Practices
SEG-11MRe-Initialization of Upgraded Implementation
SEG-12MIncorrect Time Subtractions
SEG-13MIncorrect Timestamp Delta Evaluation
SEG-14MIncorrect Token Time Calculations
SEG-15MInexistent Normalization of BLID Per Share