mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Fixes PVE004
This commit is contained in:
parent
b57a59ea6d
commit
bdac7b0d41
|
@ -267,7 +267,7 @@ contract LendingPool is VersionedInitializable, ILendingPool, LendingPoolStorage
|
||||||
? stableDebt
|
? stableDebt
|
||||||
: variableDebt;
|
: variableDebt;
|
||||||
|
|
||||||
if (amount != type(uint256).max && amount < paybackAmount) {
|
if (amount < paybackAmount) {
|
||||||
paybackAmount = amount;
|
paybackAmount = amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user