The _repay
internal function of LendingPool.sol
specifies "If onBehalfOf is set to address(0), the function defaults to repaying the caller's own debt." This can lead to broken functionality with bad assumptions about the contract
The _repay
internal function of LendingPool.sol
which creates the following issues when used otherwise
Misrepresented assumption of fallback logic which in this case none of that exists
Protocol Integrations Break – External integrations relying on explicit onBehalfOf
assignments might behave unpredictably, resulting in incorrect debt accounting.
Manual Review
Remove the if (onBehalfOf == address(0)) revert AddressCannotBeZero();
to comply with the natspec
Add the fallback handling of zero address in _repay
function that takes the msg.sender
into consideration
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.