
Curve · Reads onchain state
Reads a Curve pool's virtual price: the value of one LP token in base units. The pool's get_virtual_price returns an 18-decimal figure that only grows as fees accrue, independent of the pool's coin balances. It is the standard LP redemption rate and the input to pricing LP as collateral. Reach for it to value an LP balance, to compute the yield earned between two runs by comparing against a stored value, or to require the price has not moved unexpectedly before a large exit.