mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Merge branch 'master' of gitlab.com:aave-tech/protocol-v2
This commit is contained in:
commit
8bdbd0a7ce
|
@ -293,9 +293,9 @@ contract LendingPoolLiquidationManager is ReentrancyGuard, VersionedInitializabl
|
||||||
address _principalAddress,
|
address _principalAddress,
|
||||||
uint256 _purchaseAmount,
|
uint256 _purchaseAmount,
|
||||||
uint256 _userCollateralBalance
|
uint256 _userCollateralBalance
|
||||||
) internal view returns (uint256 collateralAmount, uint256 principalAmountNeeded) {
|
) internal view returns (uint256, uint256) {
|
||||||
collateralAmount = 0;
|
uint256 collateralAmount = 0;
|
||||||
principalAmountNeeded = 0;
|
uint256 principalAmountNeeded = 0;
|
||||||
IPriceOracleGetter oracle = IPriceOracleGetter(addressesProvider.getPriceOracle());
|
IPriceOracleGetter oracle = IPriceOracleGetter(addressesProvider.getPriceOracle());
|
||||||
|
|
||||||
// Usage of a memory struct of vars to avoid "Stack too deep" errors due to local variables
|
// Usage of a memory struct of vars to avoid "Stack too deep" errors due to local variables
|
||||||
|
@ -330,7 +330,6 @@ contract LendingPoolLiquidationManager is ReentrancyGuard, VersionedInitializabl
|
||||||
collateralAmount = vars.maxAmountCollateralToLiquidate;
|
collateralAmount = vars.maxAmountCollateralToLiquidate;
|
||||||
principalAmountNeeded = _purchaseAmount;
|
principalAmountNeeded = _purchaseAmount;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (collateralAmount, principalAmountNeeded);
|
return (collateralAmount, principalAmountNeeded);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user