mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Removed unused function
This commit is contained in:
parent
4d2406a5e1
commit
60b30fe91e
|
@ -300,25 +300,6 @@ library ReserveLogic {
|
|||
updateInterestRates(_reserve, _reserveAddress, _income, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev updates the state of the core as a consequence of a liquidation action.
|
||||
* @param _collateralReserve the collateral reserve that is being liquidated
|
||||
* @param _collateralToLiquidate the amount of collateral being liquidated
|
||||
* @param _liquidatorReceivesAToken true if the liquidator will receive aTokens, false otherwise
|
||||
**/
|
||||
function updateStateOnLiquidationAsCollateral(
|
||||
ReserveData storage _collateralReserve,
|
||||
address _collateralReserveAddress,
|
||||
uint256 _collateralToLiquidate,
|
||||
bool _liquidatorReceivesAToken
|
||||
) external {
|
||||
_collateralReserve.updateCumulativeIndexesAndTimestamp();
|
||||
|
||||
if (!_liquidatorReceivesAToken) {
|
||||
updateInterestRates(_collateralReserve, _collateralReserveAddress, 0, _collateralToLiquidate);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev gets the total liquidity in the reserve. The total liquidity is the balance of the core contract + total borrows
|
||||
* @param _reserve the reserve address
|
||||
|
|
Loading…
Reference in New Issue
Block a user