Open code423n4 opened 3 years ago
leastwood
Router.sol has an unused non-existent selector in Router.getRouterImplementation which references nERC1155Interface.sol.
Router.sol
Router.getRouterImplementation
nERC1155Interface.sol
https://github.com/code-423n4/2021-08-notional/blob/main/interfaces/notional/nERC1155Interface.sol https://github.com/code-423n4/2021-08-notional/blob/main/contracts/external/Router.sol#L139
Compiler warning
Router.sol:L139 can be safely removed so as to avoid potential function selector conflicts.
Router.sol:L139
The supportsInterface function call is in the inherited IERC165 interface.
per sponsor comment, invalid
Handle
leastwood
Vulnerability details
Impact
Router.sol
has an unused non-existent selector inRouter.getRouterImplementation
which referencesnERC1155Interface.sol
.Proof of Concept
https://github.com/code-423n4/2021-08-notional/blob/main/interfaces/notional/nERC1155Interface.sol https://github.com/code-423n4/2021-08-notional/blob/main/contracts/external/Router.sol#L139
Tools Used
Compiler warning
Recommended Mitigation Steps
Router.sol:L139
can be safely removed so as to avoid potential function selector conflicts.