interface
interface copied to clipboard
Health Factor is showing as a negative number in some cases in repay modal
Describe the bug In the repay modal, the future health factor number is calculated as a negative number in some cases, which is confusing in the UI.
Screenshots

Additional context There was a similar issue with the remaining debt value showing as negative. That was fixed by setting it to 0 if it was negative, so a similar fix might be needed here.
This issue probably exists in both the repay with wallet balance and the repay with collateral modals, so the fix might have to be applied in both spots (if that logic isn't shared already)