fetch_deposit_permission
Documentation for eth_defi.erc_4626.scan.fetch_deposit_permission function.
- fetch_deposit_permission(vault)
Read a vault-wide KYC requirement for a scan record.
The report remains usable when a deployed adapter version lacks the protocol-specific view method or its node cannot answer a view call. It intentionally catches only concrete transport, ABI and contract-call failures: implementation bugs such as
AttributeErrorandTypeErrorpropagate to the row-level scanner guard instead of becomingunknown.- Parameters
vault (eth_defi.vault.base.VaultBase) – Protocol adapter whose vault-wide KYC requirement is queried.
- Returns
JSON-compatible enum representing a KYC requirement or an explicitly unknown status.
- Return type