fetch_lagoon_settlements

Documentation for eth_defi.erc_4626.vault_protocol.lagoon.settlement.fetch_lagoon_settlements function.

fetch_lagoon_settlements(vault, start_block, end_block, use_hypersync=None, chunk_size=50000)

Fetch Lagoon settlement transactions for a vault.

A settlement is any log that emits SettleDeposit or SettleRedeem. If a transaction emits both events, both logs are stored. TotalAssetsUpdated alone is deliberately ignored because Lagoon can emit valuation-only updates.

Parameters
Returns

Generic settlement rows sorted by block and transaction hash.

Return type

list[eth_defi.vault.settlement_data.VaultSettlement]