The LendingPool::rescueToken function is intended to allow the contract owner to rescue tokens mistakenly sent to the contract. However, the function does not properly call the RToken::rescueToken function, which is also responsible for handling the rescue tokens in RToken contract that have a modifier that is only called by LendignPool(ReservePool) . This oversight results in the inability to rescue tokens in RToken contract.
The LendingPool::rescueToken function is designed to rescue tokens that are mistakenly sent to the contract. However, the function does not interact with the RToken::rescueToken function, which is also responsible for the rescue tokens.
LendingPool::rescueToken
The RToken::rescueToken function, which should be called by the ReservePool because of onlyReservePool modifier :
The inability to rescue tokens from RToken contract.
Manual Review
The LendingPool::rescueToken function should be modified to call the RToken::rescueToken function. This ensures that all necessary checks and balances are in place before transferring the tokens. Here is the recommended change:
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.