Skip to content

fix: conversion of Ekubo x128 to Wad #604

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

Merged
merged 3 commits into from
Nov 6, 2024
Merged

fix: conversion of Ekubo x128 to Wad #604

merged 3 commits into from
Nov 6, 2024

Conversation

milancermak
Copy link
Contributor

Ekubo oracle price gives us already squared price (unlike the Core contract), so there's no need to do extra math. PR updates the way how we convert an x128 value to Wad - we just need to scale it up and div by 2^128.

@milancermak milancermak requested a review from tserg November 5, 2024 20:02
Copy link
Collaborator

@tserg tserg left a comment

Choose a reason for hiding this comment

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

Looks good, I left some suggestions. There is a failing test in Receptor which needs to be updated as well.

@milancermak
Copy link
Contributor Author

Addressed comments.

Should be mergeable if CI goes green.

@tserg tserg merged commit d17f50b into main Nov 6, 2024
1 check passed
@tserg tserg deleted the fix/receptor branch November 6, 2024 13:34
@tserg tserg mentioned this pull request Nov 6, 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.

2 participants