Omniscia Xcaliswap Audit
SwapFees Code Style Findings
SwapFees Code Style Findings
SFS-01C: Inexistent Error Messages
Type | Severity | Location |
---|---|---|
Code Style | ![]() | SwapFees.sol:L20, L23, L28 |
Description:
The linked require
checks have no error messages explicitly defined.
Example:
contracts/Core/SwapFees.sol
20require(token.code.length > 0);
Recommendation:
We advise each to be set so to increase the legibility of the codebase and aid in validating the require
checks' conditions.
Alleviation:
The Xcaliswap team evaluated this exhibit but opted not to apply any changes for it in the current iteration of the protocol.