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
deployment (eth_defi.enzyme.deployment.EnzymeDeployment) –
start_block (int) –
end_block (int) –
read_events (eth_defi.event_reader.reader.Web3EventReader) –
- Return type
Dict[eth_typing.evm.HexAddress, eth_defi.enzyme.price_feed.EnzymePriceFeed]