Skip to content

Commit

Permalink
Change data feeds from default to fallback in FeeQuoter (#1430)
Browse files Browse the repository at this point in the history
## Motivation
Due to the gas cost of reading from data feeds, it is unlikely to be the
default option, we can therefore optimize the `getTokenPrice()` function
by defaulting to state instead of data feeds.

## Solution
Default to state reported prices and only fall back on data feed
external call if the reported prices are stale.
  • Loading branch information
RayXpub authored Sep 12, 2024
1 parent 49fde28 commit 7ba1e75
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 134 deletions.
Loading

0 comments on commit 7ba1e75

Please sign in to comment.