The constant 1e18 appears two times in the middle of both functions update and updateFor in Staking.sol.
Using the this number directly throughout the contract can make it harder to understand the code's intention and may lead to potential errors if the value needs to be changed in the future. It is generally considered good practice to parameterize such constants to make the code more readable, maintainable, and flexible. The same thing happens in case of the constant 10000 within Lender.sol.
Manual review
Define the two variables in their respective contract and replace the hardcoded values.
Staking.sol:
Lender.sol
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.