Description:Description\
In BribeUpgradeable.sol there is a view function earnedWithTimestamp that returns the earned amount given address and reward token, returns the rewards and the last user timestamp. This function is private, but should be marked as public.
earned amount given address and reward token, returns the rewards and the last user timestamp
Attack Scenario\
Describe how the vulnerability can be exploited.
This function is inherited and is in the contracts from Thena & Chronos, and is not affected by our changes, which makes it OOS
The private access modifier was intended from the beginning, although it does seem illogical, and there are no problems or advantages to making it public
Github username: @https://github.com/Pavel2202 Twitter username: https://twitter.com/timenov_pavel Submission hash (on-chain): 0x41f85be2a77bc3d8a136389d805b22da011dfb6a71e7ed54dcd4a1d1bbe87e6c Severity: low
Description: Description\ In
BribeUpgradeable.sol
there is a view functionearnedWithTimestamp
that returns the earned amount given address and reward token, returns the rewards and the last user timestamp. This function is private, but should be marked aspublic
.earned amount given address and reward token, returns the rewards and the last user timestamp
Attack Scenario\ Describe how the vulnerability can be exploited.
Attachments
Proof of Concept (PoC) File
Revised Code File (Optional)