-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
fab4b83
to
43e3f96
Compare
|
||
// 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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
what I'm missing here the most, @gorgos are tests for source part. Where are they? 🤔 |
…ve dependency mismatch issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.