Skip to content

Commit

Permalink
refactor: added natspec, changed function name
Browse files Browse the repository at this point in the history
  • Loading branch information
The-3D committed Dec 3, 2021
1 parent 0b62c7a commit 0d71fe0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/protocol/libraries/logic/BorrowLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ library BorrowLogic {
userConfig.setBorrowing(reserve.id, false);
}

IsolationModeLogic.executeIsolationModeRepayment(
IsolationModeLogic.updateIsolatedDebtIfIsolated(
reserves,
reservesList,
userConfig,
Expand Down
10 changes: 9 additions & 1 deletion contracts/protocol/libraries/logic/IsolationModeLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ library IsolationModeLogic {
using ReserveConfiguration for DataTypes.ReserveConfigurationMap;
using UserConfiguration for DataTypes.UserConfigurationMap;

function executeIsolationModeRepayment(
/**
* @notice updated the isolated debt whenever a position collateralized by an isolated asset is repaid
* @param reserves The state of all the reserves
* @param reservesList The addresses of all the active reserves
* @param userConfig The user configuration mapping
* @param reserveCache The cached data of the reserve
* @param repayAmount The amount being repaid
*/
function updateIsolatedDebtIfIsolated(
mapping(address => DataTypes.ReserveData) storage reserves,
mapping(uint256 => address) storage reservesList,
DataTypes.UserConfigurationMap storage userConfig,
Expand Down
2 changes: 1 addition & 1 deletion contracts/protocol/libraries/logic/LiquidationLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ library LiquidationLogic {
);
}

IsolationModeLogic.executeIsolationModeRepayment(
IsolationModeLogic.updateIsolatedDebtIfIsolated(
reserves,
reservesList,
userConfig,
Expand Down

0 comments on commit 0d71fe0

Please sign in to comment.