Omniscia Echidna Finance Audit

Core Protocol Security Audit

Audit Overview

We were tasked with auditing the codebase of Echidna Finance and in particular their core protocol implementation consisting of a complex multi-contract staking structure incentivizing users to interact with the Platypus protocol via the platform.

Over the course of the audit, we were able to identify several vulnerabilities some of which were classified as major and should be remediated as soon as possible by the Echidna team.

Additionally, we established several areas the codebase can be optimized in terms of gas costs and we have noted down multiple optimizational findings that we advise the Echidna team to consider.

We should note that we observed a lack of style conformity in the codebase and in general the codebase appears to not possess clearly defined off-chain tracking interaction as it lacks events in multiple functions that adjust sensitive contract variables.

The Echidna team should streamline the codebase's code style in accordance to the official Solidity style guide and should consider introducing events throughout the codebase.

Post-Audit Conclusion

The Echidna Finance team resolved almost all of our exhibits and provided a response to all findings identified in the report, greatly increasing the security of the system.

Additionally, they introduced events and emissions across all contracts dealing with our earlier comment regarding off-chain compatibility and thus bringing the code to a production-ready standard.

Contracts Assessed

Audit Synopsis

SeverityIdentifiedAlleviatedPartially AlleviatedAcknowledged
Major4400
Medium1100
Minor161412
Informational302911

During the audit, we filtered and validated a total of 4 findings utilizing static analysis tools as well as identified a total of 47 findings during the manual review of the codebase. We strongly recommend that any minor severity or higher findings are dealt with promptly prior to the project's launch as they introduce potential misbehaviours of the system as well as exploits.

pie title Total Issues "Informational" : 30 "Minor" : 16 "Medium" : 1 "Major" : 4

The list below covers each segment of the audit in depth and links to the respective chapter of the report: