Get vault capacity
Get vault capacity

ERC4626 · Reads onchain state

Reads the most an address can deposit, mint, withdraw, or redeem on an ERC-4626 vault right now. The chosen limit calls the vault's maxDeposit, maxMint, maxWithdraw, or maxRedeem for the wallet, honouring deposit caps, pauses, and the wallet's own share balance. Deposit and withdraw limits are in the asset's units; mint and redeem in shares. Reach for it to clamp an amount with a min before the write so the transaction lands instead of reverting at the cap, or to require the vault accepts at least a target size.

On other protocols · 1