-
Notifications
You must be signed in to change notification settings - Fork 222
SIP-150: fix issuance debt bug #547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIP-150: fix issuance debt bug #547
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/synthetixio/sips/FbrGKD1bakwE6cPFfW6avmvTgx4j |
|
||
### Overview | ||
|
||
The `DebtCache._updateCachedSynthDebtsWithRates` function is called during issuance to update the cached debt with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add a bit more context here on where this change was introduced and why - "in SIP-136, the debt calculation was amended to correctly exclude debt from total system debt. This included an update to the cached debt recalculation in _updateCachedSynthDebtsWithRates
, however the logic implemented was broken. It intended to subtract the excluded debt from total cached debt, however it in fact subtracted the excluded debt from the delta cached debt."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just please add Liam's suggestion. 🙏
No description provided.