Skip to content

Commit 4e615b9

Browse files
committed
fix: usage as collateral improvements for migration
1 parent f57a343 commit 4e615b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/store/v3MigrationSelectors.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ export const selectV3UserSummaryAfterMigration = (store: RootStore, currentTimes
234234
liquidityIndexV3
235235
);
236236
combinedScaledDownABalance = scaledDownATokenBalance.plus(scaledDownBalanceV2).toString();
237-
usageAsCollateralEnabledOnUser = true;
237+
if (userReserveData.underlyingBalance == '0') {
238+
usageAsCollateralEnabledOnUser = supplyAsset.usageAsCollateralEnabledOnUser;
239+
}
238240
}
239241

240242
return {

0 commit comments

Comments
 (0)