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

Ignore nonsensical native prices #3106

Merged
merged 4 commits into from
Nov 5, 2024
Merged

Conversation

MartinquaXD
Copy link
Contributor

Description

Currently some solvers are reporting nonsensical results for native prices.

Changes

Changes the native price competition to ignore subnormal values (e.g. infinities, and undefined byte patterns) and non-positive values. This still leaves plenty of room for incorrect values but at least the obviously wrong values get eliminated by that.

How to test

added a unit test

@MartinquaXD MartinquaXD requested a review from a team as a code owner November 5, 2024 09:36
Copy link
Contributor

@m-lord-renkse m-lord-renkse left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Contributor

@sunce86 sunce86 left a comment

Choose a reason for hiding this comment

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

LGTM

@MartinquaXD MartinquaXD marked this pull request as draft November 5, 2024 09:43
@MartinquaXD MartinquaXD marked this pull request as ready for review November 5, 2024 10:16
@MartinquaXD MartinquaXD enabled auto-merge (squash) November 5, 2024 10:23
@MartinquaXD MartinquaXD merged commit db55b65 into main Nov 5, 2024
11 checks passed
@MartinquaXD MartinquaXD deleted the ignore-nonsensical-native-prices branch November 5, 2024 10:28
@github-actions github-actions bot locked and limited conversation to collaborators Nov 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants