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