shapeshift / web

ShapeShift Web
https://app.shapeshift.com
MIT License
157 stars 180 forks source link

Unlocked Collateral USD value seems off in Loan repayments #6922

Closed purelycrickets closed 1 month ago

purelycrickets commented 1 month ago

Overview

Currently in production, when a user attempts a loan repayment (regardless of the asset), the USD calculations of the unlocked collateral do not make sense in regards to the position. Perhaps there is some math miscalculations? If this is the correct math, perhaps there is product input that could sort/label all of the information in a way that makes more sense?

References and additional details

Screenshot 2024-05-15 at 9 24 48 AM Collateral balance is at .1 ETH, Debt balance $110.77

Screenshot 2024-05-15 at 9 19 45 AM Unlocked collateral .1 ETH = $110.92 (currently .1 ETH is $297)

IMG_3962-1 .1 BTC does not equal $3.6k (it is almost double that at current market prices)

Acceptance Criteria

If there is an error in the math calculations for displaying unlocked collateral value, we should correct it.

If the math is correct, something feels mislabeled or incorrect in how we are displaying the numbers to a user as we currently are showing an ~= sign on values that do not correlate.

Need By Date

No response

Screenshots/Mockups

No response

Estimated effort

No response