An ERC-4626 vault can quote the shares needed for a withdrawal while allowing the holder to withdraw nothing at that moment. The standard separates previewWithdraw, which estimates the share cost, from maxWithdraw, which reports the owner’s current asset limit. A working preview is therefore compatible with a paused exit.
| What you need to know |
|---|
| previewWithdraw estimates the shares needed for a requested asset amount. |
| The preview must include withdrawal fees but ignore withdrawal limits. |
| maxWithdraw reports an owner-specific asset limit and must include global restrictions. |
| A temporarily disabled withdrawal route must report a zero maximum. |
The distinction is explicit in the ERC-4626 specification. A compliant preview treats the requested withdrawal as acceptable when calculating its share cost, even if the owner lacks enough shares or a vault limit prevents execution. Developers should include withdrawal fees in that calculation. This makes the preview useful for estimating cost, while leaving permission and availability as separate questions.
Imagine a hypothetical vault returning 102 shares from previewWithdraw for a request to receive 100 asset units. In the same observed state, maxWithdraw for that owner returns zero because withdrawals are disabled. The preview has supplied a share-cost estimate; it has not offered an executable 100-unit exit. The standard requires the actual withdraw call to revert when the full requested amount cannot be withdrawn. These numbers illustrate the interface rules, rather than an observed problem at a named provider.
Compare the limit in assets with the requested assets
The units matter. maxWithdraw returns underlying asset units, while previewWithdraw returns vault shares. Comparing the hypothetical result of 102 shares directly with a maximum of 100 asset units would compare different quantities. For that request, compare the 100 requested asset units with maxWithdraw first; use the preview to assess the shares the operation would consume.
The Ethereum developer explanation also distinguishes withdraw from redeem. With withdraw, you specify the asset amount; with redeem, you specify shares. The matching limit for the second route is maxRedeem, measured in shares. Changing function names without checking the corresponding units and restrictions does not establish that an exit will work.
Read the values for the same vault, owner and chain state. A later transaction can encounter different conditions. The specification permits a maximum to underestimate what the vault could accept, and a preview can still fail for reasons other than the excluded vault limits. Neither result is an assurance about the provider’s solvency, contract security or future liquidity.
Our report on cross-chain vault adapters examines a separate access layer: reaching the vault from another network. For the withdrawal question here, the useful distinction remains local to the vault interface: a cost estimate and an owner’s current withdrawal limit answer different questions.






