Gearbox-protocol / core-v3

Other
28 stars 4 forks source link

fix: don't skip price check when adding updatable feeds #253

Closed lekhovitsky closed 1 month ago

lekhovitsky commented 1 month ago

Fixes https://github.com/spearbit-audits/review-gearbox/issues/21

StErMi commented 1 month ago

With the current implementation now PriceOracleV3 executes the _checkAnswer internal function to validate the oracle's answer even if the priceFeed is "updatable".

This logic is performed for both the primary and reserve token's priceFeed