Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change data feeds from default to fallback in
FeeQuoter
(#1430)
## 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