Get price per share
Get price per share

Vesper · Reads onchain state

Reads a Vesper pool's price per share: how much of the pool's token one whole share redeems for. The pool divides everything it holds and has lent to its strategies by its share supply, so the figure rises each time a strategy reports an earning and falls if one reports a loss. Reach for it to track a pool's yield between runs by storing and comparing it, to value a share balance in the token, or to exit when the rate crosses a mark.