Get units for amount

Get units for amount on Aera

Base
Base

Reads onchain state

Reads how many units of an Aera vault a token amount converts to at the vault's current price. The price is the one the vault's calculator publishes and its solver fills requests at, so this is what a deposit request would receive before the request's small tolerance. Reach for it to size a deposit request or compare the vault's price against an alternative before committing.

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 Aera · 4

On other protocols · 3