Repository navigation
venue: V's window blocks carry the source's base fee (0.2.11) - #8
Merged
Merged
Conversation
…s from V's head match what HyperCore charges; version 0.2.11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
V is a fork whose idle blocks never carried a base fee: anvil's own fee decays 12.5% per empty block to a few wei (7 wei measured on staging) while HyperEVM's is about 0.1 gwei (0.11 to 0.13 gwei measured live). Clients that estimate gas from V's head undershoot what HyperCore charges. The frontend's Core to EVM bridge reserve is one: it reserved 0.000001 USDC where the sim charges 0.00138 USDC (0.00002 HYPE), so a recall's bridge leg was refused ("775.79 USDC is needed ... 775.788916 is free") and Prime's repay stalled at "Waiting for USDC on HyperEVM".
The follow loop now reads the window-end source block's base fee together with its timestamp and sets it on the window block it mines (
anvil_setNextBlockBaseFeePerGas), so V's head tracks the source's fee. A failed set is a warning and the block mines with anvil's own fee, as the timestamp set does.cargo test -p diorama-venueand clippy are clean. No unit test: the change is an RPC call on a running node.