mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix isETH condition in repay
This commit is contained in:
parent
a281bdba97
commit
d099d3c20e
|
@ -640,7 +640,7 @@ contract LendingPool is ReentrancyGuard, VersionedInitializable {
|
|||
);
|
||||
}
|
||||
|
||||
if (vars.isETH) { //TODO: review needed, most probably we can remove it
|
||||
if (!vars.isETH) { //TODO: review needed, most probably we can remove it
|
||||
require(
|
||||
msg.value == 0,
|
||||
"User is sending ETH along with the ERC20 transfer."
|
||||
|
|
Loading…
Reference in New Issue
Block a user