refactor(gas): adjust FUEL_DENOM_RATE from 1000 to 20 based on benchmarks #206
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.
Summary
Adds
fluent-testnetfeature flag to maintain backward compatibility with existing testnet deployment while preparing infrastructure for correct FUEL_DENOM_RATE based on benchmarks.Changes
fluent-testnetfeature flag across entire workspace (all crates, contracts, examples)FUEL_DENOM_RATEincrates/types/src/lib.rs:fluent-testnetfeature: 1000 (legacy testnet rate)build.rsto propagate feature flag when compiling contractscfg-ifworkspace dependency for future conditional logic improvementsv82-patchedbranchRationale
Original 1000:1 ratio was a placeholder. Benchmarks show WASM instructions are approximately 20x faster than EVM instructions. However, existing testnet deployment uses rate 1000 and must remain stable. Feature flag enables:
Usage
Testing
fluent-testnetfeature enabled (default in e2e)Migration Path
--features fluent-testnetNotes