primitivefinance / portfolio

Portfolio is an automated market making protocol for implementing custom strategies at the lowest cost possible.

Home Page:https://www.primitive.xyz/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix: getVirtualPrice is incorrectly named

Alexangelj opened this issue · comments

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.

Would simply renaming the function to getSpotPrice work?

Closing this since the PR was merged.