trustline-inc/probity

System risks when `updateAdjustedPrice` is not called frequently

mrosendin opened this issue · 2 comments

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

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.

We can update the adjusted price in VaultManager to help