aave/aave-ui

Borrow Power shows 100% when no assets are supplied as collateral

foodaka opened this issue · 4 comments

When you supply assets and disable collateral the borrowing power used shows 100%. Should we hide this information or show a different message in this scenario?

Screen Shot 2021-12-16 at 11 31 40 AM

Prerequisites

  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

Expected Behavior 🤔

Steps to Reproduce 🕹

Steps:

Your Environment 🌎

info
  browser: chrome
  os: win10
  vpn: yes

Console errors:

[error]: ...

@iamanastasia technically this is correct as 0 available means 100% used, in this special case it's just 0 of 0... might make sense to just not show the bar in that case or show a message saying no collateral? idk

@sakulstra But how it can be valid if user has Borrowed amount = 0? Should we add borrowed value check to the logic? If 0 then it's 0.

should be resolved and now show 0 %

done