fetch_max_deposit_guidance
Documentation for eth_defi.erc_4626.deposit_probe.fetch_max_deposit_guidance function.
- fetch_max_deposit_guidance(vault)
Read the ERC-4626
maxDepositresponse for operator guidance only.ERC-4626 permits conservative underestimates. In particular, Morpho V2 always returns zero because its external gates are address-dependent. The guarded deposit transaction, rather than this advisory call, decides whether the vault accepts a
SimpleVaultV0deposit.- Parameters
vault (eth_defi.erc_4626.vault.ERC4626Vault) – Constructed ERC-4626 reader whose standard contract accessor is queried.
- Returns
Raw
maxDeposit(address(0))result as text, or a concise unavailable marker when the optional accessor cannot be read.- Return type