Get shares for assets

Get shares for assets on Avantis

Base
Base

Reads onchain state

Reads how many Avantis vault shares a stablecoin amount is worth at the vault's current rate. The vault's convertToShares applies no fee. Deposits pay none either, so it matches what a deposit of the amount mints, while an exit of the same value burns more shares once the collateral health fee is added. Reach for it to size a position in shares before depositing, or to express a stablecoin target as the share count a later redeem should burn.

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

On other protocols ยท 3