The rescueToken function in the RToken contract is never called in the ReservePool, making it impossible to recover or rescue tokens mistakenly sent to this contract. It is recommended to use the onlyOwner modifier instead. The rescueToken in LendingPool only able to rescue tokens deposited in that contract only.
The current rescueToken function in the RToken contract is:
The current rescueToken function in the LendingPool contract is:
This function is intended to rescue tokens mistakenly sent to the RToken contract. However, it is never called in the ReservePool, making it impossible to recover or rescue tokens.
Links to the issues:
This issue prevents the recovery or rescue of tokens mistakenly sent to the RToken contract, potentially leading to loss of tokens.
Manual code review.
Update the rescueToken function to use the onlyOwner modifier instead of onlyReservePool. This ensures that the function can be called by the contract owner to recover or rescue tokens.
rescueToken FunctionThis ensures that the rescueToken function can be called by the contract owner to recover or rescue tokens mistakenly sent to the RToken contract.
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.