sherlock-audit / 2024-01-telcoin-judging

6 stars 5 forks source link

bareli - Unused Parameters: #80

Closed sherlock-admin closed 8 months ago

sherlock-admin commented 8 months ago

bareli

medium

Unused Parameters:

Summary

Unused Parameters: The checkTransaction function has several parameters that are not used, which could indicate that the function is not fully implemented or that there is unnecessary complexity in the contract interface.

Vulnerability Detail

function checkTransaction( address to, uint256 value, bytes memory data, Enum.Operation operation, uint256, uint256, uint256, address, address payable, bytes memory, address ) external view override {

Impact

The checkTransaction function has several parameters that are not used, which could indicate that the function is not fully implemented or that there is unnecessary complexity in the contract interface.

Code Snippet

https://github.com/sherlock-audit/2024-01-telcoin/blob/main/telcoin-audit/contracts/zodiac/core/SafeGuard.sol#L48

Tool used

Manual Review

Recommendation

sherlock-admin2 commented 8 months ago

1 comment(s) were left on this issue during the judging contest.

takarez commented:

invalid because { This is invalid because thats the intended behavior to not used 'em }

nevillehuang commented 7 months ago

Invalid, this is at most a gas optimization finding not valid based on sherlock rules