prepare_probe_deposit_request
Documentation for eth_defi.erc_4626.deposit_probe.prepare_probe_deposit_request function.
- prepare_probe_deposit_request(manager, owner, raw_amount, capability_data, max_deposit_guidance)
Prepare one manager request and convert expected refusal to probe data.
Protocol managers use
VaultFlowErrorfor known pre-broadcast denials such as a whitelist rejection. These are per-vault probe results, not pipeline failures, and must not abort the remaining candidate sweep.- Parameters
manager (eth_defi.vault.deposit_redeem.VaultDepositManager) – Protocol deposit manager selected for the candidate.
owner (eth_typing.evm.HexAddress) – Probe vault that will own and receive the deposit.
raw_amount (int) – Deposit amount in denomination-token raw units.
capability_data (dict[str, object]) – Scanner capability metadata copied to the probe result.
max_deposit_guidance (str) – Informational ERC-4626 capacity response.
- Returns
Prepared request and no failure, or no request and a persistent
flow_unavailable/adapter_errorresult.- Return type
tuple[eth_defi.vault.deposit_redeem.DepositRequest | None, dict[str, object] | None]