0xcalldata

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

NameSolidity typeMeaning
assetsuint256underlying 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 result

Return data comes back after execution and is not included in the calldata above.

View all ERC-4626 functions →