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

Update stableswap solver to use new math and convert it to BigDec #1022

Merged
merged 7 commits into from
Nov 19, 2022

Conversation

AlpinYukseloglu
Copy link
Contributor

@AlpinYukseloglu AlpinYukseloglu commented Nov 19, 2022

This PR updates our stableswap solver to use the most up-to-date math described in our spec. It also converts all core logic to use our custom decimal type implemented in #1021 while leaving the highest level interfaces still on Dec

It also fixes the solver tests to so they ensure that k increases with any core operation (i.e. any slippage/rounding error is in the pool's favor) instead of passing trivially

@vercel
Copy link

vercel bot commented Nov 19, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
osmosis-frontend ❌ Failed (Inspect) Nov 19, 2022 at 7:14PM (UTC)
osmosis-frontend-legacy ❌ Failed (Inspect) Nov 19, 2022 at 7:14PM (UTC)
osmosis-frontend-v13-chain ❌ Failed (Inspect) Nov 19, 2022 at 7:14PM (UTC)
osmosis-frontier ❌ Failed (Inspect) Nov 19, 2022 at 7:14PM (UTC)
osmosis-testnet ❌ Failed (Inspect) Nov 19, 2022 at 7:14PM (UTC)

@jonator
Copy link
Member

jonator commented Nov 19, 2022

Would I just merge #1022 and not #1021 ?

@AlpinYukseloglu
Copy link
Contributor Author

Would I just merge #1022 and not #1021 ?

That works!

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