decentralizedlabs / uniswap-v3-price-feed

Decentralized price feed based on Uniswap V3 TWAP oracles
MIT License
22 stars 3 forks source link

Consider adding liquidity threshold #4

Closed jjranalli closed 2 years ago

jjranalli commented 2 years ago

Currently any pool with TWAL > 0 is considered valid during updatePool. This can impact reliability for quotes of new or poorly supported currency pairs.

Might be worth introducing a LIQUIDITY_THRESHOLD to filter low-liquidity pools during updatePool. Open discussion to explore: