0xcalldata

ERC-4626 function

previewMint(uint256)

Previews the assets required for an ERC-4626 mint using current on-chain conditions.

Selector
0xb3d7f6b9
Mutability
view

Generate previewMint calldata

Edit the example inputs to rebuild the bytes instantly in your browser. Nothing is sent and no transaction is submitted.

uint256
calldata36 bytes
sel0xb3d7f6b9
previewMint(uint256)
0x0000000000000000000000000000000000000000000000000000000000000f4240
shares · uint256 =1000000

How previewMint works

This view includes the fees associated with mint but deliberately ignores account and vault limits exposed by the matching max function.

Parameters

NameSolidity typeMeaning
sharesuint256vault shares used for the preview.

Return value

An estimate of assets required; it should be no fewer than the assets a mint should require 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 →