Omniscia Tokemak Network Audit
Compilation
Compilation
The project utilizes hardhat
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 hardhat
CLI tool invoked via npx
:
npx hardhat compile
The hardhat
tool automatically selects Solidity version 0.7.6
based on the hardhat.config.js
file configuration.
The project contains discrepancies with regards to the Solidity version used within all its contracts, containing an open-ended declaration (>=0.6.0 <0.7.0
). We advise the Tokemak team to lock the pragma
statements to 0.6.11
, the same version utilized for our static analysis as well as optimizational review of the codebase.
During compilation with the hardhat
pipeline, no errors were identified that relate to the syntax or bytecode size of the contracts of the project.