code-423n4 / 2021-09-wildcredit-findings

0 stars 0 forks source link

transferLp() Misleading error message #35

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Handle

WatchPug

Vulnerability details

https://github.com/code-423n4/2021-09-wildcredit/blob/main/contracts/LendingPair.sol#L263

The error message "LendingPair: cannot deposit borrowed token" can be changed to "LendingPair: receiver has unpaid debt".