ERC-4626 function
previewDeposit(uint256)
Previews the shares minted for an ERC-4626 deposit using current on-chain conditions.
- Selector
- 0xef8b30f7
- Mutability
- view
Generate previewDeposit calldata
Edit the example inputs to rebuild the bytes instantly in your browser. Nothing is sent and no transaction is submitted.
uint256
calldata36 bytes
sel0xef8b30f7
previewDeposit(uint256)
0x0000000000000000000000000000000000000000000000000000000000000f4240
assets · uint256 =1000000
How previewDeposit works
This view includes the fees associated with deposit 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 minted; it should be no more than the shares a deposit should mint in the same transaction.
uint256 resultReturn data comes back after execution and is not included in the calldata above.