RToken contract has fn to rescuie accidental sent tokens with rescueToken fn, but no pools use the function, so in practise, the tokens are trapped.
The rescueToken function in RToken contract is designed to rescue mistakenly sent ERC20 tokens.
The function has modifier onlyReservePool, which restricts the function caller to be the "_reservePool".
If we look at the other parts of the code, we can see that its frequently used with ILendingPool interface.
Its safe to assume that _reservePool is the lendingPool. If we look into the lendingPool we will not find any function that calls the rescue tokens.
Accidently sent tokens are frozen in the RToken contract
Manual review
Implement fn in the lending pool that calls the rescue fn in 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.