31460 - [SC - Insight] supportsInterface does not return typeIERCRecei...
Description
Brief/Intro
Vulnerability Details
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
// In addition to the current interfaceId, also support previous version of the interfaceId that did not
// include the castVoteWithReasonAndParams() function as standard
return
interfaceId ==
(type(IGovernor).interfaceId ^
this.castVoteWithReasonAndParams.selector ^
this.castVoteWithReasonAndParamsBySig.selector ^
this.getVotesWithParams.selector) ||
interfaceId == type(IGovernor).interfaceId ||
interfaceId == type(IERC1155Receiver).interfaceId ||
super.supportsInterface(interfaceId);
}Impact Details
References
Recommendation to fix
Proof of Concept
Previous31458 - [SC - Critical] Invalid handling of epochs revenue for tokens t...Next31461 - [SC - Critical] veALCX holder can mint Unlimited FLUX tokens
Last updated
Was this helpful?