Get share price

Get share price on ERC7540

Base
Base

Reads onchain state

Reads how much of its asset one whole share of an asynchronous vault is worth. The vault's decimals are read, one share is formed at that scale, and convertToAssets prices it at the vault's current price, which moves as its manager updates it. Reach for it to gate a deposit or redemption request on the share price crossing a level, or to value a share balance in its asset.

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

On other protocols · 2