Skip to content

Commit 385287d

Browse files
Apply suggestions from code review
typo fixes Co-authored-by: miguelmtz <[email protected]>
1 parent 487f19a commit 385287d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/contracts/interfaces/IPool.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ interface IPool {
808808
* - the equivalent aToken `amount` for assets with virtual accounting enabled
809809
* - the equivalent `amount` of underlying for assets with virtual accounting disabled (e.g. GHO)
810810
* @dev The deficit of a reserve can occur due to situations where borrowed assets are not repaid, leading to bad debt.
811-
* @param asset The address of the underlying asset to cover the dificit.
811+
* @param asset The address of the underlying asset to cover the deficit.
812812
* @param amount The amount to be covered, in aToken or underlying on non-virtual accounted assets
813813
*/
814814
function eliminateReserveDeficit(address asset, uint256 amount) external;

src/contracts/protocol/libraries/logic/LiquidationLogic.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ library LiquidationLogic {
152152
IAToken(reserveCache.aTokenAddress).handleRepayment(
153153
msg.sender,
154154
// In the context of GHO it's only relevant that the address has no debt.
155-
// Passing the pool is fitting as it's handeling the repayment on behalf of the protocol.
155+
// Passing the pool is fitting as it's handling the repayment on behalf of the protocol.
156156
address(this),
157157
balanceWriteOff
158158
);
@@ -404,7 +404,7 @@ library LiquidationLogic {
404404

405405
// burn bad debt if necessary
406406
// Each additional debt asset already adds around ~75k gas to the liquidation.
407-
// To keep the liquidation gas under control, 0 usd collateral positions are not touched, as there is no immediate benefit in burning or transfering to treasury.
407+
// To keep the liquidation gas under control, 0 usd collateral positions are not touched, as there is no immediate benefit in burning or transferring to treasury.
408408
if (hasNoCollateralLeft && userConfig.isBorrowingAny()) {
409409
_burnBadDebt(reservesData, reservesList, userConfig, params.reservesCount, params.user);
410410
}

0 commit comments

Comments
 (0)