Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit 84b900c

Browse files
committed
fix: Reformat code
1 parent ab07a4e commit 84b900c

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

contracts/protocol/libraries/configuration/ReserveConfiguration.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ library ReserveConfiguration {
4242
uint256 internal constant BORROWABLE_IN_ISOLATION_START_BIT_POSITION = 61;
4343
uint256 internal constant SILOED_BORROWING_START_BIT_POSITION = 62;
4444
uint256 internal constant FLASHLOAN_ENABLED_START_BIT_POSITION = 63;
45-
4645
uint256 internal constant RESERVE_FACTOR_START_BIT_POSITION = 64;
4746
uint256 internal constant BORROW_CAP_START_BIT_POSITION = 80;
4847
uint256 internal constant SUPPLY_CAP_START_BIT_POSITION = 116;

contracts/protocol/libraries/logic/LiquidationLogic.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@ library LiquidationLogic {
199199
// Transfer fee to treasury if it is non-zero
200200
if (vars.liquidationProtocolFeeAmount != 0) {
201201
uint256 liquidityIndex = collateralReserve.getNormalizedIncome();
202-
uint256 scaledDownLiquidationProtocolFee = vars.liquidationProtocolFeeAmount.rayDiv(liquidityIndex);
202+
uint256 scaledDownLiquidationProtocolFee = vars.liquidationProtocolFeeAmount.rayDiv(
203+
liquidityIndex
204+
);
203205
uint256 scaledDownUserBalance = vars.collateralAToken.scaledBalanceOf(params.user);
204206
// To avoid trying to send more aTokens than available on balance, due to 1 wei imprecision
205207
if (scaledDownLiquidationProtocolFee > scaledDownUserBalance) {
@@ -211,7 +213,7 @@ library LiquidationLogic {
211213
vars.liquidationProtocolFeeAmount
212214
);
213215
}
214-
216+
215217
// Transfers the debt asset being repaid to the aToken, where the liquidity is kept
216218
IERC20(params.debtAsset).safeTransferFrom(
217219
msg.sender,

contracts/protocol/libraries/logic/ReserveLogic.sol

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,8 @@ library ReserveLogic {
350350
reserveCache.reserveLastUpdateTimestamp = reserve.lastUpdateTimestamp;
351351

352352
reserveCache.currScaledVariableDebt = reserveCache.nextScaledVariableDebt = IVariableDebtToken(
353-
reserveCache
354-
.variableDebtTokenAddress
355-
)
356-
.scaledTotalSupply();
353+
reserveCache.variableDebtTokenAddress
354+
).scaledTotalSupply();
357355

358356
(
359357
reserveCache.currPrincipalStableDebt,

test-suites/stable-debt-token-events.spec.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,6 @@ makeSuite('StableDebtToken: Events', (testEnv: TestEnv) => {
215215
aliceBalanceBefore.add(balances.balance[alice.address]),
216216
2
217217
);
218-
log(
219-
'check',
220-
aliceBalanceAfter.toString(),
221-
aliceBalanceBefore.add(balances.balance[alice.address]).toString()
222-
);
223218
};
224219

225220
it('Alice borrows 100 DAI, Bob borrows 100 DAI, Alice borrows 50 DAI, repays 150 DAI and repays 100 DAI on behalf of Bob, borrows 10 DAI more (without index change)', async () => {

0 commit comments

Comments
 (0)