Multiple functions uses the Staking.update
function to update the rewards, but that do not work correctly, so the user would not see their rewards reflected.
When you start the process in the deposit
function for example, where the user for the first time will try to collect reward. After the token transfer is successful, updateFor
is called.
It calls update
and when found in this statement:
This scenario can happen, if users make use of these functions and there are still no deposits in WETH, that if the Lender.sol contract does not place the address of the Fees.sol contract, users may not have rewards
Users will not earn rewards
Manual code review
Ensure that when depositing, the contract has WETH for the reward mechanism to work.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.