Closed sherlock-admin closed 2 years ago
rvierdiiev
low
BasePool.distributeRewards function can be misused by user, so he will lost his tokens.
BasePool.distributeRewards
User may lose funds.
function distributeRewards(uint256 _amount) external override { rewardToken.safeTransferFrom(_msgSender(), address(this), _amount); _distributeRewards(_amount); }
Manual Review
Restrict this function to be called by government(onlyGov) or smth.
rvierdiiev
low
BasePool.distributeRewards function should be restricted to not be called by anyone
Summary
BasePool.distributeRewards
function can be misused by user, so he will lost his tokens.Vulnerability Detail
Impact
User may lose funds.
Code Snippet
Tool used
Manual Review
Recommendation
Restrict this function to be called by government(onlyGov) or smth.