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
{{ message }}
Repository navigation
Commit a18dbbf
Browse filesBrowse the repository at this point in the historyBrowse files
fix: giving collateral should not change totalDebt (#9873)
closes: #XXXX
refs: #XXXX
## Description
Updating `totalDebt` for 1 `vault` was doing `totalDebt += vault.getCurrentDebt() - old` where current debt includes compounded interest but old did not.
### Security Considerations
This (in combination with another PR to reset totalDebt to the sum over all vaults) should address a confusion risk for metrics clients.
### Scaling Considerations
The separate work to reset totalDebt to the sum over all vaults may have some, but I don't see any here.
### Testing Considerations
A straightforward unit test is included.
### Upgrade Considerations
This change takes effect with the next upgrade to the `vaultFactory`.
### Documentation Considerations
As part of the governance decision to upgrade `vaultFactory`, metrics consumers should be notified of this fix.
0 commit comments