fetch_updated_price_feed

Documentation for eth_defi.enzyme.price_feed.fetch_updated_price_feed function.

fetch_updated_price_feed(deployment, start_block, end_block, read_events)[source]

Iterate configured price feeds.

  • Deal dynamic price feed adds and deletes

  • Uses eth_getLogs ABI

  • Read both deposits and withdrawals in one go

  • Serial read

  • Slow over long block ranges

  • See ComptrollerLib.sol

Returns

Token address -> primitive data map

Parameters
Return type

Dict[eth_typing.evm.HexAddress, eth_defi.enzyme.price_feed.EnzymePriceFeed]