-
Notifications
You must be signed in to change notification settings - Fork 281
feat: refactor pyth lazer protocol #2945
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
7 Skipped Deployments
|
@@ -7,7 +7,7 @@ license = "Apache-2.0" | |||
repository = "https://github.com/pyth-network/pyth-crosschain" | |||
|
|||
[dependencies] | |||
pyth-lazer-protocol = { version = "0.11.0", path = "../../sdk/rust/protocol" } | |||
pyth-lazer-protocol = { version = "0.12.0", path = "../../sdk/rust/protocol" } |
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.
NIT: 0.11.1?
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.
There is function name change.
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.
Thanks! Yeah, of course it's "with_same_exponent", not "with_same_mantissa".
Sadly I already bumped versions and published them after my PR, so you'll need to bump versions again. Patch bump is probably enough, since new versions haven't been used anywhere yet.
Summary
refactor pyth lazer protocol to be more readable and have consistent variable/function names for
value
,mantissa
, andexponent
that follows the following formulavalue = mantissa * 10^exponent
Rationale
The code was hard to understand
How has this been tested?
ran tests