


Reads onchain state
Reads how much underlying asset one whole share of an ERC-4626 vault is worth. The vault's decimals are read, one share is formed at that scale, and convertToAssets prices it in the asset's units. As the vault earns, the figure rises. Reach for it to track yield between runs by storing and comparing it, to value a share balance in asset terms, or to compare vaults on the same asset by rate.
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.
Earn yield on Base · 12 plugs
More on ERC4626 · 9










On other protocols · 2