Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

fix(curve): Use virtual price in v2 Pools price calculation #592

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

pwele
Copy link
Contributor

@pwele pwele commented Jun 7, 2022

Description

Fix for this issue. For TriCrypto2 and other v2 Pools, we are using a liquidity based price calculation (liquidity / supply). The pool virtual price ignored. The right calculation should be virtual price * LP token price.

Checklist

How to test?

http://localhost:5001/apps/curve/tokens?groupIds%5B%5D=pool&network=ethereum

Copy link
Contributor

@immasandwich immasandwich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File name should be dashes i.e.: liquidity-and-virtual-price

@pwele pwele force-pushed the fix-curve-pool-price branch from 51c989f to 45ff191 Compare June 7, 2022 19:32
@pwele pwele force-pushed the fix-curve-pool-price branch from 45ff191 to bd64eb3 Compare June 7, 2022 19:34
@pwele pwele merged commit d9d5c04 into main Jun 7, 2022
@pwele pwele deleted the fix-curve-pool-price branch June 7, 2022 19:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants