Preview deposit

Preview deposit on Avantis

Base
Base

Reads onchain state

Reads how many Avantis vault shares a deposit of a stablecoin amount would mint right now. The vault's previewDeposit is the exact quote its deposit honours in the same block, rounding down, with any deposit fee taken off first; the vault currently charges none. Reach for it to set a minimum share count before depositing, or to compare the shares a deposit buys against another venue's quote.

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 on Avantis · 37