Skip to content

Commit e1f3312

Browse files
mgrabinaMartin Grabina
andauthored
fix: allow withdrawals having an ltv=0 asset if total borrows are zero (#2393)
Co-authored-by: Martin Grabina <[email protected]>
1 parent 1ddf6cb commit e1f3312

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/hooks/useZeroLTVBlockingWithdraw.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export const useZeroLTVBlockingWithdraw = () => {
1010
return [];
1111
}
1212

13+
if (userSummary.totalBorrowsUSD === '0') {
14+
return [];
15+
}
16+
1317
const zeroLTVBlockingWithdraw: string[] = [];
1418
userSummary.userReservesData.forEach((userReserve) => {
1519
if (

0 commit comments

Comments
 (0)