Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
typo fixes

Co-authored-by: miguelmtz <[email protected]>
  • Loading branch information
sakulstra and miguelmtzinf authored Dec 11, 2024
1 parent 487f19a commit 385287d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/contracts/interfaces/IPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ interface IPool {
* - the equivalent aToken `amount` for assets with virtual accounting enabled
* - the equivalent `amount` of underlying for assets with virtual accounting disabled (e.g. GHO)
* @dev The deficit of a reserve can occur due to situations where borrowed assets are not repaid, leading to bad debt.
* @param asset The address of the underlying asset to cover the dificit.
* @param asset The address of the underlying asset to cover the deficit.
* @param amount The amount to be covered, in aToken or underlying on non-virtual accounted assets
*/
function eliminateReserveDeficit(address asset, uint256 amount) external;
Expand Down
4 changes: 2 additions & 2 deletions src/contracts/protocol/libraries/logic/LiquidationLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ library LiquidationLogic {
IAToken(reserveCache.aTokenAddress).handleRepayment(
msg.sender,
// In the context of GHO it's only relevant that the address has no debt.
// Passing the pool is fitting as it's handeling the repayment on behalf of the protocol.
// Passing the pool is fitting as it's handling the repayment on behalf of the protocol.
address(this),
balanceWriteOff
);
Expand Down Expand Up @@ -404,7 +404,7 @@ library LiquidationLogic {

// burn bad debt if necessary
// Each additional debt asset already adds around ~75k gas to the liquidation.
// 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.
// 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.
if (hasNoCollateralLeft && userConfig.isBorrowingAny()) {
_burnBadDebt(reservesData, reservesList, userConfig, params.reservesCount, params.user);
}
Expand Down

0 comments on commit 385287d

Please sign in to comment.