The deposit
function in the smart contract is responsible for handling deposits into a reserve, updating interest rates, and minting RTokens to the depositor. However, there is a critical issue in the function where msg.sender
is incorrectly used instead of depositor
during the asset transfer
The function attempts to transfer amount of the reserve asset from msg.sender to the reserve.reserveRTokenAddress. However, since msg.sender is the contract itself (as it is an internal function), it may not be the actual depositor. This could lead to unexpected behavior, including failed transactions or improper fund deductions.
User can not deposit.
Manual code review
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.