Get virtual price

Get virtual price on Curve

Ethereum
Ethereum
Base
Base

Reads onchain state

Ready to run on Base

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.

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 plugs on Base

Provide liquidity on Base · 6 plugs

More on Curve · 11