-
Notifications
You must be signed in to change notification settings - Fork 208
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
refactor(run-protocol)!: remove interestRate
and liquidationRatio
from vault notifier
#5009
Conversation
interestRate
and liquidationRatio
from vault notifier"interestRate
and liquidationRatio
from vault notifier
@@ -969,11 +969,6 @@ test('interest on multiple vaults', async t => { | |||
), | |||
AmountMath.make(runBrand, 3200n + bobAddedDebt), | |||
); | |||
t.deepEqual(bobUpdate.value.interestRate, rates.interestRate); |
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.
Are these getting tested in the vaultManager's notifier?
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.
No, nothing in agoric-sdk is reading these removed values. I'll start some new tests.
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 think Dean is asking a different question. These values are now superfluous in vault.js
because all the relevant work is done in vaultManager.js
. I checked, and the values are visible to the UI from the versions that would remain in vaultManager.js
. The question is whether there are tests corresponding to the one removed here that includes verifying the new state of the values in vaultManager
's updates.
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.
The question is whether there are tests corresponding to the one removed here that includes verifying the new state of the values in vaultManager's updates.
Yep, that was my understanding. The answer to that question is "no" and that's why I'm going to "start some new tests".
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.
The question is whether there are tests corresponding to the one removed here that includes verifying the new state of the values in vaultManager's updates.
I said "no" but that was wrong. Here the assetNotifier from vaultManager is read: https://github.com/Agoric/agoric-sdk/blame/540978c997e30c25905ea1fb837ae701db6f3536/packages/run-protocol/test/swingsetTests/governance/vat-alice.js#L47-L63
The UI uses both of these currently.
Sounds good. How do we show the liquidation ratio now? I suppose we can get that from |
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.
LGTM
The question about whether the corresponding update is verified in vaultManager should be answered here, but if the answer is no, the fix can come later. (so I guess I'm asking for either a fix here or an issue #.)
@@ -969,11 +969,6 @@ test('interest on multiple vaults', async t => { | |||
), | |||
AmountMath.make(runBrand, 3200n + bobAddedDebt), | |||
); | |||
t.deepEqual(bobUpdate.value.interestRate, rates.interestRate); |
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 think Dean is asking a different question. These values are now superfluous in vault.js
because all the relevant work is done in vaultManager.js
. I checked, and the values are visible to the UI from the versions that would remain in vaultManager.js
. The question is whether there are tests corresponding to the one removed here that includes verifying the new state of the values in vaultManager
's updates.
Next steps:
|
f9bf3b4
to
be11fa8
Compare
closes: #4685
Description
Neither were used anywhere.
When needed,
interestRate
is now onAssetNotifier
.Security Considerations
--
Documentation Considerations
Breaking change, denoted in conventionalcommit syntax.
Testing Considerations