Skip to content

vault:mint

Mint an exact amount of ERC-4626 vault shares, approving the vault for the required assets (previewMint, which rounds up) automatically when needed. For ERC-7540 asynchronous vaults use vault:request-deposit instead.

vault:mint <shares> <of> <vault>
NameTypeDescription
sharesnumberAmount of vault shares to mint, in base units (wei)
ofcommandKeyword of
vaultaddressERC-4626 vault address
NameTypeDescription
--toaddressReceiver of the minted shares (defaults to the connected account)
--no-approveboolSkip the automatic allowance check and approve action
# Mint exactly 100 sDAI shares, approving previewMint worth of WXDAI
vault:mint 100e18 of 0xaf204776c7245bF4147c2612BF6e5972Ee483701