aave / aave-ui

[DEPRECATED] An open source interface for the decentralized liquidity protocol Aave

Home Page:https://classic.aave.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

foodaka opened this issue · 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]: ...
commented

@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.

commented

should be resolved and now show 0 %

done