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

fix: simplify feemarket based on AIMD paper #94

Merged
merged 16 commits into from
Jun 4, 2024
Merged

fix: simplify feemarket based on AIMD paper #94

merged 16 commits into from
Jun 4, 2024

Conversation

aljo242
Copy link
Collaborator

@aljo242 aljo242 commented Jun 3, 2024

  • remove targetUtilization param (always 0.5 * maxUtilization)
  • rename theta -> gamma
  • set proper bounds on parameters

https://arxiv.org/pdf/2110.04753

@p-offtermatt
Copy link

Core logic change looks good to me!

seems like there's a few more places where the TargetBlockUtilization is still used. the places I found were

"targetBlockUtilization": "15000000",

target_block_utilization: "15000000"

TargetBlockUtilization: feemarkettypes.DefaultTargetBlockUtilization / 4,

targetBlockUtilization := rapid.Uint64Range(1, 30_000_000).Draw(t, "target_block_utilization")

@aljo242 aljo242 enabled auto-merge (squash) June 4, 2024 14:35
@aljo242 aljo242 merged commit 7b6193a into main Jun 4, 2024
7 of 8 checks passed
@aljo242 aljo242 deleted the fix/paper branch June 4, 2024 14:46
mergify bot pushed a commit that referenced this pull request Jun 4, 2024
* rename properly and add bounds

* format proto

* refactor

* tip fe

* bye target

* func

* fix

* params

* ante

* bet

* fix all

(cherry picked from commit 7b6193a)

# Conflicts:
#	tests/e2e/go.mod
#	tests/e2e/go.sum
#	tests/e2e/setup.go
#	tests/integration/integration_test.go
#	x/feemarket/ante/expected_keepers.go
#	x/feemarket/ante/suite/suite.go
aljo242 added a commit that referenced this pull request Jun 4, 2024
* fix: simplify feemarket based on AIMD paper (#94)

* rename properly and add bounds

* format proto

* refactor

* tip fe

* bye target

* func

* fix

* params

* ante

* bet

* fix all

(cherry picked from commit 7b6193a)

# Conflicts:
#	tests/e2e/go.mod
#	tests/e2e/go.sum
#	tests/e2e/setup.go
#	tests/integration/integration_test.go
#	x/feemarket/ante/expected_keepers.go
#	x/feemarket/ante/suite/suite.go

* fix

* ok

* fix

* fix

---------

Co-authored-by: Alex Johnson <alex@skip.money>
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.

3 participants