The rescueToken
function blocks RToken rescues, causing permanent loss if RTokens are accidentally sent to the contract.
The rescueToken
function reverts if tokenAddress == reserve.reserveRTokenAddress
, making it impossible to recover mistakenly sent RTokens.
Permanent Loss: RTokens sent to the contract are irrecoverable.
Protocol Imbalance: Incorrect RToken supply tracking.
Allow RToken rescue with admin oversight:
```solidity
if (tokenAddress == reserve.reserveRTokenAddress) {
require(recipient == owner(), "RTokens can only be rescued to owner");
}
```
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.