Elastic-Finance-DAO / eefi_contracts

0 stars 0 forks source link

[EVT-03S] Multiple Top-Level Declarations #87

Open stalker474 opened 3 weeks ago

stalker474 commented 3 weeks ago

EVT-03S: Multiple Top-Level Declarations

Type Severity Location
Code Style ElasticVault.sol:L15, L20, L28

Description:

The referenced file contains multiple top-level declarations that decrease the legibility of the codebase.

Example:

interface IEEFIToken {
    function mint(address account, uint256 amount) external;
    function burn(uint256 amount) external;
}

contract TokenStorage is Ownable {

Recommendation:

We advise all highlighted top-level declarations to be split into their respective code files, avoiding unnecessary imports as well as increasing the legibility of the codebase.