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

feat: add reverse quantity estimation query and event #6

Merged
merged 46 commits into from
Jul 6, 2023

Conversation

gorgos
Copy link
Member

@gorgos gorgos commented Jun 27, 2023

No description provided.

@gorgos gorgos requested a review from Tofel June 27, 2023 18:48
@gorgos gorgos temporarily deployed to github-pages June 27, 2023 18:48 — with GitHub Actions Inactive
@gorgos gorgos force-pushed the f/reverse-estimate-and-swap-event branch from fab4b83 to 43e3f96 Compare June 27, 2023 18:49
@gorgos gorgos temporarily deployed to github-pages June 27, 2023 18:49 — with GitHub Actions Inactive
contracts/swap/Cargo.toml Outdated Show resolved Hide resolved
vinhphuctadang
vinhphuctadang previously approved these changes Jun 28, 2023

// need to remove protobuf scale factor to get real values
let average_price = FPDecimal::from_str(&trade_data.price)? / dec_scale_factor;
let quantity = FPDecimal::from_str(&trade_data.quantity)? / dec_scale_factor;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we could use proto_to_dec function?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

damn its not yet in cw-injective though

@Tofel
Copy link
Contributor

Tofel commented Jun 28, 2023

what I'm missing here the most, @gorgos are tests for source part. Where are they? 🤔

@gorgos gorgos temporarily deployed to github-pages June 28, 2023 11:39 — with GitHub Actions Inactive
@Tofel Tofel temporarily deployed to github-pages July 6, 2023 09:36 — with GitHub Actions Inactive
@Tofel Tofel temporarily deployed to github-pages July 6, 2023 09:41 — with GitHub Actions Inactive
@Tofel Tofel temporarily deployed to github-pages July 6, 2023 10:13 — with GitHub Actions Inactive
Copy link
Member Author

@gorgos gorgos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gorgos gorgos merged commit c67f2a4 into master Jul 6, 2023
@gorgos gorgos deleted the f/reverse-estimate-and-swap-event branch August 18, 2023 10:56
This was referenced Mar 22, 2024
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.

4 participants