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

Liquidity calculation fix #1165

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Liquidity calculation fix #1165

wants to merge 3 commits into from

Conversation

pizzaman1337
Copy link
Contributor

-Fixes liquidity calculation for stableswap wells. The new formulate calculates the USD value for the bean and non-bean liquidity independently, and adds them together for the final total USD liquidity.
-Adds tests to verify liquidity calculations are correct, as of block 267500000 on arbitrum
-Adds a view function to the BeanstalkPrice contract so that price data for an individual well can be retrieved, without having to get the data about all whitelist wells.
-Adds bean and non-bean USD valued liquidity to the BeanstalkPrice contract return data.
-Fixes a log in test_WhitelistingState which was left in a broken state
-Excludes reseed related tests in the foundry.toml, since they require fork setup to run (this allows all tests to pass in CI)

Copy link

netlify bot commented Oct 25, 2024

Deploy Preview for basin canceled.

Name Link
🔨 Latest commit 2e2079f
🔍 Latest deploy log https://app.netlify.com/sites/basin/deploys/671fa60dc701210008a2623b

Copy link

netlify bot commented Oct 25, 2024

Deploy Preview for beanstalk-ui canceled.

Name Link
🔨 Latest commit 2e2079f
🔍 Latest deploy log https://app.netlify.com/sites/beanstalk-ui/deploys/671fa60d931750000807cead

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.

1 participant