0xcalldata

ERC-4626 function

convertToShares(uint256)

Estimates how many vault shares correspond to an asset amount in an ideal conversion.

Selector
0xc6e6f592
Mutability
view

Generate convertToShares calldata

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

uint256
calldata36 bytes
sel0xc6e6f592
convertToShares(uint256)
0x0000000000000000000000000000000000000000000000000000000000000f4240
assets · uint256 =1000000

How convertToShares works

This average-user conversion excludes fees, slippage, limits, and caller-specific conditions.

Parameters

NameSolidity typeMeaning
assetsuint256Underlying asset amount to convert.

Return value

Estimated vault shares, rounded down.

uint256 result

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

View all ERC-4626 functions →