Fix: getVirtualPrice is incorrectly named
Alexangelj opened this issue · comments
Alexander commented
Description
The getVirtualPrice
function is a semi-standardized way to let frontends query the price of one unit of a liquidity share. The implementation in Portfolio returns the REPORTED SPOT PRICE of the asset
token. This could potentially mislead anyone who integrates Portfolio.
Clément Lakhal commented
Would simply renaming the function to getSpotPrice
work?
Clément Lakhal commented
Clément Lakhal commented
Closing this since the PR was merged.