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: change monitor gas price logic calculation #385

Merged
merged 5 commits into from
Oct 3, 2024

Conversation

jhkimqd
Copy link
Contributor

@jhkimqd jhkimqd commented Oct 2, 2024

Description

This PR changes how the gas price logic is calculated in monitor. Previously, there were some "disconnects" between the Current block's Gas Price values, and the Gas Price chart:
image

This PR introduces a refactor to derive the Current block's Gas Price values directly from the last element (latest block) of the Gas Price chart to align both gas price monitors.

Testing

image

Signed-off-by: Ji Hwan <jkim@polygon.technology>
cmd/monitor/monitor.go Outdated Show resolved Hide resolved
@jhkimqd jhkimqd enabled auto-merge October 2, 2024 14:23
@jhkimqd jhkimqd requested a review from leovct October 2, 2024 14:23
@jhkimqd jhkimqd merged commit fcb54d8 into 0xPolygon:main Oct 3, 2024
5 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.

2 participants