Omniscia SaucerSwap Labs Audit
Compilation
Compilation
The project utilizes truffle as its development pipeline tool, containing an array of tests and scripts coded in JavaScript.
To compile the project, the compile command needs to be issued via the truffle CLI tool:
truffle compileThe truffle tool automatically selects Solidity version 0.6.12 based on the version specified within the truffle-config.js file.
The project contains discrepancies with regards to the Solidity version used as the pragma statements differ between them. The higher-most requirement was pragma solidity >=0.6.0, however the version locked in the truffle-config.js file was 0.6.12.
We advise the SaucerSwap Labs team to lock the pragma statements to 0.6.12 (=0.6.12), the same version utilized for our static analysis as well as optimizational review of the codebase.
During compilation with the truffle pipeline, no errors were identified that relate to the bytecode size or syntax of the contracts.