Calculate mintage

Calculate mintage on Vesper

Base
Base

Reads onchain state

Reads how many shares a Vesper pool would mint for a deposit of an exact token amount. The pool takes its strategies' external deposit fee off the amount and divides the rest by its price per share, the same figure its deposit mints. Reach for it to size a deposit before making it, to set a floor on the shares a following deposit must mint, or to compare what the same amount buys across pools.

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 Vesper · 5