uniswap_v2.oracle

Documentation for eth_defi.uniswap_v2.oracle module.

Price oracle implementation for Uniswap v2 pools.

Functions

convert_sync_log_result_to_price_entry(log)

Create a price entry based on Sync eth_getLogs result.

update_live_price_feed(oracle, web3, ...[, ...])

Fetch live price of Uniswap v2 pool by listening to Sync event.

update_price_oracle_with_sync_events_single_thread(...)

Feed price oracle data for a given block range.

Classes

UniswapV2PriceOracleContext

Hold data about tokens in in the pool