Get price per share

Get price per share on YO

Base
Base

Reads onchain state

Reads the asset one whole share of a YO vault converts to, at 18 decimals. The vault prices every deposit and redemption from its oracle, so this is the exact rate both run at until the next price update. Reach for it to gate a deposit or redemption on the share price crossing a level, or to track the yield a position has accrued.

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