Omniscia Mean Finance Audit
Compilation
Compilation
The project utilizes foundry
as its development pipeline tool, containing an array of tests and scripts coded in Solidity.
To compile the project, the build
command needs to be issued via the forge
CLI tool:
forge build
The forge
tool automatically selects Solidity version 0.8.20
based on the version specified within the foundry.toml
file.
The project contains discrepancies with regards to the Solidity version used as the pragma
statements of the contracts are open-ended (>=0.8.0
).
As identified in the report itself, this is incorrect as the codebase makes use of user-defined value types that were introduced in Solidity 0.8.8
.
We advise them to be locked to 0.8.20
(=0.8.20
), the same version utilized for our static analysis as well as optimizational review of the codebase.
During compilation with the foundry
pipeline, no errors were identified that relate to the syntax or bytecode size of the contracts.