0xcalldata

ERC-4626 function

deposit(uint256,address)

Deposits an exact underlying asset amount and mints ERC-4626 vault shares.

Selector
0x6e553f65
Mutability
nonpayable

Generate deposit calldata

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

uint256
address
calldata68 bytes
sel0x6e553f65
deposit(uint256,address)
0x0000000000000000000000000000000000000000000000000000000000000f4240
assets · uint256 =1000000
0x200000000000000000000000002222222222222222222222222222222222222222
receiver · address =0x22222222…222222

How deposit works

The caller supplies exactly assets; the vault determines how many shares are minted to receiver.

Parameters

NameSolidity typeMeaning
assetsuint256Exact underlying asset amount to deposit.
receiveraddressAddress that should receive the newly minted vault shares.

Return value

The number of vault shares minted.

uint256 shares

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

View all ERC-4626 functions →