Get price per share
Get price per share

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