Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

eupgrade: lowering the base fee #604

Merged
merged 15 commits into from
Jul 29, 2024
Merged

eupgrade: lowering the base fee #604

merged 15 commits into from
Jul 29, 2024

Conversation

darioush
Copy link
Collaborator

@darioush darioush commented Jul 18, 2024

Why this should be merged

The EUpgrade is considering lowering the base fee: #602

How this works

  • Switches fee calculation based on EUpgrade activated or not
  • Modifies min fee on txpool at time of upgrade

How this was tested

CI

@darioush darioush closed this Jul 18, 2024
@darioush darioush reopened this Jul 18, 2024
@darioush darioush closed this Jul 18, 2024
@darioush darioush changed the title eupgrade: base definitions eupgrade: lowering the base fee Jul 18, 2024
@darioush darioush reopened this Jul 18, 2024
darioush added 2 commits July 18, 2024 15:02
Signed-off-by: Darioush Jalali <darioush.jalali@avalabs.org>
@darioush darioush requested a review from ARR4N July 18, 2024 22:33
Base automatically changed from eupgrade-base to master July 22, 2024 20:13
@darioush darioush marked this pull request as ready for review July 23, 2024 20:42
@darioush darioush requested a review from ceyonur as a code owner July 23, 2024 20:42
Copy link
Collaborator

@ceyonur ceyonur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@darioush darioush requested a review from aaronbuchwald July 24, 2024 14:28
@darioush darioush merged commit 00dd13b into master Jul 29, 2024
8 checks passed
@darioush darioush deleted the eupgrade-fee branch July 29, 2024 15:15
@@ -30,6 +30,7 @@ const (
ApricotPhase4BaseFeeChangeDenominator uint64 = 12
ApricotPhase5TargetGas uint64 = 15_000_000
ApricotPhase5BaseFeeChangeDenominator uint64 = 36
EUpgradeMinBaseFee int64 = GWei
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: convert all min/max base fee values to use GWei?

@@ -540,7 +540,7 @@ type ChainConfig struct {
// Note: EIP-4895 is excluded since withdrawals are not relevant to the Avalanche C-Chain or Subnets running the EVM.
DurangoBlockTimestamp *uint64 `json:"durangoBlockTimestamp,omitempty"`
// EUpgrade on the Avalanche network. (nil = no fork, 0 = already activated)
// It activates Cancun (TODO) and modifies the min base fee (TODO).
// It activates Cancun and reduces the min base fee.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: follow comment style from above ie. EUpgrade activates...

oxbee pushed a commit to taurusgroup/coreth that referenced this pull request Nov 6, 2024
* eupgrade: base definitions

* updates

* nit: consistently use EUpgrade for replace later

* update test configs

* refactor json genesis specs in vm_test.go

* set min base fee at EUpgrade

* nit: comment

* Update params/config.go

Signed-off-by: Darioush Jalali <darioush.jalali@avalabs.org>

* add ut

* nit:  comment

---------

Signed-off-by: Darioush Jalali <darioush.jalali@avalabs.org>
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants