analyse_vault_flow_in_settlement
Documentation for eth_defi.erc_4626.vault_protocol.lagoon.analysis.analyse_vault_flow_in_settlement function.
- analyse_vault_flow_in_settlement(vault, tx_hash)
Extract deposit and redeem events from a settlement transaction.
Analyse vault asset flow based on the settlement tx logs in the receipt
May need to call vault contract if no deposist or redeem events were prevent. This needs an archive node for historical lookback.
- Raises
AssertionError – If the Lagoon settlement transaction reverted.
- Parameters
vault (eth_defi.erc_4626.vault_protocol.lagoon.vault.LagoonVault) –
tx_hash (hexbytes.main.HexBytes) –
- Return type
eth_defi.erc_4626.vault_protocol.lagoon.analysis.LagoonSettlementEvent