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
SettleDepositorSettleRedeem. If a transaction emits both events, both logs are stored.TotalAssetsUpdatedalone is deliberately ignored because Lagoon can emit valuation-only updates.- Parameters
vault (eth_defi.erc_4626.vault_protocol.lagoon.vault.LagoonVault) – Lagoon vault adapter.
start_block (int) – Inclusive start block.
end_block (int) – Inclusive end block.
use_hypersync (Optional[bool]) – Whether to use Hypersync.
Noneauto-detects based onHYPERSYNC_API_KEY.chunk_size (int) – JSON-RPC
eth_getLogschunk size used by the fallback reader.
- Returns
Generic settlement rows sorted by block and transaction hash.
- Return type