Get share quote
Get share quote

ERC4626 · Reads onchain state

Quotes how many ERC-4626 vault shares an asset amount is worth. The conversion picks the vault's convertToShares for the average rate, previewDeposit for the shares a deposit would mint, or previewWithdraw for the shares a withdrawal would burn, the latter two including the fees and rounding the vault applies. Reach for it to set a minimum before a deposit, to size a redeem that returns a target asset amount, or to compare vaults by how many shares an amount buys.

On other protocols · 1