Omniscia Avocado Fund Audit

Manual Review

Manual Review

A thorough line-by-line review was conducted on the codebase to identify potential malfunctions and vulnerabilities in Avocado Fund's lending and staking system.

As the project at hand implements a combination of a lending and 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 significant vulnerabilities within the system which could have had severe ramifications to its overall operation; for more information, kindly consult the relevant non-informational exhibits within the audit report.

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, containing extensive in-line documentation as well as function NatSpec definitions.

A total of 18 findings were identified over the course of the manual review of which 13 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
ALG-01MInexistent Slippage Control of Borrow Rate
ALG-02MUnsustainable Iteration Approach
ALG-03MArbitrary Loan Borrow Rate
ALG-04MIncorrect Loan Repayment Tracking
ALG-05MIncorrect Interest Accrual
ALG-06MIncorrect Mass Interest Accrual
AVT-01MIncorrect Cap Assumption
AVT-02MImproper Performance Fee Adjustment
AVT-03MInexistent Access Control of Fee Collection
AVT-04MIncorrect Handling of Interest
VRS-01MInexistent Saturating Subtraction of Emergency Mechanism
VRS-02MInexistent Handling of Cap Breach
VRS-03MInsecure Boost System