Implementations should inherit their interface #242
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
WatchPug
Vulnerability details
It's a best practice for the contract implementations to inherit their interface definition.
Doing so would improve the contract's clarity, and force the implementation to comply with the defined interface.
Instances include:
https://github.com/code-423n4/2021-11-malt/blob/c3a204a2c0f7c653c6c2dda9f4563fd1dc1cecf3/src/contracts/TransferService.sol#L14-L14
TransferService
should inheritITransferService
.https://github.com/code-423n4/2021-11-malt/blob/c3a204a2c0f7c653c6c2dda9f4563fd1dc1cecf3/src/contracts/DexHandlers/UniswapHandler.sol#L20-L20
UniswapHandler
should inheritIDexHandler
.The text was updated successfully, but these errors were encountered: