
ERC4626 · Reads onchain state
Quotes how much underlying asset an ERC-4626 share amount is worth. The conversion picks the vault's convertToAssets for the average rate, previewMint for the assets a mint would cost, or previewRedeem for the assets a redemption would return, the latter two including the fees and rounding the vault applies. Reach for it to value a share balance, to set a floor before a redeem, or to compute how much asset a mint will pull before approving it.
On other protocols · 1