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

Bug: fix spot price calculation of stableswap #1009

Open
dmoka opened this issue Jan 30, 2025 · 0 comments
Open

Bug: fix spot price calculation of stableswap #1009

dmoka opened this issue Jan 30, 2025 · 0 comments

Comments

@dmoka
Copy link
Contributor

dmoka commented Jan 30, 2025

Stableswap spot price calculation returns the result in reserved, so we should inverse it to be consistent with other APIs.

pub fn calculate_spot_price(

Before this is done, we inverse it in the wasm as temporary fix. So once this issue fixed, reverse the temp fix in the wasm bindgen.

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

No branches or pull requests

1 participant