System risks when `updateAdjustedPrice` is not called frequently
mrosendin opened this issue · 2 comments
mrosendin commented
Is it possible for VaultEngine Asset.adjustedPrice
to be out of sync with PriceFeed.getPrice()
?
I think I just experienced it with the UI when calculating the asset liquidation ratio but I'm not sure
mrosendin commented
Shine Lee 9:15 AM
Hmm yes, asset.adjustedprice is not up to date unless u update it so it's always gonna lag behind
I was running the priceUpdater
script so updateAdjustedPrice
was being called - I suppose there is a possibility that the call failed, leading to this issue...
This is being catalogued as a system risk. What happens if they are out of sync? There are adverse consequences.
mrosendin commented
We can update the adjusted price in VaultManager
to help