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

refactor(v3-sdk): simplify midPrice in Route entity #215

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shuhuiluo
Copy link
Contributor

Description

Simplify the midPrice calculation by removing complex logic and utilizing priceOf method directly. This change improves code readability and maintainability, reducing potential points of failure.

How Has This Been Tested?

Unit tests.

Are there any breaking changes?

No.

Same as #180 but for V3.

Simplify the `midPrice` calculation by removing complex logic and utilizing `priceOf` method directly. This change improves code readability and maintainability, reducing potential points of failure.
@shuhuiluo shuhuiluo requested review from jsy1218 and a team as code owners December 10, 2024 03:36
@shuhuiluo
Copy link
Contributor Author

@ewilz Please take a look. Thank you.

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.

1 participant