Skip to content

[Hotfix] Fix computation period of the fee for billing #34

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 1 commit into from
Sep 5, 2024

Conversation

fleupold
Copy link
Contributor

@fleupold fleupold commented Sep 4, 2024

The billing query ran today with the incorrect per block fee. The reason is that we used the September fee (computed over August) as a basis. However, today's billing period started in August so the August fee (computed over July) should have been used.

At the same time we need to post the new period's fee (since we are in September computed over August).

This PR fixes this by differentiating between the billingFeeComputationPeriod (based on current day - 1 week) and the new feeComputationPeriod

Test Plan

Ran on sepolia: https://sepolia.etherscan.io/tx/0x0acfd563f283befb5376ae545689801d20c246a4a7b4768dfb583dd14211ff33#eventlog

@fleupold fleupold requested a review from cowanator September 4, 2024 14:38
@fleupold fleupold merged commit 6990d64 into main Sep 5, 2024
1 check passed
@fleupold fleupold deleted the fix_billing_fee_computation_period branch September 5, 2024 08:23
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