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

fix preferential gauges #95

Merged
merged 1 commit into from
Feb 19, 2024
Merged

fix preferential gauges #95

merged 1 commit into from
Feb 19, 2024

Conversation

mendesfabio
Copy link
Member

@mendesfabio mendesfabio commented Feb 19, 2024

Fixes #94

When we first introduced the preferential gauge concept, the only way for a gauge to be preferential on L1 was by being added to the GaugeController. This changed with the EventEmitter and now it's possible that a gauge added to the GaugeController is already the preferential one.

This PR fixes this edge-case where a gauge was the preferential but had the isPreferentialGauge attribute set to false -- handleNewGauge used to always set that param to false for the preferential gauge before the event was emitted, but in this case the old and new preferential gauges are the same.

@mendesfabio mendesfabio merged commit 455babc into staging Feb 19, 2024
2 checks passed
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