Omniscia Bluejay Finance Audit

Manual Review

Manual Review

A thorough line-by-line review was conducted on the codebase to identify potential malfunctions and vulnerabilities in the novel bond and price stabilization mechanism introduced by Bluejay Finance.

As the project at hand implements a bond implementation and price stabilization mechanism, 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 and that all protocol integrations have been performed correctly.

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 misbehaviours within the system which could have had moderate-to-severe ramifications to its overall operation, however, they were conveyed ahead of time to the Bluejay Finance 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 a great extent.

A total of 40 findings were identified over the course of the manual review of which 18 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
BBD-01MInexistent Validation of Bond Existence
BTN-01MFluid Token Minting System
BGR-01MInexistent Sanitization of Adjustment Duration
BRR-01MInexistent Validation of Bond Existence
BRR-02MInexplicable Capability of Re-Invocation
PSR-01MInsufficiently Protected Capability of Oracle Adjustment
SBD-01MInexistent Enforcement of Security Note
SBD-02MInexplicable Capability of Oracle Adjustment
SEE-01MInherent Race Condition of Pair Creation
SEE-02MInexplicable Capability for Arbitrary Mints
STE-01MFluid Token Minting System
STN-01MImproper Conformity to ERC-20 Standard
TRE-01MInherent Race Condition of Limit Decrease
TBD-01MInexplicable Capability of Governor Adjustment
TOE-01MImproper Calculation of Cumulative Delta
PAC-01MInexistent Sanitization of Vesting Start
PAC-02MInexistent Price Validation of Purchases
WSP-01MInexistent Price Validation of Purchases