ERC-4626 function
previewWithdraw(uint256)
Previews the shares burned for an ERC-4626 withdraw using current on-chain conditions.
- Selector
- 0x0a28a477
- Mutability
- view
Generate previewWithdraw calldata
Edit the example inputs to rebuild the bytes instantly in your browser. Nothing is sent and no transaction is submitted.
uint256
calldata36 bytes
sel0x0a28a477
previewWithdraw(uint256)
0x0000000000000000000000000000000000000000000000000000000000000f4240
assets · uint256 =1000000
How previewWithdraw works
This view includes the fees associated with withdraw but deliberately ignores account and vault limits exposed by the matching max function.
Parameters
| Name | Solidity type | Meaning |
|---|---|---|
| assets | uint256 | underlying assets used for the preview. |
Return value
An estimate of shares burned; it should be no fewer than the shares a withdrawal should burn in the same transaction.
uint256 resultReturn data comes back after execution and is not included in the calldata above.