Skip to content

Commit

Permalink
fix: fix how collaterals of users are listed for isolated markets (#1493
Browse files Browse the repository at this point in the history
)
  • Loading branch information
therealemjy authored Sep 27, 2023
1 parent bc87691 commit 7860caf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ const formatToPools = ({
const userBorrowBalanceCents = userBorrowBalanceTokens.multipliedBy(tokenPriceCents);
const userWalletBalanceCents = userWalletBalanceTokens.multipliedBy(tokenPriceCents);

const isCollateralOfUser = userCollateralizedVTokenAddresses.includes(
vToken.address.toLowerCase(),
const isCollateralOfUser = !!userCollateralizedVTokenAddresses.some(address =>
areAddressesEqual(address, vToken.address),
);

const { supplyDistributions, borrowDistributions } = formatDistributions({
Expand Down

0 comments on commit 7860caf

Please sign in to comment.