You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The calc for implied rate doesn't currently account for backpaid interest. It's based on the full amount of basePaid, when we should be working with basePaid - backpaidInterest, since the user gets it back when closing the short, so it's not really a "cost":
…cost basis (#120)
# Resolved Issues
#119 Implied rate (Short ROI) is negative in some cases where fixed >
variable
# Description
This excludes the short's backpaid interest from implied_rate calc
The calc for implied rate doesn't currently account for backpaid interest. It's based on the full amount of basePaid, when we should be working with
basePaid - backpaidInterest
, since the user gets it back when closing the short, so it's not really a "cost":backpaidInterest = bondAmount * (vaultSharePrice/openVaultSharePrice) - bondAmount
The text was updated successfully, but these errors were encountered: