Omniscia vfat Audit

FlashloanLib Static Analysis Findings

FlashloanLib Static Analysis Findings

FLI-01S: Inexistent Sanitization of Input Addresses

Description:

The linked function(s) accept address arguments yet do not properly sanitize them.

Impact:

The presence of zero-value addresses, especially in constructor implementations, can cause the contract to be permanently inoperable. These checks are advised as zero-value inputs are a common side-effect of off-chain software related bugs.

Example:

contracts/libraries/FlashloanLib.sol
32constructor(
33 ConnectorRegistry connectorRegistry_,
34 FlashloanStrategy flashloanStrategy_,
35 FeesLib feesLib_,
36 SwapLib swapLib_
37) DelegateModule() {
38 connectorRegistry = connectorRegistry_;
39 flashloanStrategy = flashloanStrategy_;
40 feesLib = feesLib_;
41 swapLib = swapLib_;
42}

Recommendation:

We advise some basic sanitization to be put in place by ensuring that each address specified is non-zero.

Alleviation (6ab7af3bb495b817ffec469255ea679b1813eecb):

The vfat team evaluated this exhibit but opted to acknowledge it in the current iteration of the codebase.