Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subgraph - Bean: Fix volume calculation for single sided removals #686

Merged
merged 4 commits into from
Nov 13, 2023

Conversation

cujowolf
Copy link
Contributor

Update the volume calculation to use either the bean amount * current well price or current price in bean * current well price for single sided liquidity removals.

Previously any changes in liquidity USD value due to ETH movement would be included in volume if there had not been any activity prior to calculating the volume on the removal.

Copy link

netlify bot commented Nov 10, 2023

Deploy Preview for basin canceled.

Name Link
🔨 Latest commit 821f8ff
🔍 Latest deploy log https://app.netlify.com/sites/basin/deploys/65528757e354930008e432cb

Copy link

netlify bot commented Nov 10, 2023

Deploy Preview for beanstalk-ui canceled.

Name Link
🔨 Latest commit 821f8ff
🔍 Latest deploy log https://app.netlify.com/sites/beanstalk-ui/deploys/65528757ed6efc000842f732

@hellofromguy hellofromguy merged commit e15b954 into master Nov 13, 2023
9 checks passed
@hellofromguy hellofromguy deleted the subgraph-bean-negative-volume branch November 13, 2023 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants