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
If the main feed starts reporting inflated prices and controller activates the reserve one, a user would be able fall back to the main one by adding a dummy withdrawal in a multicall.
A proper behaviour would be to return the active feed price for trusted feeds, and min of both feeds for untrusted feeds.
Also, when the feed is not trusted and reserve feed is not set, there is no need to spend gas for the main feed price computation because the result would be zero anyways.
The text was updated successfully, but these errors were encountered:
core-v3/contracts/core/PriceOracleV3.sol
Lines 127 to 136 in e16559a
If the main feed starts reporting inflated prices and controller activates the reserve one, a user would be able fall back to the main one by adding a dummy withdrawal in a multicall.
A proper behaviour would be to return the active feed price for trusted feeds, and min of both feeds for untrusted feeds.
Also, when the feed is not trusted and reserve feed is not set, there is no need to spend gas for the main feed price computation because the result would be zero anyways.
The text was updated successfully, but these errors were encountered: