sherlock-audit / 2024-06-velocimeter-judging

11 stars 7 forks source link

Careful Wooden Caribou - proxyGauge::getReward(...) is not implemented #699

Closed sherlock-admin4 closed 4 months ago

sherlock-admin4 commented 4 months ago

Careful Wooden Caribou

Low/Info

proxyGauge::getReward(...) is not implemented

Summary

proxyGauge that inherits IGauge interface does not implement getReward()` function.

Vulnerability Detail

The implementation contract does not implement any functionality for getReward().

Impact

The call to getReward(...) on this interface will not render any functionality. Since the function signature does not return any return value, there is no indication to the caller of any failure.

Code Snippet

https://github.com/sherlock-audit/2024-06-velocimeter/blob/main/v4-contracts/contracts/ProxyGauge.sol#L48-L50

Tool used

Manual Review

Recommendation

If the contract does not intent to implement getReward(...), then it should revert and hence notifying the caller of the failure, if called. The current implementation suppresses and hence might leave an impresses that everything worked as expected, while it did not.