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

Bean Subgraph - Split Cross Entity #642

Merged
merged 2 commits into from
Sep 16, 2023
Merged

Conversation

cujowolf
Copy link
Contributor

Previously there was only one pool to track peg crosses, and the overall Bean peg was tied to that one pool. With the introduction of the Bean:ETH well, the overall Bean price can cross peg independently of an individual pool have a cross at the same time.

Schema changes:

  • Cross entity removed and replaced by the following two entities
  • BeanCross entity added to track the overall Bean peg cross. This uses the liquidity weighted price returned by the current price contract.
  • PoolCross entity added to track individual peg crosses within a pool. Each pool has their own incremental counter for the number crosses observed.

@netlify
Copy link

netlify bot commented Sep 15, 2023

Deploy Preview for basin canceled.

Name Link
🔨 Latest commit 0d231cd
🔍 Latest deploy log https://app.netlify.com/sites/basin/deploys/65051317d40fb200085c0abd

@netlify
Copy link

netlify bot commented Sep 15, 2023

Deploy Preview for beanstalk-ui canceled.

Name Link
🔨 Latest commit 0d231cd
🔍 Latest deploy log https://app.netlify.com/sites/beanstalk-ui/deploys/650513183ef2b30008b6adb1

@hellofromguy hellofromguy merged commit 05f7b18 into master Sep 16, 2023
9 checks passed
@hellofromguy hellofromguy deleted the subgraph-bean-overall-cross branch September 16, 2023 04:16
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