mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Fixed repay
This commit is contained in:
parent
d1ffac6380
commit
13f77ec0d2
|
@ -241,9 +241,9 @@ contract LendingPool is VersionedInitializable, ILendingPool {
|
||||||
_usersConfig[onBehalfOf].setBorrowing(reserve.id, false);
|
_usersConfig[onBehalfOf].setBorrowing(reserve.id, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
IERC20(asset).safeTransferFrom(user, aToken, paybackAmount);
|
IERC20(asset).safeTransferFrom(msg.sender, aToken, paybackAmount);
|
||||||
|
|
||||||
emit Repay(asset, onBehalfOf, user, paybackAmount);
|
emit Repay(asset, onBehalfOf, msg.sender, paybackAmount);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user