Get share quote

Get share quote on ERC4626

Ethereum
Ethereum
Base
Base

Reads onchain state

Ready to run on Base

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.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

More plugs on Base

Earn yield on Base · 12 plugs

More on ERC4626 · 9

On other protocols · 3