code-423n4 / 2021-04-basedloans-findings

0 stars 1 forks source link

Use 'interface' keyword for interfaces #27

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

paulius.eth

Vulnerability details

Impact

Interfaces are declared as contracts. For example, ComptrollerInterface name indicates that it should be an interface but it is declared as a contract. Solidity has a keyword "interface" that can be used here.

Recommended Mitigation Steps

Declare interfaces with 'interface' keyword.

ghoul-sol commented 3 years ago

Added to backlog, thanks!